In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to build a springboot project in idea". In daily operation, I believe many people have doubts about how to build a springboot project in idea. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to build a springboot project in idea". Next, please follow the editor to study!
Spring Boot is a new framework provided by the Pivotal team and is designed to simplify the initial building and development of new Spring applications. It mainly advocates the 'elimination configuration' to achieve zero configuration.
So how do you create a springboot project in idea?
one。 Create Module under the project you set up and select Spring initializr to create.
two。 Select: Maven Project (the project's build tool) at Type
three。 Check web,mybatis,mysql when creating dependencies (this depends on your personal needs, you can choose)
The established project structure is as follows:
Corresponding pom.xml file
4.0.0 com demo 0.0.1-SNAPSHOT jar demo Demo project for Spring Boot org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE UTF-8 UTF-8 1.8 org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.1 org.springframework.boot spring-boot-starter-web mysql mysql -connector-java runtime org.springframework.boot spring-boot-starter-test test com.mchange c3p0 0.9.5.2 org.springframework.boot spring-boot-maven-plugin
Application.yml (when the project is built, the suffix of this application file is not yml. It is officially recommended to change the suffix to yml. The advantage is that the code is prompted.)
Mybatis: mapper-locations: classpath:mapper/*.xml type-aliases-package: com.demo.pojo# database connection pool spring: datasource: username: root password: sasa url: jdbc:mysql://localhost:3306/ssm driver-class-name: com.mysql.jdbc.Driver
Start
At this point, the study on "how to build a springboot project in idea" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.