Jetty运行错误:java.lang.TypeNotPresentException: 未找到类型javax.annotation.meta.When

huangapple go评论64阅读模式
英文:

Jetty_run error java.lang.TypeNotPresentException: Type javax.annotation.meta.When not present

问题

项目在IntelliJ IDEA 2018.1.1中成功运行,使用的是JDK 1.8.0_221。当我们的新员工尝试在IntelliJ IDEA 2019.1.1中启动时,都遇到了以下错误:

org.springframework.beans.factory.BeanCreationException: 在com.configuration.PostgresqlConfiguration中定义的名为'postgresqlEntityManager'的bean创建时出错:调用init方法失败;嵌套异常是java.lang.TypeNotPresentException: 未找到类型javax.annotation.meta.When

您有任何修复此问题的想法吗?

英文:

Project successfuly runs in IntelliJ IDEA 2018.1.1 with JDK 1.8.0_221
When our new staff-mates tryed to start it in IntelliJ IDEA 2019.1.1 they both get en error:

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

Do you have any ideas how to fix it?

答案1

得分: 1

以下是翻译后的内容:

那有所帮助:

> <dependency>
> <groupId>com.google.code.findbugs</groupId>
> <artifactId>jsr305</artifactId>
> <version>3.0.2</version>
> </dependency>

英文:

That helped us:

> <dependency>
> <groupId>com.google.code.findbugs</groupId>
> <artifactId>jsr305</artifactId>
> <version>3.0.2</version>
> </dependency>

huangapple
  • 本文由 发表于 2020年4月10日 20:33:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/61140322.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定