Setting

class.prefix.path

  • Set API prefix path
#Resolve spring properties
###set ignoreUnresolved = true
class.prefix.path=${server.servlet.context-path}
###set ignoreUnresolved = false
  • spring application.properties
server.servlet.context-path=/demo
  • spring application.yaml/application.yml
server:
  servlet:
      context-path: /demo

demo

class.prefix.path=/demo