- 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.
推薦閱讀
- 黑客大曝光:無線網絡安全(原書第3版)
- API安全實戰
- Getting Started with FortiGate
- 工業物聯網安全
- Python Penetration Testing Cookbook
- 學電腦安全與病毒防范
- 電腦安全與攻防入門很輕松(實戰超值版)
- Learning Pentesting for Android Devices
- 網絡安全大數據分析與實戰
- CTF特訓營:技術詳解、解題方法與競賽技巧
- 網絡服務安全與監控
- Mastering Python for Networking and Security
- Manga Studio 5 Beginner's Guide
- 社會工程:防范釣魚欺詐(卷3)
- CTF網絡安全競賽入門教程