项目启动

This commit is contained in:
zeek 2020-03-16 23:36:25 +08:00
parent bd7b3b2902
commit e52c62cf24
8 changed files with 66 additions and 7 deletions

1
.gitignore vendored
View File

@ -119,3 +119,4 @@ fabric.properties
.idea .idea
target target
*.iml *.iml
logs

1
bin/restart.sh Executable file
View File

@ -0,0 +1 @@
#!/usr/bin/env bash

1
bin/start.sh Executable file
View File

@ -0,0 +1 @@
#!/usr/bin/env bash

1
bin/stop.sh Executable file
View File

@ -0,0 +1 @@
#!/usr/bin/env bash

24
pom.xml
View File

@ -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>

View File

@ -1,7 +0,0 @@
/**
* @apiNote
* @version 1.0
* @author zeekling [lingzhaohui@zeekling.cn]
* @since 2020-03-15
*/
package com.zeekling.solo.weixin;

View File

@ -0,0 +1,2 @@
server.port=9090
logging.file=/home/zeek/project/solo-weixin/logs/weixin.log

View 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"/>-->
<!--&lt;!&ndash;logback.LogbackDemo类的全路径 &ndash;&gt;-->
<!--<logger name="com.dudu.controller.LearnController" level="WARN" additivity="false">-->
<!--<appender-ref ref="console"/>-->
<!--</logger>-->
</configuration>