报错: Application run failed
org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token
found character '@' that cannot start any token. (Do not use @ for indentation)
 in 'reader', line 5, column 13:
        active: @profile.name@

idea中maven项目切换到微服务版有切换单体版忘记刷新了

或者检查文件

打包后的文件里,application.yml文件里的@profiles.active@,没有被替换成具体的环境值,如dev等。确保yml文件内容格式没有书写错误

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐