機能しているアプリケーションに Persual アクセスを追加しようとしています
次の URL のページが表示されず、http 400 の不正な要求が表示されます。
http://localhost:9080/ASOPartners/perusal.do
私が得る次のURLで
PageNotFound W org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [/ASOPartners/perusal/perusal.do] in DispatcherServlet with name 'asopartners'
http://localhost:9080/ASOPartners/perusal/perusal.do
ここに私の新しいControllerメソッドからの関連情報があります
@RequestMapping(value = "/perusal.do")
public String perusal(@RequestHeader(value = USERID_HEADER_KEY, required = false) String userId,
@RequestHeader(value = COMPANYID_HEADER_KEY, required = false) String companyId,
@RequestHeader(value = "sm_serversessionId", required = false) String sessionId,
@RequestParam(value = USERID_PARAM_KEY, required = true) String appuserID,
@RequestParam(value = "companyId", required = true) String appcompID,
HttpServletRequest servletRequest,
WebRequest webRequest){
initializeUserSession(servletRequest);
ここに Web.xml からの私のサーブレット マッピングがあります
<servlet>
<description>Spring MVC Dispatcher Servlet</description>
<servlet-name>asopartners</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asoclient</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asocustomer</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asooperations</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asooperations/addcompany</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asocustomer/usermaintenance</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/asooperations/usermaintenance</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>asopartners</servlet-name>
<url-pattern>/perusal</url-pattern>
</servlet-mapping>
ここに私のView Controller設定があります
<!-- YOUR ENTRIES HERE -->
<context:component-scan base-package="com.wellsfargo.asopartners.common.db,
com.wellsfargo.asopartners.factory,
com.wellsfargo.asopartners.web,
com.wellsfargo.asopartners.validator,
com.wellsfargo.asopartners.dao">
</context:component-scan>
<!-- Configures the @Controller programming model -->
<mvc:annotation-driven />
<!-- Forwards requests to the "/" resource to the "welcome" view -->
<mvc:view-controller path="/perusal" view-name="redirect:perusal.do"/>
<mvc:view-controller path="/asocustomer" view-name="redirect:asocustomer/customer.do"/>
<mvc:view-controller path="/asocustomer/usermaintenance" view-name="redirect:usermaintenance/userMaintenance.do"/>
<mvc:view-controller path="/asoclient" view-name="redirect:asoclient/custClient.do"/>
<mvc:view-controller path="/asooperations" view-name="redirect:asooperations/operator.do"/>
<mvc:view-controller path="/asooperations/usermaintenance" view-name="redirect:usermaintenance/userMaintenance.do"/>
<mvc:view-controller path="/asooperations/addcompany" view-name="redirect:addcompany/addCompany.do"/>
私はこれを解決しようとして本当に疲れ果てました.構成は非常に単純でなければならず、専門家からの助けを探しています.ありがとう.