LoginSignup
0
0

More than 5 years have passed since last update.

spring-mvc ブラウザアクセス時のルートパス変更

Posted at

WEB-INF → web.xml に、以下を追加。

web.xml
<servlet-mapping>
    <servlet-name>dispatcherServlet</servlet-name>
    <url-pattern>/test/*</url-pattern>
</servlet-mapping>

http://xxxxx.com/test/ にアクセスすると、indexが呼ばれる。
http://xxxxx.com にアクセスすると、404 not found.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0