Commit c3c951a1 authored by 刘斌's avatar 刘斌

feat: 升级版本251015

parent b6021e3d
......@@ -24,6 +24,10 @@
<groupId>top.binfast</groupId>
<artifactId>daemon-codegen</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
......@@ -45,6 +49,30 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 添加Maven编译插件配置 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
</plugin>
</plugins>
</build>
......
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Profile("dev")
@Configuration(proxyBeanMethods = false)
public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("*")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
.maxAge(3600);
}
}
\ No newline at end of file
......@@ -11,6 +11,11 @@ spring:
username: root
password: antaikeji2019
type: com.zaxxer.hikari.HikariDataSource
logSource:
url: jdbc:mysql://119.184.127.215:13306/binfast_log?allowMultiQueries=true&characterEncoding=utf8&useSSL=true&useUnicode=true&serverTimezone=GMT%2B8
username: root
password: antaikeji2019
type: com.zaxxer.hikari.HikariDataSource
redis:
redisson:
keyPrefix:
......
spring:
datasource:
dynamic:
datasource:
logSource:
url: jdbc:mysql://119.184.127.215:13306/binfast_log?allowMultiQueries=true&characterEncoding=utf8&useSSL=true&useUnicode=true&serverTimezone=GMT%2B8
username: root
password: antaikeji2019
type: com.zaxxer.hikari.HikariDataSource
......@@ -7,7 +7,7 @@ server:
spring:
profiles:
active: dev,log-dev
active: dev
application:
name: binfast-admin
task:
......@@ -29,6 +29,18 @@ spring:
# redisson:
# config: classpath:redisson.yml
--- # Actuator 监控端点的配置项
management:
endpoints:
web:
exposure:
include: health,info,logfile
endpoint:
health:
show-details: ALWAYS
logfile:
external-file: ./logs/console.log
# mybaits-plus配置
mybatis-plus:
# MyBatis Mapper所对应的XML文件位置
......
......@@ -13,6 +13,8 @@
<spring-boot.version>3.5.6</spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<binfast.version>1.1.9</binfast.version>
</properties>
......
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