Skip to content

origoni/springboot-security-demo2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springboot-security-demo2 Build Status

springboot-security-demo2

  • Spring Boot 2 & Spring Security 5
  • User Join, Login
  • Use simple(single) Role

NEXT

  • User authentication management
  • Method level security
    • @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
    • @PreAuthorize("hasRole('ADMIN')"), @Secured({"ROLE_USER", "ROLE_ADMIN"})

Reference

Quick Start

Pre Installed

  • JDK 1.8 (or Java 10)
  • Maven 3.5
  • Git

Run

git clone https://github.com/origoni/springboot-security-demo2.git
cd springboot-security-demo2
mvn spring-boot:run

Test

http:https://localhost:9092

  • id = admin
  • pw = adminPassword

http:https://localhost:9092/h2-console

Tested

  • STS(Eclipse) 3.8.4
  • IntelliJ IDEA 2018.1.4
//@formatter:off & //@formatter:on
eclipse : Preferences -> Java -> Code style -> Formatter -> Edit... (or New...) > Off/On Tags
intellij : Preferences -> Editor -> Code Style > Formatter Control > Enable formatter markers in comments

Dependency

Spring Boot 2.0.2.RELEASE

  • spring-boot-starter-web
  • spring-boot-starter-security

Environment

  • Java version: 8 Update 172 or 10.0.1
  • Spring Boot version: 2.0.2
  • Maven version: 3.5.2
  • Lombok version: 1.18.0
  • Default Encoding: UTF-8
  • Default SCM : git

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published