test.config.java.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://url2sql.vsame.net/xml/0.0.0.10/url2sqlConfig.xsd"> <action url="java/a" class="test.TestAction" method="a"> <desc>这是测试用的</desc> </action> <action url="java/b" class="test.TestAction" method="b"> <vars> <var name="queryAll">select * from student</var> <var name="querybyId">select * from student where id=${id} or (name=? and name=? and name=? and name=?)</var> </vars> </action> <action url="java/querybyId" class="test.TestAction" method="querybyId"> <vars> <var name="querybyId">select * from student where id=${id}</var> </vars> <cache type="GLOBAL" time="60"></cache> <cleanPathCache> <path>java/a.*</path> <path>java/q.*</path> </cleanPathCache> </action> <action url="java/add" class="test.TestAction" method="add"> <vars> <var name="1">INSERT INTO student (`name`, `age`) VALUES (${name}, ${age})</var> </vars> </action> <action url="java/updata" class="test.TestAction" method="updata"> <vars> <var name="1">UPDATE student SET `age`=${age} WHERE (`id`=${id})</var> </vars> </action> <action url="java/delete" class="test.TestAction" method="delete"> <vars> <var name="1">DELETE FROM student WHERE (`id`=${id})</var> </vars> </action> <action url="java/queryAll" class="test.TestAction" method="queryAll"> <vars> <var name="1">select * from student</var> </vars> </action> <action url="java/page" class="test.TestAction" method="page"> <vars> <var name="sql">select id, name from student</var> </vars> <params> <v name="pagesize" info="X" focus="D" success="S" error="页码必须为整数" option="true"> v('+intege', $); </v> <v name="currentpage"></v> <v name="must"></v> <v name="no" option="true"></v> </params> </action> </config>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy