修改mybatis版本启动报错,swagger注解问题
This commit is contained in:
@@ -2,6 +2,8 @@ server:
|
||||
port: 8080
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: label-backend
|
||||
datasource:
|
||||
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/label_db}
|
||||
username: ${SPRING_DATASOURCE_USERNAME:label}
|
||||
@@ -33,6 +35,14 @@ spring:
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher # Shiro 与 Spring Boot 3 兼容性需要
|
||||
|
||||
springdoc:
|
||||
api-docs:
|
||||
enabled: true
|
||||
path: /v3/api-docs
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
path: /swagger-ui.html
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*.xml
|
||||
type-aliases-package: com.label.module
|
||||
@@ -53,6 +63,14 @@ ai-service:
|
||||
base-url: ${AI_SERVICE_BASE_URL:http://localhost:8000}
|
||||
timeout: 30000 # milliseconds
|
||||
|
||||
shiro:
|
||||
auth:
|
||||
enabled: true
|
||||
mock-company-id: 1
|
||||
mock-user-id: 1
|
||||
mock-role: ADMIN
|
||||
mock-username: mock
|
||||
|
||||
token:
|
||||
ttl-seconds: 7200 # Token 默认有效期(秒),与 sys_config token_ttl_seconds 保持一致
|
||||
|
||||
@@ -61,6 +79,6 @@ video:
|
||||
|
||||
logging:
|
||||
level:
|
||||
com.label: DEBUG
|
||||
com.label: INFO
|
||||
org.apache.shiro: INFO
|
||||
com.baomidou.mybatisplus: INFO
|
||||
|
||||
Reference in New Issue
Block a user