| @@ -1,5 +1,6 @@ | |||||
| package com.simple; | package com.simple; | ||||
| import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties; | |||||
| import org.mybatis.spring.annotation.MapperScan; | import org.mybatis.spring.annotation.MapperScan; | ||||
| import org.springframework.boot.SpringApplication; | import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
| @@ -13,6 +14,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; | |||||
| @SpringBootApplication | @SpringBootApplication | ||||
| @MapperScan(basePackages = {"com.simple.mapper"}) | @MapperScan(basePackages = {"com.simple.mapper"}) | ||||
| @EnableSwagger2 | @EnableSwagger2 | ||||
| @EnableEncryptableProperties | |||||
| public class UserApplication { | public class UserApplication { | ||||
| public static void main(String[] args) { | public static void main(String[] args) { | ||||
| @@ -2,8 +2,8 @@ spring: | |||||
| # JDBC | # JDBC | ||||
| datasource: | datasource: | ||||
| url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | ||||
| username: mallone | |||||
| password: m@1l0ne123@# | |||||
| username: ENC(dZ8fmrtuBMQYaRytKQgTqg==) | |||||
| password: ENC(OZXsE6/Tj+V1Yu2wdjnIGbNOaBVQzi9W) | |||||
| type: com.alibaba.druid.pool.DruidDataSource | type: com.alibaba.druid.pool.DruidDataSource | ||||
| driver_class: com.mysql.cj.jdbc.Driver | driver_class: com.mysql.cj.jdbc.Driver | ||||
| filters: stat | filters: stat | ||||
| @@ -27,7 +27,7 @@ spring: | |||||
| redis: | redis: | ||||
| host: 202.165.179.86 | host: 202.165.179.86 | ||||
| port: 6789 | port: 6789 | ||||
| password: JGtest123 | |||||
| password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco) | |||||
| timeout: 0 | timeout: 0 | ||||
| expire: 1800 #30分钟 | expire: 1800 #30分钟 | ||||
| pool: | pool: | ||||
| @@ -39,4 +39,8 @@ mapper: | |||||
| - com.simple.common.CommonMapper | - com.simple.common.CommonMapper | ||||
| pay: | pay: | ||||
| real: true | |||||
| real: true | |||||
| jasypt: | |||||
| encryptor: | |||||
| password: oRqdnDbK5pj3eMmB | |||||
| @@ -1,5 +1,6 @@ | |||||
| package com.simple; | package com.simple; | ||||
| import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties; | |||||
| import org.mybatis.spring.annotation.MapperScan; | import org.mybatis.spring.annotation.MapperScan; | ||||
| import org.springframework.boot.SpringApplication; | import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
| @@ -13,6 +14,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; | |||||
| @SpringBootApplication | @SpringBootApplication | ||||
| @MapperScan(basePackages = {"com.simple.mapper"}) | @MapperScan(basePackages = {"com.simple.mapper"}) | ||||
| @EnableSwagger2 | @EnableSwagger2 | ||||
| @EnableEncryptableProperties | |||||
| public class BApplication { | public class BApplication { | ||||
| public static void main(String[] args) { | public static void main(String[] args) { | ||||
| @@ -2,8 +2,8 @@ spring: | |||||
| # JDBC | # JDBC | ||||
| datasource: | datasource: | ||||
| url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | ||||
| username: mallone | |||||
| password: m@1l0ne123@# | |||||
| username: ENC(dZ8fmrtuBMQYaRytKQgTqg==) | |||||
| password: ENC(OZXsE6/Tj+V1Yu2wdjnIGbNOaBVQzi9W) | |||||
| type: com.alibaba.druid.pool.DruidDataSource | type: com.alibaba.druid.pool.DruidDataSource | ||||
| driver_class: com.mysql.cj.jdbc.Driver | driver_class: com.mysql.cj.jdbc.Driver | ||||
| filters: stat | filters: stat | ||||
| @@ -26,7 +26,7 @@ spring: | |||||
| redis: | redis: | ||||
| host: 202.165.179.86 | host: 202.165.179.86 | ||||
| port: 6789 | port: 6789 | ||||
| password: JGtest123 | |||||
| password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco) | |||||
| timeout: 0 | timeout: 0 | ||||
| expire: 1800 #30分钟 | expire: 1800 #30分钟 | ||||
| pool: | pool: | ||||
| @@ -39,4 +39,8 @@ mapper: | |||||
| - com.simple.common.CommonMapper | - com.simple.common.CommonMapper | ||||
| pay: | pay: | ||||
| real: true | |||||
| real: true | |||||
| jasypt: | |||||
| encryptor: | |||||
| password: oRqdnDbK5pj3eMmB | |||||
| @@ -1,5 +1,6 @@ | |||||
| package com.simple; | package com.simple; | ||||
| import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties; | |||||
| import org.mybatis.spring.annotation.MapperScan; | import org.mybatis.spring.annotation.MapperScan; | ||||
| import org.springframework.boot.SpringApplication; | import org.springframework.boot.SpringApplication; | ||||
| import org.springframework.boot.autoconfigure.SpringBootApplication; | import org.springframework.boot.autoconfigure.SpringBootApplication; | ||||
| @@ -12,7 +13,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; | |||||
| */ | */ | ||||
| @SpringBootApplication | @SpringBootApplication | ||||
| @MapperScan(basePackages = {"com.simple.mapper"}) | @MapperScan(basePackages = {"com.simple.mapper"}) | ||||
| @EnableEncryptableProperties | |||||
| public class CApplication { | public class CApplication { | ||||
| public static void main(String[] args) { | public static void main(String[] args) { | ||||
| @@ -2,8 +2,8 @@ spring: | |||||
| # JDBC | # JDBC | ||||
| datasource: | datasource: | ||||
| url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | url: jdbc:mysql://202.165.179.86:3306/mallink?characterEncoding=UTF-8&useSSL=false | ||||
| username: mallone | |||||
| password: m@1l0ne123@# | |||||
| username: ENC(dZ8fmrtuBMQYaRytKQgTqg==) | |||||
| password: ENC(OZXsE6/Tj+V1Yu2wdjnIGbNOaBVQzi9W) | |||||
| type: com.alibaba.druid.pool.DruidDataSource | type: com.alibaba.druid.pool.DruidDataSource | ||||
| driver_class: com.mysql.cj.jdbc.Driver | driver_class: com.mysql.cj.jdbc.Driver | ||||
| filters: stat | filters: stat | ||||
| @@ -26,7 +26,7 @@ spring: | |||||
| redis: | redis: | ||||
| host: 202.165.179.86 | host: 202.165.179.86 | ||||
| port: 6789 | port: 6789 | ||||
| password: JGtest123 | |||||
| password: ENC(YOLO4buIPjiYfosG+Akk3XZ9HYrbCFco) | |||||
| timeout: 0 | timeout: 0 | ||||
| expire: 1800 #30分钟 | expire: 1800 #30分钟 | ||||
| pool: | pool: | ||||
| @@ -40,3 +40,7 @@ mapper: | |||||
| pay: | pay: | ||||
| real: true | real: true | ||||
| jasypt: | |||||
| encryptor: | |||||
| password: oRqdnDbK5pj3eMmB | |||||
| @@ -240,6 +240,12 @@ | |||||
| <version>${weixin-java-miniapp.version}</version> | <version>${weixin-java-miniapp.version}</version> | ||||
| </dependency> | </dependency> | ||||
| <dependency> | |||||
| <groupId>com.github.ulisesbocchio</groupId> | |||||
| <artifactId>jasypt-spring-boot</artifactId> | |||||
| <version>2.0.0</version> | |||||
| </dependency> | |||||
| </dependencies> | </dependencies> | ||||
| <build> | <build> | ||||
| <plugins> | <plugins> | ||||