08 2019 档案
摘要:1,通过@value来注入对应的值,直接在字段上添加@value 获取application.properties文件中的值。 @Configuration public class DemoConfig { @Value("${jdbc.driver}") private String drive
阅读全文
摘要:springboot 默认自动扫描和配置根包下面的类。如果启动配置不在根包目录下,得把对应的类进行配置扫描生成对应的bean。 主要的扫描注解有: @SpringBootApplication //springboot启动注解配置@EnableJpaRepositories(basePackages
阅读全文
摘要:maven update project maven build
阅读全文
摘要:create user test identified by ‘password’;password 你要创建的用户对应的密码 grant all on database.* to test; database 指要授权的数据库
阅读全文

浙公网安备 33010602011771号