spring-mvc Questions
10
Solved
I got a simple HomeController.class:
package com.example.tacos;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public cla...
Teodoor asked 31/1, 2020 at 10:27
3
Solved
I'm aware of this question, but using org.springframework.data:spring-data-jpa:1.7.0.RELEASE I'm still having the same issue (Either use @Param on all parameters except Pageable and Sort typed once...
Winona asked 22/9, 2014 at 13:18
11
In my machine (Windows 10), there are two versions of Java, Java 1.8 (JRE and JDK) and Java 10 (JRE and JDK).
Previously IF I set my Eclipse to:
Java Compiler (JDK Complience) : 1.8
Java Build P...
Zampardi asked 1/8, 2018 at 9:56
8
There are loads of questions about spring boot not loading static resources and having read them all (almost) I still can't fix this issue. At this stage I have opted not to run with spring boot bu...
Kwan asked 4/8, 2016 at 14:47
9
Solved
I have multiple classes annotated with @ControllerAdvice, each with an @ExceptionHandler method in.
One handles Exception with the intention that if no more specific handler is found, this should b...
Loiretcher asked 21/10, 2013 at 15:16
4
Solved
I have a Spring Boot application where I need to make certain endpoints accessible to all users without requiring authentication. To achieve this, I am using permitAll().
However, when I try to acc...
Sian asked 23/4, 2023 at 11:24
9
Solved
I am relatively new to Spring and Spring security.
I was attempting to write a program where I needed to authenticate a user at the server end using Spring security,
I came up with the following:...
Abie asked 27/10, 2009 at 7:26
4
Solved
What is the difference between the @ComponentScan and @EnableAutoConfiguration annotations in Spring Boot? Is it necessary to add these? My application works very well without these annotations. I ...
Multiracial asked 26/1, 2016 at 0:40
7
I got the following @RestController inside a spring boot application :
@Data
@RestController
public class Hello {
@Autowired
private ResturantExpensesRepo repo;
@RequestMapping(value = "/...
Tetchy asked 1/12, 2017 at 12:7
3
Solved
I have some annotation in a class such as
public class ProductModel {
@Pattern(regexp="^(1|[1-9][0-9]*)$", message ="Quantity it should be number and greater than zero")
private String quantity;
...
Runin asked 15/3, 2019 at 15:38
16
Solved
My project has Spring Security.
Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It says Missing or invalid Authorization header.
Screenshot of the browser win...
Paradox asked 7/6, 2016 at 5:25
15
Solved
I have a problem with Spring's annotation based task scheduler - I can't get it working, I don't see any problem here...
application-context.xml
<task:scheduler id="taskScheduler" />
<ta...
Artiodactyl asked 27/1, 2011 at 14:14
10
Solved
I trying @RequestMapping(value = "/test", method = RequestMethod.POST) but is error
Code is
@Controller
public class HelloWordController {
private Logger logger = LoggerFactory.getLogger(Hell...
Wagner asked 26/7, 2010 at 9:28
2
Solved
is it possible extend a shared view with thymeleaf?
I saw that is possible use framents but is not what I want.
Instead I want something similar to .NET MVC, with something like @RenderBody() and ...
Canine asked 6/3, 2014 at 0:36
8
Solved
I've been using Spring MVC for three months now. I was considering a good way to dynamically add RequestMapping. This comes from the necessity to put controller parts in a library and then add them...
Sting asked 22/4, 2011 at 18:9
31
I have strange thing when I try to modify Spring project inside my Spring Tool Suite. On the first load (deploy) everything is fine, application compiles and runs on localhost:8080
When I change ...
Plafker asked 18/10, 2016 at 22:5
6
Solved
I am working on Spring Framework and I wanted to write an interceptor and I wrote it eventually and it is working fine.
but at a point, I dont want my interceptor to intercept the request that is ...
Groos asked 20/1, 2014 at 7:31
11
I have a class (Class ABC) that's instantiated by calling the constructor. Class ABC in turn has a helper class (Class XYZ) injected using auto-wired.
Ours is a Spring MVC based application and I...
Popsicle asked 21/8, 2013 at 1:31
6
Solved
I'm trying to validate a LocalDate object in a JSON result returned by a Spring MVC webservice but I can't figure out how.
At the moment I always run into assertion errors like the following one:...
Abrasion asked 9/10, 2017 at 14:51
30
Solved
I have written a spring batch application using Spring boot. When I am trying to run that application using command line and classpath on my local system it is running fine. However, when I tried t...
Waft asked 8/5, 2018 at 10:45
10
I'm quite new to spring boot and I'd like to create a multiple datasource for my project.
Here is my current case. I have two packages for entity for multiple database. Let's say
com.test.entity.d...
Isabea asked 23/12, 2014 at 4:56
9
What is the difference between @RequestParam and @PathVariable while handling special characters?
+ was accepted by @RequestParam as space.
In the case of @PathVariable, + was accepted as +.
Sandrasandro asked 5/12, 2012 at 3:25
5
Solved
in spring whenever i write <context:annotation-config/> in my spring.xml i get this error:-
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException...
Intracardiac asked 14/9, 2013 at 14:52
6
Solved
I'm using Spring to implement a RESTful web service. One of the endpoints takes in a JSON string as request body and I wish to map it to a POJO. However, it seems right now that the passed-in JSON ...
Fenland asked 15/8, 2016 at 17:42
14
Solved
I have created demo Spring Boot project and implemented Restful services as shown here
@RestController
public class GreetingsController {
@RequestMapping(value="/api/greetings", method=RequestMe...
Gab asked 7/12, 2015 at 13:52
© 2022 - 2024 — McMap. All rights reserved.