SpringBoot SpringData注解查询:JDBC style parameters (?) are not supported for JPA queries

这个是我的查询语句  可以看到在16行有个错误提示 这个在低版本的SpringBoot中是没有的

执行单元测试 查询演示的时候报了错误  

 解决办法 在HQL的后面加入index(低版本SpringBoot不加是可以运行的)

 

如果又出现了 

Invalid parameter index! You seem to have declared too little query method parameters!

则表示 你的 下标放小了  注意 1开始 不是 0 

转载至:https://blog.csdn.net/hello_word2/article/details/102747430

posted @ 2020-11-10 15:56  星空物语之韵  阅读(534)  评论(0编辑  收藏  举报