在线快速创建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.
本文介绍了如何在SpringBoot官方启动器上创建项目,并推荐了几个常用的依赖项,包括SpringWeb用于构建RESTful应用,SpringDataJPA进行SQL数据持久化,SpringDataRedis支持Redis操作,SpringBootActuator提供健康检查和管理端点,MySQLDriver连接MySQL数据库,JavaMailSender发送邮件,Thymeleaf作为服务器端模板引擎,Lombok减少样板代码。
4369

被折叠的 条评论
为什么被折叠?



