Sping Cloud 错误处理

feign远程调用时报jackson日期格式化错误

需要配置日期格式,yml中配置如下

spring:
  application:
    name: sec-server
    admin:
      enabled: true
  profiles:
    active: release
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    
   

关于Springboot 集成mybatis只能扫描到一个包的mapper


application.yml 中配置如下

mybatis:
  type-aliases-package: com.kutesmart.security.entity
  mapper-locations: classpath*:mapper/*.xml, classpath*:mapper/**/*.xml

切记一定classpath后面加*号
上一篇
下一篇