消息弹出框为undefined

消息弹出框为undefined

如题,在请假申请页面点击立即申请后弹出的消息框为undefined,且点击确定后不会跳转页面,后台请假单表能正常创建,但是表单流程表没有创建,idea都没有报错,找了好久没找出问题,请老师帮忙看看,是哪里出了问题,谢谢老师。

http://img1.sycdn.imooc.com//climg/6080172408f16afa19201048.jpghttp://img1.sycdn.imooc.com//climg/6080ef2b08c196ac12730621.jpg

http://img1.sycdn.imooc.com//climg/6080f37608ecb03715740669.jpg



相关代码:form.html  

<script src="/resources/layui/layui.js"></script>  从课件里复制的,只改了这一项,因为我本地的是layui.js


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>请假申请</title>
<link rel="stylesheet" href="/resources/layui/css/layui.css">
<style>
/*表单容器*/
.ns-container {
position: absolute;
width: 500px;
height: 450px;
top: 150px;
left: 50%;
margin-left: -250px;
padding: 20px;
box-sizing: border-box;
border: 1px solid #cccccc;
}
</style>
</head>
<body>
<div class="layui-row">
<blockquote class="layui-elem-quote">
<h2>请假申请</h2>
</blockquote>
<table id="grdNoticeList" lay-filter="grdNoticeList"></table>
</div>
<div class="ns-container">
<h1 style="text-align: center;margin-bottom: 20px">请假申请单</h1>
<form class="layui-form">
<!--基本信息-->
<div class="layui-form-item">
<label class="layui-form-label">部门</label>
<div class="layui-input-block">
<div class="layui-col-md12" style="padding-top: 10px;">
研发部
</div>

</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">申请人</label>
<div class="layui-input-block">
<div class="layui-col-md12" style="padding-top: 10px;">
齐紫陌[部门经理]
</div>

</div>
</div>
<!--请假类型下拉框-->
<div class="layui-form-item">
<label class="layui-form-label">请假类别</label>
<div class="layui-input-block layui-col-space5">
<select name="formType" lay-verify="required" lay-filter="cityCode">
<option value="1">事假</option>
<option value="2">病假</option>
<option value="3">工伤假</option>
<option value="4">婚嫁</option>
<option value="5">产假</option>
<option value="6">丧假</option>
</select>
</div>
</div>

<!--请假时长日期选择框-->
<div class="layui-form-item">
<label class="layui-form-label">请假时长</label>
<div class="layui-input-block layui-col-space5">
<input name="leaveRange" type="text" class="layui-input" id="daterange" placeholder=" - ">
<input id="startTime" name="startTime" type="hidden">
<input id="endTime" name="endTime" type="hidden">
</div>
</div>

<!--请假事由-->
<div class="layui-form-item">
<label class="layui-form-label">请假事由</label>
<div class="layui-input-block layui-col-space5">
<input name="reason" type="text" lay-verify="required|mobile" placeholder="" autocomplete="off"
class="layui-input">
</div>
</div>

<!--提交按钮-->
<div class="layui-form-item " style="text-align: center">
<button class="layui-btn" type="button" lay-submit lay-filter="sub">立即申请</button>
</div>
</form>
</div>

<script src="/resources/layui/layui.js"></script>
<script src="/resources/sweetalert2.all.min.js"></script>

<script>

var layDate = layui.laydate; //Layui日期选择框JS对象
var layForm = layui.form; //layui表单对象
var $ = layui.$; //jQuery对象
//日期时间范围
layDate.render({
elem: '#daterange'
, type: 'datetime'
, range: true
, format: 'yyyy年M月d日H时'
, done: function (value, start, end) {
//选择日期后出发的时间,设置startTime与endTime隐藏域
var startTime = start.year + "-" + start.month + "-" + start.date + "-" + start.hours;
var endTime = end.year + "-" + end.month + "-" + end.date + "-" + end.hours;
console.info("请假开始时间", startTime);
$("#startTime").val(startTime);
console.info("请假结束时间", endTime);
$("#endTime").val(endTime);
}
});

//表单提交时间
layForm.on('submit(sub)', function (data) {
console.info("向服务器提交的表单数据", data.field);
$.post("/leave/create", data.field, function (json) {
console.info(json);
if (json.code == "0") {
/*SweetAlert2确定对话框*/
swal({
type: 'success',
html: "<h2>请假单已提交,等待上级审批</h2>",
confirmButtonText: "确定"
}).then(function (result) {
window.location.href = "/forward/notice";
});
} else {
swal({
type: 'warning',
html: "<h2>" + json.message + "</h2>",
confirmButtonText: "确定"
});
}
}, "json");
return false;
});

</script>
</body>
</html>


控制台的输出:


D:\apache-tomcat-8.5.59\bin\catalina.bat run

[2021-04-22 11:32:29,801] Artifact new-imooc-oa:Web exploded: 正在等待服务器连接以启动工件部署…

Using CATALINA_BASE:   "C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b"

Using CATALINA_HOME:   "D:\apache-tomcat-8.5.59"

Using CATALINA_TMPDIR: "D:\apache-tomcat-8.5.59\temp"

Using JRE_HOME:        "C:\Program Files\Java\jdk1.8.0_261"

Using CLASSPATH:       "D:\apache-tomcat-8.5.59\bin\bootstrap.jar;D:\apache-tomcat-8.5.59\bin\tomcat-juli.jar"

Using CATALINA_OPTS:   ""

已连接到目标 VM, 地址: ''127.0.0.1:58214',传输: '套接字''

22-Apr-2021 11:32:30.674 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/8.5.59

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:        Oct 6 2020 16:57:18 UTC

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号(:     8.5.59.0

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称:      Windows 10

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:           10.0

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:              amd64

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:     C:\Program Files\Java\jdk1.8.0_261\jre

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本:    1.8.0_261-b12

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:        Oracle Corporation

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:     C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b

22-Apr-2021 11:32:30.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:     D:\apache-tomcat-8.5.59

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djava.util.logging.config.file=C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b\conf\logging.properties

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58214,suspend=y,server=n

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-javaagent:D:\ideaIU-2020.3.2\plugins\java\lib\rt\debugger-agent.jar

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dfile.encoding=UTF-8

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcom.sun.management.jmxremote=

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcom.sun.management.jmxremote.port=1099

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcom.sun.management.jmxremote.ssl=false

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcom.sun.management.jmxremote.password.file=C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b\jmxremote.password

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcom.sun.management.jmxremote.access.file=C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b\jmxremote.access

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djava.rmi.server.hostname=127.0.0.1

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djdk.tls.ephemeralDHKeySize=2048

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djava.protocol.handler.pkgs=org.apache.catalina.webresources

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dignore.endorsed.dirs=

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcatalina.base=C:\Users\han\AppData\Local\JetBrains\IntelliJIdea2020.3\tomcat\a217b7aa-f5a1-4ff3-9f91-7d2a6a4c266b

22-Apr-2021 11:32:30.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Dcatalina.home=D:\apache-tomcat-8.5.59

22-Apr-2021 11:32:30.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:-Djava.io.tmpdir=D:\apache-tomcat-8.5.59\temp

22-Apr-2021 11:32:30.680 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 使用APR版本[1.7.0]加载了基于APR的Apache Tomcat本机库[1.2.25]。

22-Apr-2021 11:32:30.680 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR功能:IPv6[true]、sendfile[true]、accept filters[false]、random[true]。

22-Apr-2021 11:32:30.680 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL配置:useAprConnector[false],useOpenSSL[true]

22-Apr-2021 11:32:30.683 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL成功初始化 [OpenSSL 1.1.1g  21 Apr 2020]

22-Apr-2021 11:32:30.811 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-80"]

22-Apr-2021 11:32:30.827 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

22-Apr-2021 11:32:30.840 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 460 ms

22-Apr-2021 11:32:30.884 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina]

22-Apr-2021 11:32:30.884 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.59

22-Apr-2021 11:32:30.905 信息 [main] org.apache.coyote.AbstractProtocol.start 开始协议处理句柄["http-nio-80"]

22-Apr-2021 11:32:30.917 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 77 ms

已连接到服务器

[2021-04-22 11:32:31,383] Artifact new-imooc-oa:Web exploded: 正在部署工件,请稍候…

22-Apr-2021 11:32:32.490 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。

[2021-04-22 11:32:32,762] Artifact new-imooc-oa:Web exploded: 工件已成功部署

[2021-04-22 11:32:32,762] Artifact new-imooc-oa:Web exploded: Deploy took 1,379 milliseconds

22-Apr-2021 11:32:40.907 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [D:\apache-tomcat-8.5.59\webapps\manager]

22-Apr-2021 11:32:40.957 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。

22-Apr-2021 11:32:40.965 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[D:\apache-tomcat-8.5.59\webapps\manager]的部署已在[58]毫秒内完成

[http-nio-80-exec-7] INFO  c.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited

[http-nio-80-exec-7] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.

[http-nio-80-exec-7] DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection

[http-nio-80-exec-7] DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-7] DEBUG usermapper.selectByUsername - ==>  Preparing: select * from sys_user where username =? 

[http-nio-80-exec-7] DEBUG usermapper.selectByUsername - ==> Parameters: t6(String)

[http-nio-80-exec-7] DEBUG usermapper.selectByUsername - <==      Total: 1

[http-nio-80-exec-7] DEBUG o.a.i.t.jdbc.JdbcTransaction - Resetting autocommit to true on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-7] DEBUG o.a.i.t.jdbc.JdbcTransaction - Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG c.i.oa.dao.EmployeeDao.selectById - ==>  Preparing: select * from adm_employee where employee_id = ? 

[http-nio-80-exec-8] DEBUG c.i.oa.dao.EmployeeDao.selectById - ==> Parameters: 3(Long)

[http-nio-80-exec-8] DEBUG c.i.oa.dao.EmployeeDao.selectById - <==      Total: 1

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Resetting autocommit to true on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG c.i.oa.dao.DepartmentDao.selectById - ==>  Preparing: select * from adm_department where department_id = ? 

[http-nio-80-exec-8] DEBUG c.i.oa.dao.DepartmentDao.selectById - ==> Parameters: 2(Long)

[http-nio-80-exec-8] DEBUG c.i.oa.dao.DepartmentDao.selectById - <==      Total: 1

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Resetting autocommit to true on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG rbacmappce.selectNodeByUserId - ==>  Preparing: select distinct n.* from sys_role_user ru, sys_role_node rn, sys_node n where ru.role_id = rn.role_id and user_id = ? and rn.node_id = n.node_id order by n.node_code 

[http-nio-80-exec-8] DEBUG rbacmappce.selectNodeByUserId - ==> Parameters: 3(Long)

[http-nio-80-exec-8] DEBUG rbacmappce.selectNodeByUserId - <==      Total: 3

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Resetting autocommit to true on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-8] DEBUG o.a.i.t.jdbc.JdbcTransaction - Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-4] DEBUG o.a.i.t.jdbc.JdbcTransaction - Opening JDBC Connection

[http-nio-80-exec-4] DEBUG o.a.i.t.jdbc.JdbcTransaction - Setting autocommit to false on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectById - ==>  Preparing: select * from adm_employee where employee_id = ? 

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectById - ==> Parameters: 3(Long)

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectById - <==      Total: 1

[http-nio-80-exec-4] DEBUG com.imooc.oa.dao.LeaveFormDao.insert - ==>  Preparing: INSERT INTO adm_leave_form(employee_id, form_type, start_time, end_time, reason, create_time, state) VALUES (?, ?, ?, ?, ?, ?, ?) 

[http-nio-80-exec-4] DEBUG com.imooc.oa.dao.LeaveFormDao.insert - ==> Parameters: 3(Long), 1(Integer), 2021-03-29 00:00:00.0(Timestamp), 2021-05-22 00:00:00.0(Timestamp), 测试5(String), 2021-04-22 11:33:17.216(Timestamp), processing(String)

[http-nio-80-exec-4] DEBUG com.imooc.oa.dao.LeaveFormDao.insert - <==    Updates: 1

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==>  Preparing: INSERT INTO adm_process_flow(form_id, operator_id, action, result, reason, create_time, audit_time, order_no, start, is_last) VALUES (?,?, ?,?, ?, ?, ?, ?, ?, ?) 

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==> Parameters: 22(Long), 3(Long), apply(String), null, null, 2021-04-22 11:33:17.23(Timestamp), null, 1(Integer), complete(String), 0(Integer)

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - <==    Updates: 1

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - ==>  Preparing: select * from adm_employee where level =7 and department_id=? 

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - ==> Parameters: 2(Long)

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - <==      Total: 1

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==>  Preparing: INSERT INTO adm_process_flow(form_id, operator_id, action, result, reason, create_time, audit_time, order_no, start, is_last) VALUES (?,?, ?,?, ?, ?, ?, ?, ?, ?) 

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==> Parameters: 22(Long), 2(Long), audit(String), null, null, 2021-04-22 11:33:17.265(Timestamp), null, 2(Integer), process(String), 0(Integer)

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - <==    Updates: 1

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - ==>  Preparing: select * from adm_employee where level =8 

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - ==> Parameters: 

[http-nio-80-exec-4] DEBUG c.i.oa.dao.EmployeeDao.selectLeader - <==      Total: 1

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==>  Preparing: INSERT INTO adm_process_flow(form_id, operator_id, action, result, reason, create_time, audit_time, order_no, start, is_last) VALUES (?,?, ?,?, ?, ?, ?, ?, ?, ?) 

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - ==> Parameters: 22(Long), 1(Long), audit(String), null, null, 2021-04-22 11:33:17.269(Timestamp), null, 3(Integer), ready(String), 1(Integer)

[http-nio-80-exec-4] DEBUG c.imooc.oa.dao.ProcessFlowDao.insert - <==    Updates: 1

[http-nio-80-exec-4] DEBUG o.a.i.t.jdbc.JdbcTransaction - Committing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-4] DEBUG o.a.i.t.jdbc.JdbcTransaction - Resetting autocommit to true on JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]

[http-nio-80-exec-4] DEBUG o.a.i.t.jdbc.JdbcTransaction - Closing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@c3cfd7a]




正在回答

登陆购买课程后可参与讨论,去登陆

2回答

同学你好,同学自己解决了问题,棒棒哒。

关于同学的问题,工作中找bug是常态,根据问题的大小,严重程度,查找bug的时长并不确定,有时候会花很长的时间去找问题。不过就同学的这个问题来说,不会花费很长时间。

祝学习愉快~

韩大 提问者 2021-04-22 13:22:05

找了两小时,找出问题了。

传错参数了,原来传的是reason,敲代码一定要仔细啊!

http://img1.sycdn.imooc.com//climg/6081079d087eaf5b07930497.jpg

  • 提问者 韩大 #1

    同时问老师一个问题,程序员找bug是常态吗,平常工作中找bug的时间多不多,一般找bug要多久。找bug长的时候又是多久。

    2021-04-22 13:24:28
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师