Commit 159a15b4 by zhanghj

V1.0.0--完善eureka和gateway的配置

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16860 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 706558a1
...@@ -36,6 +36,11 @@ ...@@ -36,6 +36,11 @@
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- EurekaClient -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<!-- springboot使用Shiro框架 --> <!-- springboot使用Shiro框架 -->
<dependency> <dependency>
<groupId>org.apache.shiro</groupId> <groupId>org.apache.shiro</groupId>
......
...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -20,6 +21,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -20,6 +21,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages={"com.glsx.manager.mapper"}) @MapperScan(basePackages={"com.glsx.manager.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6 ##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local spring.profiles.active=local
server.display-name=car-service-manager spring.application.name=car-service-manager
server.servlet.context-path=/carservice/manager server.servlet.context-path=/carservice/manager
server.port=8090 server.port=8090
#eurekaClient
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
#\u5fc3\u8df3
#eureka.instance.lease-renewal-interval-in-seconds=5
##\u65e5\u5fd7 test ##\u65e5\u5fd7 test
logging.level.com.glsx.manager=DEBUG logging.level.com.glsx.manager=DEBUG
logging.path=/data/java_log/jetty/car-service-manager logging.path=/data/java_log/jetty/car-service-manager
......
...@@ -10,13 +10,13 @@ ...@@ -10,13 +10,13 @@
<select id="get" parameterType="com.glsx.manager.pojo.Test" resultMap="baseUserResultMap"> <select id="get" parameterType="com.glsx.manager.pojo.Test" resultMap="baseUserResultMap">
select select
u.id, u.username u.id, u.username
from user u from sys_user u
where id = #{id} where id = #{id}
</select> </select>
<select id="list" resultMap="baseUserResultMap"> <select id="list" resultMap="baseUserResultMap">
select select
u.id, u.username u.id, u.username
from user u from sys_user u
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- EurekaClient -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<!-- hibernate.validator --> <!-- hibernate.validator -->
<dependency> <dependency>
<groupId>org.hibernate.validator</groupId> <groupId>org.hibernate.validator</groupId>
......
...@@ -6,19 +6,21 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -6,19 +6,21 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
* *
* @Title Application.java * @Title Application.java
* @Package com.glsx.usercenter * @Package com.glsx.ordercenter
* @Description TODO * @Description TODO
* @author zhanghj * @author zhanghj
* @date 2019年1月16日 下午2:25:01 * @date 2019年1月19日 下午3:31:02
* @version 1.0.0 * @version 1.0.0
*/ */
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages={"com.glsx.ordercenter.mapper"}) @MapperScan(basePackages={"com.glsx.ordercenter.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6 ##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local spring.profiles.active=local
server.display-name=car-service-ordercenter spring.application.name=car-service-ordercenter
server.servlet.context-path=/carservice/ordercenter server.servlet.context-path=/carservice/ordercenter
server.port=8092 server.port=8092
#eurekaClient
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
#\u5fc3\u8df3
#eureka.instance.lease-renewal-interval-in-seconds=5
##\u65e5\u5fd7 test ##\u65e5\u5fd7 test
logging.level.com.glsx.ordercenter=DEBUG logging.level.com.glsx.ordercenter=DEBUG
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- EurekaClient -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
*/ */
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages={"com.glsx.publicservice.mapper"}) @MapperScan(basePackages={"com.glsx.publicservice.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6 ##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local spring.profiles.active=local
server.display-name=car-service-publicservice spring.application.name=car-service-publicservice
server.servlet.context-path=/carservice/publicservice server.servlet.context-path=/carservice/publicservice
server.port=8093 server.port=8093
#eurekaClient
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
#\u5fc3\u8df3
#eureka.instance.lease-renewal-interval-in-seconds=5
##\u65e5\u5fd7 test ##\u65e5\u5fd7 test
logging.level.com.glsx.usercenter=DEBUG logging.level.com.glsx.usercenter=DEBUG
logging.path=/data/java_log/jetty/car-service-publicservice logging.path=/data/java_log/jetty/car-service-publicservice
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>car-service</artifactId>
<groupId>com.glsx</groupId>
<version>1.0.0</version>
</parent>
<groupId>com.glsx</groupId>
<artifactId>car-service-registry</artifactId>
<version>1.0.0</version>
<name>car-service-registry</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<!-- spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
</dependencies>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven
defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
\ No newline at end of file \ No newline at end of file
package com.glsx.registry;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
*
* @Title Application.java
* @Package com.glsx.registry
* @Description TODO
* @author zhanghj
* @date 2019年1月18日 下午2:35:39
* @version 1.0.0
*/
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
@EnableEurekaServer
public class Application extends SpringBootServletInitializer{
/**
* 本地启动 ,内嵌tomcat方式
* @param args
*/
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
/**
* 打包项目,单独部署tomcat
*/
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(Application.class);
}
}
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local
server.display-name=car-service-registry
server.servlet.context-path=/carservice/registry
#\u5e94\u7528\u7aef\u53e3\u53f7
server.port=8761
#eureka
eureka.instance.hostname=localhost
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
#eureka.client.instanceInfoReplicationIntervalSeconds=10
eureka.client.defaultZone=http://${eureka.instance.hostname}:${server.port}/eureka/
#\u5fc3\u8df3\u673a\u5236
#eureka.instance.lease-expiration-duration-in-seconds=90
#Eureka\u65e5\u5fd7
logging.level.com.netflix=DEBUG
logging.path=/data/java_log/jetty/car-service-registry
logging.config=classpath:logback-spring.xml
package com.glsx.registry;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}
...@@ -16,53 +16,37 @@ ...@@ -16,53 +16,37 @@
<url>http://www.example.com</url> <url>http://www.example.com</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <!-- spring-boot-devtools -->
<groupId>junit</groupId> <dependency>
<artifactId>junit</artifactId> <groupId>org.springframework.boot</groupId>
<version>4.11</version> <artifactId>spring-boot-devtools</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> <!-- EurekaClient -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
</dependencies>
<build> <build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <pluginManagement><!-- lock down plugins versions to avoid using Maven
<plugins> defaults (may be moved to parent pom) -->
<plugin> <plugins>
<artifactId>maven-clean-plugin</artifactId> <plugin>
<version>3.0.0</version> <groupId>org.springframework.boot</groupId>
</plugin> <artifactId>spring-boot-maven-plugin</artifactId>
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <configuration>
<plugin> <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
<artifactId>maven-resources-plugin</artifactId> </configuration>
<version>3.0.2</version> </plugin>
</plugin> </plugins>
<plugin> </pluginManagement>
<artifactId>maven-compiler-plugin</artifactId> </build>
<version>3.7.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project> </project>
...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
*/ */
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages={"com.glsx.task.mapper"}) @MapperScan(basePackages={"com.glsx.task.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local
spring.application.name=car-service-task
server.servlet.context-path=/carservice/task
server.port=8093
#eurekaClient
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
#\u5fc3\u8df3
#eureka.instance.lease-renewal-interval-in-seconds=5
##\u65e5\u5fd7 test
logging.level.com.glsx.usercenter=DEBUG
logging.path=/data/java_log/jetty/car-service-task
logging.config=classpath:logback-spring.xml
spring.datasource.name=dev
spring.datasource.url=jdbc:mysql://192.168.0.39:3306/glsx_car_service
spring.datasource.username=root
spring.datasource.password=123456
#spring.datasource.connectionProperties="config.decrypt=true;config.decrypt.key=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANj300lzSmW05DuzVoluFG6oza+WlEbv2aYCQA2+pkf0mE4p19UAcxfY/BweOyJ6TBNoY5XebPqoiav5lsKVD6sCAwEAAQ=="
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.filters=stat
spring.datasource.maxActive=20
spring.datasource.initialSize=5
spring.datasource.maxWait=60000
spring.datasource.minIdle=5
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=select 'x'
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.poolPreparedStatements=true
spring.datasource.maxOpenPreparedStatements=50
#mybatis\u96c6\u6210\u914d\u7f6e
mybatis.mapperLocations=classpath*:mapper/*.xml
mybatis.typeAliasesPackage=com.glsx.usercenter.pojo
#pagehelper
pagehelper.helperDialect=mysql
pagehelper.supportMethodsArguments=true
pagehelper.params=count=countSql
spring.jmx.enabled=false
# MULTIPART (MultipartProperties)
# Whether to enable support of multipart uploads.
spring.servlet.multipart.enabled=true
# Max file size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.
spring.servlet.multipart.max-file-size=20MB
# Max request size. Values can use the suffixes "MB" or "KB" to indicate megabytes or kilobytes, respectively.
spring.servlet.multipart.max-request-size=20MB
# REDIS (RedisProperties)
# Database index used by the connection factory.
spring.redis.database=0
# Redis server host.
spring.redis.host=192.168.0.39
# Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
spring.redis.lettuce.pool.max-active=32
# Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
spring.redis.lettuce.pool.max-idle=32
# Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
spring.redis.lettuce.pool.max-wait=-1ms
# Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
spring.redis.lettuce.pool.min-idle=0
# Shutdown timeout.
spring.redis.lettuce.shutdown-timeout=100ms
#Login password of the redis server.
spring.redis.password=hhxredis
# Redis server port.
spring.redis.port=6379
#Whether to enable SSL support.
spring.redis.ssl=false
# Connection timeout.
spring.redis.timeout=6000ms
#\u77ed\u4fe1
#sms.url=http://192.168.3.206:8118/router111
#sms.url=http://qcdidicb.glsx.net:7060/router
sms.source=frms_sms_assign
##fastdfs
fdfs.soTimeout=1500
fdfs.connectTimeout=600
fdfs.thumbImage.width=150
fdfs.thumbImage.height=150
fdfs.trackerList=192.168.0.63:22122
#fdfs_tracker_nginx_port=80
fdfs_tracker_nginx_domain=http://192.168.0.63
##freemarker
spring.freemarker.cache=false
spring.freemarker.charset=UTF-8
spring.freemarker.check-template-location=true
spring.freemarker.content-type=text/html
spring.freemarker.enabled=true
spring.freemarker.suffix=.ftl
spring.freemarker.template-loader-path=classpath:/templates
#\u9759\u6001\u8d44\u6e90\u8def\u5f84
spring.mvc.static-path-pattern=/**
...@@ -35,6 +35,11 @@ ...@@ -35,6 +35,11 @@
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- EurekaClient -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<!-- hibernate.validator --> <!-- hibernate.validator -->
<dependency> <dependency>
<groupId>org.hibernate.validator</groupId> <groupId>org.hibernate.validator</groupId>
......
...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; ...@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -19,6 +20,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
*/ */
@SpringBootApplication @SpringBootApplication
@ServletComponentScan @ServletComponentScan
@EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@MapperScan(basePackages={"com.glsx.usercenter.mapper"}) @MapperScan(basePackages={"com.glsx.usercenter.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6 ##\u5f00\u53d1\u4e2d\u9700\u8981\u8bfb\u53d6\u7684\u914d\u7f6e\u6587\u4ef6
spring.profiles.active=local spring.profiles.active=local
server.display-name=car-service-usercenter spring.application.name=car-service-usercenter
server.servlet.context-path=/carservice/usercenter server.servlet.context-path=/carservice/usercenter
server.port=8091 server.port=8091
#eurekaClient
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka/
#\u5fc3\u8df3
#eureka.instance.lease-renewal-interval-in-seconds=5
##\u65e5\u5fd7 test ##\u65e5\u5fd7 test
logging.level.com.glsx.usercenter=DEBUG logging.level.com.glsx.usercenter=DEBUG
logging.path=/data/java_log/jetty/car-service-usercenter logging.path=/data/java_log/jetty/car-service-usercenter
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
<module>car-service-common</module> <module>car-service-common</module>
<module>car-service-generator</module> <module>car-service-generator</module>
<module>car-service-usercenter</module> <module>car-service-usercenter</module>
<module>car-service-ordercenter</module> <module>car-service-ordercenter</module>
<module>car-service-publicservice</module> <module>car-service-publicservice</module>
<module>car-service-task</module> <module>car-service-task</module>
</modules> </modules>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<version>${druid.version}</version> <version>${druid.version}</version>
</dependency> </dependency>
<!-- 日志工具? --> <!-- 日志工具-->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>slf4j-api</artifactId>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!