java - Spring Framework DefaultResourceLoader behavior - Stack Overflow

I am using ByteBuddy to generate classes from the JPA Persistence Unit and Spring Data,an older versio

I am using ByteBuddy to generate classes from the JPA Persistence Unit and Spring Data, an older version already works with the persistence unit, spring data jpa and spring webmvc and, now my objective it is to generalize in a more anized application using new Spring 6.0. The component serializes the classes (unil now) in a VFS (apache vfs) since was understood that the AutoConfiguration plays an important role in spring data, the old component was registering the BeanDefinition for the repository manually and in the new version of SpringBoot/SpringData isn`t working quite well the manual BeanDefinitiion in the ApplicationContext.

Executing an unit test to verify the problem with AutoConfiguration was noticed that getResources (with wildcards) and getResource(without wildcard) have distinct behavior, getResources does not locate the DynamicTypes created by ByteBuddy while getResource has successfully located the DynamicType, is it an excected behavior (which means the methods does not behave the same with difference that one just pick one resource from the classpath while the other retrieves an array from the ClassPath).

I provide a screenshot from the debugger to assure that "getResource" method returns successfully the class. This behavior impacts the @EnablbleJpaRepositories annotation with basePackages filled.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745094390a4610887.html

相关推荐

  • java - Spring Framework DefaultResourceLoader behavior - Stack Overflow

    I am using ByteBuddy to generate classes from the JPA Persistence Unit and Spring Data,an older versio

    18小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信