Top "Spring-mvc" questions

A framework for building Java web applications based on the Model-View-Controller (MVC) pattern.

Spring Hibernate - Could not obtain transaction-synchronized Session for current thread

I created an application with spring + hibernate, but I always get this error. This is my first application with hibernate, …

spring hibernate spring-mvc spring-orm
Difference between Spring MVC and Spring Boot

I have just started learning Spring. In my next step, I would like to develop bigger web applications. Now I …

spring spring-mvc spring-boot
Sending GET request with Authentication headers using restTemplate

I need to retrieve a resources from my server by sending a GET request with the some Authorization headers using …

java spring spring-mvc resttemplate
How to get access to HTTP header information in Spring MVC REST controller?

I am new to web programming in general, especially in Java, so I just learned what a header and body …

spring rest http spring-mvc request-headers
Spring - No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call

I get this error when trying to invoke "persist" method to save entity model to database in my Spring MVC …

java spring spring-mvc web-applications
How do I get the Session Object in Spring?

I am relatively new to Spring and Spring security. I was attempting to write a program where I needed to …

spring spring-mvc spring-security
How to set base url for rest in spring boot?

I'm trying to to mix mvc and rest in a single spring boot project. I want to set base path …

java spring rest spring-boot spring-mvc
What does the @Valid annotation indicate in Spring?

In the following example, the ScriptFile parameter is marked with an @Valid annotation. What does @Valid annotation do? @RequestMapping(value = "/…

java spring spring-mvc spring-annotations
How to explicitly obtain post data in Spring MVC?

Is there a way to obtain the post data itself? I know spring handles binding post data to java objects. …

java spring-mvc
Sun JSTL taglib declaration fails with "Can not find the tag library descriptor"

I am using a JSP page to print an array of values. I'm trying to use JSTL <c:forEach&…

spring jsp spring-mvc jstl