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;
import cn.quant.spring.util.IdentitySequencer;
import cn.quant.spring.util.ServerUtils;
import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
......@@ -25,16 +26,12 @@ import java.time.format.DateTimeFormatter;
* <p><b>Enable Dubbo Annotation: </b><br/>
* <code>@org.springframework.context.annotation.ImportResource(locations = {"classpath:application-dubbo.xml"})</code></p>
*/
@EnableApolloConfig
@ComponentScan
@SpringBootApplication
@EnableAutoConfiguration(exclude = {
// DataSourceAutoConfiguration.class,
// DataSourceTransactionManagerAutoConfiguration.class,
// HibernateJpaAutoConfiguration.class
})
@EnableAutoConfiguration
@PropertySource(value = {"classpath:config/bootstrap.yml"
, "classpath:config/application.yml"
, "file:${spring.config.file}"})
, "classpath:config/application.yml"})
public class ServerApplication {
@Inject
......
app.id=baa-pay-notice
apollo.meta=http://apollo-dev.quantgroups.com
\ No newline at end of file
___ _ _ _
/ _ \(_) __ _ _ __ | |__ __ _ ___ / \ _ __ _ __
| | | | |/ _` | '_ \| '_ \ / _` |/ _ \ _____ / _ \ | '_ \| '_ \
| |_| | | (_| | | | | |_) | (_| | (_) |_____/ ___ \| |_) | |_) |
\__\_\_|\__,_|_| |_|_.__/ \__,_|\___/ /_/ \_\ .__/| .__/
|_| |_|
____ _____ _ _ _ _
| _ \ | __ \ | \ | | | | (_)
| |_) | __ _ __ _| |__) |_ _ _ _ ______| \| | ___ | |_ _ ___ ___
| _ < / _` |/ _` | ___/ _` | | | |______| . ` |/ _ \| __| |/ __/ _ \
| |_) | (_| | (_| | | | (_| | |_| | | |\ | (_) | |_| | (_| __/
|____/ \__,_|\__,_|_| \__,_|\__, | |_| \_|\___/ \__|_|\___\___|
__/ |
|___/
v${project.version}
\ No newline at end of file
......@@ -60,3 +60,7 @@ spring:
prefix: classpath:/view/
suffix: .jsp
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:
task:
initialize:
enable: false
\ No newline at end of file
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}
\ No newline at end of file
......@@ -7,9 +7,9 @@
</contextListener>
<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">
<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>
<maxFileSize>512MB</maxFileSize>
<totalSizeCap>10GB</totalSizeCap>
......
......@@ -27,7 +27,7 @@
</encoder>
</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="org.quartz.core" level="ERROR"/>
<logger name="org.quartz.simpl" level="ERROR"/>
......@@ -67,7 +67,7 @@
<logger name="org.hibernate.engine.QueryParameters" level="ERROR"/>
<logger name="org.hibernate.SQL" level="ERROR" />
<root level="WARN">
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
<appender-ref ref="ROLLINGFILE"/>
</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