摘要: 1、导入jar包 <!--mybatis连接mysql--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1 阅读全文
posted @ 2022-03-14 16:24 孤狼奋战 阅读(46) 评论(0) 推荐(0)
摘要: 两种方式 @ConfigurationProperties(prefix="person") @PropertySource(value="classpath:person.yml") @ConfigurationProperties(prefix="person")这个注解指定配置文件中的pers 阅读全文
posted @ 2022-03-14 10:48 孤狼奋战 阅读(900) 评论(0) 推荐(0)