在线快速创建SpringBoot项目
创建
打开创建SpringBoot的官网:https://start.spring.io/
引入依赖【Dependencies】
这里推荐一些经常使用的依赖:
①Spring Web:Build web, including RESTful, applications using Spring MVC. Uses Apache Tomcat as the default embedded container.
②Spring Data JPA:Persist data in SQL stores with Java Persistence API using Spring Data and Hibernate.
③Spring Data Redis:Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.
④Spring Boot Actuator:Supports built in (or custom) endpoints that let you monitor and manage your application - such as application health, metrics, sessions, etc.
⑤MySQL Driver:MySQL JDBC and R2DBC driver.
⑥Java Mail Sender:Send email using Java Mail and Spring Framework’s JavaMailSender.
⑦Thymeleaf:A modern server-side Java template engine for both web and standalone environments. Allows HTML to be correctly displayed in browsers and as static prototypes.
⑧Lombok:Java annotation library which helps to reduce boilerplate code.