正如Day 04 - Spring Boot 的前世今生所说,Spring Boot 为了简化设定提供了大量开箱即用的starter,这边会列出一些常用的依赖,虽然不会每个都实作一遍,但先知道有支援哪些功能,未来开发有需要时才用得到。
Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Starter for testing Spring Boot applications with libraries including JUnit Jupiter, Hamcrest and Mockito
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
Starter for using Spring Data JPA with Hibernate
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
Starter for using Spring Data JDBC
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>
Starter for building MVC web applications using Thymeleaf views
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
Starter for using Java Mail and Spring Framework's email sending support
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
Starter for using Spring Integration
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
</dependency>
Starter for using Redis key-value data store with Spring Data Redis and the Lettuce client
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
Starter for using Java Bean Validation with Hibernate Validator
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
Starter for building WebSocket applications using Spring Framework's WebSocket support
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
Starter for using Spring Web Services
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web-services</artifactId>
</dependency>
Starter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>
Starter for using Spring Security
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<<: .NET Core第22天_FormActionTagHelper的使用
接续前一天的单一功能原则,我们重构了 fetchUser 变成一个 customer hook , ...
前言 Hi, 我是鱼板伯爵今天要教如何利用Theme结合Bloc来切换主题配色,教学内容只会撷取片段...
因为它原本就会有一个storage是先帮你写好的,或许你第一次看到的时候会不知道这是甚麽,那我们会...
Ktor 的架构设计及开发风格是我所喜欢的,但相对地使用 Ktor 开发也要付出代价。因为 Ktor...
专注,就是你要懂得说不。 Focus means saying no. 苹果创办人 Steve Jo...