Questions tagged as 'spring-mvc'

0
answers

Error 'dispatcherServlet' when consuming web service Rest with Spring

Good morning, I have been trying to solve this problem for some time, the problem I have is that I developed an application using Spring, in it I have a web service Rest which at the time of trying to consume I get the following error: Initi...
asked by 20.09.2017 / 15:34
0
answers

Configure x509 in Spring MVC

I need some advice with an application that my team and I are developing. The issue is that we have been asked to create an application that can be accessed through PKI. We have given the .cer and the .key to validate, and a configured nginx...
asked by 07.09.2017 / 09:44
0
answers

Error spring mvc and tomcat

I'm trying to learn java with spring mvc in neon eclipse, with tomcat 8. I have this only controller for now: package com.controllers; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Con...
asked by 07.09.2017 / 16:43
0
answers

Call a class that concentrates all autowired

In my project in each controller that I programmed I have to place the @Autowired of each service class in order to get the methods, but I think that this way of doing it is not the correct one so create a class called autowiredall which concent...
asked by 28.06.2017 / 02:57
1
answer

search controller spring

I try to pass 2 parameters from my angle controller, it's a search form with 2 parameters, I'm using jdbcTemplate @RequestMapping(value = "/empleado/buscarEmpleado", method = RequestMethod.POST) public ResponseEntity<Void> bu...
asked by 26.06.2017 / 17:54
1
answer

Error @PreAuthorize (), null pointer exception in @Service UserService

I am developing a web application that registers visitors to a facility. I try to restrict the entry to a section of the application so that only logged-in users with administrator roles can access it. This is my controller: @Controller @PreAu...
asked by 05.06.2017 / 16:37
1
answer

How to download different files from Spring mvc driver

Hello everyone how are you? I would like to know if there is any way for my controller method to return dynamically created files, and send them to the view and download them one by one. I have seen examples but only of pdf, and in my case one m...
asked by 12.05.2017 / 15:23
1
answer

Failed to lazily initialize a collection of role: com.companyname.cine.domain.Peli.actors, could not initialize proxy - no Session

I'm starting with Spring and I've come across this common mistake. After reading a lot and trying many of the suggested solutions (for loops for initializing, using transactional etc) in StackOverflow and other sites I have been unable to fix it...
asked by 24.04.2017 / 14:50
1
answer

Difference between getRootConfigClasses and getServletConfigClasses

What is the fundamental difference between initializing the Spring configuration classes in getRootConfigClasses and getServletConfigClasses in the WebInitializer class? I have tried changing the initialization of my configuration class...
asked by 21.03.2017 / 17:27
1
answer

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException:

My servlet: <context:component-scan base-package="com.tricas.controllers" /> <mvc:annotation-driven /> <context:annotation-config /> <context:component-scan base-package="com" /> <bean class="org.springframework.we...
asked by 15.02.2017 / 16:26