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
- Host: GitHub
- URL: https://github.com/persteenolsen/spring-boot-3-mvc-rest-security
- Owner: persteenolsen
- Created: 2025-02-07T16:32:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T12:08:58.000Z (over 1 year ago)
- Last Synced: 2025-03-13T03:19:01.020Z (over 1 year ago)
- Topics: java, mvc, mysql, rest-api, spring-boot
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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