
MyBatis
CaediosViolet
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
后端-框架-Spring-MyBatis-Spring配置文件拆分
后端-框架-Spring-MyBatis-Spring配置文件拆分 多个配置文件加载方法1 //在引用时利用重载方法加载 ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml","applicationContext-dao","applicationContext-web"); 多个配...原创 2018-11-11 15:06:22 · 250 阅读 · 0 评论 -
后端-框架-Spring-MyBatis-自动装配
后端-框架-Spring-MyBatis-自动装配 bean标签下autowire属性 autowire value no 手动装配 byName 类名装配 byType 类型装配 constructor 构造器装配 beans标签下default-autowire属性 autowire value no 手动装配 byName 类名装配 b...原创 2018-11-11 14:50:15 · 327 阅读 · 0 评论 -
后端-框架-Spring-MyBatis-事物增强
后端-框架-Spring-MyBatis-业务层添加声明事物 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans"原创 2018-11-09 13:14:36 · 172 阅读 · 0 评论 -
后端-框架-Spring-MyBatis
后端-框架-Spring-MyBatis-整合(未完待续) 其中的配置文件 <bean id="DataSource" class="org.apache.commons.dbcp2.BasicDataSource"> <property name="driverClassName&a原创 2018-11-06 14:40:08 · 385 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-limit
后端-框架-MyBatis-动态SQL-limit public interface UserMapper { public int count(); public List<User> getUserListLimit(@Param("userName")String userName, @Param("userRole")Integer roleId,原创 2018-10-27 10:07:24 · 1820 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-choose
后端-框架-MyBatis-动态SQL-choose public interface UserMapper{ public List<User> getUserListByChoose(@Param("userName")String userName, @Param("userRole")Integer roleId, @Param(&原创 2018-10-26 17:52:52 · 173 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-foreach
<select id="getUserListByRoleIdForeach" resultMap="getUserListByRoleIdForeach"> select * from smbms_user where userRole in <fo原创 2018-10-26 17:12:29 · 234 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-trim
MyBatis-动态SQL where标签 <select id="getUserList" resultMap="getUserList"> select user.* from smbms_u原创 2018-10-26 17:53:59 · 162 阅读 · 0 评论 -
后端-框架-Spring-MyBatis-注入映射器
后端-框架-Spring-MyBatis-注入映射器 其中的配置文件 <!-- 数据源 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver.原创 2018-11-08 10:12:09 · 219 阅读 · 0 评论