Questions tagged as 'spring'

1
answer

Spring / Jackson Json - Problem in deserialize

This question is a follow-up to another question, a user answered found the solution to my other question ( Spring Custom Json Receive ), but I'm now having trouble mapping using Jackson. I want to receive a custom request in JSON and send a...
asked by 01.07.2016 / 22:09
2
answers

How to run a Timer class (always) in the deployment?

I have a non-web project and I'm going to turn it into a web project using Spring MVC. Today in my method static main of my main class, I create this here: Exec.principalTimer = new Timer(); Exec.principalTimer.scheduleAtFixe...
asked by 09.05.2016 / 21:07
1
answer

Relationships JPA Spring Boot Rest Fetch Eager

I have an application that serves a rest service json (not quite a rest, but okay). The application uses Spring Boot to run, I use the PagingAndSortingRepository. The problem is that when serving an entity with Many to One relationship: @En...
asked by 19.05.2016 / 20:41
2
answers

Redirect JSF error

To trying to pass two parameters to another example page: <p:commandButton icon="ui-icon-pencil" action="form?faces-redirect=true&id=cargo.id"></p:commandButton> But I get this error: A referência à entidade "id" deve term...
asked by 06.10.2015 / 15:49
1
answer

What is the DispatcherServlet function in Spring?

What is the purpose of it? is it recommended to use spring-boot to do all spring xml settings automatically?     
asked by 22.09.2015 / 13:51
1
answer

Error in creating a maven project

As soon as I create a Maven project with the "war" packaging, it gives the following error: Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true pom.xml I'm using the Spring IDE Ide...
asked by 01.10.2015 / 03:56
1
answer

Spring XML Error in JPA

After I updated Eclipse from the Luna version to the Mars version it is returning error in the first line of the Spring JPA XML file, in the XML declaration: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframew...
asked by 29.09.2015 / 22:15
1
answer

One method of the controller works correctly and another similar one returns error

I have two Controller files and two JSP files with the same structure. In JSP I have the following structure for AJAX: $.ajax({ method: "POST", url: '/modulo1/funcao1', data: { 'atributo1': atributo1,...
asked by 20.10.2015 / 15:48
2
answers

Dependency Injection - Two objects that implement the same interface

I have two objects from the AmazonS3UploadService and DatabaseUploadService classes, and both implement the UploadService interface. The Uploading class has both objects injected by the Spring container. The problem is that the container can...
asked by 13.08.2015 / 15:20
1
answer

Problem with @Autowire Spring + Hibernate and Junit

Good night, I'm trying to create a project using Hibernate and Spring, I was successful creating some configurations, I even managed to generate the database by initializing the application using Spring, however I'm "stuck" in creating my DAO's,...
asked by 29.12.2014 / 18:37