최대 1 분 소요

JDBC Authentication Custom tables

Default Spring Security Database Schema

Custom Tables

  • What if we have our own custom tables?
  • Our won custom column names?

For Security Schema Customization

  • Tell Spring how to query your custom tables
  • Provide query to find user by user name
  • Provide query to find authorities / roles by user name

Development Process

  1. Create our custom tables with SQL
  2. Update Spring Security Configuration
    • Provide query to find user by user name
    • Provide query to find authorities / roles by user name

Step 1: Create our custom tables with SQL

Step 2: Update Spring Security Configuration

댓글남기기