Questions tagged as 'spring'

1
answer

Spring Transaction

I want to know more about transactions in spring. I have the following structure: My Service: @Service @Transactional public class MinhaClasseServiceImpl implements MinhaClasseService { @Autowired private MinhaClasseDao minhaClasse...
asked by 02.09.2015 / 16:21
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

Mestre-Detalle AngularJS and JSTL

Good afternoon guys. Next, I'm using AngularJS to add the details of a sale, however on the server side I'm using Spring MVC with JSTL making a forEach of the details to add on the server. HTML that retrieves the details and scrolls throug...
asked by 02.04.2015 / 20:25
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

Error creating SpringMVC Bean

I'm new to Java and I'm doing several online courses and trying to develop on my own, to go coaching, but I came across an error that I have no idea how to solve. Error creating bean: org.springframework.beans.factory.BeanCreationException: Er...
asked by 13.03.2015 / 11:55
0
answers

No Session found for current thread

I'm having trouble performing a test to add a profile user! My problem is in the addUser method. Test class code: public class AddUser { public static void main(String[] args) { ApplicationContext appContext = new Class...
asked by 01.12.2014 / 02:07
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