Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:17:07+00:00 2026-06-04T01:17:07+00:00

I config spring and map it to *.htm, but it also applied to real

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:17:08+00:00Added an answer on June 4, 2026 at 1:17 am

    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.

    <mvc:resources location="/resources/" mapping="/resources/**" />
    

    Here you can replace the path where your static .htm files are.

    Hope this helps you.
    Cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created one class that directly map to ConfigSection of web. config. My
I am using EhCache 1.4.0, Spring 3.0.5 in a web application deployed on Tomcat
I have set up i18n to my web app using Spring.It works fine.But I
I'm porting a standard web-app with a web.xml, security-constraint(s), security-role(s), and login-config to Spring
I'm trying to use the spring-security-core database request map config and it doesn't seem
I have this Spring config: <bean id=boo class=com.x.TheClass/> The class TheClass implements TheInterface .
I have configured two authentication providers in my Spring Security config: <security:authentication-manager> <security:authentication-provider ref=XProvider
I currently load my properties file like so in spring <context:property-placeholder location=test-esb-project-config.properties/> <context:property-placeholder location=esb-project-config.properties/>
In my applications web.config file I have a connection string stored. I encrypted it
Is it possible to change a database connection string value in the Web.Config at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.