Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

application.yml配置文件resources属性static-locations #27

@daberber

Description

@daberber

application.yml是配置文件。
那么resources: static-locations: 是配置静态源。
我把前台放到新的文件夹下。
static-locations: file:./web-ui/,file:./static/,/,classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/, classpath:/public/

开发模式下,run Application是可以访问到前台的。
但是mvn打包后,用java -jar 部署运行后。
无法访问前台。一直被拦截到http://localhost:8089/admin/index.html

请问是还需要配置什么?
application-dev.yml 和 application.yml是什么关系呀?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions