项目在 IntelliJ IDEA 2018.1.1 和 JDK 1.8.0_221 中成功运行 当我们的新同事尝试在 IntelliJ IDEA 2019.1.1 中启动它时,他们都遇到了错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postgresqlEntityManager' defined in com.configuration.PostgresqlConfiguration: Invocation of init method failed; nested exception is java.lang.TypeNotPresentException: Type javax.annotation.meta.When not present
您有解决办法吗?
最佳答案
这对我们有帮助:
<dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <version>3.0.2</version> </dependency>
关于java - Jetty_run错误java.lang.TypeNotPresentException : Type javax.annotation.meta.When不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61140322/