2021
10-12
10-12
解决SpringBoot @value注解取不到值的问题
关于@value的springapplication容器的问题1.在src/main/resources下创建stu.properties文件##student.name=Tomstudent.age=22student.birthday=1996/01/10student.sex=truestudent.hobbies[0]=swimmingstudent.hobbies[1]=basketballstudent.skills[0]=programmingstudent.skills[1]=teststudent.address.province=henanstudent.address.city=zhengzhou2.创建实体类packagecom.fcy.entity;importjava.util.Arrays;importjava.ut...
继续阅读 >