用ibatis开发时
项目中的配置文件的摸板从哪考呀
ibatis的开发包吗 ibatis-2.3.4.726.jar我看这里都是.class文件呀 没有找到什么摸板感觉ibatis配置挺麻烦的 sqlMapConfig.xml user.xml logic4g.properties摸板 web.xml中的ibatis支持什么的都在哪
找呀
项目中的配置文件的摸板从哪考呀
ibatis的开发包吗 ibatis-2.3.4.726.jar我看这里都是.class文件呀 没有找到什么摸板感觉ibatis配置挺麻烦的 sqlMapConfig.xml user.xml logic4g.properties摸板 web.xml中的ibatis支持什么的都在哪
找呀
ibatis,半自动,是麻烦些
logic4g.properties,网上n多
web.xml中的ibatis支持什么:web.xm不需要配置
sqlMapConfig :<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"><sqlMapConfig> <settings
cacheModelsEnabled="false"
enhancementEnabled="false"
maxSessions="64"
maxTransactions="8"
maxRequests="128"/> <transactionManager type="JDBC" >
<dataSource type="JNDI">
<property name="DataSource" value="java:comp/env/jdbc/test"/>
</dataSource>
</transactionManager>
<sqlMap resource="com/ommon.xml"/></sqlMapConfig>user.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"><!-- The SQL in these maps files has purposely been typed with more verbosity than is actually required.
For example, many of the selects could have just used SELECT * FROM... instead of listing all of the columns.
This is to demonstrate that even complex SQL can be handled and coded and formatted the way SQL was meant
to be (i.e. not a bunch of concatenated strings in a Java class). --><sqlMap namespace="User">
<select id="queryUserCount" parameterClass="user" resultClass="Integer">
SELECT COUNT(USER_ID) FROM OA_USER WHERE FLAG = '1'
<isNotEmpty property="userName">
AND USER_NAME LIKE '%$userName$%'
</isNotEmpty>
<isNotEmpty property="userAccount">
AND USER_ACCOUNT LIKE '%$userAccount$%'
</isNotEmpty>
<isNotEmpty property="unitId">
AND UNIT_ID = #unitId#
</isNotEmpty>
</select>
</sqlMap>
我想在ibatis的开发包中自己找找看
那我还是劝你加强一下基础吧,请务必尊重学习规律!
就会有自动提示了