spring-mvc Questions
3
Solved
I want to make the Request Mappings in my Spring application dynamic. So that my url can not be understandable. And I can show anything meaningless to the user and still mapping purpose will be res...
Meras asked 21/1, 2013 at 12:57
4
Solved
I've some experience Spring now and also have some pure java config web-apps in use. However, these are usually based on a quiet simple setup:
application config for services / repositories
dispa...
Tonedeaf asked 5/3, 2015 at 12:33
4
Solved
So i have a simple UsersDao
public interface UserDao extends JpaRepository<User, Long> {
}
And inside my user controller i want to do something like this :
@RequestMapping(value = "/regi...
Esse asked 26/9, 2015 at 19:16
11
Solved
I am trying to implement simple demo MVC app with Spring Boot but I get 404 error while executing the application. The uri is http://localhost:8080/ which is to display all the rows in a table call...
Essex asked 3/5, 2016 at 18:32
3
Solved
I am getting the following error after yesterday spring boot 2.0 update.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfi...
Aegisthus asked 27/4, 2017 at 7:48
14
Solved
What is the purpose and usage of @ModelAttribute in Spring MVC?
Hierocracy asked 6/8, 2010 at 11:20
3
I'm using spring-ldap-core-2.3.1.RELEASE.jar over JDK 1.8 & Tomcat 8.0 to access AD information through LdapTemplate. The attributes such as title,department & company are not being returne...
Interpretative asked 25/7, 2017 at 6:31
7
Solved
I'm using Spring security to secure some endpoints in my REST service.
here's the security configuration class:
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(securedEnabled = true...
Adamina asked 20/10, 2018 at 9:30
17
Solved
I've got a fairly simple Spring Boot web application, I have a single HTML page with a form with enctype="multipart/form-data". I'm getting this error:
The multi-part request contained parameter...
Cogswell asked 20/10, 2015 at 9:26
4
Solved
I am trying to add feature of uploading picture to my spring mvc application.
jsp part:
...
<form method="POST" action="uploadImage" enctype="multipart/form-data">
<div class="load-line...
Durwyn asked 24/11, 2014 at 9:52
3
I want to display all my products info, but I have problem with showing a product image. I get my products from DB and then I add them to Model, but don't know why only image don't display. In HTML...
Ablation asked 12/1, 2018 at 23:24
4
Solved
I've got java Spring Security app (built with jhipster) and I'm trying to add some unit tests that test logic based on the current authenticated user.
To do that i've configured my MockMvc object...
Glassworks asked 11/1, 2016 at 22:50
6
Solved
I am building a RESTful Web Service that consumes and returns JSON. I am encountering the following stack trace when I try to fetch an ESRBRating object from the database through the service layer....
Dampen asked 16/11, 2014 at 13:36
6
Solved
I want to post a file with some JSON data using Spring MVC. So I've developed a rest service as
@RequestMapping(value = "/servicegenerator/wsdl", method = RequestMethod.POST,consumes = { "multipar...
Bab asked 24/1, 2014 at 9:50
1
The application is web-application using spring boot and thymeleaf. The application has a questionnaire along with some fields that needs to filled to submit the form. The model object (here answer...
Devisee asked 2/9, 2022 at 11:47
3
Solved
In the Spring Boot's docs here, about serving static content, it says:
By default Spring Boot will serve static content from a directory
called /static (or /public or /resources or /META-INF/re...
Charentemaritime asked 8/12, 2015 at 16:1
6
Solved
Hi I have a Spring mvc controller
@RequestMapping(value = "/jobsdetails/{userId}", method = RequestMethod.GET)
@ResponseBody
public List<Jobs> jobsDetails(@PathVariable Integer userId,HttpS...
Oke asked 1/2, 2014 at 7:14
2
Solved
I'm using spring boot with embedded tomcat + spring security.
My access log from tomcat seems like this
IP - - [14/Feb/2017:08:49:50 +0200] "GET /page/2 HTTP/1.1" 200 2606
So, how can i make lo...
Thermionic asked 14/2, 2017 at 7:50
3
Solved
I am new to Spring MVC and have a little idea of the usage of java beans in Java.
What is the basic difference between a Java bean and Spring bean?
Immunogenic asked 18/2, 2014 at 22:10
9
I am using spring 3 MVC and i have below classes.
External system would call my application using below URL:
http://somehost/root/param1/param2/param3
I have a spring MVC controller method as b...
Gnat asked 19/3, 2014 at 14:19
4
Solved
My colleagues very often use word "application context". In many articles this collocation used very often too.
My current understanding: application context is single xml file.
But I understand ...
Aprilaprile asked 27/10, 2013 at 8:14
2
I am trying to implement localization in my spring boot project. And it fine work in some language like Locale.ITALIAN ,Locale.GERMAN. In case of
Malayalam , Tamil and Hindi
getting "???&quo...
Onehorse asked 1/11, 2021 at 8:13
4
We are using spring and spring-security-3.2. Recently We are adding annotations @PreAuthorize to RestAPIs(earlier it was URL based).
@PreAuthorize("hasPermission('salesorder','ViewSalesOrder')")
...
Cresida asked 12/7, 2017 at 14:7
9
Good day!
I have a @Controller. Some of its methods throw the same exception, but I want to handle this exceptions in different way.
Is there a way how to bind an @ExceptionHandler to a particula...
Krenn asked 8/7, 2013 at 9:41
14
Solved
I'm using Spring MVC's @ControllerAdvice and @ExceptionHandler to handle all the exception of a REST Api. It works fine for exceptions thrown by web mvc controllers but it does not work for excepti...
Patricide asked 4/11, 2013 at 11:58
© 2022 - 2024 — McMap. All rights reserved.