SpringToolSuite4下载地址,解压即可使用
链接:https://pan.baidu.com/s/1EIvs04WZwvBuKGxk6FC7Pg
提取码:i2nn
yum groupinstall "X Window System"
1.创建一个项目File -> New->Spring starter project

2.不会设置就直接选择默认的

3.选择需要的版本和对应的依赖, 搜索kafka

4.加入主类

5.Maven Clean & Maven Install

6.生成的jar包在target文件夹下

7.执行
java -jar GatherMsg-0.0.1-SNAPSHOT.jar --spring.config.location=./application.yml
The requested profile "pom.xml" could not be activated because it does not exist.解决办法


网友评论