千秋阁
  • 首页
  • 技术类
    • Java
      • 多数据源
      • EasyExcel
      • Spring Boot
    • MyBatis
  • 关于
large picture of the cover

Spring Boot 框架配置与工程实践
thumbnail of the cover of the post

Spring Boot 本地联调:复用 Nacos test 配置并单独连接 dev 数据库

介绍如何让 Spring Boot 本地实例复用 Nacos test 配置与服务发现,同时通过独立 dev Profile 覆盖数据库并禁止本机注册,包含 IDEA 配置、加载顺序和验证方法。


thumbnail of the cover of the post

Spring Boot 日期格式转换错误(Type Mismatch / ConversionFailedException)

现象:前端传过来了一个字符串格式的时间,但后端对应的 Java 字段是 LocalDateTime 类型,Spring 框架不知道该怎么把这个特定格式的字符串转换成时间对象,于是报错了。 解决方案:给对应的字段加上注解@DateTimeFormat(pattern = "yyyy-MM-dd HH:


site logo

Hi,Friend

  • 首页
  • 技术类
    • Java
      • 多数据源
      • EasyExcel
      • Spring Boot
    • MyBatis
  • 关于

© 2026 千秋阁

Powered by Halo • Crafted with by LIlGG

© 2026 千秋阁