// Path: jbase-spring/src/main/java/com/jayqqaa12/jbase/spring/util/ProfileHelper.java
// @Component
// public class ProfileHelper implements ApplicationContextAware {
// 
//     private static ApplicationContext context = null;
// 
//     @Override
//     public void setApplicationContext(ApplicationContext applicationContext)
//             throws BeansException {
//         this.context = applicationContext;
//     }
// 
//     // 获取当前环境参数  exp: dev,prod,test
//     public static String getActiveProfile() {
//         String []profiles = context.getEnvironment().getActiveProfiles();
//         if(ArrayUtils.isEmpty(profiles)){
//             return profiles[0];
//         }
//         return "";
//     }
// }


import com.jayqqaa12.jbase.spring.util.ProfileHelper;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.lang.annotation.*;
package com.jayqqaa12.jbase.spring.boot;




@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({
// Path: jbase-spring/src/main/java/com/jayqqaa12/jbase/spring/util/ProfileHelper.java
// @Component
// public class ProfileHelper implements ApplicationContextAware {
// 
//     private static ApplicationContext context = null;
// 
//     @Override
//     public void setApplicationContext(ApplicationContext applicationContext)
//             throws BeansException {
//         this.context = applicationContext;
//     }
// 
//     // 获取当前环境参数  exp: dev,prod,test
//     public static String getActiveProfile() {
//         String []profiles = context.getEnvironment().getActiveProfiles();
//         if(ArrayUtils.isEmpty(profiles)){
//             return profiles[0];
//         }
//         return "";
//     }
// }


// Path: jbase-spring/src/main/java/com/jayqqaa12/jbase/spring/boot/EnableBasic.java
import com.jayqqaa12.jbase.spring.util.ProfileHelper;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import java.lang.annotation.*;

package com.jayqqaa12.jbase.spring.boot;




@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({
        ProfileHelper.class ,