io.github.hpsocket.soa.starter.data.mysql.config.SoaMapperScanConfig Maven / Gradle / Ivy
package io.github.hpsocket.soa.starter.data.mysql.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
/** HP-SOA Mybatis 默认 {@linkplain MapperScan#basePackages()} 配置 */
@AutoConfiguration
@MapperScan("${hp.soa.data.mysql.mapper-scan.base-package}")
@ConditionalOnExpression("'${hp.soa.data.mysql.mapper-scan.base-package:}' != ''")
@ConditionalOnProperty(name = "spring.datasource.dynamic.enabled", matchIfMissing = true)
public class SoaMapperScanConfig
{
}