Skip to content

Demo project to discuss spring-boot application configuration with security

Notifications You must be signed in to change notification settings

mabn/spring-boot-integration-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This sample project was created to discuss the correct spring-boot application configuration in combination with spring-security.

Current status

Application can be run from STS when imported as Maven project, both as Java Application and Spring Boot App. It fails when imported as gradle project because Spring Boot tries to load configuration from test classpath.

Solutions

There is a workaround - to rename de.flexguse.demo package to de.flexguse.demo_test in src/test/java. This prevents classpath scanning from finding test configurations.

Run Application from STS

  • Clone the git repository to your local machine
  • import the Maven/Gradle project to your STS 3.7.0+ IDE
  • Package Explorer -> application -> right mouse click -> run as -> Spring Boot App
  • browse to http://localhost:8080/helloWorld

Run Integration Test from STS

  • STS Project
  • right mouse click -> run as -> JUnit test

About

Demo project to discuss spring-boot application configuration with security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%