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

1.4.3 error Could not resolve placeholder #7977

Closed
rockit-ba opened this issue Mar 22, 2022 · 1 comment
Closed

1.4.3 error Could not resolve placeholder #7977

rockit-ba opened this issue Mar 22, 2022 · 1 comment

Comments

@rockit-ba
Copy link

Describe the bug
i use 1.4.3,conf as :
spring:
application:
name: example
cloud:
nacos:
config:
file-extension: yaml
server-addr: 127.0.0.1:8848

image

my code :
`@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigController {

@Value("${flag}")
private boolean flag;

/**
 * http://localhost:8080/config/get
 */
@RequestMapping("/get")
public boolean get() {
    return flag;
}

}`

Expected behavior
it`s should be ini.

Acutally behavior
new it`s :java.lang.IllegalArgumentException: Could not resolve placeholder 'flag' in value "${flag}"

@KomachiSion
Copy link
Collaborator

please provide ${user.home}/logs/nacos/config.log

or move issue to Spring cloud aliabab community

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

No branches or pull requests

2 participants