2023-06-02 21:45:06.658 DEBUG 25360 --- [nio-8081-exec-3] c.e.s.m.u.m.UserMapper.findUserById : ==> Preparing: select t_user.userId,t_user.userName,t_user.password, t_user.age,t_user.telephone,t_role.roleName from t_user,t_role,t_user_role where t_user.userId=t_user_role.userId and t_user_role.roleId=t_role.roleId and t_user.userId=?
时间: 2023-08-10 17:03:51 浏览: 54
这是MyBatis在执行SQL查询语句时输出的调试信息,它表示MyBatis正在准备执行一个查询语句,这个查询语句的SQL语句是"select t_user.userId,t_user.userName,t_user.password, t_user.age,t_user.telephone,t_role.roleName from t_user,t_role,t_user_role where t_user.userId=t_user_role.userId and t_user_role.roleId=t_role.roleId and t_user.userId=?",其中问号是一个占位符,表示这个查询语句需要一个参数。
这个调试信息的作用是帮助你调试MyBatis的SQL查询语句,并且可以确保查询语句被正确地构造。如果你看到这个调试信息,那么说明MyBatis已经正确地接收到你的查询请求,并且正在准备执行查询语句。
如果你想了解更多关于MyBatis的调试信息的内容,可以查看MyBatis官方文档中的相关章节。
相关问题
2023-06-09 09:25:01.656 http-nio-9090-exec-13 DEBUG com.xrecreation.mapper.master.XSysUserMapper.selectByPrimaryKey.debug:137 - ==> Parameters: 10098(Integer) 2023-06-09 09:25:01.658 http-nio-9090-exec-13 DEBUG com.xrecreation.mapper.master.XSysUserMapper.selectByPrimaryKey.debug:137 - <== Total: 1 2023-06-09 09:25:01.659 http-nio-9090-exec-13 DEBUG com.xrecreation.mapper.master.XSysUserCompanyMapper.selectByExample.debug:137 - ==> Preparing: SELECT id,api_company_id,sys_user_id,add_user_id,edit_user_id,is_delete,add_time,edit_time FROM x_sys_user_company WHERE ( ( sys_user_id = ? and is_delete = ? ) )
这是一段Java Web应用的日志信息,其中包含了一些SQL语句的调用及其参数。具体来说,这段日志信息包含了以下内容:
- 时间戳:2023-06-09 09:25:01.656
- 线程名:http-nio-9090-exec-13
- 日志级别:DEBUG
- 执行的SQL语句:SELECT id,api_company_id,sys_user_id,add_user_id,edit_user_id,is_delete,add_time,edit_time FROM x_sys_user_company WHERE ( ( sys_user_id = ? and is_delete = ? ) )
- SQL语句的参数:10098(Integer)、true
根据这些信息,我们可以了解到该Java应用程序在执行查询操作时,传入的参数是sys_user_id=10098且is_delete=true,查询的表名为x_sys_user_company,返回的是该表中符合条件的记录。
2023-06-10 21:44:19.229 WARN 10408 --- [nio-8088-exec-1] o.s.web.servlet.PageNotFound : No mapping for GET / 2023-06-10 21:44:19.546 WARN 10408 --- [nio-8088-exec-2] o.s.web.servlet.PageNotFound : No mapping for GET /favicon.ico
这是一个 Spring Boot 应用程序中的警告信息。在第一条警告中,应用程序收到了一个 GET 请求,但它无法找到匹配该请求的任何 URL 映射,因此会返回 404 错误页面。在第二条警告中,应用程序收到了一个 GET 请求,该请求是用来请求网站图标的,但应用程序同样无法找到匹配该请求的 URL 映射。这些警告信息可以被忽略,因为它们只是告诉你有一些请求没有被处理,但不会影响应用程序的正常运行。