Two Modules exports the same package (Spring)

佐手、 提交于 2021-02-11 15:48:34

问题


I get this error when I try run my project. After many hours of search I found out why this happens, but I have no idea how to exclude one from exporting the package.

java.lang.module.ResolutionException: Modules spring.aop and aopalliance export package org.aopalliance.intercept to module spring.beans

It is my first time with Spring in general (I need JPA for CRUD I'm working now with Hibernate). I used Intellij IDEA's "Add Framework..." function in order to add Spring Data JPA. My Maven pom doesn't include any spring related things, I'm using module-info.java to load required things related to the Spring framework.

    requires spring.beans;
    requires spring.context;
    requires spring.tx;

来源:https://stackoverflow.com/questions/61547567/two-modules-exports-the-same-package-spring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!