Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

《芋道 Spring Boot 监控端点 Actuator 入门》5.1 无法解析yaml文件中的 @占位符 #11

Open
yuyong725 opened this issue Mar 1, 2020 · 0 comments

Comments

@yuyong725
Copy link

问题:启动报错,无法解析@占位符内容
我理解的是 yaml 是使用 ${} 解析占位资源,如果使用@,需要特殊配置,actuator官方文档示例使用的也是 @ 占位符,不清楚是不是内部针对Spring的配置文件解析做了特殊处理,我使用芋艿的info模块的代码是启动不了,最终通过如下的方式解决:

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-resources-plugin</artifactId>
            <version>2.6</version>
           <configuration>
                    <delimiters>
                        <delimiter>@</delimiter>
                    </delimiters>
                    <useDefaultDelimiters>false</useDefaultDelimiters>
           </configuration>
</plugin>    

但这种方式我理解的是maven的处理机制,与actuator无关,不知道是不是我actuator配置不对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant