配置
小猪不怕色
这个作者很懒,什么都没留下…
展开
-
springboot使用Jasypt加密并打包war包启动时导入外部配置文件
我们在SpringBoot项目中的yml或者properties配置文件中都是明文的,所以使用Jasypt加密。 一、使用Jasypt进行加密 1.添加依赖 <!-- Jasypt加密 --> <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId>原创 2020-06-19 17:30:20 · 1860 阅读 · 0 评论 -
springboot多数据源
一、配置数据源application.yml spring: datasource: one: username: root password: root123 jdbc-url: jdbc:oracle:thin:@//localhost:1521/orcl driver-class-name: oracle.jdbc.driver.OracleDriver two: username: root passwo原创 2020-06-18 13:36:42 · 167 阅读 · 0 评论