英文:
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>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论