1.Sbt 依赖树
参考:
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”),
2.Sbt 获取第三方依赖
在/Users/huiyu/.sbt中加入repositories文件
[repositories]
maven-local
local
jd-lib-releases: http://ip:80/libs-releases
jd-lib–snapshot-releases: http://ip/libs-snapshots/
3.Curl 使用
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