Spring isn't aware of your custom ViewResolver. You should denote it with @Bean
annotation
You've got
WEB-INF/view
in your folder structure and
WEB-INF/views
in your ViewResolver (which does need the @Bean
annotation as Nikolay stated) which is why you are receiving a 404.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.