修复DramaApplication添加@ComponentScan(basePackages = {"org.dromara"})报错的问题

Parameter 0 of method tenantLineInnerInterceptor in org.dromara.common.tenant.config.TenantConfig$MybatisPlusConfiguration required a bean of type 'org.dromara.common.tenant.properties.TenantProperties' that could not be found.
This commit is contained in:
cikenerd 2025-07-17 23:15:42 +08:00
parent b0b4e573f6
commit b5111e6733

View File

@ -2,6 +2,7 @@ package org.dromara.common.tenant.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;
@ -11,6 +12,7 @@ import java.util.List;
* @author Lion Li
*/
@Data
@Component
@ConfigurationProperties(prefix = "tenant")
public class TenantProperties {