Questions tagged as 'spring'

2
answers

Problems trying to save data coming from form

I can not get the HTML page to enter the name and save. Could someone explain what is happening? @Entity public class Livro { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String nome; @Many...
asked by 29.04.2017 / 15:30
1
answer

Generic Dialogue in thymeleaf

Good evening, friends, Has anyone tried or ever done a generic dialogue on thymeleaf? What I want is: Instead of writing code to confirm the deletion of a data on the screen is something simple, I would like to make a generic, where I w...
asked by 02.04.2017 / 01:54
1
answer

How to limit a 1 relationship to many JPA?

I'm using JPA with Spring Framework in a project, I'd like to limit a 1:n relationship, I want to 1:5 , how do I do this? > The relationship is this: @ManyToOne private Task task;     
asked by 26.10.2016 / 13:17
2
answers

Apache Commons Email does not send email using Gmail

Click here to open the repository in the Maven Repository for Apache Commons Email. I have the following code that receives a recipient, subject and message from a form: @RequestMapping(value = { "/email_commons/send" }, method = RequestM...
asked by 29.10.2015 / 14:02
1
answer

Client sending String [] instead of BigDecimal to server when changing

When it's a new record it works quietly , the problem is in change . I have a A object that is the master, another B object that is a ArrayList tail and master A detail, and last , a C object that is ArrayList and detail o...
asked by 28.09.2015 / 16:03
1
answer

Spring @Scheduled with internal transaction triggering propagation error

I'm trying to run a service that relies on running cron with the @Scheduled annotation, but every time a database transaction needs to be opened within the method annotated with @Scheduled I get the error reported below: / p> @Service p...
asked by 15.09.2015 / 20:38
1
answer

JSF 2, CDI 1.1, SpringSecurity 4: Custom login form does not redirect to page

I'm doing an application with JSF 2, SpringSecutiry 4 and CDI 1.1. I did the entire implementation of SpringSecurity with JSF and apparently everything worked normally, but when doing the custom login form, it redirects to file links in the H...
asked by 23.07.2015 / 15:15
2
answers

400 (Bad Request) when sending array to Spring Controller using AJAX

   POST link 400 (Bad Request) I'm getting this error when trying to send 2 array's to my Spring controller, however I'm getting this error, I tried some solutions I found in SOen but I did not succeed. The version of my Spring is 3.0.2....
asked by 08.10.2015 / 20:36
1
answer

Java how to do a native query and return to a DTO list

I am using Spring Hibernate and am trying to do a native query with JOiN returning to a DTO list. I tried using @Query (value="", nativeQuery = true) with a List but it returns the serialized attributes. I also tried with @SqlResultSetMapping in...
asked by 27.07.2015 / 18:33
1
answer

Problems with date field in spring

I'm not able to retrieve a date field from my jsp. The field looks like this: <label for="txtDataEvento">Data do Evento</label> <input type="text" name="data" class="form-control" id="txtDataEvento" value="${evento...
asked by 05.06.2015 / 15:13