参考:
dependencyGraph sbt plugin
https://github.com/jrudolph/sbt-dependency-graph
安装插件
建立文件:./.sbt/1.0/plugins/plugins.sbt
添加内容:addSbtPlugin(“net.virtual-void” % “sbt-dependency-graph” % “0.9.0”)
插件启动
sbt:graphPlatform> dependencyTree
其他命令:https://github.com/jrudolph/sbt-dependency-graph#main-tasks
解决依赖:
1)使用依赖树:dependencyTree
2)查看相互依赖:whatDependsOn
whatDependsOn com.alibaba fastjson 1.2.41
3)查看jar内容:jar vtf com/google/inject/guice/3.0/guice-3.0.jar | grep
4)在sbt中排出:”org.apache.shiro” % “shiro-all” % “1.2.2”
exclude(“com.google.inject”, “guice”),
在/Users/huiyu/.sbt中加入repositories文件
[repositories]
maven-local
local
jd-lib-releases: http://ip:80/libs-releases
jd-lib–snapshot-releases: http://ip/libs-snapshots/
curl –include http://localhost:9000/user/listUser
curl –include –request GET –header “Content-type: application/json” –data ‘[“index”,”cache”]’ http://localhost:9000/dictionary/getDictionaryGroup
POST请求:
curl –include –request POST –header “Content-type: application/json” –data ‘{“name”:”Nuthanger Farm”,”location”:{“lat” : 51.244031,”long” : -1.263224}}’ http://localhost:9000/savePlace
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。