Java Http状态404-servlet登录当前不可用
这是我的login-servlet.xmlJava Http状态404-servlet登录当前不可用,java,spring,spring-mvc,Java,Spring,Spring Mvc,这是我的login-servlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmln
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<!-- Enable annotation driven controllers, validation etc... -->
<mvc:annotation-driven />
<context:component-scan base-package="com.smart.control" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value></value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
</bean>
</beans>
通过post方法提交表单时,将显示servlet登录当前不可用消息。
请告诉我这里出了什么问题。如果您想查看我的类路径中的jar文件,请告诉我……这样可以吗
@RequestMapping(value=“Login.html”,method=**RequestMethod.POST**)
您的authenticateLogin()没有实现任何提供身份验证的逻辑??这可能就是问题所在reason@TechExchange是的,没关系。请告诉我是什么让你认为这里出了问题。您没有口头表达任何问题、异常或意外/预期行为。
@RequestMapping(value = "Login.html", method = RequestMethod.POST)
public String authenticateLogin(HttpServletRequest request, HttpSession session) {
System.out.println("hell");
return "Login";
}