Questions tagged as 'spring-mvc'

1
answer

Java inject external service

I am using this project in the pom of my application: <dependency> <groupId>com.girotan.notification</groupId> <artifactId>notification-service-rest-client</artifactId> <version>0.0.1-SNAPSHOT<...
asked by 26.04.2017 / 23:29
1
answer

Request method 'POST' not supported

I'm trying to redirect to another page but by putting the name of the value of the RequestMapping and raising the system I get an error of "Request method 'POST' not supported". Main Controller @RequestMapping(value = "/hello.do", meth...
asked by 01.02.2017 / 15:13
1
answer

how does maping work in spring?

I have the following code: import java.util.List; import org.springframework.data.repository.Repository; import net.javabeat.spring.data.domain.Book; public interface BookNamedQueryRepositoryExample extends Repository<Book, Long> {...
asked by 01.05.2017 / 06:52
1
answer

How to add restrictions to object of type "Criteria" when the criterion attribute is of an external class?

I have the following dilemma to generate a list of all the credentials that belong to a specific physical host. Class FisicHost @Entity @Transactional public class FisicHost { @Id @GeneratedValue(strategy = GenerationType.IDENTIT...
asked by 06.11.2018 / 21:50
1
answer

How to load dynamically a modal with Spring MVC and ThymeLeaf

In the image I have two rows that each represent an object of type FisicHost in my program. Clicking on any of the two rows opens a modal with the credentials of the relevant FisicHost. The problem is that indistinctly FisicHos...
asked by 07.11.2018 / 15:27
1
answer

Send Json from jQuery to Spring mvc

I want to send a Json with this format { "tarjetas": [ {"nombre":nombre, "id": id, "lista": lista, "idLista": idLista}, {"nombre":nombre, "id": id, "lista": lista, "idLista": idLista} ... ] } I build it like t...
asked by 29.03.2018 / 12:20
2
answers

Tables other than the model

I have a project that we are managing by models in back and front (angular-spring). I made a personalized consultation, to bring me the data in the model, and it brings them well, but if I enter the capture form when trying to save them,...
asked by 27.12.2017 / 21:08
1
answer

How to read processed view jsp in spring?

Is there a way to get a view as String already processed? I need to send emails and I want to avoid creating the html views in a String and better create a JSP view and be able to call it as a String . I've dealt with...
asked by 31.08.2017 / 01:36
1
answer

Failed to import bean definitions from URL location

I'm creating a project with spring-mvc and MongoDB, when I start the Tomcat server from Eclipse it gives me the following error:    org.springframework.beans.factory.parsing.BeanDefinitionParsingException:   Configuration problem: Failed to i...
asked by 08.08.2017 / 16:49
1
answer

Spring MVC that makes the mvc tag: annotation-driven /

In a Spring MVC web application in the XML configuration file the examples that I have seen use the tag I would like to know what the same is for me.     
asked by 25.03.2017 / 15:32