application.yml 866 B

123456789101112131415161718192021222324252627282930
  1. ##########
  2. logging:
  3. level:
  4. root: info
  5. org.mybatis: debug
  6. java.sql: debug
  7. org.springframework.web: trace
  8. #打印sql语句
  9. com.example.plus.mapper: debug
  10. ##########
  11. mybatis-plus:
  12. # mapper-locations: classpath:mapper/*/*.xml
  13. # #实体扫描,多个package用逗号或者分号分隔
  14. # typeAliasesPackage: com.hssx.cloudmodel
  15. global-config:
  16. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  17. id-type: 0
  18. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  19. field-strategy: 2
  20. db-column-underline: true
  21. refresh-mapper:
  22. #################插入和更新非null判断
  23. db-config:
  24. insert-strategy: not_null
  25. update-strategy: not_null
  26. configuration:
  27. map-underscore-to-camel-case: true
  28. cache-enabled: false