错误信息:
严重: Servlet.service() for servlet [default] in context with path [/eigpay-debt-frontweb] threw exception [Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException:
; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'eigpay_framework.task_executor' doesn't exist] with root cause
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'eigpay_framework.task_executor' doesn't exist
mapper.xml文件:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
id, task_id, executor, status, assign_time, received_total, confirmed_total
select
from
task_executor
where id = #{id,jdbcType=BIGINT}
delete
from
task_executor
where id = #{id,jdbcType=BIGINT}
insert into task_executor (id, task_id, executor,
status, assign_time, received_total,
confirmed_total)
values (#{id,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, #{executor,jdbcType=BIGINT},
#{status,jdbcType=INTEGER}, #{assignTime,jdbcType=TIMESTAMP}, #{receivedTotal,jdbcType=DECIMAL},
#{confirmedTotal,jdbcType=DECIMAL})
insert into task_executor
id,
task_id,
executor,
status,
assign_time,
received_total,
confirmed_total,
#{id,jdbcType=BIGINT},
#{taskId,jdbcType=BIGINT},
#{executor,jdbcType=BIGINT},
#{status,jdbcType=INTEGER},
#{assignTime,jdbcType=TIMESTAMP},
#{receivedTotal,jdbcType=DECIMAL},
#{confirmedTotal,jdbcType=DECIMAL},
update task_executor
task_id = #{taskId,jdbcType=BIGINT},
executor = #{executor,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER},
assign_time = #{assignTime,jdbcType=TIMESTAMP},
received_total = #{receivedTotal,jdbcType=DECIMAL},
confirmed_total = #{confirmedTotal,jdbcType=DECIMAL},
where id = #{id,jdbcType=BIGINT}
update task_executor
set task_id = #{taskId,jdbcType=BIGINT},
executor = #{executor,jdbcType=BIGINT},
status = #{status,jdbcType=INTEGER},
assign_time = #{assignTime,jdbcType=TIMESTAMP},
received_total = #{receivedTotal,jdbcType=DECIMAL},
confirmed_total = #{confirmedTotal,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
测试一下,数据库能不能正常连接
可能是mapper文件里的表名没写正确吧?