问题
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