![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 201 阅读 · 0 评论 -
后端-框架-Spring-MyBatis-自动装配
后端-框架-Spring-MyBatis-自动装配bean标签下autowire属性autowirevalueno手动装配byName类名装配byType类型装配constructor构造器装配beans标签下default-autowire属性autowirevalueno手动装配byName类名装配b...原创 2018-11-11 14:50:15 · 274 阅读 · 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 · 128 阅读 · 0 评论 -
后端-框架-Spring-MyBatis
后端-框架-Spring-MyBatis-整合(未完待续)其中的配置文件 <bean id="DataSource" class="org.apache.commons.dbcp2.BasicDataSource"> <property name="driverClassName&a原创 2018-11-06 14:40:08 · 321 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-limit
后端-框架-MyBatis-动态SQL-limitpublic interface UserMapper { public int count(); public List<User> getUserListLimit(@Param("userName")String userName, @Param("userRole")Integer roleId,原创 2018-10-27 10:07:24 · 1739 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-choose
后端-框架-MyBatis-动态SQL-choosepublic interface UserMapper{ public List<User> getUserListByChoose(@Param("userName")String userName, @Param("userRole")Integer roleId, @Param(&原创 2018-10-26 17:52:52 · 137 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-foreach
<select id="getUserListByRoleIdForeach" resultMap="getUserListByRoleIdForeach"> select * from smbms_user where userRole in <fo原创 2018-10-26 17:12:29 · 166 阅读 · 0 评论 -
后端-框架-MyBatis-动态SQL-trim
MyBatis-动态SQLwhere标签<select id="getUserList" resultMap="getUserList"> select user.* from smbms_u原创 2018-10-26 17:53:59 · 127 阅读 · 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 · 160 阅读 · 0 评论