| | |
| | | #端口:http://127.0.0.1:8082/doc.html |
| | | server: |
| | | tomcat: |
| | | uri-encoding: UTF-8 |
| | | max-connections: 1000 |
| | | threads: |
| | | # tomcat最大线程数,默认为200 |
| | | max: 1000 |
| | | # Tomcat启动初始化的线程数,默认值25 |
| | | min-spare: 25 |
| | | port: 8082 |
| | | servlet: |
| | | # 应用的访问路径 |
| | | context-path: / |
| | | tomcat: |
| | | # tomcat的URI编码 |
| | | uri-encoding: UTF-8 |
| | | # tomcat最大线程数,默认为200 |
| | | max-threads: 800 |
| | | # Tomcat启动初始化的线程数,默认值25 |
| | | min-spare-threads: 30 |
| | | |
| | | |
| | | spring: |
| | | jackson: |
| | | date-format: yyyy-MM-dd HH:mm:ss #时间戳统一转换为指定格式 |
| | | time-zone: GMT+8 # 时区修改为东8区 |
| | | profiles: |
| | | active: dev |
| | | spring: |
| | | application: |
| | | name: yssh |
| | | # session |
| | | session: |
| | | timeout: PT20M # 20分钟 |
| | | profiles: |
| | | active: prod |
| | | include: scheduled,file |
| | | # 服务模块 |
| | | devtools: |
| | | # 设置上传文件大小 |
| | | servlet: |
| | | multipart: |
| | | enabled: true |
| | | max-file-size: 204800MB |
| | | max-request-size: 1048576MB |
| | | # jackson |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | locale: zh_CN |
| | | thymeleaf: |
| | | cache: false |
| | | # 服务模块 |
| | | devtools: |
| | | restart: |
| | | # 热部署开关 |
| | | enabled: true |
| | | |
| | | |
| | | # 日志配置 |
| | | mybatis-plus: |
| | | type-aliases-package: com.yssh.entity |
| | | config-location: classpath:mybatis.xml |
| | | mapper-locations: classpath:mapper/**/*.xml |
| | | |
| | | # logging |
| | | logging: |
| | | level: |
| | | com.yssh: info |
| | | org.springframework: warn |
| | | |
| | | #MyBatis配置 |
| | | mybatis: |
| | | mapper-locations: classpath:mapping/*.xml |
| | | executor-type: batch |
| | | #使用type-aliases-package中指定entity扫描包类让mybatis自定扫描到自定义的entity |
| | | type-aliases-package: com.yssh.**.entity |
| | | configuration: |
| | | log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl #指定 MyBatis 所用日志的具体实现,未指定时将自动查找 |
| | | map-underscore-to-camel-case: true #开启自动驼峰命名规则(camel case)映射 |
| | | lazy-loading-enabled: true #开启延时加载开关 |
| | | aggressive-lazy-loading: false #将积极加载改为消极加载(即按需加载),默认值就是false |
| | | lazy-load-trigger-methods: "" #阻挡不相干的操作触发,实现懒加载 |
| | | cache-enabled: true #打开全局缓存开关(二级环境),默认值就是true |
| | | default-executor-type: SIMPLE |
| | | #config: classpath:logback-spring.xml |
| | | |
| | | knife4j: |
| | | # 是否开启Swagger |
| | | enabled: true |
| | | # 请求前缀 |
| | | pathMapping: |
| | | pathMapping: |
| | | # 是否开启Knife4j增强模式,默认是 false |
| | | enable: true |
| | | enable: true |
| | | |
| | | socket: |
| | | ip: 127.0.0.1 |
| | | port: 6666 |
| | | |
| | | cmd: |
| | | runPy: C:/Python310/py/runPy.bat |