Questions tagged as 'spring-mvc'

1
answer

Condition IF, ELSE

I have a Java Spring MVC application, with Hibernate and JPA and HTML interface. I have two forms that depend on the class CadernosCadastrados and their attributes. Forms have the following names, cadastrodecadernos, change. In the firs...
asked by 14.11.2018 / 15:57
1
answer

Error 405 - "Request not supported method"

The method you are sending when clicking the button is a GET but in my JavaScript step as method POST and in Controller it expects to receive a POST method as well. My JS: function criaCategoria() { let tituloC...
asked by 22.10.2018 / 15:54
1
answer

How to upload multiple images using spring boot

I'm developing a manga project and want to save several photos in the database. PagesController @RequestMapping(value="/pagina", method = RequestMethod.POST) public @ResponseBody ResponseEntity<PaginasEntity> cadastrarPaginas...
asked by 11.12.2017 / 14:27
1
answer

Spring + JavaScript

I have a JSP form, which embeds Javascript, and once I do the client side validations, I created a javaScript function "save (param)". When you click the save button, the "save (param)" javaScript function is invoked, which in turn first invokes...
asked by 02.12.2017 / 11:52
1
answer

Sendredirect Error in Interceptor

I am studying Java Web and need to make an application with access restriction. Restricting access if the user is not logged in (ie the session created), if the user accesses a URL without being logged in, he should redirect to the login scree...
asked by 16.11.2016 / 23:33
1
answer

My Rest With Spring does not work

The part of Rest I've circled almost all google and I still can not solve. the problem is exactly that when I make the query or I give a sava postman day or straight through the url to see if Json returns and nothing happens just the 404 error ....
asked by 29.11.2016 / 12:39