Skip to content

Bitter-Java/springboot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-demo

JDK-8 google code style License

A springboot demo application

Usage

  • Directly using maven: mvn spring-boot:run
  • From executable jar file:
mvn clean package -Dmaven.test.skip
java -jar target/springboot-demo-0.0.1-SNAPSHOT.jar

error: The main class org. apache. maven. wrapper. MavenWrapperMain cannot be found or loaded: mvn -N io.takari:maven:wrapper

  • From within your IDE right click run SpringbootDemoApplication.java

test

Use curl to authenticate the interface

curl --request GET -sL \
  --url 'http://localhost:8081/'