小编Sin*_*ssc的帖子

Springboot 无法提取 ResultSet

目前我在为我的 springboot 项目获取 mysql 数据时遇到问题:

出现意外错误(类型=内部服务器错误,状态=500)。无法提取结果集;SQL [不适用];嵌套异常是 org.hibernate.exception.SQLGrammarException: 无法提取 ResultSet

测试实体

@Entity
public class TestEntity implements Serializable {

    @Id
    private int id;
    private String p1;
    private String p2;
    private String p3;

    public TestEntity() {
    }

    public TestEntity(int id, String p1, String p2, String p3){
        this.id = id;
        this.p1 = p1;
        this.p2 = p2;
        this.p3 = p3;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getP1() {
        return p1;
    } …
Run Code Online (Sandbox Code Playgroud)

java jpa spring-boot

5
推荐指数
1
解决办法
4万
查看次数

标签 统计

java ×1

jpa ×1

spring-boot ×1