Skip to content

Tag: spring-mvc

Non-html methods Spring MVC

There is a Spring MVC app. I need to track Put, Patch and Delete form methods. I use java configuration, so there is that file instead of web.xml: Last method registers HiddenHttpMethodFilter. So where is the problem? There are 2 pages: index.html and show.hmtl. First page is shown when URL is “/files&#…

No Mapping for GET /WEB-INF/jsp/login.jsp

Please find this project on GITHUB as studentsbooks I am getting errror as below, even after following a proper tutorial. Kindly guide where i am going wrong. Feel free to clone the project. Committed Just now. Answer I created a class InsertInitialData class annotated as @Component and used WebApplicationCon…

How to wire classes and objects in SpringBoot

Have SpringBoot Java app with different classes. I am not able to inject the dependencies and initialize/access the object of one class into another . Have seen the spring doc and used the annotations (@component,@Autowired etc. ), still there is an issue. following are the classes. Main Class () Controller c…

Getters and setters for List in Spring boot

I am creating my API in Spring Boot. I have that a product is composed of components: Here is my code: (Entity Layer) } My Question: In the controller class should I change the update method to be as follows, to have the following code, product.addProduct(myComponent) or should I have it as follows: product.s…