All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
{

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy