
java
you1272586223
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mac编译spring5.1.x源码
1.首先从官网下载spring源码https://github.com/spring-projects/spring-framework 2.解压之后进入源码目录 执行命令./gradlew :spring-oxm:compileTestJava (windown是执行gradlew.bat) 等待漫长的下载依赖过程...(时间快慢看网速) 直到出现xxx SUCCESS ...原创 2020-03-09 14:54:39 · 1386 阅读 · 0 评论 -
Mac编译netty源码报错
编译netty源码时报如下错误 在网上找了好多资料,终于在github上也有人出过这样的错并解决了(github地址:https://github.com/esnme/ultrajson/issues/332)。需要执行一条命令: sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_he...原创 2019-09-03 16:59:46 · 1210 阅读 · 0 评论 -
java通过JNI调用C
软件环境是在Linux上跑,在此记录下 1、第一步:创建一个java类 里面包含了一个main方法,和一个native的start0()方法。 1.1 静态代码块中加载了一个本地库 System.loadLibrary("MyThreadNative"); 这个库文件是后面通过c文件生成的 1.2 main方法里new 了一个对象,调用该对象的本地方法start0() MyThre...原创 2019-07-25 16:12:54 · 1239 阅读 · 0 评论 -
hadoop出现Unable to load native-hadoop library for your platform..警告
本人使用的hadoop版本是: 每次执行hadoop命令:列如hadoop fs ls /、./start-dfs.sh启动dfs时 都会出现如下警告 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where ...原创 2019-06-21 10:28:10 · 9216 阅读 · 4 评论 -
springboot源码编译
1、下载源码 github地址:https://github.com/spring-projects/spring-boot 可以clone或者download zip 2、解压(clone的忽略次步骤) 解压到某个盘下面 本人是mac,解压的目录是/Users/youyongsheng/open_project/spring-boot-2.1.x 3、进入解压或克隆的目录下 ...原创 2019-05-05 10:29:33 · 1438 阅读 · 0 评论 -
protostuff 序列化简单使用
要使用protostuff需要下载相关依赖jar,我使用的是maven dependency> groupId>com.dyuproject.protostuffgroupId> artifactId>protostuff-coreartifactId> version>1.0.8version> dependency> dependency> groupId>com.dy原创 2017-08-28 15:42:38 · 407 阅读 · 0 评论 -
使用dubbo是抛出com.alibaba.com.caucho.hessian.io.HessianProtocolException
com.alibaba.com.caucho.hessian.io.HessianProtocolException异常原创 2017-08-22 11:03:52 · 11837 阅读 · 0 评论 -
web.xml is missing and <failOnMissingWebXml> is set to true
pom.xml配置报错(web.xml is missing and is set to true) 解决方案1:右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件 解决方案2:在该pom.xml里添加如下代码转载 2017-03-22 10:51:01 · 258 阅读 · 0 评论 -
Expected MultipartHttpServletRequest: is a MultipartResolver configured?
今天遇到一个错误 严重: Servlet.service() for servlet springServlet threw exception java.lang.IllegalArgumentException: Expected MultipartHttpServletRequest: is a MultipartResolver configured? 标红了,搞了半天两步解决转载 2016-09-23 16:49:06 · 793 阅读 · 0 评论 -
maven 编译报错 java: -source 1.5 中不支持switch 中存在字符串
在pom里面加上 compile org.apache.maven.plugins maven-compiler-plugin 1.7 1.7转载 2016-09-20 16:01:42 · 5128 阅读 · 0 评论