tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
439 stars 144 forks source link

[Bug] unable to resolve property:module_path #1134

Closed wowuhm closed 6 months ago

wowuhm commented 6 months ago

在某一期更新了yapi或者idea之后 发现请求前缀一直无法查到,所以手动配置了

--------------------

Import spring properties

set ignoreNotFoundFile = false

set ignoreUnresolved = false

properties.additional=${module_path}/src/main/resources/application.properties properties.additional=${module_path}/src/main/resources/application.yml properties.additional=${module_path}/src/main/resources/application.yaml

set ignoreUnresolved = false

set ignoreNotFoundFile = false

--------------------

Resolve spring properties

set ignoreUnresolved = false

class.prefix.path=${server.servlet.context-path}

set ignoreUnresolved = false

--------------------

原来${module_path}找不到了,不知道如何解决,卸载重装发现插件有缓存,以前的配置都还在,还是报同样的错。过完年后才不生效的,不知道是什么原因导致的。

wowuhm commented 6 months ago

导出yapi时的输出log如下:

run easy-yapi [TRACE] No config be found [DEBUG] use built-in config [DEBUG] use recommend config [DEBUG] load remote config [ERROR] unable to resolve property:module_path [INFO] To ignore this error,surround with:

set ignoreUnresolved = true

set ignoreUnresolved = false

[DEBUG] /src/main/resources/application.yml not be found. [ERROR] unable to resolve property:server.servlet.context-path [INFO] Start export api... [TRACE] No config be found [DEBUG] use built-in config [DEBUG] use recommend config [DEBUG] load remote config [TRACE] No config be found [DEBUG] use built-in config [DEBUG] use recommend config [DEBUG] load remote config [INFO] search api from: cn.xxx.app.controller.TestController [INFO] Export to https://yapi.xxx.com/project/1797/interface/api/cat_11021 success [INFO] Apis exported completed

Process finished with exit code 0