Commit 76bfdfef authored by Administrator's avatar Administrator

创建项目

parent 91a2b929
#VM启动项
-Denv=DEV -Didc=k8s -Dserver.port=8090 -DNAMESPACE=pay -Dlogging.config=classpath:logback-dev.xml
\ No newline at end of file
...@@ -2,6 +2,7 @@ package cn.quant.baa.pay; ...@@ -2,6 +2,7 @@ package cn.quant.baa.pay;
import cn.quant.spring.util.IdentitySequencer; import cn.quant.spring.util.IdentitySequencer;
import cn.quant.spring.util.ServerUtils; import cn.quant.spring.util.ServerUtils;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
...@@ -25,16 +26,12 @@ import java.time.format.DateTimeFormatter; ...@@ -25,16 +26,12 @@ import java.time.format.DateTimeFormatter;
* <p><b>Enable Dubbo Annotation: </b><br/> * <p><b>Enable Dubbo Annotation: </b><br/>
* <code>@org.springframework.context.annotation.ImportResource(locations = {"classpath:application-dubbo.xml"})</code></p> * <code>@org.springframework.context.annotation.ImportResource(locations = {"classpath:application-dubbo.xml"})</code></p>
*/ */
@EnableApolloConfig
@ComponentScan @ComponentScan
@SpringBootApplication @SpringBootApplication
@EnableAutoConfiguration(exclude = { @EnableAutoConfiguration
// DataSourceAutoConfiguration.class,
// DataSourceTransactionManagerAutoConfiguration.class,
// HibernateJpaAutoConfiguration.class
})
@PropertySource(value = {"classpath:config/bootstrap.yml" @PropertySource(value = {"classpath:config/bootstrap.yml"
, "classpath:config/application.yml" , "classpath:config/application.yml"})
, "file:${spring.config.file}"})
public class ServerApplication { public class ServerApplication {
@Inject @Inject
......
app.id=baa-pay-notice
apollo.meta=http://apollo-dev.quantgroups.com
\ No newline at end of file
___ _ _ _ ____ _____ _ _ _ _
/ _ \(_) __ _ _ __ | |__ __ _ ___ / \ _ __ _ __ | _ \ | __ \ | \ | | | | (_)
| | | | |/ _` | '_ \| '_ \ / _` |/ _ \ _____ / _ \ | '_ \| '_ \ | |_) | __ _ __ _| |__) |_ _ _ _ ______| \| | ___ | |_ _ ___ ___
| |_| | | (_| | | | | |_) | (_| | (_) |_____/ ___ \| |_) | |_) | | _ < / _` |/ _` | ___/ _` | | | |______| . ` |/ _ \| __| |/ __/ _ \
\__\_\_|\__,_|_| |_|_.__/ \__,_|\___/ /_/ \_\ .__/| .__/ | |_) | (_| | (_| | | | (_| | |_| | | |\ | (_) | |_| | (_| __/
|_| |_| |____/ \__,_|\__,_|_| \__,_|\__, | |_| \_|\___/ \__|_|\___\___|
__/ |
|___/
v${project.version} v${project.version}
\ No newline at end of file
...@@ -60,3 +60,7 @@ spring: ...@@ -60,3 +60,7 @@ spring:
prefix: classpath:/view/ prefix: classpath:/view/
suffix: .jsp suffix: .jsp
static-path-pattern: /** static-path-pattern: /**
messages:
basename: messages, i18n/messages, cn.quant.spring/messages
fallback-to-system-locale: true
encoding: UTF-8
\ No newline at end of file
...@@ -22,5 +22,3 @@ spring: ...@@ -22,5 +22,3 @@ spring:
task: task:
initialize: initialize:
enable: false enable: false
messages:
basename: i18n/messages
\ No newline at end of file
#VM启动项
-Denv=DEV -Didc=k8s -Dserver.port=8090 -DNAMESPACE=pay -Dlogging.config=classpath:logback-dev.xml
\ No newline at end of file
___ _ _ _ ____ _____ _____
/ _ \(_) __ _ _ __ | |__ __ _ ___ / \ _ __ _ __ | _ \ | __ \ / ____|
| | | | |/ _` | '_ \| '_ \ / _` |/ _ \ _____ / _ \ | '_ \| '_ \ | |_) | __ _ __ _| |__) |_ _ _ _ _____| (___ ___ _ ____ _____ _ __
| |_| | | (_| | | | | |_) | (_| | (_) |_____/ ___ \| |_) | |_) | | _ < / _` |/ _` | ___/ _` | | | |______\___ \ / _ \ '__\ \ / / _ \ '__|
\__\_\_|\__,_|_| |_|_.__/ \__,_|\___/ /_/ \_\ .__/| .__/ | |_) | (_| | (_| | | | (_| | |_| | ____) | __/ | \ V / __/ |
|_| |_| |____/ \__,_|\__,_|_| \__,_|\__, | |_____/ \___|_| \_/ \___|_|
__/ |
|___/
v${project.version} v${project.version}
\ No newline at end of file
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
</contextListener> </contextListener>
<appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="ROLLINGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logging.dir}/${project.name}/${project.name}.log</file> <file>/home/quant_group/logs/${project.name}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${logging.dir}/${project.name}/${project.name}.%d{yyyy-MM-dd}-%i.log</fileNamePattern> <fileNamePattern>/home/quant_group/logs/${project.name}.%d{yyyy-MM-dd}-%i.log</fileNamePattern>
<maxHistory>90</maxHistory> <maxHistory>90</maxHistory>
<maxFileSize>512MB</maxFileSize> <maxFileSize>512MB</maxFileSize>
<totalSizeCap>10GB</totalSizeCap> <totalSizeCap>10GB</totalSizeCap>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</encoder> </encoder>
</appender> </appender>
<logger name="cn.quant.baa.pay" level="WARN"/> <logger name="cn.quant.baa.pay" level="DEBUG"/>
<logger name="javax.activation" level="ERROR"/> <logger name="javax.activation" level="ERROR"/>
<logger name="org.quartz.core" level="ERROR"/> <logger name="org.quartz.core" level="ERROR"/>
<logger name="org.quartz.simpl" level="ERROR"/> <logger name="org.quartz.simpl" level="ERROR"/>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<logger name="org.hibernate.engine.QueryParameters" level="ERROR"/> <logger name="org.hibernate.engine.QueryParameters" level="ERROR"/>
<logger name="org.hibernate.SQL" level="ERROR" /> <logger name="org.hibernate.SQL" level="ERROR" />
<root level="WARN"> <root level="DEBUG">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
<appender-ref ref="ROLLINGFILE"/> <appender-ref ref="ROLLINGFILE"/>
</root> </root>
......
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