You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
VIPS/src/main/java/go/kr/project/vmis/config/Globals.java

40 lines
1.2 KiB
Java

package go.kr.project.vmis.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
*
*
* <p> .
* Spring @Value application.yml .</p>
*/
@Component
public class Globals {
/**
* (: mariadb, oracle, mysql )
*
* <p>MyBatis Mapper XML .
* mapper-locations: classpath:mybatis/mapper/**\/*_${Globals.DbType}.xml</p>
*
* <p>:
* <ul>
* <li>DbType = "mariadb" user_mariadb.xml </li>
* <li>DbType = "oracle" user_oracle.xml </li>
* </ul>
* </p>
*/
public static String DbType;
/**
* application.yml Globals.DbType .
*
* @param dbType (: mariadb)
*/
@Value("${Globals.DbType:mariadb}")
public void setDbType(String dbType) {
Globals.DbType = dbType;
}
}