diff --git a/pom.xml b/pom.xml index c6d7809..c5cd4b7 100644 --- a/pom.xml +++ b/pom.xml @@ -241,5 +241,6 @@ 2.2 + \ No newline at end of file diff --git a/system/pom.xml b/system/pom.xml index 8ac32ba..2cce864 100644 --- a/system/pom.xml +++ b/system/pom.xml @@ -85,6 +85,21 @@ storeroom 1.0 + + + + dm.jdbc + DmJdbcDriver + 18 + system + ${pom.basedir}/src/main/resources/lib/DmJdbcDriver18_18.jar + + + + + + + diff --git a/system/src/main/resources/application-dm.yml b/system/src/main/resources/application-dm.yml new file mode 100644 index 0000000..94c9060 --- /dev/null +++ b/system/src/main/resources/application-dm.yml @@ -0,0 +1,77 @@ +spring: + datasource: + driver-class-name: dm.jdbc.driver.DmDriver + url: jdbc:dm://192.168.99.101:5236/ + username: SYSDBA + password: ftzn83560792 + + +# 登录相关配置 +login: + # 登录缓存 + cache-enable: true + # 是否限制单用户登录 + single-login: false + # 验证码 + login-code: + # 验证码类型配置 查看 LoginProperties 类 + code-type: arithmetic + # 登录图形验证码有效时间/分钟 + expiration: 2 + # 验证码高度 + width: 111 + # 验证码宽度 + height: 36 + # 内容长度 + length: 2 + # 字体名称,为空则使用默认字体 + font-name: + # 字体大小 + font-size: 25 + + +#jwt +jwt: + header: Authorization + # 令牌前缀 + token-start-with: Bearer + # 必须使用最少88位的Base64对该令牌进行编码 + base64-secret: ZmQ0ZGI5NjQ0MDQwY2I4MjMxY2Y3ZmI3MjdhN2ZmMjNhODViOTg1ZGE0NTBjMGM4NDA5NzYxMjdjOWMwYWRmZTBlZjlhNGY3ZTg4Y2U3YTE1ODVkZDU5Y2Y3OGYwZWE1NzUzNWQ2YjFjZDc0NGMxZWU2MmQ3MjY1NzJmNTE0MzI= + # 令牌过期时间 此处单位/毫秒 ,默认4小时,可在此网站生成 https://www.convertworld.com/zh-hans/time/milliseconds.html + token-validity-in-seconds: 14400000 + # 在线用户key + online-key: online-token- + # 验证码 + code-key: code-key- + # token 续期检查时间范围(默认30分钟,单位毫秒),在token即将过期的一段时间内用户操作了,则给用户的token续期 + detect: 14400000 + # 续期时间范围,默认1小时,单位毫秒 + renew: 14400000 + + +#是否开启 swagger-ui +swagger: + enabled: true + +# IP 本地解析 +ip: + local-parsing: true + + # 文件存储路径 +file: + mac: + path: ~/file/ + avatar: ~/avatar/ + linux: + path: /home/yxk_App/file/ + avatar: /home/yxk_App/avatar/ + windows: + path: D:\yxk_App\file\ + avatar: D:\yxk_App\avatar\ + # 文件大小 /M + maxSize: 100 + avatarMaxSize: 5 + +accessFile: + resourceHandler: /downloadFile/** + location: D:\yxk_App\file\ \ No newline at end of file diff --git a/system/src/main/resources/application.yml b/system/src/main/resources/application.yml index ed38960..67d14eb 100644 --- a/system/src/main/resources/application.yml +++ b/system/src/main/resources/application.yml @@ -28,10 +28,23 @@ spring: open-in-view: true show-sql: true +# jpa: +# database-platform: org.hibernate.dialect.DmDialect +# open-in-view: false +# properties: +# hibernate: +# show_sql: false +# hbn2ddl: +# auto: none +# dialect: org.hibernate.dialect.Oracle10gDialect +# default_schema: SYSDBA +# temp: +# use_jdbc_metadata_defaults: false + redis: #数据库索引 database: ${REDIS_DB:0} - host: ${REDIS_HOST:192.168.99.107} + host: ${REDIS_HOST:192.168.99.101} port: ${REDIS_PORT:6379} password: ${REDIS_PWD:ftzn83560792} #连接超时时间 diff --git a/system/src/main/resources/lib/DmDialect-for-hibernate5.3.jar b/system/src/main/resources/lib/DmDialect-for-hibernate5.3.jar new file mode 100644 index 0000000..8511a47 Binary files /dev/null and b/system/src/main/resources/lib/DmDialect-for-hibernate5.3.jar differ diff --git a/system/src/main/resources/lib/DmJdbcDriver18_18.jar b/system/src/main/resources/lib/DmJdbcDriver18_18.jar new file mode 100644 index 0000000..f25ba73 Binary files /dev/null and b/system/src/main/resources/lib/DmJdbcDriver18_18.jar differ