04 2019 档案
摘要:1、SpringBoot中加载bean,可以使用注解@compenent直接加载到applicationContext容器中 2、在直接类@Configuration中,手动注册bean,如:
阅读全文
摘要:springboot属性类自动加载配置文件中的值,如Person类加载在yml中配置的name,age等属性值,可以通过如下步骤获取: 类上添加@ConfigurationProperties注解,prefix为yml中配置的属性名称,要想属性类生效得加上@Component注解 如果想要在yml中
阅读全文
摘要:1、在Navicat界面进入,右键点击 命令列界面 2、依次输入: use mysql; 3、如果是5.7以下版本用 update user set password=password('xxxxxxxx') where user='root'; 如果是5.7以上版本则用 update user s
阅读全文
摘要:https://blog.csdn.net/hu_belif/article/details/82688884
阅读全文