Spring 后端项目启动(Spring API + Vue Front)
When you first start the project, make sure you change the database username and
password in the file:application.properties
change the jdk and project sdk to java 1.8 Swagger Spring API - xmlModelPlugin Error
brew install openjdk@8
How to install Java JDK on macOS
How to change the IntelliJ IDEA JDK version?
How to Change the Java Version in an IntelliJ Project
How to Install Maven on Mac OS
You can only see this option Idea UT version, and you can not see it in the Idea CE version. With the CE version, you need to build the project from the link below, then import it to the idea ce version, and do not forget to choose the web indepency or the project will create the bug
https://start.spring.io/ ntellij Spring Initializr not available
No JDK specified for module ERROR MESSAGE
How do I edit $PATH (.bash_profile) on OS X?
Make sure you run no space between mvn spring-boot: and run
mvn spring-boot:run
Unknown lifecycle phase “spring-boot”
add the code below to the pom file
<dependency>
<groupId>org-springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
报错 No active profile set, falling back to default profiles: default 解决
After you add the dependency to the poml file, you need to sync the poml, make sure the project loads this maven package, then when you head to the config, write the swagger2Config.java will not alert the red warning
You need to go to the config package and locate the swagger2Config.java, change the controller package as below:
.apis(RequestHandlerSelectors.basePackage("ltd.newbee.mall.newbeemall.controller"))
You need to build the entity package and change the path as below: TestSwaggerController.java
import ltd.newbee.mall.newbeemall.entity.User;
SpringBoot 集成接口文档工具 swagger
Spring Boot 项目中集成 Swagger。
Package is a folder and class is a java file in springboot project