配置

class.prefix.path

设置API请求前缀

默认推荐配置

#Resolve spring properties
###set ignoreUnresolved = true
class.prefix.path=${server.servlet.context-path}
###set ignoreUnresolved = false

使用推荐配置后, 可识别如下spring配置

  • spring application.properties
server.servlet.context-path=/demo
  • spring application.yaml/application.yml
server:
  servlet:
      context-path: /demo

自定义demo

class.prefix.path=/demo