SpringBoot 3 原生镜像支持多租户

问题描述 投票:0回答:1

我正在构建一个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...
spring-boot multi-tenant graalvm graalvm-native-image
1个回答
0
投票

我可以在互联网上找到修复程序https://github.com/DigitalMediageek/aot-database-issue

要获得多租户的额外解决方案,您可以在此处进行更改:使用 Spring Boot 3 的本机映像出现“IllegalArgumentException:不是托管类型:MyEntity”问题

© www.soinside.com 2019 - 2024. All rights reserved.