简体   繁体   中英

SpringMVC:“Cannot find declaration to go to”

I can't understand why does it give an error.Please,help me!! 在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM