Skip to content

A simple spring5 MVC CRUD example with JdbcTemplate, Hibernate and MariaDB. This project create from scratch with JAVA configuration. Don't need "web.xml" and "servlet.xml". Implemented "Thymeleaf" template engine.

Notifications You must be signed in to change notification settings

taumal/Spring5DummyProjJavaConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Example of Spring5 MVC with JdbcTemplate and MariaDB From Scratch

Sometime we waste our time to create a new project from scratch. Just clone this project. Run on your local machine. Smile and happy Coding.

Project Requirements

  • Java 9
  • Tomcat 9
  • Maven 3.5
  • Intellij Idea (Editor)

Set up MySQL

mysql -u root -p 
> CREATE USER 'regUsers'@'localhost' IDENTIFIED BY 'Reg5W0rd4PASS';
> GRANT ALL PRIVILEGES ON *.* TO 'regUsers'@'localhost';
> FLUSH PRIVILEGES;
>
> CREATE DATABASE test_db;

This is an example for your help. Its not mandatory to use it. Create database username and password as your own and keep safe.

Now we need to import schema to database.

mysql -u regUsers -p test_db < project/location/Spring5DummyProjJavaConfig/schema/schema-initial.sql

Run

Run with your editor. check 'project/location/Spring5DummyProjJavaConfig/schema/schema-initial.sql' for username and password.

-- THANK YOU

About

A simple spring5 MVC CRUD example with JdbcTemplate, Hibernate and MariaDB. This project create from scratch with JAVA configuration. Don't need "web.xml" and "servlet.xml". Implemented "Thymeleaf" template engine.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published