feat: 更新管理系统模块
This commit is contained in:
@@ -47,12 +47,12 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- <build>-->
|
<build>
|
||||||
<!-- <plugins>-->
|
<plugins>
|
||||||
<!-- <plugin>-->
|
<plugin>
|
||||||
<!-- <groupId>org.springframework.boot</groupId>-->
|
<groupId>org.springframework.boot</groupId>
|
||||||
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
<!-- </plugin>-->
|
</plugin>
|
||||||
<!-- </plugins>-->
|
</plugins>
|
||||||
<!-- </build>-->
|
</build>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.cxx.admin.controller;
|
package com.cxx.admin.controller;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.annotation.SaIgnore;
|
||||||
import com.cxx.common.dto.user.SessionDto;
|
import com.cxx.common.dto.user.SessionDto;
|
||||||
import com.cxx.admin.service.SessionService;
|
import com.cxx.admin.service.SessionService;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
@@ -16,6 +17,7 @@ public class SessionController {
|
|||||||
|
|
||||||
@Operation(summary = "创建会话")
|
@Operation(summary = "创建会话")
|
||||||
@PostMapping("")
|
@PostMapping("")
|
||||||
|
@SaIgnore
|
||||||
public SessionDto createSession(@RequestParam String name,
|
public SessionDto createSession(@RequestParam String name,
|
||||||
@RequestParam String password) {
|
@RequestParam String password) {
|
||||||
return sessionService.create(name, password);
|
return sessionService.create(name, password);
|
||||||
|
|||||||
@@ -3,12 +3,7 @@ spring:
|
|||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/sweet_hut?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/sweet_hut?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: estun@medical
|
||||||
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
root: info
|
|
||||||
config:
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
path: D:\\temp\\
|
path: D:\\temp\\
|
||||||
|
|||||||
@@ -5,12 +5,5 @@ spring:
|
|||||||
username: docker
|
username: docker
|
||||||
password: 19940822Cxx
|
password: 19940822Cxx
|
||||||
|
|
||||||
logging:
|
|
||||||
fluentd:
|
|
||||||
host: fluent-bit
|
|
||||||
port: 24224
|
|
||||||
level:
|
|
||||||
root: info
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
path: /upload-file/
|
path: /upload-file/
|
||||||
@@ -5,12 +5,6 @@ spring:
|
|||||||
username: cxx
|
username: cxx
|
||||||
password: 19940822Cxx@1213
|
password: 19940822Cxx@1213
|
||||||
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
root: info
|
|
||||||
config:
|
|
||||||
classpath:logback-spring-drop.xml
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
path: /root/docker/upload-file/
|
path: /root/docker/upload-file/
|
||||||
log-path: /root/service/logs/
|
log-path: /root/service/logs/
|
||||||
@@ -33,4 +33,4 @@ influxdb:
|
|||||||
bucket: server_metrics
|
bucket: server_metrics
|
||||||
|
|
||||||
web-starter:
|
web-starter:
|
||||||
base-package: com.cxx.service
|
base-package: com.cxx.admin
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<configuration scan="true" scanPeriod="10 seconds">
|
|
||||||
|
|
||||||
<contextName>logback</contextName>
|
|
||||||
|
|
||||||
<property name="log.path" value="logs/adminService"/>
|
|
||||||
|
|
||||||
<!--控制台日志格式:彩色日志-->
|
|
||||||
<!-- magenta:洋红 -->
|
|
||||||
<!-- boldMagenta:粗红-->
|
|
||||||
<!-- cyan:青色 -->
|
|
||||||
<!-- white:白色 -->
|
|
||||||
<!-- magenta:洋红 -->
|
|
||||||
<property name="CONSOLE_LOG_PATTERN"
|
|
||||||
value="%yellow(%date{yyyy-MM-dd HH:mm:ss}) |%highlight(%-5level) |%blue(%thread) |%blue(%file:%line) |%green(%logger) |%cyan(%msg%n)"/>
|
|
||||||
|
|
||||||
<!--文件日志格式-->
|
|
||||||
<property name="FILE_LOG_PATTERN"
|
|
||||||
value="%date{yyyy-MM-dd HH:mm:ss} |%-5level |%thread |%file:%line |%logger |%msg%n"/>
|
|
||||||
|
|
||||||
<!--编码-->
|
|
||||||
<property name="ENCODING"
|
|
||||||
value="UTF-8"/>
|
|
||||||
|
|
||||||
<!--输出到控制台-->
|
|
||||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
||||||
<!--日志级别-->
|
|
||||||
<level>DEBUG</level>
|
|
||||||
</filter>
|
|
||||||
<encoder>
|
|
||||||
<!--日志格式-->
|
|
||||||
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern>
|
|
||||||
<!--日志字符集-->
|
|
||||||
<charset>${ENCODING}</charset>
|
|
||||||
</encoder>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<!--输出到文件-->
|
|
||||||
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<!--日志过滤器:此日志文件只记录INFO级别的-->
|
|
||||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
|
||||||
<level>INFO</level>
|
|
||||||
<onMatch>ACCEPT</onMatch>
|
|
||||||
<onMismatch>DENY</onMismatch>
|
|
||||||
</filter>
|
|
||||||
<!-- 正在记录的日志文件的路径及文件名 -->
|
|
||||||
<file>${log.path}/log_info.log</file>
|
|
||||||
<encoder>
|
|
||||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
||||||
<charset>${ENCODING}</charset>
|
|
||||||
</encoder>
|
|
||||||
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
||||||
<!-- 每天日志归档路径以及格式 -->
|
|
||||||
<fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
||||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
||||||
<maxFileSize>500MB</maxFileSize>
|
|
||||||
</timeBasedFileNamingAndTriggeringPolicy>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
</rollingPolicy>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<!-- 日志过滤器:此日志文件只记录WARN级别的 -->
|
|
||||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
|
||||||
<level>WARN</level>
|
|
||||||
<onMatch>ACCEPT</onMatch>
|
|
||||||
<onMismatch>DENY</onMismatch>
|
|
||||||
</filter>
|
|
||||||
<!-- 正在记录的日志文件的路径及文件名 -->
|
|
||||||
<file>${log.path}/log_warn.log</file>
|
|
||||||
<encoder>
|
|
||||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
||||||
<charset>${ENCODING}</charset> <!-- 此处设置字符集 -->
|
|
||||||
</encoder>
|
|
||||||
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
||||||
<fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
||||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
||||||
<maxFileSize>100MB</maxFileSize>
|
|
||||||
</timeBasedFileNamingAndTriggeringPolicy>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
</rollingPolicy>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
||||||
<!-- 日志过滤器:此日志文件只记录ERROR级别的 -->
|
|
||||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
|
||||||
<level>ERROR</level>
|
|
||||||
<onMatch>ACCEPT</onMatch>
|
|
||||||
<onMismatch>DENY</onMismatch>
|
|
||||||
</filter>
|
|
||||||
<!-- 正在记录的日志文件的路径及文件名 -->
|
|
||||||
<file>${log.path}/log_error.log</file>
|
|
||||||
<encoder>
|
|
||||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
||||||
<charset>${ENCODING}</charset> <!-- 此处设置字符集 -->
|
|
||||||
</encoder>
|
|
||||||
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
||||||
<fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
||||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
||||||
<maxFileSize>100MB</maxFileSize>
|
|
||||||
</timeBasedFileNamingAndTriggeringPolicy>
|
|
||||||
<!--日志文件保留天数-->
|
|
||||||
<maxHistory>15</maxHistory>
|
|
||||||
</rollingPolicy>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<root level="INFO">
|
|
||||||
<appender-ref ref="CONSOLE"/>
|
|
||||||
<appender-ref ref="INFO_FILE"/>
|
|
||||||
<appender-ref ref="WARN_FILE"/>
|
|
||||||
<appender-ref ref="ERROR_FILE"/>
|
|
||||||
</root>
|
|
||||||
|
|
||||||
</configuration>
|
|
||||||
@@ -3,4 +3,4 @@ spring:
|
|||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://127.0.0.1:3306/sweet_hut?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/sweet_hut?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: estun@medical
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ spring:
|
|||||||
name: @project.artifactId@
|
name: @project.artifactId@
|
||||||
version: @project.version@
|
version: @project.version@
|
||||||
profiles:
|
profiles:
|
||||||
active: prod
|
active: dev
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
port: 465
|
port: 465
|
||||||
|
|||||||
Reference in New Issue
Block a user