GlennOu66304 / newBeeMall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Spring Boot Project

Spring 后端项目启动(Spring API + Vue Front)

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

Swagger Spring API - xmlModelPlugin Error

change the jdk and project sdk to java 1.8 Swagger Spring API - xmlModelPlugin Error

install jdk 8

brew install openjdk@8

How to install Java JDK on macOS

How to install Java 8 on Mac

How to change the IntelliJ IDEA JDK version?

How to change the IntelliJ IDEA JDK version?

How to Change the Java Version in an IntelliJ Project

install the maven on mac

How to Install Maven on Mac OS

Installing Apache Maven

Can not find the spring inital in idea

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

No JDK specified for module ERROR MESSAGE

How do I edit $PATH (.bash_profile) on OS X?

How do I edit $PATH (.bash_profile) on OS X?

Unknown lifecycle phase “spring-boot”

Make sure you run no space between mvn spring-boot: and run

mvn spring-boot:run

Unknown lifecycle phase “spring-boot”

报错 No active profile set, falling back to default profiles: default 解决

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 解决

Can not run the @enableswagger in config package.always alert the red warning

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

Can not load the swagger complete page

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"))

entity red warning

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 and class

Package is a folder and class is a java file in springboot project

REFERENCE

新蜂商城升级为 Spring Boot + Vue

About


Languages

Language:Java 100.0%