An open API service indexing awesome lists of open source software.

https://github.com/persteenolsen/spring-boot-3-mvc-rest-security

A Java Spring Boot 3 REST API and MVC Web Application using Spring Security
https://github.com/persteenolsen/spring-boot-3-mvc-rest-security

java mvc mysql rest-api spring-boot

Last synced: 3 months ago
JSON representation

A Java Spring Boot 3 REST API and MVC Web Application using Spring Security

Awesome Lists containing this project

README

          

# Spring Boot 3 MVC REST API Security JSP JPA MySQL

Last updated: 07-02-2025

- Java 17
- Spring Boot 3.3

# Config at Azure App Service

- Java 17
- Tomecat 10.1
- Copy the ROOT.war to wwwroot - webapps ( Stop / Start the Web App by Azure Portal )

# Usage

- Download or fork the source code from GitHub

# Create the file application.properties with the content below and place the file in the resources folder

spring.jpa.hibernate.ddl-auto=update

spring.datasource.url=jdbc:mysql:// the name of your mysql host / the name of your database

spring.datasource.username=your username

spring.datasource.password=your password

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.jpa.show-sql: true

spring.mvc.view.prefix=/WEB-INF/jsp/

spring.mvc.view.suffix=.jsp

# Run the Web Application locally by open a terminal in the folder of the Spring Boot Web App

- ./mvnw spring-boot:run

# Show the JSP welcome:

http://localhost:8080

# Login:

http://localhost:8080/login

# Developement

- Using hot reload - when saving changes to a JSP file just refresh the browser to see the changes