Most voted "spring-mvc" questions
Based on the Model-View-Controller (MVC) standard, Spring MVC helps build web-based applications that are flexible and decoupled from underlying technologies view.
Learn more…291 questions
Sort by count of
-
0
votes1
answer128
viewsSpring project not saved in Mysql
I created a project with Spring boot and cannot save data in Mysql. No error message is displayed. Spring creates tables, but does not insert data. User class package com.projeto.principal.entity;…
-
0
votes0
answers26
viewsData migration postgresql reformulate table
The title may imply that I am recreating a table with similar attributes, but the term is as follows:: I have a database currently running in my application for study purposes, there is a class…
-
0
votes1
answer438
viewsHow to check if an Integer type parameter received in Spring is empty?
I have a method that will receive several parameters. But the parameters are set to required = false because I don’t want it to be mandatory for them to be informed and I also didn’t enter a default…
-
0
votes1
answer508
viewsHow to return validation errors of subobjects, attributes(objects), lists, to spring?
Today I can validate attributes errors of my class that are not complex objects (other objects of my model that are related to it), but what happens is that the "validation bean" validates the…
-
0
votes1
answer195
viewsSpring jsp Failed to Convert value of type 'java.lang.String' to required type 'int'
Hello guys I have the following error when I try to delete something from my table WARNING: Failed to bind request element:…
-
0
votes1
answer428
viewsSign up for Spring Boot
Good afternoon, you guys. I’m having difficulties to implement my Register on Spring Boot. I’m willing to do the method in three ways(if,else if,else) that if it is all right to register, that if…
-
0
votes1
answer60
viewsError trying to update record with Spring MVC
Good afternoon devs... I am studying spring mvc, in my system I have a controler that has a mapped method as @getmappint(/search/{id}), as below: @GetMapping("buscar/{id}") public ModelAndView…
-
0
votes2
answers77
viewsReceive property from a spring form annotated with @Sessionscope
I have a Spring form to login to the system. This login must be kept in session, so I noted the classe Credencial (equivalent to login) with @SessionScope. I receive the data of this credential from…
-
0
votes1
answer194
viewsSend by jsp a command for the controller to update the database method
I want to make a "deposit" into the account with Id "x". The controller sends the "account" to the jsp that returns the deposit value to be updated in the database. That was the logic I used, but I…
-
0
votes1
answer33
viewsSpring session attribute is not shown in JSP via JSTL
I have a Credential class that I use to store session user information (it’s annotated with @Sessionscope and @Component). When I print some attribute of this class, it usually appears, but if I try…
-
0
votes2
answers63
viewsHow to detect when the user tries to access a URL without having a ROLE for that URL in Spring Security
In my system the ROLES of the screen urls are dynamically loaded from the database through a ObjectPOstProcessor as you can see below: public void configProducao(HttpSecurity http) throws Exception…
-
0
votes1
answer65
viewsSpring command not found
I installed the Spring CLI on my machine recently, and configured the file etc/profile, on it I had already configured my JAVA_HOME, and tried to set up the SPRING_HOME, the end of the file is like…
-
0
votes1
answer180
viewsSpring Boot 2 - How to associate the controller with the web page (redirect)
Save everyone, I’m starting with Spring Boot 2. I still can’t understand how to associate the controller with the web page. I’m creating the html files in the package:…
-
0
votes1
answer172
viewsValidation Bean Is Not Validating
Hi. I would like to create a program, where I write a task and it would save it in a database. With this I have a class called, which asks for the description to have at least 5 characters package…
-
0
votes0
answers29
viewsPostservice online error with springboot
Hello, I’m doing a CRUD with springboot but I’m having a mistake in only one line, and I would like to know how to solve, because I started studying the tool recently, thank you!! ERROR: Inferred…
-
0
votes1
answer269
viewsBindingresult is not working properly with Validation
My goal is to register an older person with a valid name, through validation. The class Person.java: package br.com.Test.domain; import javax.validation.constraints.Max; import…
-
0
votes1
answer29
viewsError in Relationship NoHibernate
I have the following classes User: import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.CascadeType; import…
-
0
votes1
answer142
viewsSpringboot does not generate the tables in the bank
When I run the project, my tables do not appear in the database. I noticed that when I take my relations out of the attributes that I declared @Onetomany, it creates the tables, but my project needs…
-
0
votes1
answer54
viewsMap data like Mysql TIME to JAVA above 24 hours Example (37:26:30)
I have a system that I need to bring Mysql database time information above 24 hours to Java. We use Ibernate and it’s like this; In the bank the data is as TIME (37:13:36) example: TEMPO_REPOUSO…
-
0
votes1
answer129
viewsError when requesting API
I’m getting an error, possibly from CORS, when making a GET for an API, which is a third-party API and I don’t have how to release server-side CORS: Exception in thread "main"…
-
0
votes0
answers27
viewsNo corresponding editors or conversion strategy found
By clicking to search it gives the following error below, but when I take the formatting of the mask in Webconfig works normally. Someone can help? Failed to Convert value of type [java.lang.String]…
-
0
votes0
answers39
viewsIs there an implementation standard that better organizes classes of business rules?
I’m part of a Spring Boot development team and the project is getting bigger and bigger. Our problem is that even separating methods according to their related entity, the service classes become…
spring spring-boot spring-mvc pattern-design optimizingasked 3 years, 8 months ago Marcos Vinícius Carvalho 9 -
0
votes0
answers11
viewsHow to pass URL dynamically using Feignclient Kotlin + Springcloud
In my code where I search a list of clients of a particular company, however according to the name of the client I must do the search in a certain third party Endpoint. In my example (below) come on…
-
-1
votes2
answers634
viewsError with @Autowired annotation
Good morning. I’m studying JPA + Hibernate + Spring MVC and I’m a few days with this problem and I can’t solve it. I looked on the Internet and the solutions I saw did not solve. Thank you. Stack…
-
-1
votes1
answer742
viewsHow to implement Jasperreports and iReport( or Jaspersoft) in a reporting system?
I have a system with a good part of the ready functionalities registered and all do routes finalized. I will now create a report that the user will make the request of what he wants to generate and…
java spring-mvc jasper-reports ireport jaspersoft-studioasked 7 years, 7 months ago Guilherme Oliveira 332 -
-1
votes1
answer70
viewsCache error when using the app engine, but locally it works!
My application SpringBoot works locally, but when I do deploy in the Appengine she did not over because of the error 500, I am using an implementation of EHCACHE in the pattern JSR-107 because from…
-
-1
votes1
answer206
viewsjava.lang.Classcastexception: class java.lang.Integer cannot be cast to class java.lang.Void
I am trying to perform an UPDATE in the User table, but when doing Ubmit error occurs. I’m having a hard time understanding what the mistake is about, could you help me? below is my code and the…
-
-1
votes1
answer1390
viewsHow to upload multiple images using spring boot
I am developing a Mangas project and want to save several photos in the database. Paginascontroller @RequestMapping(value="/pagina", method = RequestMethod.POST) public @ResponseBody…
-
-1
votes1
answer455
viewsSpring + Javascript
I have a JSP form, in which I embed Javascript, and once I do client-side validations, I created a Java function "save(param)". When clicking on the save button, the function Avascript "save(param)"…
spring-mvcasked 7 years ago gtamele 1 -
-1
votes1
answer120
viewsError 405 - "Request not supported method"
The method you are sending by clicking the button is a GET but in my Javascript step as method POST and in the Controller he expects to receive a method POST also. My JS: function criaCategoria() {…
-
-1
votes1
answer200
viewsCondition IF, ELSE
I have a Java Spring MVC application, with Hibernate and JPA and HTML interface. I have Two forms that depend on the Notebooks class registered and its attributes. The forms have the following…
-
-1
votes1
answer118
viewsHow to show the project version on the JSP page of a Spring MVC Web application
In the Java Web project with Spring MVC framework has the file pom.xml and within this file has several properties, among these properties has the version of the project:…
-
-1
votes1
answer171
viewsHow do I make the endpoints of an API, made with Spring Boot, visible only to the application pages?
I have an application where the back-end was done in Java with Spring Boot, and the front was done in Angular. I deploy the Angular project built into the folder src/main/Resources/Static. In the…
angular spring spring-boot spring-mvc angular-routesasked 5 years, 4 months ago Gerson Ferreira Junior 59 -
-1
votes1
answer40
viewsSpring MVC does not recognize static page - CSS
I am doing a project in java using Spring MVC and when implementing the technology my page stopped being stylized, I already looked for the solution in other questions, in the documentation of…
-
-1
votes2
answers223
viewsSpring MVC application does not redirect to page after login
I have a problem and I would like to count on your valuable help to solve it. After logging into the application the user should be forwarding to a catalog listing page. The login itself is ok,…
-
-1
votes1
answer217
viewsPrimary key composed of two foreign keys
Good afternoon to you all! I have a doubt in the structure of an Entity, I am using Hibernate+JPA. The class is a user rating, where one primary key will be the user (coming from the User class),…
-
-1
votes1
answer88
viewsdownload is not performed via outputStream
I am trying to download a file. CSV that I have saved. However the download does not appear to me when I click the button and no error code appears. How can I test to see how far the procedure is…
-
-2
votes1
answer108
viewsSendredirect error in Interceptor
I am studied Java Web and need to make an application with access restriction. Restricting access if the user is not logged in (i.e., the session created), if the user accesses a URL without being…
-
-2
votes1
answer41
viewsData pass dispatcherServlet
I am trying to perform data export from Log to Excel only it is presenting me the following error: 2019-03-18 10:16:16.022 ERROR 252 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] :…
-
-2
votes1
answer150
viewsHow do I leave a JPA transaction with Spring open?
I would like to know how to leave a JPA transaction with spring open, today I use the annotation @Transaction what happens is that every time I want to carry some attribute that is not like EAGER…
-
-2
votes1
answer1128
viewsError Request method 'GET' not supported while performing update
Good colleagues. I have a mistake I haven’t solved yet. I wanted to create a feature in my application that I am developing with spring mvc. The goal was to click the button or link it changes the…