cat post1.json | curl -H "Content-Type:application/json" -X POST -d @- http://localhost:8081/api/sonar #单个代码文件检测 cat post1.json | curl -H "Content-Type:application/json" -X POST -d @- http://localhost:8081/api/sonarSingle