This error is thrown when Spring is unable to create a bean due to a failure in autowiring dependencies. The specific cause of the error is an IllegalArgumentException, which occurs because Spring is unable to resolve the placeholder value '$'system.contract.stringGetSetAddress'$.

The placeholder is likely used in the configuration of the 'weBASEService' bean, and it is supposed to be resolved to a concrete value from a property source. However, in this case, the placeholder cannot be resolved, resulting in the error.

To fix this issue, you need to ensure that the placeholder is properly configured and resolved. Check the following:

  1. Make sure that the property source containing the value for the placeholder is correctly configured. This could be a properties file, environment variable, or any other source that Spring can use to resolve placeholders.

  2. Verify that the placeholder key 'system.contract.stringGetSetAddress' is spelled correctly and matches the key in the property source.

  3. Ensure that the property source is being loaded correctly by Spring. Check your configuration files (such as application.properties or application.yml) to make sure they are properly configured to load the property source.

By resolving the placeholder value, Spring will be able to create the 'weBASEService' bean successfully.

Spring BeanCreationException: Could not resolve placeholder 'system.contract.stringGetSetAddress'

原文地址: https://www.cveoy.top/t/topic/b0H9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录