- 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.
推薦閱讀
- INSTANT Metasploit Starter
- 深入淺出隱私計算:技術解析與應用實踐
- Penetration Testing with Perl
- 安全技術運營:方法與實踐
- 網絡安全技術及應用(第3版)
- 移動APT:威脅情報分析與數據防護
- Mastering Reverse Engineering
- SQL Injection Strategies
- 持續集成:軟件質量改進和風險降低之道
- VMware vCloud Security
- Cybersecurity Threats,Malware Trends,and Strategies
- Mastering Python for Networking and Security
- 企業數據安全防護指南
- INSTANT Microsoft Forefront UAG Mobile Configuration Starter
- CCNA Security 210-260 Certification Guide