摘要:将用户名位置更改为root即可
阅读全文
07 2023 档案
摘要:application.properties文件内容 pig.id=11 pig.name=GGBond Pig类 @Component @ConfigurationProperties(prefix = "pig")//prefix表示前缀,将前缀是pig的值绑定 public class Pig
阅读全文
摘要:当时我在练习时添加的springBoot项目的版本为: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.1.1</v
阅读全文
摘要:检查配置文件是否扫描了该文件。 <!--开启组件扫描--> <context:component-scan base-package="xxx"></context:component-scan>
阅读全文