如何修復404錯誤,請求的資源不可用。從調度員servlet.xml中Spring RequestMapping 404錯誤?
的ViewResolver
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:prefix="/WEB-INF/" p:suffix=".jsp">
</bean>
@RequestMapping("/Locations/edit/{locationId}")
public void edit(@PathVariable String locationId,ModelMap map) {
Locations location=new Locations();
location=locationsService.getByID(Integer.parseInt(locationId));
map.put("location", location);
}
錯誤 HTTP狀態404 - /DoctorsBeta/WEB-INF/Locations/edit/1.jsp 描述所請求的資源不可用。