- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 62字
- 2021-07-23 18:59:22
Step 6—Web application configuration
In this example, we are going to use Spring MVC as our web application framework. Let's create the web application configuration file:
@Configuration
@EnableWebMvc
@ComponentScan(basePackages= {"com.packtpub.book.ch02.springsecurity.controller"})
public class WebApplicationConfig implements WebMvcConfigurer {
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
registry.jsp().prefix("/WEB-INF/views/").suffix(".jsp");
}
}
The @EnableWebMvc annotation makes sure that your application is based on Spring MVC.
推薦閱讀
- 攻守道:企業(yè)數字業(yè)務安全風險與防范
- 云原生安全:攻防實踐與體系構建
- INSTANT Burp Suite Starter
- 工業(yè)物聯網安全
- Python Penetration Testing Cookbook
- Testing and Securing Android Studio Applications
- 數據安全與隱私計算(第3版)
- 隱私計算
- 從實踐中學習Kali Linux滲透測試
- Building a Home Security System with BeagleBone
- Digital Forensics with Kali Linux
- 學電腦安全與病毒防范
- 數據安全領域指南
- 網絡安全應急響應實戰(zhàn)
- Mastering Reverse Engineering