spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver # type: com.alibaba.druid.pool.DruidDataSource type: com.zaxxer.hikari.HikariDataSource #url: jdbc:mysql://localhost:3306/jeecms_x2?useUnicode=true&characterEncoding=UTF-8&useSSL=false&nullCatalogMeansCurrent=true url: jdbc:mysql://127.0.0.1:3306/jeecms-x2?useUnicode=true&characterEncoding=UTF-8&useSSL=false username: root password: rootroot #password: admin cloud: nacos: discovery: server-addr: 127.0.0.1:8848 group: dzj elasticsearch: uris: http://127.0.0.1:9200 data: elasticsearch: repositories: enabled: true freemarker: #指定HttpServletRequest的属性是否可以覆盖controller的model的同名项 allow-request-override: false #req访问request request-context-attribute: req #后缀名freemarker默认后缀为.ftl,当然你也可以改成自己习惯的.html suffix: .html #设置响应的内容类型 content-type: text/html;charset=utf-8 #是否允许mvc使用freemarker enabled: true #是否开启template caching cache: false #设定模板的加载路径,多个以逗号分隔,默认: [“classpath:/templates/”] #template-loader-path: D:// #设定Template的编码 charset: UTF-8 #view-names: /* prefer-file-system-access: true ### 国密 sm4 sm: enabled: true key: jeecms0123456789 #模板文件存储配置 tpl: #文件上传的类型 local|ftp type: local #本地上传|访问存储配置 localConfig: #服务器目录 path: D:\jeecms sitePrefix: site indexPath: src/index #ftp上传|访问存储配置 ftpConfig: ip: 10.100.203.162 port: 21 username: ftpuser2 password: ftpuser2 encoding: UTF-8 sitePrefix: site timeout: 5000 #登录ftp的混淆码 obfuscationCode: 21312321 url: http://10.100.203.162:8866/ indexPath: index elasticsearch: content: index: es_content