DataPermissionTest.java 684 字节
import com.tianbo.analysis.NmmsAdminApplication;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.env.Environment;
import org.springframework.util.AntPathMatcher;

@SpringBootTest(classes = NmmsAdminApplication.class)
@Slf4j
public class DataPermissionTest {

    @Autowired
    private Environment environment;

    @Test
    public void dataPermission(){
        AntPathMatcher antPathMatcher = new AntPathMatcher();
        String serviceName = environment.getProperty("spring.application.name");
    }
}