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
votes0
answers282
viewsProblems in saving in the bank in Spring MVC project
I’m new as a Spring MVC developer, I’m developing a simple application, but quite different from what I usually create, because usually Frameworks Spring MVC uses XML files to set up the project,…
-
0
votes1
answer473
viewsSave an object with a list using Spring Crudrepository
Hello, Is there any way to save an object with an object list (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…
-
0
votes0
answers226
viewsblock access with Spring
Beauty, in the configuration I made I’m not able to block access to the pages that are inside another folder inside my folder views. In case I’m trying to block access to everything inside the…
-
0
votes0
answers31
viewsProblems running Widfly 14
I am taking a course where I create a client register, but at the moment I will run the server Widfly 14, I have the following error: Can you help me please?…
-
0
votes1
answer112
viewsTake data array from an API via Java
I have an API with a data array. Example: "bandeiras" : [ { "bandeira": "MASTER", "status": "ATIVO" }, { "bandeira": "HIPER", "status": "ATIVO" } ] What I have to do to get the data from each flag,…
-
0
votes0
answers270
viewsAngularjs + (Spring MVC or Specification)
Galley, I’m starting the development of a system (java), and I’m having doubts about the technology. The system is totally restricted (login/password) and will be made available on the internet, so…
-
0
votes1
answer1296
viewsHow to use bootstrap in spring boot correctly
Hello guys I’m new to Spring Boot and I’m having difficulty in some things related to Spring + Bootstrap I have an application that I put http://localhost:8082/functionCast it works normal, the page…
-
0
votes1
answer98
viewsCss only applies on one page, using Spring MVC
Hello, I’m doing a project using Spring MVC I’m applying a css to the main page and it’s all right. <link href="${contextPath}resources/css/reset.css" rel="stylesheet" type="text/css"…
-
0
votes0
answers53
viewsProblems loading CSS (Spring MVC)
Good morning person, I reviewed some topics that pointed problem to load css of jsp using spring mvc , but unfortunately I could not locate the solution. I have a jsp (index.jsp) but when I request…
-
0
votes1
answer206
viewsorg.springframework.Beans.Invalidpropertyexception: Invalid Property
I am new in the java world I am with the springframework error when trying to send a request via ajax. Does anyone have any idea what might be causing the error? Below an example: Javascrpit: var…
-
0
votes0
answers11
viewsCause of Nullpointer in DAO
Good morning, good morning. I’m making the following mistake GRAVE: Servlet.service() for servlet [dispatcher] in context with path [/PortalSega] threw exception [Request processing failed; nested…
-
0
votes0
answers24
viewsA Restcontroller bean at the same time being a Configuration bean and a Component bean hurts SRP?
In a Java application with Spring I came across a class annotated as follows: import ... @Component @RestController @Configuration public class MySender { ... } At first glance I suspected that…
-
0
votes1
answer68
viewsSpring MVC with plugin Minify-Maven-plugin does not recognize the <id> tag
I created a Hello World here with Spring MVC to study the technology and put some client sites on a java server that I have. Everything has working, but some sites have many files css and js, so I…
-
0
votes2
answers634
viewsJSP how to include a select within a checkbox
I am developing a web application, with java spring mvc, and need to list items in a dynamic checkboxList and include a select option in each item. Something that in html would be similar to the…
-
0
votes1
answer151
viewslink CSS in a Spring MVC project
Take a good look at the picture; I tried to put it on the page like this; <!-- Latest compiled and minified CSS --> <link rel="stylesheet" type="text/css" href="resources/css/style.css/>…
-
0
votes1
answer55
viewsFailure to build Spring MVC application when configuring AOP bean
I’m trying to configure AOP in the spring.xml of my Spring MVC application, but I can’t build. I consulted the documentation, but following it did not succeed. The code is as follows:: <beans…
-
0
votes0
answers712
viewsFailed to look up JNDI Datasource with name 'jdbc/imobiliariaDB'; nested
When trying to configure a datasource in spring mvc this gives the following error. Caused by: org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException: Failed to look up JNDI…
spring-mvcasked 8 years, 2 months ago Heitor Neto 1 -
0
votes1
answer728
viewsSpring MVC annotations not working on Maven
Hi, I’m having a problem setting up Spring MVC in the Maven, when I try to access the http://localhost:8080/spring/olaMundoSpring it returns in browser: STATUS 404 The requested Resource is not…
-
0
votes1
answer216
viewsI cannot inject Mockmvc into integration test [Spring Boot]
@RunWith(SpringRunner.class) @SpringBootTest public class CustomerRestTest { private static final String BASE_URL = "http://localhost:8080"; @Autowired private…
-
0
votes1
answer1029
viewsThymeleaf - Submit from inside information <table>
It is possible to give information ubmit from within a using Thymeleaf? Example: <form method="post" th:action="@{/receive}" th:object="${objeto}" > <input type="text"…
-
0
votes1
answer1115
viewsHow can I take values from selected checkboxes and send as a List to Spring MVC?
All right? I’m having a doubt, I’m developing a system using Spring MVC and HTML 5 in View,e como renderizador estou utilizando o Thymeleaf. I’m trying to get all the selected values from a set of…
-
0
votes1
answer68
viewsError Spring MVC Rest Full
Good night, I’m trying to compile a code to run a simple Rest in spring mvc, but found with the error "The request sent by the client was syntactically incorrect." Class Controller package…
-
0
votes1
answer765
viewsPass variable to Javascript for Springmvc Controller
I would like to pass a (or more) variable to the Springmvc controller login.html <form id="form-login" method="post"> <div class="log-input"> <div class="log-input-left"> <input…
-
0
votes1
answer200
viewsSpring returning NULL in only one of the form fields
I am learning Java and am having a problem with a form using Spring. I even found a similar problem here on the forum but a little different from mine. It is a basic login page, containing only two…
-
0
votes0
answers175
viewsSaving dynamic data in the same Java identity
I’m using Spring MVC, Thymeleaf and for me with all routes built he did automatic but not this working, Entity, Repository, controller and etc. I have a relation of N=N of course to Turn, of that…
-
0
votes0
answers951
viewsUse . POST or . DELETE method for request to delete data
I was using . delete but suddenly the method is not being recognized from the error in the console. 2017-04-12 09:51:34.022 WARN 5836 --- [nio-8080-exec-9] o.s.web.servlet.Pagenotfound: Request…
-
0
votes1
answer599
viewsHow do I 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 resource to load a Chart from the Google API I’d like to do the same but using a Spring controller! public void doGet(HttpServletRequest…
-
0
votes1
answer254
viewsImage upload with Spring and Uikit
Dear implementing upload in my project, I was guided by the project of Algaworks Brewer ( upload the photo of beer), using a front-end framework Uikit The upload is being done, so I could notice…
-
0
votes1
answer390
viewsSpring + Bootstrap application with problem to locate contextPath and apply CSS
The page is working normally, but the CSS is not being applied, as well as images within Resources are not being located. Follow methods of the configuration class to locate Resources, and it…
-
0
votes1
answer691
viewsThymeleaf does not display date in HTML5 component
Hello! I’m starting to study Hymeleaf with Spring MVC and I came across a problem that I can’t solve. I have a date field with the component type="date" HTML5 in a form, which works 100% when…
-
0
votes1
answer177
viewsNullpointerexception when calling method return in another class
I have the following method in the Logincontroller class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta…
java spring spring-mvc spring-boot nullpointerexceptionasked 7 years, 1 month ago Eduardo Krakhecke 935 -
0
votes1
answer5711
viewsSpring boot error called controller "This application has no Explicit Mapping for /error"
I have a problem because I’m learning to use the methods GET and POST using the Spring Boot, but only one controller I’m not able to show on the screen. Well I’m using the JSP already configured in…
-
0
votes0
answers84
viewsIs there any way to set up spring MVC to receive an Object with subobject?
I have in my project a controller that receives data via jquery. But this data is converted into an object that contains subobject. that is: class Teste{ String a; String b; Test2 teste2; } class…
-
0
votes1
answer31
viewsError while calling Forge
When I run Forge, he returns to me the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by…
spring-mvcasked 6 years, 10 months ago Yuri Breion 1 -
0
votes2
answers1179
viewsHow to make the Spring MVC Responseentity return in a new page?
I have a method of a report controller (posted below), to which I return a PDF. The problem is that it returns the pdf in the same application tab and this is killing it. How can I return in a new…
-
0
votes1
answer62
viewsSpring + Ibernate + jsp
When submitting my form, an error arises due to this excerpt: <select name="departamento" style=" width : 354px;"> <c:forEach var="departamento" items="${allDepts}"> <option…
spring-mvcasked 6 years, 10 months ago gtamele 1 -
0
votes3
answers1595
viewsHow to pass code (id) through my viwer using Thymeleaf and spring mvc for the controller?
My entity: package local.demo.models; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import…
-
0
votes1
answer192
viewsCreation and editing in the Spring Framework
I recently started to learn Spring, along with the Thymeleaf template engine for data display. However, I have been facing some problems that I cannot solve: When editing the Star Wars Movie entity,…
-
0
votes2
answers260
viewsSpringmvc controller does not redirect to another controller
No Controller Logincontroller.java @Controller @RequestMapping("/login") public class LoginController { @Autowired private UsuarioRepositorio usuarioRepositorio; @RequestMapping(method =…
-
0
votes0
answers70
viewsInsert/get multiple tables without Id
Good afternoon guys, I’m having 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,…
-
0
votes1
answer130
viewsSpringwebmvc - - Search Data with @Modelatribute
Hello, I have the following method: @RequestMapping(value = "/pesquisa", method = RequestMethod.POST) public String pesquisa(@ModelAttribute("relSintetico") @Valid RelSintetico relSintetico,…
spring-mvcasked 6 years, 3 months ago Fábio Luiz Schmidt de Oliveira 301 -
0
votes1
answer183
viewsSpring MVC - Multiple Builders
I’m having a problem where a Framework I’m using needs a default constructor, this one calling my Service class: @Service public class FuncionarioService { private FuncionarioDAO dao; public…
-
0
votes1
answer3380
viewsTake value from an application.properties property - Spring Boot
I’m a starter at Spring Boot. I have a project in Spring Boot q has a application.properties and inside there is a property with a value (spring.datasource.username=user) and I want to take this…
-
0
votes1
answer4449
viewsHow to fix these and other errors: Failed to Convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?
I’m implementing an example of a book about Spring Boot, but, after executing, while trying to access the route /clientes/list or else, /clientes/view in the browser appear the following errors:…
-
0
votes1
answer135
viewsHow to manipulate a Json Object before returning to the API
Hello I have this method in my controller: @GetMapping(value="/{id}/perfil", produces = MediaType.APPLICATION_JSON_VALUE) public String carregarPerfilUsuario(@PathVariable("id") Long id,…
-
0
votes1
answer1597
viewsHTTP Status 400 - Bad Request - Spring MVC
When trying to call a Controller method this returns the error below: HTTP Status 400 - Bad Request Type Status Report Description The server cannot or will not process the request due to Something…
-
0
votes1
answer323
views2 form on the same page with Spring mvc, Thymeleaf, anyone know how?
This Physician registration screen, then I created this modal for the user to register specialties. @GetMapping("/cadastro") public ModelAndView preSalvar(@ModelAttribute("medico") Medico…
-
0
votes2
answers689
viewsSend List + Parameter to Controller
I am trying to send a list and parameter to my controller. My controller is as follows: @RequestMapping("/lista-receitas") @ResponseBody public String recebeLista(@RequestBody List<Receita>…
-
0
votes1
answer869
viewsX-FRAME-OPTIONS TO DENY
I need some direction. I am developing an application where on one of the screen users are allowed to view a specific report of the page, to avoid that when clicking on the option to generate the…
-
0
votes1
answer649
viewsJava Spring: create a file and offer this for download via api
Hello I have some documents saved in the database (with equivalent templates, they are not .txt files or anything), I would like to create . txt and . Md from the database, searching for the…