Skip to content

Commit da1df8e

Browse files
authored
Merge pull request #418 from okue/remove-deprecated
Remove Deprecated WebMvcConfigurerAdapter
2 parents f70c320 + 9b2d6d9 commit da1df8e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

line-bot-spring-boot/src/main/java/com/linecorp/bot/spring/boot/LineBotWebMvcConfigurer.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@
2424
import org.springframework.context.annotation.Import;
2525
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
2626
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
27+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
2728

2829
import com.linecorp.bot.spring.boot.interceptor.LineBotServerInterceptor;
2930
import com.linecorp.bot.spring.boot.support.LineBotServerArgumentProcessor;
3031

31-
@SuppressWarnings("deprecation"
32-
/* WebMvcConfigurerAdapter is deprecated in 5.x. TODO: Migrate to WebMvcConfigurer */)
3332
@Configuration
3433
@Import(LineBotWebMvcBeans.class)
3534
@ConditionalOnWebApplication
36-
public class LineBotWebMvcConfigurer
37-
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter {
35+
public class LineBotWebMvcConfigurer implements WebMvcConfigurer {
3836
@Autowired
3937
private LineBotServerInterceptor lineBotServerInterceptor;
4038
@Autowired

0 commit comments

Comments
 (0)