问题前提:本地mq的服务不可用;服务启动时不加载mq mysql redis的相关配置
代码配置:项目可以正常启动,可以访问
yml文件:
# rabbitmq
rabbitmq:
host: ${profile.rabbitmq.host}
port: ${profile.rabbitmq.port}
username: ${profile.rabbitmq.username}
password: ${profile.rabbitmq.password}
listener:
acknowledgeMode: AUTO
pom文件:
<!-- rabbitmq -->
<profile.rabbitmq.host>localhost</profile.rabbitmq.host>
<profile.rabbitmq.port>5672</profile.rabbitmq.port>
<profile.rabbitmq.username>admin</profile.rabbitmq.username>
<profile.rabbitmq.password>admin</profile.rabbitmq.password>
pom中将<profile.rabbitmq.host>localhost</profile.rabbitmq.host>改成<profile.rabbitmq.host>127.0.0.1</profile.rabbitmq.host> 项目直接就启动不起来了这是什么梗各位大神?