All Downloads are FREE. Search and download functionalities are using the official Maven repository.

c-starter-authority-server.1.0.0.source-code.application.yml Maven / Gradle / Ivy

There is a newer version: 1.2.4.2024062001.RELEASE
Show newest version
#工程访问配置
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 1000
    min-spare-threads: 30
  port: 8081
  connection-timeout: 5000ms
  servlet:
    context-path: /gc-starter-server

#spring环境配置
spring:
  profiles:
    # 运行环境 dev|test|prod,根据active动态加载application-active.yml配置文件
    active: dev
  # jackson时间格式化
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  main:
    allow-bean-definition-overriding: true

  #静态资源配置
  mvc:
    throw-exception-if-no-handler-found: true
    # 静态资源访问接口前缀
    static-path-pattern: /static/**
    view:
      prefix: classpath:/static/
      suffix: .html
  resources:
    add-mappings: true
    # 静态资源路径
    static-locations: classpath:/static/,classpath:/META-INF/resources/,classpath:/META-INF/resources/webjars/,file:D:\gc-starter-server\files

#mybatis
mybatis-plus:
  # mybatis xml配置文件扫描
  mapper-locations: classpath*:mapper/**/*.xml
  #实体扫描,多个package用逗号或者分号分隔
  typeAliasesPackage: com.ustcinfo.ishare.eip.admin.service.sys.entity
  global-config:
    db-config:
      #主键类型  0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
      id-type: 0
      #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
      field-strategy: 1
      #驼峰下划线转换
      db-column-underline: true
      #刷新mapper 调试神器
      refresh-mapper: true
      #数据库大写下划线转换
      capital-mode: true
      #删除时的值
      logic-delete-value: 1
      #未删除的值
      logic-not-delete-value: 0
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: false
    call-setters-on-nulls: true

#接口文档配置
swagger:
  basic:
    # 是否启用swagger接口文档登录功能,登录后才可以访问
    enable: true
    # 访问swagger接口文档的登录用户名
    username: admin
    # 访问swagger接口文档的登录密码
    password: admin

admin:
  cas:
    # 在访问cas服务器登录之后,会返回一个ticket。由该地址接收
    casFilterUrlPattern: /cas-shiro
    # cas服务前缀
    casServerUrlPrefix: http://192.168.52.93:8880/cas
    # 当前项目地址
    shiroServerUrlPrefix: http://127.0.0.1:${server.port}${server.servlet.context-path}
    # 登录地址
    loginUrl: ${admin.cas.casServerUrlPrefix}/login?service=${admin.cas.shiroServerUrlPrefix}${admin.cas.casFilterUrlPattern}
    # 登出地址
    logoutUrl: ${admin.cas.casServerUrlPrefix}/logout?service=http://www.baidu.com




© 2015 - 2024 Weber Informatics LLC | Privacy Policy