代码拉取完成,页面将自动刷新
##报错信息
LoggingStorage' that could not be found
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-09-16 21:40:32.892 ERROR 21568 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method loggingAdminFactoryBean in org.minbox.framework.api.boot.autoconfigure.logging.admin.ApiBootLoggingAdminAutoConfiguration required a bean of type 'org.minbox.framework.logging.admin.storage.LoggingStorage' that could not be found.
Action:
Consider defining a bean of type 'org.minbox.framework.logging.admin.storage.LoggingStorage' in your configuration.
Process finished with exit code 1
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.study</groupId>
<artifactId>cbrc-log-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>cbrc-log-server</name>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/>
</parent>
<properties>
<java.version>1.8</java.version>
<api.boot.version>2.3.8</api.boot.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--ApiBoot Logging Admin-->
<dependency>
<groupId>org.minbox.framework</groupId>
<artifactId>api-boot-starter-logging-admin</artifactId>
</dependency>
<!--ApiBoot MyBatis Enhance-->
<dependency>
<groupId>org.minbox.framework</groupId>
<artifactId>api-boot-starter-mybatis-enhance</artifactId>
</dependency>
<!--Spring Security-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<!--ApiBoot统一版本依赖-->
<dependency>
<groupId>org.minbox.framework</groupId>
<artifactId>api-boot-dependencies</artifactId>
<version>${api.boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.zaxxer.hikari.HikariDataSource
username: root
password: root
url: jdbc:mysql://127.0.0.1:3306/api-boot-admin?characterEncoding=utf8&serverTimezone=Asia/Shanghai
# 配置Spring Security安全用户
security:
user:
name: logging-abc
password: abc#logserver
# ApiBoot相关配置
api:
boot:
logging:
admin:
show-console-report-log: true
format-console-log-json: true
@SpringBootApplication
@EnableLoggingAdmin
public class ApiBootAdminLoggingServerApplication {
/**
* logger instance
*/
static Logger logger = LoggerFactory.getLogger(ApiBootAdminLoggingServerApplication.class);
public static void main(String[] args) {
SpringApplication.run(ApiBootAdminLoggingServerApplication.class, args);
logger.info("{}服务启动成功.", "Logging Server");
}
}