web.xml loads spring and mybatis files, but the spring.xml file cannot be found

The error shows:

first mistake
second mistake
third mistake

web.xml file:

insert image description here

Project file path:

insert image description here

Solution:

The main reason is that the resource file is in the normal folder, create a new src/main/resources file, and put the configuration file in the resources folder.
insert image description here
I, who cheat myself every day, can only take my time.

Guess you like

Origin blog.csdn.net/weixin_42307069/article/details/102687317