摘要: 1、添加Durid的相关依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <dependency> <groupId>com.alibaba</gr 阅读全文
posted @ 2021-06-16 23:59 shunnWcs 阅读(52) 评论(0) 推荐(0)
摘要: 1、添加所需要的依赖包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jdbc</artifactId> </dependency> <dependency> 阅读全文
posted @ 2021-06-16 19:51 shunnWcs 阅读(76) 评论(0) 推荐(0)
摘要: 1、SpringBoot中存放静态资源的目录有:resources static public。然后访问:http://localhost:8080/1.js 优先级:resources>static>public 2、定制一个首页,可以把首页放到 resources static public 这 阅读全文
posted @ 2021-06-16 13:29 shunnWcs 阅读(45) 评论(0) 推荐(0)
摘要: 1、编写要绑定的实体类 @Data @Component @ConfigurationProperties(prefix = "person") public class Person { private String name; private Boolean happy; private Map 阅读全文
posted @ 2021-06-16 08:34 shunnWcs 阅读(114) 评论(0) 推荐(0)