Questions tagged as 'spring'

1
answer

Consume REST service using Spring Framework

I'm developing a web application, using Spring Framework . And I need to consume a rest service from another application. I know how to send requests POST , using jquery and ajax , but I want to know if it is possible...
asked by 05.03.2015 / 20:47
1
answer

Error in applicationContext-security.xml

My 1st xml file applicationContext-security.xml: <?xml version="1.0" encoding="UTF-8"?> <b:beans xmlns="http://www.springframework.org/schema/security" xmlns:b="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org...
asked by 03.09.2014 / 01:46
1
answer

Best way to provide Sessions for DAO's

I was searching the internet for ways to inject Sessions into DAO's this:    HibernateUtil This form is about implementing a utility class that will configure, instantiate, and make available a org.hibernate.SessionFactory object t...
asked by 09.07.2014 / 05:21
1
answer

Maven Project - Loads tomcat, but does not execute

I'm having a Maven project that, despite messages displayed on the Eclipse terminal, reports that Deploy was successful. When I type the URL in the browser, I get a 404 error; then when I open the Tomcat manager, I try to st...
asked by 20.04.2014 / 19:28
1
answer

How to redeem a key in a Json using Gson (Google)

Good evening. For the first time I'm manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library (Gson). Well, a question that came up to me is...
asked by 22.08.2014 / 05:46
1
answer

Unable to locate current JTA Transaction

The project is divided into the following modules: test-persistence; test-services; test-web; I use Glassfish 4 as the application server and it has a connection pool configured for connections to the database created in MySQL.   ...
asked by 25.08.2014 / 05:52
1
answer

Session is closed! Spring + JPA (HIbernate)

I'm trying to make an example of JPA + Spring . But I'm having trouble managing transactions. persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/n...
asked by 21.02.2014 / 18:53
1
answer

Receiving object by parameter

I'm using Spring MVC and I use some mappings to receive an object for example and access that specific object in controller . For example: @GetMapping("/pessoa/{idPessoa}") public ModelAndView editaPessoa(@PathVariable("idPesso...
asked by 13.12.2018 / 20:06
0
answers

Java Spring, error authenticating with active diretory

I personally, in my company implemented an active diretory environment, and we were asked to develop an application that authenticates there, the environment is already created and the guy from the infra sent me the parameters so that access can...
asked by 11.12.2018 / 13:08
3
answers

How to get the name of the class where a bean will be injected?

I'm setting two beans in the beans.xml file to inject loggers into my classes. <bean id="loggerFactory" class="company.LoggerFactory" /> <bean id="logger" class="org.apache.log4j.Logger" factory-bean="loggerFactory" factory-met...
asked by 06.02.2014 / 20:02