随笔分类 -  java开发基础

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
How do annotations work internally--转
摘要:原文地址:http://stackoverflow.com/questions/18189980/how-do-annotations-work-internally The first main distinction between kinds of annotation is whether 阅读全文
posted @ 2016-06-06 16:00 一天不进步,就是退步 阅读(376) 评论(0) 推荐(0) 编辑
How Do Annotations Work in Java?--转
摘要:原文地址:https://dzone.com/articles/how-annotations-work-java Annotations have been a very important part of Java and it’s been there from the time of J2S 阅读全文
posted @ 2016-06-06 15:55 一天不进步,就是退步 阅读(998) 评论(0) 推荐(0) 编辑
什么是WeakHashMap--转
摘要:原文地址:http://laravel.iteye.com/blog/2303244 Java WeakHashMap 到底Weak在哪里,它真的很弱吗?WeakHashMap 的适用场景是什么,使用时需要注意些什么?弱引用和强引用对Java GC有什么不同影响?本文将给出清晰而简洁的介绍。 总体介 阅读全文
posted @ 2016-06-06 15:44 一天不进步,就是退步 阅读(458) 评论(0) 推荐(0) 编辑
eclispe使用外部tomcat总结
摘要:1. 配置tomcat Servers-->new 配置tomcat的路径,即可 2. 增加/移除application 注意:移除application时请使用"clean"来清除一下 3. 配置概况 4. modules模块 注意:context/path 和tomcat server.xml中 阅读全文
posted @ 2016-05-10 16:31 一天不进步,就是退步 阅读(178) 评论(0) 推荐(0) 编辑
publishing failed with multiple errors
摘要:背景: 1.使用maven package工程 2. 在eclipse中添加server运行时 publishing failed with multiple errors resource is out of sync with the file system 问题所在: Eclipse prod 阅读全文
posted @ 2016-05-06 13:45 一天不进步,就是退步 阅读(805) 评论(0) 推荐(0) 编辑
jackson反序列化时忽略不需要的字段
摘要:有时候,如果数据库表中增加一个字段,但返回的JSON字符串中含有我们并不需要的字段,那么当对应的实体类中不含有该字段时,会抛出一个异常,告诉你有些字段没有在实体类中找到。解决办法很简单,在声明ObjectMapper之后,加上上述代码: objectMapper.configure(Deserial 阅读全文
posted @ 2016-04-26 10:33 一天不进步,就是退步 阅读(9990) 评论(1) 推荐(0) 编辑
java中的vo 、dto 、dao--转
摘要:原文地址:http://yinchunjian.iteye.com/blog/758196 O是跟数据库里表的映射,一个表对应一个VO DAO是用VO来访问真实的表,对数据库的操作都在DAO中完成 BO是业务层,做逻辑处理的 VO , PO , BO , QO, DAO ,POJO, O/R Map 阅读全文
posted @ 2016-04-21 17:26 一天不进步,就是退步 阅读(10114) 评论(0) 推荐(0) 编辑
Errors running builder 'JavaScript Validator' on project
摘要:builders去掉JavaScript Validator。 如图: 参考文献: 【1】http://www.cnblogs.com/enshrineZither/p/4062248.html 阅读全文
posted @ 2016-03-29 11:23 一天不进步,就是退步 阅读(452) 评论(0) 推荐(0) 编辑
windows dos命令窗口的环境变量
摘要:今天安装maven的时候遇到mvn -v显示mvn不是命令行,环境变量maven_home和path路径都配置了。 首先查看windows下的环境变量: 发现没有问题。 发现在path里解析有问题,比较发现多了一个空格,改正后可以看到。 此时可以使用mvn -v命令了“ 另: Windows 和 l 阅读全文
posted @ 2016-03-29 10:46 一天不进步,就是退步 阅读(367) 评论(0) 推荐(0) 编辑
简单的session共享的封装
摘要:目的 session存储在缓存服务器上(各种缓存服务器上均可,本文以memcached为例),但对开发者来说,他不用关注,只需要调用request.getSession()方法即可获取到session,然后对session的属性进行操作。 面临的问题 1. session获取,不是从applicat 阅读全文
posted @ 2016-03-09 09:39 一天不进步,就是退步 阅读(5523) 评论(5) 推荐(0) 编辑
ReflectionToStringBuilder
摘要:1. 使用背景 后台接口需要在接口调用的初期,记录下面查询(修改)对象的参数。 2. 使用方法 通过Apache 工具类 输出entity对象所有属性值 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-la 阅读全文
posted @ 2016-03-04 13:28 一天不进步,就是退步 阅读(940) 评论(1) 推荐(1) 编辑
Java Garbage Collection Basics--转载
摘要:原文地址:http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/gc01/index.html Overview Purpose This tutorial covers the basics of how Garbage Co 阅读全文
posted @ 2016-02-26 10:17 一天不进步,就是退步 阅读(437) 评论(0) 推荐(0) 编辑
netty检测系统工具PlatformDependent
摘要:1. 检测jdk版本 @SuppressWarnings("LoopStatementThatDoesntLoop") private static int javaVersion0() { int javaVersion; // Not really a loop... 阅读全文
posted @ 2016-01-11 17:25 一天不进步,就是退步 阅读(1820) 评论(0) 推荐(0) 编辑
java set转list,数组与list的转换
摘要:读zookeeper的源码(zookeeper.java)时发现的,平时没有怎么注意: private final ZKWatchManager watchManager; List getDataWatches() { synchronized(watchManager.dat... 阅读全文
posted @ 2015-11-27 13:59 一天不进步,就是退步 阅读(2895) 评论(0) 推荐(0) 编辑
eclipse 使用jetty调试时,加依赖工程的源码调试方法
摘要:[1] 添加sourceeclipse-->debug as-->debug configurations-->source[2]若source不起作用重新编译一下,mvn clean install即可 阅读全文
posted @ 2015-11-26 12:53 一天不进步,就是退步 阅读(436) 评论(0) 推荐(0) 编辑
Garbage Collection Optimization for High-Throughput and Low-Latency Java Applications--转载
摘要:原文地址:https://engineering.linkedin.com/garbage-collection/garbage-collection-optimization-high-throughput-and-low-latency-java-applicationsHigh-perform... 阅读全文
posted @ 2015-10-26 15:08 一天不进步,就是退步 阅读(516) 评论(0) 推荐(0) 编辑
Java exception handling best practices--转载
摘要:原文地址:http://howtodoinjava.com/2013/04/04/java-exception-handling-best-practices/This post is another addition inbest practicesseries available in this... 阅读全文
posted @ 2015-10-21 09:34 一天不进步,就是退步 阅读(367) 评论(0) 推荐(0) 编辑
java poi 向excel写入图片
摘要:import java.awt.image.BufferedImage;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputS... 阅读全文
posted @ 2015-10-14 13:15 一天不进步,就是退步 阅读(2110) 评论(0) 推荐(0) 编辑
Writing Images to the Excel Sheet using PHPExcel--转载
摘要:原文地址:http://www.walkswithme.net/writing-images-to-the-excel-sheet-using-phpexcelWriting images to the excel sheet using phpexcel class is a great feat... 阅读全文
posted @ 2015-10-14 13:06 一天不进步,就是退步 阅读(346) 评论(0) 推荐(0) 编辑
spring 通过编程来获取属性文件
摘要:配置可以读取属性: 也可以通过编程的形式获取文件属性:Resource resource = new ClassPathResource("/my.properties");Prop... 阅读全文
posted @ 2015-10-08 18:34 一天不进步,就是退步 阅读(318) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页