摘要: 导入Swagger Gradle dependencies{ compile('io.springfox:springfox-swagger2:2.8.0') compile('io.springfox:springfox-swagger-ui:2.8.0') compile 'io.swagger 阅读全文
posted @ 2018-10-17 15:01 惑丶 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Spring boot连接数据库时需要关闭Spring boot默认连接配置改成自己默认手动配置的 在Application启动项加上注解 @EnableAutoConfiguration(exclude=DataSourceAutoConfiguration.class) 阅读全文
posted @ 2018-10-17 14:13 惑丶 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 首先,使用Mybatis配置多个数据源需要用到两个工具类:SqlSessionFactory MapperFactory /** * 根据mybatis.xml中配置的不同的environment创建对应的SqlSessionFactory */public final class SqlSessi 阅读全文
posted @ 2018-10-17 14:06 惑丶 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 一位资深的大神写的jacoco实战篇,感觉很受益,先记录下来 https://www.jianshu.com/p/16a8ce689d60 https://my.oschina.net/wangmengjun/blog/974067 https://blog.csdn.net/qq_26392615 阅读全文
posted @ 2018-10-17 14:05 惑丶 阅读(119) 评论(0) 推荐(0) 编辑