Questions tagged as 'spring'

1
answer

Requests for API Rest

The application uses Spring Rest in which the paths of a CRUD are generated automatically for each entity, I have the Vehicle, Contact and Agency entities and each one with its respective repository. Vehicle has as an attribute an Agency li...
asked by 14.07.2015 / 17:20
2
answers

How to create real Permissions instead of simple Roles in Spring Security?

I'm developing an Access Control module for my web application using Spring Security (3.1.4 - the latest release ) and ran into a limitation on the Authorization , because the framework only provides for the use of Roles (roles), which mean...
asked by 12.12.2013 / 13:20
2
answers

Instantiate interface - What's the use? [duplicate]

I learned in college and in all materials that I saw that the interface serves to define a standard that classes should follow and interfaces can not be instantiated. However I came across projects that have an interface and a class that imple...
asked by 16.08.2016 / 02:39
1
answer

How does digital certificate authentication work?

I want to authenticate via digital certificate in a web application. I have already read the data from my digital certificate that is connected to my machine. The question is: "How do I authenticate?". Should I get the public key...
asked by 12.12.2016 / 19:07
1
answer

What is the difference between @PostConstruct and the constructor?

What's different about using the @PostConstruct annotation instead of using constructor method and its advantages? I ask based on these two versions of the same class that only differ by this annotation. Before @Repository public class Old...
asked by 14.04.2015 / 19:41
1
answer

Spring Security, display message when you log out

I am controlling the session of my application with Spring Security, I have two rules to terminate the session, max-session <session-management> <concurrency-control max-sessions="1" error-if-maximum-exceeded="true" ex...
asked by 13.08.2015 / 21:41
1
answer

The name of the dt_ultimo_acesso column was not found in this ResultSet

I'm deploying a method by passing an id parameter: @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuario/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<Collection<Usuarios>> buscarEnt...
asked by 20.10.2017 / 17:27
1
answer

How to guarantee transactional atomicity in more than one concurrent Thread in a Java SE environment using the Spring framework?

A Java SE solution, using the Spring framework, is being developed to parallelize the execution of a Stored Procedure in Oracle 9i, which takes as parameter one or more rows from a giant file to be processed. This will be done through a Threa...
asked by 17.04.2014 / 18:14
2
answers

Why does Value in Spring MVC require an asterisk?

Why do I need to put * in value when there is nothing left? I mean, before using Spring MVC it worked without problems only as /planilha/ . getPlanilha works correctly but if it has the same RequestMethod and con...
asked by 31.03.2015 / 15:23
2
answers

How to receive a List (Java) in Javascript using Spring MVC?

I have a web application where the Spring MVC framework is being used. I need to get a List in a Javascript function, but I do not know how best to do this without leaving the code confusing. The Process class has String and Integer attribute...
asked by 24.11.2015 / 20:45