1. ##token
    2. token:
    3. X-JUDGE-SERVER-TOKEN:
    4. ##线程池配置
    5. # 异步线程配置
    6. async:
    7. executor:
    8. thread:
    9. # 配置核心线程数
    10. core_pool_size: 5
    11. # 配置最大线程数
    12. max_pool_size: 5
    13. # 配置队列大小
    14. queue_capacity: 99999
    15. name:
    16. # 配置线程池中的线程的名称前缀
    17. prefix: async-service-
    18. ##
    19. server:
    20. port: 8080
    21. ##
    22. spring:
    23. #数据源配置
    24. datasource:
    25. username: root
    26. password:
    27. url: jdbc:mysql://localhost:3306/nongchatea?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
    28. driver-class-name: com.mysql.cj.jdbc.Driver
    29. type: com.alibaba.druid.pool.DruidDataSource
    30. #druid 配置
    31. druid:
    32. initialSize: 5
    33. minIdle: 5
    34. maxActive: 20
    35. maxWait: 60000
    36. timeBetweenEvictionRunsMillis: 60000
    37. minEvictableIdleTimeMillis: 300000
    38. validationQuery: SELECT 1 FROM DUAL
    39. testWhileIdle: true
    40. testOnBorrow: false
    41. testOnReturn: false
    42. poolPreparedStatements: true
    43. #自动设置json返回格式
    44. jackson:
    45. #日期格式化
    46. date-format: yyyy-MM-dd
    47. time-zone: GMT+8
    48. #设置空如何序列化
    49. #default-property-inclusion: non_null
    50. serialization:
    51. #格式化输出
    52. indent_output: true
    53. #忽略无法转换的对象
    54. fail_on_empty_beans: false
    55. deserialization:
    56. #允许对象忽略json中不存在的属性
    57. fail_on_unknown_properties: false
    58. parser:
    59. #允许出现特殊字符和转义符
    60. allow_unquoted_control_chars: true
    61. #允许出现单引号
    62. allow_single_quotes: true
    63. #文件上传限制
    64. servlet:
    65. multipart:
    66. max-request-size: 100MB
    67. max-file-size: 50MB
    68. ##mybatis设置
    69. mybatis:
    70. mapper-locations: classpath:mapping/*Mapper.xml
    71. type-aliases-package: com.example.springbootmybatis.pojo
    72. configuration:
    73. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    74. map-underscore-to-camel-case: true
    75. ##pagehelper设置
    76. pagehelper:
    77. helperDialect: mysql
    78. #分页合理化
    79. reasonable: true
    80. #支持mapper接口
    81. supportMethodsArguments: true
    82. params: count=countSql