Questions tagged as 'spring'

0
answers

Bean and Annotations with Generics, how to do?

I'm in a project with Spring 4 configuring Redis and a construction like this came up: @Configuration @ComponentScan({"com.empresa.sistema.web.util"}) public class RedisConfig { @Bean public RedisTemplate<String, Object> redisTem...
asked by 30.05.2017 / 19:33
0
answers

Validation with Spring MVC

Talk about beauty? Well, I started to study Spring for Algaworks courses recently and today I came across a problem, it is the following: I have a form that shows me a list of employees, and how it was passed in the course, I also have...
asked by 15.12.2016 / 00:53
1
answer

Implications of @Autowired in builder and out

When working with Spring I notice two patterns of using the @Autowired , declare inside the constructor and out. Builder @Service public class myService { private final PartnerRepository partnerRepository; private final RequestorR...
asked by 20.06.2017 / 19:11
0
answers

Master-detail in MVC Spring

I have a user screen, the same is with all the functions of crud, my next step is to implement the inclusion of rules, as I come from a desktop environment very much to use a grid, here in html it would be a table, I looked for information of ma...
asked by 10.05.2017 / 17:16
0
answers

Spring secutity OAuth2

It generates the token { "access_token": "0b42ea14-6a21-44fc-9f65-df60f9130542", "token_type": "bearer", "refresh_token": "3653d5f8-161a-4ee2-b3b5-df9e1da4b9a7", "expires_in": 498, "scope": "bar read write" } Gives err...
asked by 05.12.2018 / 23:26
0
answers

HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: DataSource must not be null

When doing a query in a dao class, the following error appears: My spring-context.xml is: <mvc:interceptors> <bean class="br.com.softwarescomerciais.os.interceptor.AutorizadorInterceptor"></bean> </mvc:interceptor...
asked by 07.01.2017 / 19:03
0
answers

java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf. Glassfish 4.1, HIbernate 5.2, Spring 4.3 [closed]

I can not upload an application in Glassfish 4.1. It seems to me that the problem is the dependency org.jboss.logging I already added it to the project in version 3.3.0 but the error persists. The strange thing is that the same application "ru...
asked by 28.12.2016 / 16:52
1
answer

Conversion error when sending input to controller to save

Good evening, I'm having trouble solving this problem, I hope you can help me ... When trying to save data from View only one field returns this error:    Failed to convert property value of type java.lang.String to required   type com.sisdco...
asked by 03.08.2018 / 02:16
1
answer

HTTP - Correct types of return

I have some questions regarding the most appropriate status for each of the following situations: PUT on Object without Id PUT in URL localhost: 8080 / users / 1 with a JSON without the Id attribute. PUT in Object with Id othe...
asked by 11.06.2016 / 07:59
1
answer

Capturing exceptions in spring

I'm using Spring and wanted to know how I can return @Repository and / or @Service exception errors for my webservice? I have the following structure: [ Webservice ] ------ [ @service/@Transactional ] ------- [ @Repository ] When throwin...
asked by 26.08.2015 / 18:16