diff --git a/kq-vas-api/src/main/resources/application-pre.yml b/kq-vas-api/src/main/resources/application-pre.yml index 3d6716e..a1edc1f 100644 --- a/kq-vas-api/src/main/resources/application-pre.yml +++ b/kq-vas-api/src/main/resources/application-pre.yml @@ -1,7 +1,8 @@ server: - port: 33060 + port: 33061 servlet: context-path: /kq + shutdown: graceful spring: mvc: @@ -16,7 +17,7 @@ spring: timeout: 5000 host: 47.98.125.47 port: 26379 - database: 7 + database: 10 password: Ndkj1234 jedis: pool: @@ -43,9 +44,9 @@ spring: datasource: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver - url: ENC(aMGW3+FFqxyutRz9liYjAg+A72b6IQ7/ygtxO0DmQJ/LLFZkx8r4MhN8quv9L62nQ4sH55qFg+LnQoor/t8IqBACrbfNg462YNKnRyMsBmdHHxJm7i57flIQfePLDW93Omz4LZ2PbRZTvPcLLYtnQyxXSDPwDnjexHNVXTdxwuTJPBqthsVpvyA2mnn5Szef) + url: ENC(wb0tk8lqfgt48/EernfQwr3JkxO/0BW5CEq0LS828WDgcWT6W9zvf77cEpR/+yT81pPsJVkCtdwnVYQ2OgEx0SiB9FZzdAiaZaXAgUyfbIRDwKdebjFnw4c0TmrqSBHyiRoBQJTlTAKTeP0WfUp2Nvty2ESbZ2KVothuLTKbGwTMNX0rY1R3uPQYQymiClGBNNALjvXCMpw=) username: root - password: NingdaKeji123! + password: ENC(NHFdgnNk7opRJpNnZOJs51OTXb72zU//) # 数据源 hikari: # 是客户端等待连接池连接的最大毫秒数 @@ -76,6 +77,7 @@ mybatis-plus: db-config: logic-delete-value: true logic-not-delete-value: false + logic-delete-field: deleted logging: config: classpath:logback-spring.xml #日志配置 @@ -119,10 +121,10 @@ swagger: enabled: true hostname: iZbp13nwyvib53j4j1p2xoZ - jasypt: encryptor: password: CodeSheep + # 指定解密算法,需要和加密时使用的算法一致 algorithm: PBEWithMD5AndDES # 指定initialization vector类型 iv-generator-classname: org.jasypt.iv.NoIvGenerator diff --git a/kq-vas-api/src/main/resources/security/auth-pre.yml b/kq-vas-api/src/main/resources/security/auth-pre.yml new file mode 100644 index 0000000..b0fd8b5 --- /dev/null +++ b/kq-vas-api/src/main/resources/security/auth-pre.yml @@ -0,0 +1,38 @@ +security: + auth: + auth-require-url: /api/v1/user/auth/auth-require + invalid-session-url: /api/v1/user/auth/invalid-session + password-login-url: /api/v1/user/auth/login/password + logout-url: /api/v1/user/auth/logout + ignore-auth-urls: + - /api/v1/poclicy/** + - /api/v1/zzsfw/** + - /v2/api-docs + - /swagger-ui.html + - /webjars/** + - /swagger-resources/** + - /webjars/ + - /api/v1/user/auth/register + - /api/v1/user/auth/auth-require + - /api/v1/user/auth/invalid-session + - /api/v1/user/auth/login/password + - /api/v1/user/auth/forget-password + - /doc.html + - /ok.html + - /open/api/** + - /api/v1/wechat/** + ignore-csrf-urls: + - /api/v1/poclicy/** + - /api/v1/zzsfw/** + - /api/v1/user/auth/** + - /v2/api-docs + - /swagger-ui.html + - /webjars/** + - /swagger-resources/** + - /webjars/ + - /doc.html + - /ok.html + - /api/v1/** + - /file/** + - /optLog/** + - /dict/** \ No newline at end of file