Linked Questions

13 votes
2 answers
18k views

I'm trying to register an instance of HandlerInterceptor in Spring using Java Config without extending WebMvcConfigurationSupport. I'm creating a library with an annotation that, when added to a @...
Colin M's user avatar
  • 13.4k
25 votes
4 answers
3k views

I have a Spring Boot app with a REST API, using Jackson for the JSON view configuration. It works great and I can get all the Spring Boot goodness. However, I need to add an additional REST API that ...
SingleShot's user avatar
  • 19.2k
3 votes
2 answers
7k views

Let's say I have the following controller with its parent class: @RestController public class BusinessController extends RootController { @GetMapping(value = "users", produces = {"...
maxxyme's user avatar
  • 2,354
2 votes
3 answers
4k views

I want to create REST Server which accepts XML requests and plain text into different controllers. I tried to implement this: @SpringBootApplication public class Application extends ...
Peter Penzov's user avatar
  • 1,096
4 votes
2 answers
11k views

I have written an interceptor for my spring-boot app. But when I hit the endpoint, its executing fine.The interceptor is not able to intercept my request. Where I am going wrong or missing something? ...
sromit's user avatar
  • 1,134
3 votes
2 answers
4k views

CONTEXT: I would like to create a custom annotation in Spring Boot and add extra logic for processing. I give an example with rather simplistic annotation but I want to have several of such ...
Dmytro Chasovskyi's user avatar
1 vote
1 answer
7k views

I've looked at similar problems: how to intercept all requests in spring REST controllers? spring boot adding http request interceptors And still can't figure out the solution. I have a Spring Boot ...
user avatar
9 votes
3 answers
2k views

In reference to this SO question Add request parameter to SAML request using Spring Security SAML I am wanting to replace the default HTTPRedirectDeflateBinding bean with my own that has a custom ...
Fratt's user avatar
  • 249
2 votes
1 answer
5k views

I am currently trying to implement a customized error handler for spring boot and I have done it with the following: public class ExceptionHandler extends HandlerInterceptorAdapter { public static ...
Bionix1441's user avatar
  • 2,359
1 vote
1 answer
5k views

I'm trying to solve this: How to rewrite URLs with Spring (Boot) via REST Controllers? by creating some kind of "filter" which would be applied to every incoming HTTP request. The matter is ...
maxxyme's user avatar
  • 2,354
1 vote
3 answers
2k views

My use case is running custom code before a controller method by annotating methods. HandlerInterceptor seems the way to go but it seems impossible to inject dependencies into it because it needs to ...
user1703761's user avatar
  • 1,104
4 votes
2 answers
3k views

I am trying to implement Prometheus in my microservices based spring boot application, deployed over weblogic server. As part of POC,I have included the configs as part of one war. To enable it, i ...
Narendra Pandey's user avatar
3 votes
2 answers
2k views

The context I am currently working on an educational project. This implies two Spring Boot REST servers. One is an actual server, which does some processing. The one I'm interested in is the other. ...
Chop's user avatar
  • 4,609
1 vote
1 answer
1k views

I have an application which uses quite an old version of spring boot. I have applied interceptor in the application but request is not coming to the interceptor. @Configuration public class ...
Aditya's user avatar
  • 1,108
0 votes
2 answers
1k views

This is my starter application class @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class }) @ImportResource("classpath : web.xml") public class ...
Hayk Mkhitaryan's user avatar

15 30 50 per page