摘要:
在 Spring Boot 中,application.yml 是一种用于配置 Spring Boot 项目的文件格式。YAML(YAML Ain't Markup Language)是一种用于数据序列化的格式,比传统的 .properties 文件更具可读性。以下是 application.yml 阅读全文
posted @ 2025-02-10 18:59
CyrusHuang
阅读(90)
评论(0)
推荐(0)
摘要:
注册 bean @Configuration + @Bean:配置类的 bean @Component、@Service、@Repository、@Controller:具有语义的 bean @Import:三种方式,可以批量导入 bean @ImportResource:导入一个 xml 配置文件 阅读全文
posted @ 2025-02-10 18:58
CyrusHuang
阅读(79)
评论(0)
推荐(0)
摘要:
zhenkeng 阅读全文
posted @ 2025-02-10 18:56
CyrusHuang
阅读(13)
评论(0)
推荐(0)

浙公网安备 33010602011771号