I'm trying to develop an app that manages some surveys from limeSurvey and for this purpose I'm using Hibernate . So the whole problem is that limeSurvey gives me the answers of every survey like this:
lime_su...
How can I recover cookies when the user logs in through Spring Security and with the implementation of the AuthenticationProvider interface? If I retrieve an instance of HttpServletRequest from a class with a controller I have acce...
I'd like to know how I could handle the security of a stateless REST application with Spring.
Imagine that no user can access any content of /app/content if you have not first identified. Is there any way to do this without also having...
I have an application in development and production, and only in production mode it has the following error:
UT005023: Exception handling request to / 1 / registers / object / new: org.springframework.web.util.NestedServletException: [0m [...
Good morning,
I have a page where the user digital information.
<input type="text" id="info01">
<input type="text" id="info01">
<input type="text" id="info01">
When typing all 3, via javascript I perform a calculation a...
I would like to know if there is a soft delete functionality in Hibernate, since today I'm doing something that I consider to be a gambiarra, something like:
@Entity
@Where(clause="ativo=1")
Controller:
Rejeicao rej = rejeicaoRepository.f...
Good afternoon! I am new to java and Spring and am needing help in the code below. I need to commit every commit iteration, but it is only done at the end of the transaction, I created the persist method, thinking it would open a new transaction...
I'm developing a project using maven, Spring framework (mvc module), and searches the database through JDBC.
I have the following code in my controller:
@RequestMapping("/authors/edit")
public String edit(Author author, Model model) {
I...
I'm consuming a REST API with RestTemplate and it does not follow good practices, like using HTTP status codes, for example.
Response to success:
{
"435": {
"Codigo": "435",
"Tipo": "",
"Corretor": "62",...