Files
pigx/pigx-boot/src/main/resources/application.yml
T
PIG AI 1e9c1bd054 feat(boot-config): 禁用Spring Cloud服务发现功能
- 在application.yml中设置spring.cloud.discovery.enabled为false
- 保持与原有nacos配置一致的禁用状态
2025-06-23 16:19:59 +08:00

79 lines
1.8 KiB
YAML

server:
port: 9999
servlet:
context-path: /admin
spring:
application:
name: @project.artifactId@
# 缓存相关配置
cache:
type: redis
# 上传文件大小限制
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
cloud:
discovery:
enabled: false
nacos:
config.enabled: false
discovery.enabled: false
gateway:
server.webflux:
enabled: false
redis.enabled: false
sentinel.enabled: false
openfeign.okhttp.enabled: true
freemarker: # freemarker 配置,授权码模式页面渲染使用
suffix: .ftl
template-loader-path: classpath:/templates/
request-context-attribute: request
main:
allow-bean-definition-overriding: true
profiles:
active: dev
## spring security 对外暴露接口设置
security:
micro: false
oauth2:
client:
ignore-urls:
- /webjars/**
- /v3/api-docs/**
- /doc.html
- /swagger-ui.html
- /swagger-ui/**
- /swagger-resources
- /token/**
- /error
- /druid/**
- /actuator/**
- /code/**
#--------------如下配置尽量不要变动-------------
# mybatis-plus 配置
mybatis-plus:
mapper-locations: classpath*:/mapper/*Mapper.xml
global-config:
banner: false
db-config:
id-type: auto
where-strategy: not_empty
insert-strategy: not_empty
update-strategy: not_null
type-handlers-package: com.pig4cloud.pigx.common.data.handler
configuration:
jdbc-type-for-null: 'null'
call-setters-on-nulls: true
shrink-whitespaces-in-sql: true
# 查询以下前缀的表,不输出日志
pigx:
mybatis:
skip-table:
- QRTZ_ #quartz 定时任务的表
- ACT_ #工作流相关的表