yangys
2024-05-18 040976de6f9934b99f30268a28e2ecf42260e217
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.qianwen.core.tenant.launcher;
 
import java.util.Properties;
import com.qianwen.core.launch.service.LauncherService;
import com.qianwen.core.launch.utils.PropsUtil;
import org.springframework.boot.builder.SpringApplicationBuilder;
 
 
public class TenantLauncherServiceImpl implements LauncherService {
    public void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev) {
        Properties props = System.getProperties();
        PropsUtil.setProperty(props, "spring.datasource.dynamic.enabled", "false");
    }
 
    public int getOrder() {
        return Integer.MAX_VALUE;
    }
}