代码优化
parent
1f408ba6d3
commit
afa42fc607
File diff suppressed because one or more lines are too long
|
@ -1,51 +0,0 @@
|
|||
server:
|
||||
port: 9092
|
||||
spring:
|
||||
application:
|
||||
name: engine-auth
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://115.159.33.152:3306/etl
|
||||
username: root
|
||||
password: lzm@123
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
profiles:
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
#注册服务
|
||||
discovery:
|
||||
server-addr: 182.254.221.163:8848
|
||||
namespace: 10a15e4b-3457-44dc-9378-cc25849f1872
|
||||
# 配置
|
||||
config:
|
||||
server-addr: 182.254.221.163:8848
|
||||
namespace: 10a15e4b-3457-44dc-9378-cc25849f1872
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
logging:
|
||||
level:
|
||||
com.bwie: DEBUG
|
||||
auth:
|
||||
jwt:
|
||||
enabled: true # 是否开启JWT登录认证功能
|
||||
secret: passjava # JWT 私钥,用于校验JWT令牌的合法性
|
||||
expiration: 1800000 # JWT 令牌的有效期,用于校验JWT令牌的合法性,半个小时
|
||||
header: Authorization # HTTP 请求的 Header 名称,该 Header作为参数传递 JWT 令牌
|
||||
userParamName: username # 用户登录认证用户名参数名称
|
||||
pwdParamName: password # 用户登录认证密码参数名称
|
||||
useDefaultController: true # 是否使用默认的JwtAuthController
|
||||
skipValidUrl:
|
||||
- /auth/login
|
||||
- /auth/logout
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:/mapper/*mapper.xml
|
||||
typeAliasesPackage: com.auth.common.entity
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.auth.server.mapper.PathMapper">
|
||||
|
||||
|
||||
</mapper>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.auth.server.mapper.PermissionMapper">
|
||||
|
||||
|
||||
</mapper>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.auth.server.mapper.UserMangeMapper">
|
||||
|
||||
|
||||
</mapper>
|
|
@ -1,6 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<h1>hello word!!!</h1>
|
||||
<p>this is a html page</p>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -12,7 +12,6 @@
|
|||
<modules>
|
||||
<module>etl-auth-common</module>
|
||||
<module>etl-auth-server</module>
|
||||
<module>etl-auth-common</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
# com.health.common.handle.ExceptHandle
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
#Generated by Maven
|
||||
#Fri Jun 21 17:06:57 CST 2024
|
||||
groupId=com.bwie
|
||||
artifactId=etl-common
|
||||
version=1.0-SNAPSHOT
|
|
@ -1,19 +0,0 @@
|
|||
com\etl\common\constants\Constants.class
|
||||
com\etl\common\result\PageResult.class
|
||||
com\etl\common\constants\JwtConstants.class
|
||||
com\etl\common\Entity.class
|
||||
com\etl\common\handler\ExceptionHandlers.class
|
||||
com\etl\common\util\JwtUtils.class
|
||||
com\etl\common\util\RequestUtil.class
|
||||
com\etl\common\exception\ServiceException.class
|
||||
com\etl\common\result\ResultBody.class
|
||||
com\etl\common\config\Swagger.class
|
||||
com\etl\common\exception\AllException.class
|
||||
com\etl\common\util\RestTemplateUtil.class
|
||||
com\etl\common\result\Result.class
|
||||
com\etl\common\config\Swagger$1.class
|
||||
com\etl\common\BaseEntity.class
|
||||
com\etl\common\exception\GlobalException.class
|
||||
com\etl\common\util\RestTemplateConfig.class
|
||||
com\etl\common\constants\TokenConstants.class
|
||||
com\etl\common\util\StringUtils.class
|
|
@ -1,18 +0,0 @@
|
|||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\config\Swagger.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\exception\AllException.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\result\Result.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\util\RestTemplateConfig.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\constants\Constants.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\result\PageResult.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\constants\TokenConstants.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\util\RequestUtil.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\util\StringUtils.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\util\RestTemplateUtil.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\constants\JwtConstants.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\util\JwtUtils.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\BaseEntity.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\exception\GlobalException.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\handler\ExceptionHandlers.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\Entity.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\exception\ServiceException.java
|
||||
D:\workspace\etl-cloud\etl-common\src\main\java\com\etl\common\result\ResultBody.java
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
#Generated by Maven
|
||||
#Fri Jun 28 17:15:30 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=com.bwie
|
||||
artifactId=el-data-source-common
|
|
@ -1,22 +0,0 @@
|
|||
com\etl\data\source\common\pojo\DataSourceType.class
|
||||
com\etl\data\source\common\pojo\DatabaseRedis.class
|
||||
com\etl\data\source\common\pojo\resq\ColumnInfo.class
|
||||
com\etl\data\source\common\pojo\req\RuleReq.class
|
||||
com\etl\data\source\common\pojo\req\DataSourceReq.class
|
||||
com\etl\data\source\common\pojo\req\ConnectMysqlReq.class
|
||||
com\etl\data\source\common\pojo\req\DataRinse.class
|
||||
com\etl\data\source\common\pojo\Task.class
|
||||
com\etl\data\source\common\pojo\CodeType.class
|
||||
com\etl\data\source\common\pojo\constants\MysqlConstants.class
|
||||
com\etl\data\source\common\ennum\LimitType.class
|
||||
com\etl\data\source\common\pojo\constants\Constants.class
|
||||
com\etl\data\source\common\pojo\DatabaseConfig.class
|
||||
com\etl\data\source\common\pojo\Rule.class
|
||||
com\etl\data\source\common\pojo\RuleType.class
|
||||
com\etl\data\source\common\pojo\Code.class
|
||||
com\etl\data\source\common\pojo\DataSource.class
|
||||
com\etl\data\source\common\pojo\BaseEntity.class
|
||||
com\etl\data\source\common\pojo\Person.class
|
||||
com\etl\data\source\common\pojo\req\DataSourceColumn.class
|
||||
com\etl\data\source\common\pojo\TaskManagerEntity.class
|
||||
com\etl\data\source\common\pojo\until\R.class
|
|
@ -1,22 +0,0 @@
|
|||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\Person.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\DatabaseRedis.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\TaskManagerEntity.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\Code.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\DataSource.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\Rule.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\req\DataSourceReq.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\req\DataRinse.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\req\DataSourceColumn.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\RuleType.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\req\ConnectMysqlReq.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\Task.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\constants\MysqlConstants.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\DataSourceType.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\ennum\LimitType.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\DatabaseConfig.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\constants\Constants.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\CodeType.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\BaseEntity.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\resq\ColumnInfo.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\req\RuleReq.java
|
||||
D:\workspace\etl-cloud\etl-data-source\el-data-source-common\src\main\java\com\etl\data\source\common\pojo\until\R.java
|
|
@ -72,4 +72,5 @@ public class DatabaseController {
|
|||
return Result.success(databaseService.findDatabaseTableFieldPrice(config));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,40 +0,0 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 8886
|
||||
# Spring
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://182.254.221.163:3306/etl
|
||||
username: root
|
||||
password: lzz@123
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password:
|
||||
application:
|
||||
# 应用名称
|
||||
name: etl-data-source-service
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
main:
|
||||
# 允许使用循环引用
|
||||
allow-circular-references: true
|
||||
# 允许定义相同的bean对象 去覆盖原有的
|
||||
allow-bean-definition-overriding: true
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 182.254.221.163:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 182.254.221.163:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
type-aliases-package: com.etl.data.source.common.pojo
|
||||
mapper-locations: classpath:mappers/*xml
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue