Initial commit
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.astral.web;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication(scanBasePackages = {"com.astral"})
|
||||
@MapperScan(basePackages = {"com.astral.**.mapper"})
|
||||
public class AstralWebApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AstralWebApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
server:
|
||||
port: 8080
|
||||
servlet:
|
||||
context-path: /api
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
||||
datasource:
|
||||
url: jdbc:mysql://192.168.1.93:3306/astral?charset=utf8mb4&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: mysql_fsAPNB
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
minimum-idle: 5
|
||||
maximum-pool-size: 15
|
||||
idle-timeout: 30000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
connection-test-query: SELECT 1
|
||||
redis:
|
||||
database: 0
|
||||
host: 192.168.1.93
|
||||
port: 6379
|
||||
password: ''
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-idle: 8
|
||||
max-wait: -1ms
|
||||
min-idle: 0
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: ASSIGN_ID
|
||||
logic-delete-field: is_deleted
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
type-handlers-package: com.baomidou.mybatisplus.extension.handlers
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
org:
|
||||
springframework:
|
||||
security: error
|
||||
astral:
|
||||
# 文件上传方式:本地-local 又拍云-upyun
|
||||
uploadType: "local"
|
||||
# 资源目录
|
||||
# 本地资源目录
|
||||
uploadDir: "/opt/Big-Screen/Astral3D-Projects/astral-service/static"
|
||||
# 又拍云资源目录
|
||||
# uploadDir: "/static"
|
||||
revit:
|
||||
address: "192.168.1.93"
|
||||
port: "8081"
|
||||
path: ""
|
||||
timeout: 28800
|
||||
upyun:
|
||||
bucket: ??
|
||||
operator: ??
|
||||
password: ??
|
||||
# 又拍云加速域名
|
||||
domain: ??
|
||||
dev:
|
||||
currentAbPath: "/opt/Big-Screen/Astral3D-Projects/astral-service"
|
||||
cadDwgConverterAbPath: "/opt/Big-Screen/Astral3D-Projects/astral-service/static/lib/libredwg"
|
||||
temporaryFolder: "/opt/Big-Screen/Astral3D-Projects/astral-service/static/tmp"
|
||||
@@ -0,0 +1,5 @@
|
||||
spring:
|
||||
application:
|
||||
name: astral-service
|
||||
profiles:
|
||||
active: dev
|
||||
56
astral-service/astral-web/src/main/resources/mime.types
Normal file
56
astral-service/astral-web/src/main/resources/mime.types
Normal file
@@ -0,0 +1,56 @@
|
||||
types {
|
||||
# 基本文本类型
|
||||
text/html html htm shtml;
|
||||
text/css css;
|
||||
text/xml xml rss;
|
||||
text/plain txt md;
|
||||
text/csv csv;
|
||||
|
||||
# 图片类型
|
||||
image/gif gif;
|
||||
image/jpeg jpeg jpg;
|
||||
image/png png;
|
||||
image/svg+xml svg svgz;
|
||||
image/webp webp;
|
||||
image/avif avif;
|
||||
image/x-icon ico;
|
||||
image/vnd.microsoft.icon cur;
|
||||
|
||||
# 脚本类型
|
||||
application/javascript js;
|
||||
application/json json;
|
||||
application/x-javascript js;
|
||||
|
||||
# 字体类型
|
||||
font/woff woff;
|
||||
font/woff2 woff2;
|
||||
application/font-ttf ttf;
|
||||
application/vnd.ms-fontobject eot;
|
||||
|
||||
# 文档类型
|
||||
application/pdf pdf;
|
||||
application/msword doc;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
|
||||
application/vnd.ms-excel xls;
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
|
||||
application/vnd.ms-powerpoint ppt;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
|
||||
|
||||
# 压缩包类型
|
||||
application/zip zip;
|
||||
application/x-rar-compressed rar;
|
||||
application/x-7z-compressed 7z;
|
||||
application/gzip gz;
|
||||
application/x-tar tar;
|
||||
|
||||
# 音视频类型
|
||||
audio/mpeg mp3;
|
||||
audio/wav wav;
|
||||
video/mp4 mp4;
|
||||
video/mpeg mpeg mpg;
|
||||
video/quicktime mov;
|
||||
video/x-msvideo avi;
|
||||
|
||||
# 二进制流(兜底类型)
|
||||
application/octet-stream bin exe dll dmg iso;
|
||||
}
|
||||
Reference in New Issue
Block a user