java常见错误
小白要学java
这个作者很懒,什么都没留下…
展开
-
Parameter index out of range (1 > number of parameters, which is 0).
Parameter index out of range (1 > number of parameters, which is 0).不墨迹直接说解决方案:刚开始去网上查找,看到了这篇文章https://blog.csdn.net/linjcai/article/details/81634304都仔细看了一遍发现并不是我的问题,一般出现了这种sql问题就单独吧语句拿出来在mysql里面运行下,将参数直接填入。发现我运行的是正常的。最后直接说结果,由于我这是拼装的sql语句,在执行sql原创 2022-03-28 11:23:43 · 611 阅读 · 0 评论 -
Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransacti
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException:原创 2021-06-17 11:50:48 · 10796 阅读 · 0 评论 -
java中的常见报错以及解决方法
**1、The method say() of type UserServiceImpl must override or implement a supertype method原因分析:由于在写UserServiceImpl()实现类的时候没有保存UserService接口持续更新中…**原创 2021-03-25 09:11:19 · 531 阅读 · 0 评论