How to map dynamic url /prj/noticeOpen/2 in Spring MVC controller

Change your prefix value in applicationContext.xml as follows

<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix">
            <value>/WEB-INF/pages/</value>
        </property>
        <property name="suffix">
            <value>.jsp</value>
        </property>
</bean>

A slash before WEB-INF.It will work.

Leave a Comment

tech