我有一个简单的spring mvc + spring security应用程序@RequestMapping(value = "/hello")
public ModelAndView doLogin但是,当我尝试http://localhost:8080/hello/时,hello.jsp页面会显示出
但是,我无法在'WEB-INF‘文件夹中查看我的jsp文件,我将得到404错误(白标错误页).I have set the Application.properties。这是我的application.properties:## View resolverspring.view.prefix: /WEB-INF/jsp/下面是我的MvcConfig类:
package com.good
我的SpringWebConfiguration.class在这里:@EnableWebSecurity auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder);}@GetMapping("/login")
public String