Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-api-boot
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-api-boot
Commits
17930866
提交
17930866
authored
9月 14, 2024
作者:
方治民
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: upgrade deps
上级
8d9687f1
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
14 行增加
和
64 行删除
+14
-64
README.md
README.md
+1
-1
application-dev-mysql.yml
app/src/main/resources/application-dev-mysql.yml
+0
-50
build.gradle
build.gradle
+4
-4
AuthExceptionHandler.java
...ain/java/com/yiring/auth/config/AuthExceptionHandler.java
+2
-2
settings.gradle
settings.gradle
+7
-7
没有找到文件。
README.md
浏览文件 @
17930866
...
...
@@ -41,5 +41,5 @@ npm cache clean --force
-
[
x
]
通用文件上传模块,支持对图片/PDF/MP3/MP4 等文件进行预处理
-
[
x
]
XXL-JOB 定时任务模块
-
[
x
]
大文件分片上传
-
[
x
]
更合理的模块拆分,更好的模块解耦
-
[
]
文件上传扩展支持本地、MinIO、阿里云 OSS、腾讯云 COS 等
[
x-file-storage
](
https://github.com/dromara/x-file-storage
)
-
[
]
更合理的模块拆分,更好的模块解耦
app/src/main/resources/application-dev-mysql.yml
deleted
100644 → 0
浏览文件 @
8d9687f1
# 环境变量
env
:
host
:
127.0.0.1
prod
:
false
props
:
username
:
admin
password
:
Hd)XZgtCa&NG~oe@
spring
:
datasource
:
url
:
jdbc:mysql://${env.host}:3306/basic_app?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
${env.props.username}
password
:
${env.props.password}
jpa
:
database-platform
:
org.hibernate.dialect.MySQL8Dialect
open-in-view
:
true
hibernate
:
ddl-auto
:
update
show-sql
:
true
properties
:
hibernate
:
format_sql
:
true
data
:
redis
:
database
:
5
port
:
6379
host
:
${env.host}
password
:
${env.props.password}
# knife4j
knife4j
:
enable
:
true
setting
:
enableOpenApi
:
false
enableDebug
:
true
# minio
minio
:
access-key
:
${env.props.username}
secret-key
:
${env.props.password}
end-point
:
"
http://${env.host}:18100"
bucket
:
public
domain
:
${minio.end-point}
logging
:
level
:
# sql bind parameter
org.hibernate.type.descriptor.sql.BasicBinder
:
trace
# request log
com.yiring.common.aspect.RequestAspect
:
info
build.gradle
浏览文件 @
17930866
...
...
@@ -39,11 +39,11 @@ ext {
// https://central.sonatype.com/artifact/com.github.xiaoymin/knife4j-openapi3-jakarta-spring-boot-starter
knife4jOpen3Version
=
'4.5.0'
// https://central.sonatype.com/artifact/io.swagger.core.v3/swagger-annotations
swaggerAnnotationsVersion
=
'2.2.2
2
'
swaggerAnnotationsVersion
=
'2.2.2
3
'
// https://central.sonatype.com/artifact/cn.dev33/sa-token-spring-boot3-starter
saTokenVersion
=
'1.3
8
.0'
saTokenVersion
=
'1.3
9
.0'
// https://central.sonatype.com/artifact/cn.hutool/hutool-core
hutoolVersion
=
'5.8.3
1
'
hutoolVersion
=
'5.8.3
2
'
// https://central.sonatype.com/artifact/com.alibaba.fastjson2/fastjson2
fastJsonVersion
=
'2.0.52'
// https://central.sonatype.com/artifact/com.xuxueli/xxl-job-core
...
...
@@ -55,7 +55,7 @@ ext {
// https://central.sonatype.com/artifact/org.hibernate.orm/hibernate-spatial
hibernateSpatialVersion
=
'6.5.2.Final'
// https://central.sonatype.com/artifact/org.locationtech.jts/jts-core
jtsVersion
=
'1.
19
.0'
jtsVersion
=
'1.
20
.0'
// https://mvnrepository.com/artifact/org.n52.jackson/jackson-datatype-jts
jacksonDatatypeJtsVersion
=
'1.2.10'
// https://central.sonatype.com/artifact/com.github.liaochong/myexcel
...
...
modules/auth/src/main/java/com/yiring/auth/config/AuthExceptionHandler.java
浏览文件 @
17930866
...
...
@@ -51,7 +51,7 @@ public class AuthExceptionHandler {
NotRoleException
.
class
,
NotPermissionException
.
class
,
// https://sa-token.dev33.cn/doc.html#/up/basic-auth
NotBasicAuthException
.
class
,
Not
Http
BasicAuthException
.
class
,
// https://sa-token.dev33.cn/doc.html#/up/disable
DisableServiceException
.
class
,
ApiDisabledException
.
class
,
...
...
@@ -67,7 +67,7 @@ public class AuthExceptionHandler {
if
(
e
instanceof
NotPermissionException
)
{
return
Result
.
no
(
Status
.
FORBIDDEN
,
"Code.10002"
);
}
if
(
e
instanceof
NotBasicAuthException
)
{
if
(
e
instanceof
Not
Http
BasicAuthException
)
{
return
Result
.
no
(
Status
.
FORBIDDEN
,
"Code.10003"
);
}
...
...
settings.gradle
浏览文件 @
17930866
//
pluginManagement {
//
repositories {
//
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
//
gradlePluginPortal()
//
}
//
}
pluginManagement
{
repositories
{
maven
{
url
"https://maven.aliyun.com/repository/gradle-plugin"
}
gradlePluginPortal
()
}
}
plugins
{
// https://plugins.gradle.org/plugin/org.danilopianini.gradle-pre-commit-git-hooks
id
"org.danilopianini.gradle-pre-commit-git-hooks"
version
"2.0.
7
"
id
"org.danilopianini.gradle-pre-commit-git-hooks"
version
"2.0.
12
"
}
rootProject
.
name
=
'basic-api-boot'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论