72 lines
1.5 KiB
Markdown
72 lines
1.5 KiB
Markdown
|
# Spring-boot-starter-linxyun 林栖云依赖
|
||
|
|
||
|
- 拉取项目
|
||
|
|
||
|
```
|
||
|
git clone http://codegit.linxyun.com/wenxin/spring-boot-starter-linxyun.git
|
||
|
```
|
||
|
- 添加到本地 maven 仓库
|
||
|
|
||
|
```
|
||
|
mvn clean install -Dmaven.test.skip=true
|
||
|
```
|
||
|
- 在项目中添加 maven 依赖
|
||
|
|
||
|
```
|
||
|
<dependency>
|
||
|
<groupId>com.linxyun</groupId>
|
||
|
<artifactId>spring-boot-starter-linxyun</artifactId>
|
||
|
<version>1.0.0</version>
|
||
|
</dependency>
|
||
|
```
|
||
|
- 添加配置文件
|
||
|
- application.yml
|
||
|
|
||
|
```
|
||
|
linxyun:
|
||
|
url: http://www.linxyun.com
|
||
|
# 企业编码
|
||
|
ent-code: 57
|
||
|
# 项目名称
|
||
|
project: homeworkor
|
||
|
# 角色
|
||
|
role:
|
||
|
1101:
|
||
|
- /class/**
|
||
|
1102:
|
||
|
- /user
|
||
|
# 白名单
|
||
|
white-list:
|
||
|
- /swagger-ui.html
|
||
|
- /v3/api-docs/**
|
||
|
- /doc.html
|
||
|
- /error
|
||
|
upload:
|
||
|
# 图片压缩质量 0~1
|
||
|
img-quality: 0.5
|
||
|
```
|
||
|
- application.properties
|
||
|
```
|
||
|
# linxyun 配置
|
||
|
linxyun.url=http://www.linxyun.com
|
||
|
linxyun.ent-code=56
|
||
|
linxyun.project=smartroadlamp
|
||
|
|
||
|
# 角色配置
|
||
|
linxyun.role.1101[0]=/**
|
||
|
linxyun.role.1102[0]=/user
|
||
|
|
||
|
# 白名单
|
||
|
linxyun.white-list[0]=/swagger-ui.html
|
||
|
linxyun.white-list[1]=/v3/api-docs/**
|
||
|
linxyun.white-list[2]=/doc.html
|
||
|
linxyun.white-list[3]=/error
|
||
|
|
||
|
# 上传配置
|
||
|
linxyun.upload.img-quality=0.5
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
|