Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加Transactional Annotation 编译报错 #83

Open
augustinexx opened this issue Dec 13, 2020 · 1 comment
Open

增加Transactional Annotation 编译报错 #83

augustinexx opened this issue Dec 13, 2020 · 1 comment
Assignees

Comments

@augustinexx
Copy link

代码:

@DomainModel
private static class RelatedClass {

    @Transactional
    public void save() {

    }
}

错误信息:

java: 未报告的异常错误java.sql.SQLException; 必须对其进行捕获或声明以便抛出
@catchex catchex self-assigned this Dec 13, 2020
@catchex catchex added the bug Something isn't working label Dec 13, 2020
@catchex
Copy link
Member

catchex commented Dec 13, 2020

这是IntelliJ 插件的问题,你按下面的方式写:

@DomainModel
private static class RelatedClass {

    @Transactional
    public void save() throws SQLException {

    }
}

插件没有提示必须输出SQLException

@catchex catchex added plugin-bug and removed bug Something isn't working labels Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants