
Java
Rainet_yang
做人如水,做事如山。
展开
-
Java byte数据类型转换
public class DataTypeChangeHelper { /** * 将一个单字节的byte转换成32位的int * * @param b * byte * @return convert result */ public static int unsignedByteToInt(byte b) { return (int) b转载 2014-04-08 11:45:27 · 2165 阅读 · 0 评论 -
java.lang.IllegalStateException: Failed to load ApplicationContext解决办法
配置springMVC框架时总是出错,如下: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoader...原创 2013-11-18 01:05:08 · 159292 阅读 · 14 评论 -
执行 maven 命令 报错Unable to add module to the current project as it is not of packaging type 'pom'
今天学习在本地搭建Maven工程时,执行了mvn archetype:generate 命令,报错。Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.1] Unable to add module to the current project转载 2013-11-13 00:02:32 · 18142 阅读 · 1 评论 -
Java 两个数相除,只要有小数就入一位,不舍去,即为向上去整
向上取整用Math.ceil(double a) 向下取整用Math.floor(double a)例如: System.out.println(Math.ceil(1.21)); System.out.println(Math.floor(1.21));结果: 2.0; 1.0; ...原创 2013-06-07 17:25:02 · 18649 阅读 · 2 评论 -
四年Java 一个java软件工程师的年终总结
年底了,该给自己写点总结了! 从毕业到现在已经快4年啦,一直在Java的WEB开发行业混迹。我不是牛人,但是自我感觉还算是个合格的程序员,有必要写下自己将近4年来的经历,给自我以提示,给刚入行的朋友提供点参考。 第一. Java程序员需要不断的学习;貌似这一点适应的行业最广,但是我可以很肯定的说:当你从事web开发一年后,重新找工作时,才会真实的感受到这句话。 工作第一年...转载 2013-01-05 11:46:07 · 28657 阅读 · 3 评论 -
struts2 excel下载
配置文件:<action name="gatherSecretFillInData" class="sssManagerAction" method="gatherSecretFillInData"> /com/sss/cms/sssManager/excel/gatherSecretFillinTemplate.xls转载 2012-08-15 10:32:55 · 791 阅读 · 0 评论 -
java中使用TreeMap进行中文姓名排序
http://blog.youkuaiyun.com/l8693946/article/details/1931764转载 2012-08-07 10:29:15 · 712 阅读 · 0 评论