@@ -0,0 +1,2330 @@
+/*%0A * Copyright 2015 Sergej Meister%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *  http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *  Unless required by applicable law or agreed to in writing, software%0A *  distributed under the License is distributed on an %22AS IS%22 BASIS,%0A *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A *  See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.intellijob;%0A%0A%0Aimport org.apache.log4j.Logger;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.context.ConfigurableApplicationContext;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configuration;%0A%0A/**%0A * This is a config to run different admin services.%0A */%0A@Configuration%0A@EnableAutoConfiguration%0A@ComponentScan%0Apublic class AdminConfig %7B%0A%0A    private static final Logger LOG = Logger.getLogger(AdminConfig.class);%0A%0A    private static ConfigurableApplicationContext context;%0A%0A//    @Autowired%0A//    private CleanUpDuplicatedLinkService cleanUpDuplicatedLinkService;%0A%0A%0A    /**%0A     * Application Start.%0A     *%0A     * @param args application start parameters.%0A     *%0A     * @throws Exception any exceptions.%0A     */%0A    public static void main(final String%5B%5D args) throws Exception %7B%0A        SpringApplication application = new SpringApplication(AdminConfig.class);%0A        context = application.run(args);%0A        LOG.info(%22%5Cn %3C========================================================================= %5Cn%22%0A                + %22                     Admin Tools for IntelliJob started successful ! %5Cn%22%0A                + %22=========================================================================%3E %5Cn%22);%0A%0A//        CleanUpDuplicatedLinkService cleanUpDuplicatedLinkService = context.getBean(CleanUpDuplicatedLinkService.class);%0A//        cleanUpDuplicatedLinkService.run();%0A    %7D%0A%0A    /**%0A     * Returns application context.%0A     *%0A     * @return the context%0A     */%0A    public static ConfigurableApplicationContext getContext() %7B%0A        return context;%0A    %7D%0A%7D%0A

add AddminConfig