Coder Social home page Coder Social logo

spring-boot-mvc-db's Introduction

Spring-boot-mvc-db

Featuriz guide to Spring Framework 5.

Technology and Version

Spring Version
Spring Boot 2.6.0
Spring web 5.3.13
Spring Security 5.6.0
Spring Test 5.3.13
Thymeleaf 3.0.12.RELEASE
Spring JPA 2.6.0
Mariadb 2.7.4
Lombok 1.18.22
Validation 2.6.0
Bootstrap 5.0.2
  • Database based authentication is provided.

How to use

This is a maven based spring boot project. Use maven to build this project and just run.
No other dependencies

Database

Create an empty database with the name tut_sb_mvc_db - If already exist - truncate - spring.sql.init.mode=never Note: Change to always, only for first run - data will be automatically added from data.sql from resources folder.

Error

If there is no role in DB table, then it will throw error while registering new User.

NOTE

IndexController

Page Role Info
/ - Homepage
/login - Custom Login Form
/registration - Custom Registration Form
/user USER Only user can view
/admin ADMIN Only admin can view
/all ADMIN, USER Only admin nd user can view
/anonymous anonymous Only anonymous can view
/accessDenied - Anyone can view

Login

Username Password
sudhakar sudhakar
user1 user1Pass
user2 user2Pass

This is for education purpose only.

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.