11-Jul-2022 11:55:34.977 淇℃伅 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
11-Jul-2022 11:55:35.112 淇℃伅 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
11-Jul-2022 11:55:42.565 淇℃伅 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'springmvc'
11-Jul-2022 11:56:14.933 涓ラ噸 [http-nio-8080-exec-10] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [springmvc] in context with path [/test06_cloud] threw exception [Request processing failed; nested exception is org.springframework.jdbc.UncategorizedSQLException:
### Error querying database. Cause: java.sql.SQLException: Error
### The error may exist in com/zhiyou100/dao/UserMapper.java (best guess)
### The error may involve com.zhiyou100.dao.UserMapper.getOneByUname-Inline
### The error occurred while setting parameters
### SQL: select * from tab_user where uname=?
### Cause: java.sql.SQLException: Error
; uncategorized SQLException; SQL state [null]; error code [0]; Error; nested exception is java.sql.SQLException: Error] with root cause
java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
点登陆没反应,tomcat报这个错,怎么解决呀?
$(function(){
//登录
$("#loginSubmitButton").bind("click",function(){
var uname=$("#userLoginForm input[name='uname']").val();
var upwd=$("#userLoginForm input[name='upwd']").val();
var uyzm=$("#userLoginForm input[name='uyzm']").val();
var loginUrlParam="uname="+uname+"&upwd="+upwd+"&uyzm="+uyzm;
$.get(path+"/user/login.action",loginUrlParam,function(rv){
alert(rv.message);
if(rv.status==200){
uid=rv.data.uid;
$("#unameSpan").html(rv.data.uname.fontcolor("blue"));
$("#userLoginModal").modal("hide");
//数据加载
setTableData();
}
},"json");
});
//更改验证码
$("#img_yzm").bind("click",function(){
$("#img_yzm").attr("src","<c:url value='/user/yzmImg.action'/>?n="+Math.random());
});
});
(可以获得用户数据)