摘要: 常见的得导入thyme leaf包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 阅读全文
posted @ 2022-01-17 11:47 wang-1206 阅读(194) 评论(0) 推荐(0)
摘要: 1、遍历数组然后添加到list中; 2、使用Arrays.aslist(数组)方法 阅读全文
posted @ 2022-01-11 09:50 wang-1206 阅读(131) 评论(0) 推荐(0)
摘要: 例子: 配置对象:(在yml中的配置) person: name: "王五" age: 13 sex: "男" happy: "打球" 使用配置的对象: @Component @ConfigurationProperties(prefix = "person") @Data public class 阅读全文
posted @ 2022-01-05 11:23 wang-1206 阅读(175) 评论(0) 推荐(0)
摘要: 1、使用依赖 <!-- https://mvnrepository.com/artifact/org.json/json --> <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20201 阅读全文
posted @ 2022-01-05 10:35 wang-1206 阅读(74) 评论(0) 推荐(0)