解决BUG:Could not resolve placeholder ‘myprops.mysql.url‘ invalue “${myprops.mysql.url}“

Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘myprops.mysql.url’ in value “${myprops.mysql.url}”

Carefully checked that there is no error, it is the problem of application.yml

  • Check if the environment is configured

  • Check whether the environment name is wrong
    insert image description here

  • Check whether there are fewer spaces before the environment name.
    insert image description here
    Correct format:
    insert image description here

Guess you like

Origin blog.csdn.net/weixin_45752941/article/details/109289319