Skip to content

Commit 9e320d4

Browse files
1 parent 5ac4cdb commit 9e320d4

File tree

1 file changed

+11
-7
lines changed
  • spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/config/annotation

1 file changed

+11
-7
lines changed

spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/config/annotation/SnsWebConfiguration.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,20 @@
3333
*/
3434
@Configuration(proxyBeanMethods = false)
3535
@ConditionalOnClass("org.springframework.web.servlet.config.annotation.WebMvcConfigurer")
36-
public class SnsWebConfiguration implements WebMvcConfigurer {
36+
public class SnsWebConfiguration {
3737

3838
@Autowired
3939
private AmazonSNS amazonSns;
4040

41-
@Override
42-
public void addArgumentResolvers(
43-
List<HandlerMethodArgumentResolver> argumentResolvers) {
44-
argumentResolvers
45-
.add(getNotificationHandlerMethodArgumentResolver(this.amazonSns));
41+
@Bean
42+
public WebMvcConfigurer snsWebMvcConfigurer() {
43+
return new WebMvcConfigurer() {
44+
@Override
45+
public void addArgumentResolvers(
46+
List<HandlerMethodArgumentResolver> argumentResolvers) {
47+
argumentResolvers
48+
.add(getNotificationHandlerMethodArgumentResolver(this.amazonSns));
49+
}
50+
}
4651
}
47-
4852
}

0 commit comments

Comments
 (0)