Questions tagged as 'spring-mvc'

1
answer

Spring, Angular JS and exception handling in the Service layer

I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax . The application is all set to receive o...
asked by 04.12.2015 / 13:44
1
answer

error message: Injection of autowired dependencies failed;

I can not understand the error message; GRAVE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creat...
asked by 16.10.2015 / 16:08
1
answer

Input Date causes error 400 - The request sent by the client was syntactically incorrect

Every time I enter a input of type date in my form , the server returns error 400. I've tried everything, when I remove the field date does not give the error. My controller: package br.com.starcode.agenda.controll...
asked by 23.11.2014 / 16:46
2
answers

Error 404 of a Spring MVC application

I'm following Caelum's handout. I made the application "hello world" with Spring MVC, which has both the configuration and the Controller . However, when accessing the URL localhost:8080/WebSpring/olaMundoSpring , the 404 error page ap...
asked by 06.10.2014 / 17:00
1
answer

Get client's ip on request

I have a REST service in my application and I want to get the IP of the client that is calling, use Spring-mvc in this project, here is the source of the service /** * HttpServletRequest. */ @Autowired private HttpServletRequest request; @R...
asked by 17.03.2014 / 17:53
1
answer

Error executing springboot default project

I'm trying to run the springboot default project that I purchased here . The project has the following dependencies: <groupId>br.com.fc</groupId> <artifactId>api</artifactId> <version>0.0.1-SNAPSHOT</version&g...
asked by 03.07.2018 / 19:07
1
answer

Error integrating Spring 4 + Hibernate 5 + JPA 2 and Glassfish

I am not able to start the Spring transaction, it is some configuration that made me wrong who can help me. follow the codes: java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction() at org.hibernate.internal.Abst...
asked by 25.02.2018 / 22:24
1
answer

2 files properties in Spring Boot [closed]

I'm developing an API with Spring Boot, and I have 2 properties files for the development and production environments, how do I set the properties file for a particular environment?     
asked by 10.10.2017 / 18:47
1
answer

Popular dropdown list with database in Spring MVC Controller

I'm having a hard time finding a way to populate a dropdown on the Controller and move on to the view. Because this way I'm doing when I enter the screen to update the dropdown does not return with the value it already was. I'm doing this (co...
asked by 26.07.2017 / 16:19
2
answers

Session hibernate, how to get instance

In all the hibernate documentation, and web examples have this code example, or a very similar one, to use hibernate. List<Object> list = session.createCriteria(Object.class); Since the session is a Hibernate Session Interface implemen...
asked by 15.12.2016 / 17:44