Questions tagged as 'spring-mvc'

1
answer

Failed to inject dependencies in Spring [Can not set '' field '' to com.sun.proxy. $ Proxy46]

I am trying to perform the injection but the following stack is fired: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteController': Injection of autowired dependencies failed; nested exception is org...
asked by 17.06.2015 / 04:17
1
answer

Spring MVC Security - Config from Web.xml does not leave page open

I'm trying to implement Spring Security in my project, but I'm running into the following problem. When I add tags to web.xml , the project does not load either the start page, it starts with 404 error, if I remove the tags, it returns to...
asked by 11.06.2015 / 04:54
1
answer

Spring ModelAndView not working correctly with AJAX callback

Well, sometime ago I did a feature on my website which consists of performing a filter (called AJAX ), and in my action I simply return a view I am rendering via callback , but if it is possible I would like the ModelAndView to be responsib...
asked by 18.06.2015 / 03:41
0
answers

Spring: java.io.NotSerializableException: MapSqlParameterSource

I'm trying a simple insert in the base with Spring JdbcTemplate mapping the query parameters with the MapSqlParamaterSource and I'm taking error as per the data below: public void adiciona(Conta conta) { String sql = "insert into contas (d...
asked by 22.03.2015 / 16:20
0
answers

Table with self-relationship

Good morning. I have a table that uses self-relationship, it happens that not all the names entered have a parent, but I can not create a name with parent null, there is not the first one that was created, as in the example below. Example:...
asked by 26.03.2015 / 14:22
0
answers

Could not find backup for factory javax.faces.context.FacesContextFactory

I am creating a project using Spring Boot + PrimeFaces but when trying to access the page I get the following error:    Whitelabel Error Page       This application has no explicit mapping for / error, so you are seeing this as a fallback....
asked by 27.01.2015 / 14:15
1
answer

Form being rendered with wrong action attribute

I'm using the spring form tags to render the forms present in my views, but I'm having problems because they are being generated with the wrong action attribute. In my controller, I have the method: @RequestMapping(value="altera/{theString}...
asked by 21.06.2014 / 13:19
2
answers

Controller SpringMVC does not redirect to another controller

No Controller LoginController.java @Controller @RequestMapping("/login") public class LoginController { @Autowired private UsuarioRepositorio usuarioRepositorio; @RequestMapping(method = RequestMethod.POST) public String autenticar(@Valid...
asked by 17.08.2018 / 20:15
2
answers

How to pass the code (id) by my viwer using thymeleaf and spring mvc for the controller?

My entity: package local.demo.models; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Evento i...
asked by 14.03.2018 / 15:49
1
answer

How to implement JasperReports and iReport (or Jaspersoft) in a reporting system? [closed]

I have a system with a lot of the ready-made features registered and all routes are finished. now I will create a generate report that the user will make the requisition of what will want to generate and from there make the request in java (mvc)...
asked by 28.04.2017 / 14:12