spring-mvc Questions

2

Solved

I'm trying to resolve some certain parameters of RequestMapping methods, to extract values from request body and validates them and inject them into certain annotated parameters. @Override public ...
Indue asked 15/1, 2016 at 4:2

5

I'm developing a project which is not Spring boot but also spring mvc. I mean I don't have this class for example in my project: @SpringBootApplication public class Application extends SpringBootS...
Regolith asked 9/4, 2017 at 9:12

9

Solved

I wanted to upload an image to my Rest API through postman. I am using spring boot framework. Here is the screen shot: I also have not set any any headers as I found in other stack overflow an...
Loveinidleness asked 8/11, 2016 at 13:48

22

I've a problem with the following dependency in my pom.xml where org.springframework.version = 3.1.0.RELEASE: <!-- Spring MVC framework --> <dependency> <groupId>org.springframe...
Foucault asked 7/12, 2013 at 15:6

4

Solved

I'm trying to do REST calls with Spring. As I understand, the right way to go is using RestTemplate(?). Problem is, I'm behind a proxy. This is my code right now: SimpleClientHttpRequestFactory f...
Surge asked 7/7, 2015 at 15:39

12

Solved

I am running my Maven/Spring project in Jenkins (just testing it out, first time) using the shell script option with: mvn spring-boot:run I get the build error: /Users/Shared/Jenkins/tmp/jenkins8...
Sollows asked 19/8, 2017 at 23:6

17

Solved

My Eclipse project is suddenly no longer deploying properly. I can't trace it to any particular change I've made to the environment. I have tested with multiple source-controlled projects and they...

7

Solved

What should I do to be able to use #oauth2 security expressions on method level like on the example below? @RequestMapping(value = "email", method = RequestMethod.GET) @ResponseBody @PreAuthoriz...
Trillium asked 22/4, 2015 at 12:33

10

Solved

I'm experimenting on re-writing my configuration-heavy, vanilla Spring MVC project using Spring Boot. I started a brand new Spring Boot project in IntelliJ using the Spring Boot Initiaizer and I'm ...
Stickup asked 19/3, 2016 at 9:51

7

I have the following simple controller to catch any unexpected exceptions: @ControllerAdvice public class ExceptionController { @ExceptionHandler(Throwable.class) @ResponseStatus(value = HttpSt...
Santee asked 21/5, 2013 at 11:52

4

Solved

error: cvc-elt.1.a: Cannot find the declaration of element 'project' I am getting this error constantly. Whenever I create a project using maven it starts displaying this error. I have even mention...
Marismarisa asked 13/1, 2022 at 6:24

11

Here is the stack trace when I try to execute a simple query using MyBatis: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.my.package.persistence.BrandMapper...
Agiotage asked 6/5, 2015 at 15:44

13

Solved

I have a command object: public class Job { private String jobType; private String location; } Which is bound by spring-mvc: @RequestMapping("/foo") public String doSomethingWithJob(Jo...
Goulder asked 24/1, 2012 at 12:12

5

Solved

I am currently following the Spring Documentation and some tutorials on Web Security. But now I have a problem, that I can't call the method antMatchers. This is the error I'm getting when building...
Mcintire asked 10/12, 2022 at 14:17

7

Solved

I am using Spring for MVC tests Here is my test class @RunWith(SpringRunner.class) @WebMvcTest public class ITIndexController { @Autowired WebApplicationContext context; MockMvc mockMvc; @...
Gabriella asked 18/9, 2016 at 5:0

9

Solved

I just started working with Spring Boot, and am currently following this tutorial with some small modifications to naming and using their own version of Eclipse, which has this generator built in. ...
Thermoplastic asked 19/5, 2016 at 15:24

15

Solved

I'm using Spring Boot (1.2.1), in a similar fashion as in their Building a RESTful Web Service tutorial: @RestController public class EventController { @RequestMapping("/events/all") Ev...
Laural asked 4/2, 2015 at 14:54

5

Solved

I setup my Spring Security application according to the reference document and after hours of troubleshooting I continue to get a null @AuthenticationPrincipal passed into my controller. The authen...
Catamnesis asked 11/4, 2022 at 13:17

6

Solved

This is my class for test. @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = AppConfig.class, loader = AnnotationConfigContextLoader.class) public class UserServiceImplIT { ...
Evelyn asked 9/4, 2016 at 16:0

5

Solved

Can someone help me write the dependency for javax.persistence. I have googled it but nothing worked. I bumped into this page that gives some details on how to write the dependency, but yet i am u...
Pseudocarp asked 23/11, 2011 at 13:35

8

I see this in my Spring MVC app's web.xml: <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProx...
Tobi asked 17/7, 2011 at 16:34

3

Solved

My Application is Sping MVC not boot. I'm using springdoc-openapi-ui 1.4.4 also, I added the following imports to one of my @configuration class; org.springdoc.core.SpringDocConfigProperties.class...
Bifurcate asked 28/8, 2020 at 4:27

7

Solved

I am developing a project using Spring Boot. I've a controller which accepts GET requests. Currently I'm accepting requests to the following kind of URLs: http://localhost:8888/user/data/002 ...
Dosage asked 25/8, 2015 at 10:22

4

Solved

i guess this is a xml parsing problem, but I just cannot see where it is. I read some articles about this topic and nothing helped: i have this spring mvc config: <?xml version='1.0' encoding=...
Evzone asked 24/9, 2014 at 11:1

3

Solved

I have a Spring app that is using Hibernate and the Spring Data JPA's CrudRepository. Everything seems to work properly if the data that was queried for exists in the database. However, if there is...
Michell asked 10/6, 2016 at 20:57

© 2022 - 2024 — McMap. All rights reserved.