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
我是个双鱼座的小王子,沉浸在自己的代码世界里,去探索这未知的世界,希望遇到更多的小伙伴一起前行!