公司让搞springboot,遇到一个坑,记录下来:
@Insert({"insert into records values(#{fileName},#{type},#{location},#{dateTime},#{counts})"})
写法必须按照 这种写法,我之前写法 就是 不加 #{} 就会报这个错
最好用#{}
很简单的错误
公司让搞springboot,遇到一个坑,记录下来:
@Insert({"insert into records values(#{fileName},#{type},#{location},#{dateTime},#{counts})"})
写法必须按照 这种写法,我之前写法 就是 不加 #{} 就会报这个错
最好用#{}
很简单的错误