Skip to content

Upgraded project to Spring 6, migrated from JSP to Thymeleaf, refacto…#117

Open
feridsherif wants to merge 1 commit intojaygajera17:master2from
feridsherif:spring-6-update
Open

Upgraded project to Spring 6, migrated from JSP to Thymeleaf, refacto…#117
feridsherif wants to merge 1 commit intojaygajera17:master2from
feridsherif:spring-6-update

Conversation

@feridsherif
Copy link
Copy Markdown

Spring Boot Upgrade & Refactor:

•  Updated Maven configuration (pom.xml) and project files for Spring 6 compatibility.
•  Modified .classpath and .project for new build and IDE settings.

Java Codebase:

•  Deleted legacy Hibernate configuration (HibernateConfiguration.java).
•  Refactored and renamed DAO and Service classes to use PascalCase (e.g., cartDao.java → CartDao.java).
•  Added new repository interfaces for Cart, Category, Product, and User.
•  Added new controller classes: CategoryController.java, ProductController.java.
•  Updated application entry point and configuration files for new Spring conventions.
•  Modified model classes (Cart.java, CartProduct.java, CartProductId.java, Category.java, Product.java, User.java) for entity improvements and compatibility.
•  Updated controller logic in AdminController.java and UserController.java for new features and refactored endpoints.
•  Updated and added service classes for business logic.

Resource & Template Migration:

•  Migrated all JSP views to Thymeleaf templates in src/main/resources/templates/.
•  Deleted all old JSP files from src/main/webapp/views/ (e.g., adminHome.jsp, products.jsp, etc.).
•  Added new Thymeleaf templates for all pages (e.g., adminHome.html, products.html, productsAdd.html, etc.).
•  Updated application.properties for new resource and template locations.

Security & Configuration:

•  Updated SecurityConfiguration.java for new Spring Security conventions.

General Improvements:

•  Improved naming consistency and code organization.
•  Removed unused/legacy files.
•  Added new features and endpoints for category and product management.

…red DAOs and services to PascalCase, added new controllers and repositories, improved entity and controller logic, and reorganized resources for modern Spring Boot conventions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant