近期工作笔记


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

智能推荐

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



猜您在找
工作笔记 - 杂记 php工作笔记1 日常工作笔记(一) 工作笔记-杂文 工作笔记-杂文
智能推荐
 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告