Could not resolve placeholder 'jwt.primaryKey' in value "${jwt.primaryKey}"
时间: 2023-12-15 11:05:55 浏览: 211
The error message you mentioned typically occurs when Spring is unable to find a value for the placeholder `jwt.primaryKey` in your application's configuration.
To resolve this issue, you need to make sure that you have properly defined the `jwt.primaryKey` property in your configuration files.
If you are using Spring Boot, you can define the property in the `application.properties` or `application.yml` file. For example, in `application.properties`, you would add:
```
jwt.primaryKey=your_primary_key_value
```
If you are using a different configuration method, make sure that the property is defined and has a valid value.
If you have already defined the property correctly and are still experiencing the issue, double-check the location of your configuration file and make sure it is being picked up by your application correctly.
If you're still having trouble, please provide more details about your application setup and configuration files so that I can assist you further.
阅读全文