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
-
2
votes0
answers359
viewsNull parameters in JSF request
I’m trying to send a parameter to a Spring bean but I’m not getting it, the map is always empty. Below is my code: XHTML: <h:dataTable columns="2"…
-
2
votes2
answers1318
viewsProblem when passing polluted bean to controller and insert in BD using Java with Spring mvc
I wish you could help me with this problem that is occurring in my application. Below is the code: package br.com.estoque.Controller; import java.util.Map; import…
-
2
votes2
answers75
viewsUnsatisfied dependencies - Springframewok
Hello! I am studying Spring and I have the following problem to move up the project in tomcat8. My dependencies are not being injected, but I’m not able to identify what is missing.…
-
2
votes0
answers232
viewsConfiguration Template jsp using Apache Tiles with Spring
I did all of the configuration below, but the template structure I created using Tiles is not being presented on the main page along with your CSS. If anyone can help! Tiles-config.xml <?xml…
-
2
votes1
answer2148
viewsSpring Boot configuration error: org.springframework.boot.autoconfigure.Orm.jpa.Jpabaseconfiguration.jpaVendorAdapter
Hello! I am getting the following Stacktrace below when I start Tomcat with my web project after making the settings with Spring Boot. After I created the following classes below, I’m having this…
-
2
votes1
answer364
viewsInterceptor at Spring MVC
I made an Interceptor so that every time the system had a message to display trigger a javascript with the message. public class MessagesInterceptor extends HandlerInterceptorAdapter { public static…
-
2
votes2
answers7155
viewsProblem with Spring "No Qualifying bean of type found for dependency"
Hello, I’m learning a little bit about Spring and I’m having a problem that I can’t get around in any way. I’ve been looking for solutions to this mistake for a long time, but I couldn’t find…
-
2
votes0
answers492
viewsBeanfactory not initialized or already closed - call 'refresh' before accessing Beans via the Applicationcontext
I have this error at the time of running my application: 05-Oct-2016 21:18:25.586 SEVERE [localhost-startStop-26] org.apache.catalina.core.StandardContext.listenerStop Exception sending context…
-
2
votes1
answer143
viewsHow do I use Page in this query instead of List?
@Query(value="SELECT * FROM prot_protocolo where status = 'PENDENTE' AND departamento_id=?", nativeQuery=true) public List<Protocolo> findByProtocolosPorDepartamento(String id); The page does…
-
2
votes1
answer666
viewsorg.xml.sax.Saxparseexception; lineNumber: 10; columnNumber: 24; Attribute "Singleton" must be declared for element type "bean"
I am upgrading a (old) project to the latest libraries, such as Spring (from version 3.2.4.FINAL to version 4.3.11.FINAL). One of the errors that appears in Tomcat 6 is:…
-
2
votes2
answers4788
viewsSpring MVC and Ajax
I am developing a web app in java using the Spring MVC framework. However, a part of the project has arrived that I am breaking my head!. Before I will show the screen print to facilitate…
-
2
votes2
answers810
viewsHow to display attributes of an object passed in a list in a JSP page
I am working on a Java Web project, using the Spring MVC framework. I’m having difficulty displaying information that comes from a list where analysts are registered. The name of the analyst is…
-
2
votes2
answers2377
viewsWhat’s the difference in using Modelandview and Responseentity?
I came across these two classes, I found their function quite equal. What are the differences between them and when is the time to use a specific?
-
2
votes1
answer717
viewsError 403 Forbidden while consuming CEP webservice
I’m trying to consume a webservice of ceps but always returns me 403 and it is public. Testing the Working Webservice : http://apps.widenet.com.br/busca-cep/api/cep.json?code=01001000 My Controller…
-
2
votes1
answer45
viewsI can’t perform a Repository search with Nhibernate C#
I’m new as a programmer, sorry if I can’t explain clearly, but please tell me what I did wrong and if possible how to do better, I want to improve as a programmer and user here at Stackoverflow I am…
-
2
votes1
answer194
viewsWhat are the differences between MVC and REST architectures using Spring?
I’m wondering which architecture to use MVC or REST.
-
2
votes3
answers867
viewsDoes not parse the bootstrap datepicker for dd/mm/yyyy - 400 Bad Request (POST)
I have a web application, basically pure wheel with JSP + Angularjs. The template that I use bootstrap, didn’t have datepicker with Angularjs, so I’m using with jQuery. I have on my screen, a modal…
java angularjs twitter-bootstrap spring-mvc datepickerasked 8 years, 11 months ago Leonardo Leonardo 283 -
2
votes1
answer817
viewsSave Rest entity using @oneToMany
I have the following entities generated by jHipster using java with oneToMany relationship: Product @Entity @Table(name = "produto") public class Produto implements Serializable { private static…
-
2
votes1
answer177
viewsI can’t access static content in spring-mvc
How do I access static content from spring-mvc? For example a css. I have the following spring configuration: import java.util.Properties; import javax.sql.DataSource; import…
-
2
votes1
answer288
viewsNo Mapping found for HTTP request with URI [/Milicia] in Dispatcherservlet with name 'Dispatcher'
Does not find the uris that I type, always gives the same error, I have remade and still the error persists. Follows the relevant classes and files. relevant part of pom.xml <build>…
-
2
votes0
answers416
viewsValidation with Spring MVC
You guys talk beauty? Well, I started studying Spring by Algaworks courses recently and today I came across a problem, is the following: I have a form that shows me a list of employees, and as it…
-
2
votes1
answer1612
viewsThymeleaf does not find Sources
I’m creating a project with Springboot and Thymeleaf. I set up the whole project, I find the template and the pages, so my template can’t find the files css and js; Html <link rel="stylesheet"…
-
2
votes1
answer145
viewsSpring MVC validation error in nested Entity
You guys all right? I started studying Spring recently by the courses of Algaworks and at the course progress I came across a problem in a project the part that I am developing. I have an Entity…
-
2
votes0
answers92
viewsPass value of href jquery to Spring MVC
Good afternoon guys, I am having trouble passing an id that is in the jquery href for Spring MVC controller update method. Someone could help me. Thank you. $.ajax({ url : "listAllForum", dataType :…
-
2
votes2
answers2953
viewsMy application does not start in Spring-Tools Suite
I created a Maven project in Spring-Tools Suite when I started this error appears: Exception in thread "main" java.lang.IllegalStateException: Failed to read Class-Path attribute from manifest of…
-
2
votes2
answers145
viewsProblems trying to save data from the form
I am not getting through the HTML page to insert the name and save. Could anyone explain what is happening? @Entity public class Livro { @Id @GeneratedValue(strategy = GenerationType.AUTO) private…
-
2
votes1
answer121
viewsData persistence problem using JPA
I have a class that has two attributes, start time and end time, both Date type. @Temporal(TemporalType.TIME) private Date horarioInicio; @Temporal(TemporalType.TIME) private Date horarioFinal; In…
-
2
votes2
answers116
viewsAPI method searches for information but does not appear in front-end
I have a method of my API that does a database search @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuarioPermissao/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public…
-
2
votes1
answer60
viewsYou’re not creating with "persist"
SEVERE: Servlet.service() for servlet [Spring MVC Dispatcher Servlet] in context with path [/cq] threw exception [Request processing failed; nested exception is…
-
2
votes1
answer94
viewsWhen I use the @Transactional annotation the Autowired variables become null
When I use the annotation @Transactional in a method annotated with @RequestMapping all variables annotated with @Autowired are getting null. Has anyone ever been through this? Could you give me…
-
2
votes1
answer738
viewsPermissions Spring Security
I’m having trouble with the user permissions using Spring Security. I registered the user assigns to him the permission due to him, but when accessing the system the option in the menu that the user…
-
1
votes1
answer352
viewsHow to associate a Checkbox to a List of Objects in Spring MVC
Next up, folks, I’m having a little bit of a doubt about the manipulation of a checkbox list. I have a list of objects that are the Courses, and I would like that list to be linked to a 'List' of…
-
1
votes1
answer5979
viewsTake client ip on request
I have a REST service in my application and in it I want to pick up the IP of the client who is making the call, use Spring-mvc in this project, here is the source of the service /** *…
-
1
votes0
answers154
viewsBind de Collection with Spring 4 and Thymeleaf
How do I submit a list when the Submit event fires in the form? The Bind of the selected value is being done correctly, but I need the list as well. HTML <select id="banks" th:field="*{bankID}"…
-
1
votes0
answers35
viewsUpload xlsx Spring MVC and compare data with SQL
I’m trying to upload an xlsx file and compare it to my database table, but I’m not getting it, as my file is too big I can’t read it with Apache POI and then compare it with the SQL table. Can you…
-
1
votes2
answers895
viewsManipulating a List inside a foreach in a view
I have a doubt that should be simple to solve, but I’m not able to develop a logic, or even may be doing it the wrong way. Well, I have a table in which I go through a table called "categories"…
-
1
votes1
answer803
viewsJunit with spring Autowired
I have a big problem that in my Genericservice I use an @Autowired on an Httpservletrequest (Even not knowing the utility, because, I do not know the architecture so well), and needed to use unit…
-
1
votes0
answers154
viewsHibernate + Ireports
I’m trying to connect a Spring MVC project to Hibernate using JSP. But a problem arises when I try to create a connection to import data to a report using Jasperreports + Ireport technology. When I…
-
1
votes2
answers1198
views404 error of a Spring MVC application
I am following the Caelum booklet. I made the application "hello world" with Spring MVC, which has both the configuration and the respective Controller. However, when I access the URL…
-
1
votes0
answers34
viewsHow to Do REST Security with Spring Security
People I am trying to implement security on my REST server done with SPRING 4. I am working with annotations. The basics of spring security to protect pages I know. But how to protect the…
-
1
votes1
answer24
viewsIs it possible to use Tiles within Springmvc tags?
Hello, I am creating a generic form so that I can parameterize some attributes. I want to do the following : <sf:form cssClass="form" modelAttribute="<tiles:getAsString…
-
1
votes0
answers278
viewsProblem with properties Spring MVC 4
Well the error happens in the second message from the file "properties" the first ok message when I try to put the second the message in the file happens this error Caused by:…
-
1
votes1
answer59
viewsNotifier of any event that the user performs in the system
I am using the Spring Framework for java and would like to create can create a kind of warning, <scan>, which shows in the table that a new line has been added (this line comes from the…
java web-application jsp spring-mvc spring-securityasked 8 years, 10 months ago Vinicius Duarte 115 -
1
votes2
answers1023
viewsHow to hide text that appears after my domain in a URL?
I have a Java application using Spring MVC. Suppose my application has the domain www.meusistema.com.br As the user navigates, other urls are generated, example: www.meusistema.com.br/acessarConta…
-
1
votes1
answer955
viewsUse "WHERE IN()" clause in SPRING BOOT JPA?
Does anyone know how I can use any clause similar to WHERE IN in the spring jpa? example: @Modifying @Transactional @Query(value = "Delete from table where id in(:ids)",nativeQuery=true) void…
-
1
votes3
answers808
viewsSpring MVC Enum
I would like a help, I am new with Spring MVC and I am trying to send a numeral value of an Enum that I own in my class, but I am not succeeding, it is only accepted the Nominal value. I’d like some…
-
1
votes2
answers1035
viewsConflict between Spring MVC and Primefaces
I have a problem to integrate Spring MVC with Primefaces. It seems that there is a conflict between them. You have the configuration in web.xml <servlet> <servlet-name>Faces…
-
1
votes1
answer1026
viewsInput Date causes error 400 - The request sent by the client was syntactically incorrect
Every time I insert one input of the kind date in my form, the server returns error 400. I have tried everything, when I remove the field date makes no mistake. My controller: package…
-
1
votes1
answer5525
viewsSpring Boot error 404
Hello, I am studying Spring Mvc and Spring Boot and I came across a following problem that so far I could not identify. After executing my main method I get the following message. Whitelabel Error…
-
1
votes1
answer1325
viewsError in Spring Project Execution
I’m developing an application in Spring (from the Algaworks booklet) and came across the following error: . ____ _ __ _ _ /\ / ' __ _ ()_ __ __ _ \ \ \ \ ( ( )_ | '_ | '| | ' / ` | \ \ \ \ / )| |)|…