I config spring and map it to *.htm, but it also applied to real .htm files. so i cannot access the real static *.htm in my web application. what should i config spring to solve the issue? thanks!
<servlet-mapping>
<servlet-name>systemdispatcher</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
if i try to access the static htm file like index.htm, it will show a 404 error. how can i configure the spring to solve the problem? thanks!
I agree with the solution given by @Bozho.
But there is another way to do it also. You can specify the ResourceHandler that can serve the static contents from a specific path of your application without transfering the request to dispatcher servlet.
Try doing following configuration in your servlet xml file.
Here you can replace the path where your static .htm files are.
Hope this helps you.
Cheers.