Questions tagged as 'spring'

0
answers

When making a DELETE request, the org.springframework.web.HttpRequestMethodNotSupportedException error is returned

When making a request to delete a user the following error is returned: { "timestamp": 1500142937327, "status": 405, "error": "Method Not Allowed", "exception": "org.springframework.web.HttpRequestMethodNotSupportedException",...
asked by 15.07.2017 / 20:30
0
answers

Keep updated Swagger documentation

I am documenting an API with Swagger. I am not using annotations and the documentation is written to a JSON file. The problem is that API is constantly changing and every change you need to compare the file with the Java source code. I wou...
asked by 22.06.2017 / 17:25
0
answers

Doubt with JSP - Message

I need help, to display a message through fmt: message. The situation is as follows. I have a form that is submitted via $ .post. In the controller that receives this request, I perform a validation through the BindingResult. If I get an e...
asked by 26.06.2017 / 14:35
1
answer

Spring MVC - Write Data in TXT

How can I make it into a controller to receive data via Post (in Spring MVC) and save this data to a TXT? Later, in the Model open this TXT and send to View. Would anyone have an example?     
asked by 18.05.2017 / 22:54
1
answer

Pass native query per parameter to JpaRepository Interface

I need to create an interface that extends the JpaRepository where I want to pass a native (select) query per parameter instead of leaving static within the @Query annotation. Instead of using @Query(value = "select * from a where a =...
asked by 11.05.2017 / 22:08
0
answers

With loading a google chart using Spring MVC

I have a jsp page with the following code that uses google charts and shows the graphs on the jsp page. When I use a servlet as a controller it works perfectly. <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html>...
asked by 09.05.2017 / 21:05
1
answer

How to make a Spring Security, JSF 2.2 and ManagedBean login?

Hello. I need help. I'm configuring Spring Security in a JSF 2.2 Project. Using Annotation. I've already set up the filters. But I do not understand how to configure the ManagedBean of the login to search the database and log in to JSF. Below is...
asked by 03.04.2017 / 15:23
1
answer

Problem passing information on my login

I'm getting this exception when I log in ERROR [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-10) An internal error occurred while trying to authenticate the user.: org.springframework.se...
asked by 30.03.2017 / 14:55
0
answers

Error 404 in spring

My jsp <form method="POST" action="/desif/titulo/salvar/"> <div class="form-group has-info"> <label for="codigo"...
asked by 16.03.2017 / 13:45
0
answers

Save a form jsp

When you save a form, that is, it goes to the Spring control class, I need it to throw an exception, to warn the user that some field is required. In JSP it looks like this: <c:if test="${not empty param.e}"> <div...
asked by 17.03.2017 / 20:31