Questions tagged as 'spring-mvc'

0
answers

Error handling with Spring MVC and ThymeLeaf

I'm doing an error trapping with @ExceptionHandler but I'm not able to make this information available in the View. Example I'm doing a group register. If the group already exists it throws an error. This error is handled and returns a Mode...
asked by 09.11.2018 / 11:37
1
answer

How to manipulate a Json object before returning to the API

Hello I'm using this method in my controller: @GetMapping(value="/{id}/perfil", produces = MediaType.APPLICATION_JSON_VALUE) public String carregarPerfilUsuario(@PathVariable("id") Long id, HttpServletResponse response) throws IOException {...
asked by 15.10.2018 / 03:49
0
answers

Add items Order to SpringMVC and Thymeleaf

I'm doing an application, I've made a form to add the object Pedido to the database, but in that object it has a list of other objects ( itensPedidos ). How should I write the SpringMVC controller, to add the items dynamically? W...
asked by 19.10.2018 / 01:40
0
answers

Error performing "FIND" with Hibernate - Spring MVC

When trying to use the method below in the DAO class: public boolean validaMatricula(String matricula) throws SQLException { Usuario usuario = manager.find(Usuario.class, matricula); if(usuario != null) { return true; }...
asked by 27.09.2018 / 17:37
1
answer

Spring MVC - Multiple Builders

I have a problem where a Framework I'm using needs a default constructor, this is calling my Service class: @Service public class FuncionarioService { private FuncionarioDAO dao; public FuncionarioService(){ } @Autow...
asked by 28.09.2018 / 20:29
1
answer

Save an object with a list using Spring CrudRepository

Hello, Is there any way to save an object with a list of objects (Set)? For example, I have the Artist and Album objects, Artist has a list of Albuns (Set). I would like when saving the Artist also save the list of Albums together, which would a...
asked by 18.09.2018 / 04:28
0
answers

Tomcat7 by Eclipse: Where is the application directory?

I have a Spring Web MVC application in Java in Eclipse (Java EE) and I need to change some things related to a Spring service. The project and application are mo / Documents / Workspace / My Project. Is it in this folder that tomcat running thro...
asked by 14.09.2018 / 15:01
0
answers

Insert / get multiple tables without Id

Good afternoon guys, I have a problem affecting me a few days already. The situation is as follows, I have a simple relationship: There are tables person, street, neighborhood, city, state, parents all mounted from Hibernate classes using JPA. I...
asked by 24.07.2018 / 21:19
0
answers

Error running project in Spring

Good morning, I am creating a study project, but I stopped with an error when I executed the project: Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'standardJa...
asked by 01.05.2018 / 16:19
1
answer

Creating and Editing in Spring Framework

I recently started learning Spring from the Thymeleaf template engine for displaying the data. However, I have been facing some problems that I can not solve: At the time of editing the Star Wars Movie entity, I can not retrieve the "Release...
asked by 03.04.2018 / 19:14