我正在构建一个Java spring boot微服务,它配置有单数据库多模式策略。现在我正在使用 graalvm 使用 pom.xml 中的本机配置文件创建本机映像。
有人可以确认创建本机映像时是否支持多租户吗?
我得到了
UnsatisfiedDependencyException: error creating bean with name 'myAppServiceImpl' : Unsatisfied dependency expressed through field 'personRespository': Error creating bean name 'personRespository': Not a managed type: c.e.services.myappservice.identity.PersonEntity
Caused by: BeanCreationException: Error creating bean with name 'personRespository': Not a managed type...
我可以在互联网上找到修复程序https://github.com/DigitalMediageek/aot-database-issue
要获得多租户的额外解决方案,您可以在此处进行更改:使用 Spring Boot 3 的本机映像出现“IllegalArgumentException:不是托管类型:MyEntity”问题