Skip to content

运行目录如果存在中文,会导致无法加载外部配置文件 #337

@juqkai

Description

@juqkai

在【Utils.appFolder】方法中,是直接【 String uri = Solon.location().getPath();】这样获取的路径。
Solon.location()是URL类型,getPath默认会对路径做转码。

所以在获取URL是,路径存在中文会转换成%xx,那么在【File file = Utils.getFile(uri);】中,file就会是空的

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions