Skip to content

自定义加密字符只能放置在项目下吗,如何做到开发和生产配置文件分离? #2

Description

@wulinjie122
方式二:如果项目中不存在以上文件,且不想单独新增,也可以在项目启动时调用 ConfigUtil.bundleNames("xxx") 来指定要读取的文件,这时只会从用户给定的文件中查找。

ConfigUtil.bundleNames只能指定项目路径classpath下的某个属性文件吗?如果我将来要发布到生产环境,怎么读取linux服务器上分离出来的属性文件呢?
或者是否支持spring boot的application.yml文件,在yml文件里配置呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions