Commit b42f56b8 authored by 李成龙's avatar 李成龙

project init

parent c4bab30b
package com.yeejoin.amos;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* <pre>
* 机场服务启动类
* </pre>
*
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@EnableSwagger2
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan({"org.typroject","com.yeejoin.amos"})
//@MapperScan(basePackages = {"com.yeejoin.amos.patrol.service.business.dao.mapper"})
public class AmosJcsApplication
{
private static final Logger logger = LoggerFactory.getLogger(AmosJcsApplication.class);
public static void main( String[] args )
{
ConfigurableApplicationContext context = SpringApplication.run(AmosJcsApplication.class, args);
Environment environment = context.getEnvironment();
logger.info("The requested service of " + environment.getProperty("spring.application.name")
+ " has already been started in "
+ environment.getProperty("spring.profiles.active") + ""
+ " environment,and service's url is 'http://localhost:"
+ environment.getProperty("server.port") + "/swagger-ui.html'");
}
}
package org.amos.boot.jcs.system;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
package com.yeejoin.amos;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* <pre>
* 机场服务启动类
* </pre>
*
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableConfigurationProperties
@EnableSwagger2
@ServletComponentScan
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan({"org.typroject","com.yeejoin.amos"})
//@MapperScan(basePackages = {"com.yeejoin.amos.patrol.service.business.dao.mapper"})
public class AmosTzsApplication
{
private static final Logger logger = LoggerFactory.getLogger(AmosTzsApplication.class);
public static void main( String[] args )
{
ConfigurableApplicationContext context = SpringApplication.run(AmosTzsApplication.class, args);
Environment environment = context.getEnvironment();
logger.info("The requested service of " + environment.getProperty("spring.application.name")
+ " has already been started in "
+ environment.getProperty("spring.profiles.active") + ""
+ " environment,and service's url is 'http://localhost:"
+ environment.getProperty("server.port") + "/swagger-ui.html'");
}
}
package org.amos.boot.tzs.system;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment