06 2020 档案

摘要:1.pom.xml <!-- Ehcache 坐标 --><dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId></dependency>2.ehcache.xml <?xml version=" 阅读全文
posted @ 2020-06-28 11:02 higsan 阅读(184) 评论(0) 推荐(0) 编辑
摘要:1.数据源配置 spring: # jdbctemplate 连接多数据源配置 db1: datasource: jdbcurl: jdbc:mysql://127.0.0.1:3306/cloud-main1?useUnicode=true&characterEncoding=utf8&useSS 阅读全文
posted @ 2020-06-24 17:31 higsan 阅读(495) 评论(0) 推荐(0) 编辑
摘要:1.配置多数据源 spring: # mybatis 连接多数据源配置 db1-mybatis: datasource: jdbcurl: jdbc:mysql://127.0.0.1:3306/cloud-main1?useUnicode=true&characterEncoding=utf8&u 阅读全文
posted @ 2020-06-24 17:23 higsan 阅读(315) 评论(0) 推荐(0) 编辑
摘要:1.pom.xml 的build标签添加一下内容<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plu 阅读全文
posted @ 2020-06-24 16:55 higsan 阅读(126) 评论(0) 推荐(0) 编辑
摘要:1.maven添加dependency <!--数据库开始--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId></dependenc 阅读全文
posted @ 2020-06-24 16:46 higsan 阅读(134) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示