项目启动
This commit is contained in:
parent
bd7b3b2902
commit
e52c62cf24
1
.gitignore
vendored
1
.gitignore
vendored
@ -119,3 +119,4 @@ fabric.properties
|
|||||||
.idea
|
.idea
|
||||||
target
|
target
|
||||||
*.iml
|
*.iml
|
||||||
|
logs
|
1
bin/restart.sh
Executable file
1
bin/restart.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
#!/usr/bin/env bash
|
1
bin/start.sh
Executable file
1
bin/start.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
#!/usr/bin/env bash
|
1
bin/stop.sh
Executable file
1
bin/stop.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
#!/usr/bin/env bash
|
24
pom.xml
24
pom.xml
@ -36,12 +36,36 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
<version>${spring-boot.version}</version>
|
<version>${spring-boot.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
<version>${spring-boot.version}</version>
|
<version>${spring-boot.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-logging</artifactId>
|
||||||
|
<version>${spring-boot.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* @apiNote
|
|
||||||
* @version 1.0
|
|
||||||
* @author zeekling [lingzhaohui@zeekling.cn]
|
|
||||||
* @since 2020-03-15
|
|
||||||
*/
|
|
||||||
package com.zeekling.solo.weixin;
|
|
@ -0,0 +1,2 @@
|
|||||||
|
server.port=9090
|
||||||
|
logging.file=/home/zeek/project/solo-weixin/logs/weixin.log
|
36
src/main/resources/logback.xml
Normal file
36
src/main/resources/logback.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||||
|
<contextName>logback</contextName>
|
||||||
|
<property name="log.path" value="${logging.file}" />
|
||||||
|
<!--输出到控制台-->
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||||
|
<level>ERROR</level>
|
||||||
|
</filter>-->
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!--输出到文件-->
|
||||||
|
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<fileNamePattern>${log.path}/logback.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="console" />
|
||||||
|
<appender-ref ref="file" />
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<!-- logback为java中的包 -->
|
||||||
|
<!--<logger name="com.dudu.controller"/>-->
|
||||||
|
<!--<!–logback.LogbackDemo:类的全路径 –>-->
|
||||||
|
<!--<logger name="com.dudu.controller.LearnController" level="WARN" additivity="false">-->
|
||||||
|
<!--<appender-ref ref="console"/>-->
|
||||||
|
<!--</logger>-->
|
||||||
|
</configuration>
|
Loading…
Reference in New Issue
Block a user