Giter VIP home page Giter VIP logo

springboot-jpa-security's Introduction

Spring Data JPA and Spring Security Sample project

Spring Data JPA와 Spring Security 를 연계시켜본 예제 프로젝트

1. 구성 설명

  • User: 스프링시큐리티의 UserDetails 인터페이스를 구현
  • Authority: 스프링시큐리티의 GrantedAuthority 인터페이스를 구현한 enum 타입
    • 애플리케이션에 대한 사용자권한은 애플리케이션 설계단계에서 정의하는 편...일겁니다. 권한은 엔티티...로 관리하려면 할 수도 있겠지만(저는 그렇게 해보진 않았음)
    • 이 프로젝트에서는 ADMIN, PROJECT_MANAGER, USER의 권한을 부여
    • 권한
      • ADMIN: 애플리케이션 관리자 권한
      • PROJECT_MANAGER: 프로젝트 관리자, 프로젝트 CRUD, 팀 CRUD 담당
      • USER: 일반적인 사용자권한
  • WebSecurityConfig: 웹스프링시큐리티에 관한 설정클래스

2. 구현해야할 것들

  • 각 엔티티들에 대한 Repository
  • 트랜잭션 처리를 위한 Service
  • 화면영역을 처리할 Controller
    • Controller 구현에 따라서 WebSecurityConfig#configure() 에 권한설정을 추가

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.