Problem I’m building a small application in Spring and Spring Data JPA. I need serval layer. I don’t know if […]
Tag: spring-mvc
Spring Mvc RESTful app with MySQL
Problem I recently write a Spring MVC RESTful app and this is the REST controller that I have worked on. […]
Spring MVC login controller
Problem I am making a small project in Spring MVC. My login controller looks like this: @Controller public class LoginController […]
Refactoring a class / map of query parameters that are passed between layers
Problem There is an interface: interface JournalCreator { @Async Journal create(Parameters params); } And many different implementations: class CarsJournal implements […]
Spring Boot methods to add and remove relationships
Problem I have a Spring Boot application and I wrote a piece of code to manage relationships between two entities. […]
Spring MVC controller
Problem My code has a nasty smell that looks like this: @RequestMapping(value = { “/updateGraph” }, method = RequestMethod.POST) public […]
Maintaining session timeout globally in java spring configuration
Problem Below is my code to maintain a session timeout globally in Java spring configuration and to load the session […]