Questions tagged as 'spring-mvc'

0
answers

Error Spring boot call controller "This application has no explicit mapping for / error"

I'm having a problem because I'm learning to use the GET and POST methods using Spring Boot , but only controller I can manage to show on the screen. I am using JSP already configured no aplication.propertties . spring.mvc.v...
asked by 14.10.2017 / 06:18
1
answer

Problem with binding in Spring MVC

I have the following field in the form <div class="form-group col-md-2"> <form:label path="horarioInicio">Horario inicio</form:label> <form:input id="horarioInicio" path="horarioInicio"...
asked by 01.10.2017 / 20:37
1
answer

Spring Security permissionEvaluator not invoked

I'm trying to use my own permissionEvaluator , but spring is not recognizing / invoking my settings. My current situation: package com.brunorozendo.security; import java.io.Serializable; import org.springframework.security...
asked by 09.09.2017 / 04:07
1
answer

Thymeleaf does not display date in HTML5 component

Hello! I'm starting to study thymeleaf next to Spring MVC and I came across a problem I can not solve. I have a date field with the type="date" component of HTML5 in a form, which works 100% when registering. However, when I use the fo...
asked by 02.08.2017 / 20:26
1
answer

Filter in OneToMany mapping (Spring)

I searched the internet but, I could not understand very well how I would do this using the Hibernate filters. Well, come on: I have a OneToMany: @OneToMany(mappedBy = "pedido", cascade = CascadeType.ALL) @Getter private final List<Pedid...
asked by 20.07.2017 / 02:41
1
answer

Using Thymeleaf in Java Script code

Good evening, friends, I had a javascript code extract using JSP tags that generated a pie chart and it works correctly. I now need to migrate to Thymeleaf and I have no idea how to write the code. The javascript code with the JSP looks like...
asked by 31.07.2017 / 03:19
1
answer

Application with Spring + BootStrap with problem to find contextPath and apply CSS

The page is working normally, but CSS is not being applied, as images within the resources are not being localized. Here are methods of the configuration class to locate resources, and it does not work. @Override public void addResourceHandler...
asked by 06.07.2017 / 21:38
1
answer

Image upload with Spring and UIkit

Dear implementing upload in my project, I was guided by the Algaworks Brewer project (uploads the beer photo), using a front-end framework UIkit The upload is being done, so I can see that in a folder with the name "null" is serving as the loc...
asked by 19.07.2017 / 00:46
2
answers

Spring MVC and UTF-8

I'm making use of Spring MVC in a project, running on Glassfish server and having trouble displaying text on JSP pages that contain special characters like accents. I have already tried to put the charset in HTML pages via HTML, HTML5 and even v...
asked by 23.05.2017 / 19:46
1
answer

How to make a method in the Spring controller that does the same as this method of a servlet?

This code returns a json for an html page that uses an ajax feature to load a Google API chart I would like to do the same but using a Spring controller! public void doGet(HttpServletRequest request, HttpServletResponse response)...
asked by 12.05.2017 / 02:44