随笔分类 -  springboot2多数据源代码

摘要:public PageInfo<User> findListUser(int startPage,int pageSize){ PageHelper.startPage(startPage, pageSize); List<User> users=userMapper.findListUser(); 阅读全文
posted @ 2021-03-04 21:20 傲云萧雨 阅读(59) 评论(0) 推荐(0)
摘要:package com.xiangwen.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org 阅读全文
posted @ 2021-03-04 20:14 傲云萧雨 阅读(46) 评论(0) 推荐(0)
摘要:<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupI 阅读全文
posted @ 2021-03-04 19:59 傲云萧雨 阅读(58) 评论(0) 推荐(0)
摘要:package com.xiangwen.datasource; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSession 阅读全文
posted @ 2021-03-04 19:57 傲云萧雨 阅读(170) 评论(0) 推荐(0)
摘要:###datasource1 spring.datasource.test1.driver-class-name = com.mysql.jdbc.Driver spring.datasource.test1.jdbc-url = jdbc:mysql://localhost:3306/xiangw 阅读全文
posted @ 2021-03-04 19:54 傲云萧雨 阅读(48) 评论(0) 推荐(0)