
错误纠正
俺就不起网名
安安静静的做一个不停成长的开发者……
展开
-
springMVC报WARNING: No mapping found for HTTP request with URI [/springMVC/hello] in DispatcherServle
在使用springMVC的时候报: WARNING: No mapping found for HTTP request with URI [/springMVC/hello] in DispatcherServlet with name ‘mydemo’解决方法: 在项目名-servlet.xml文件中,扫描地址要正确:原创 2016-05-13 15:55:31 · 23112 阅读 · 0 评论 -
error:Cannot pull with rebase
git 执行git pull –rebase报错误如下: error: Cannot pull with rebase: You have unstaged changes. error: Additionally, your index contains uncommitted changes. 原因:如果有未提交的更改,是不能git pull的解决: 先执行git stas原创 2017-04-25 09:18:46 · 49658 阅读 · 5 评论 -
Java小知识
本文记下平时工作中整理到的一些问题和知识,会随时更新增加新的小知识: 1、 Map a = new HashMap(); List b = new ArrayList(); for(int i=0;i<5;i++){ a.put("a1", i+"11"); a.put("a2", i+"22");原创 2016-04-25 12:00:26 · 1340 阅读 · 0 评论 -
java基础常忘又常用代码
1、正则表达式代码public static void main(String[] args) { /** * 描述一个邮箱的正则表达式 * fancq_123@qq.com */ String reg = "[a-zA-Z0-9_]+@[0-9a-zA-Z]+\\.com"; String mail = "fan原创 2016-12-07 15:36:09 · 987 阅读 · 0 评论 -
svn提交报org.apache.subversion.javahl.ClientException: Filesystem has no item
在进行svn提交的时候报错,显示org.apache.subversion.javahl.ClientException: Filesystem has no itemsvn: Commit failed (details follow):svn: '/svnroot/!svn/me' path not found 同时,在eclipse控制台有报错误: commit -m “” E:/wor原创 2016-04-19 18:05:52 · 22604 阅读 · 1 评论 -
eclipse提示class file editor source not found的解决方法
在eclipse里导入了项目,但是最后运行时报jar包里某个用到类不存在。点击“ctrl”+类名,发现eclipse提示class file editor source not found。原因分析: 项目–>build path –>configure build path –>Add External JARs。这种导包的方式实际并没有做到真正的将jar包放入到项目中,而是在项目中引用了你放入原创 2016-05-13 15:29:56 · 19738 阅读 · 0 评论 -
阿里巴巴java开发手册容易忽视的几个知识点
一、编程规约(一)命名规范:1、常量命名全部大写,单词间用下划线隔开,力求语义表达完整清楚,不要嫌名字长,正确的如:MAX_STOCK_COUNT;2、抽象类命名使用 Abstract 或 Base 开头;异常类命名使用 Exception 结尾;3、中括号是数组类型的一部分,数组定义如下:String[] args;反例:使用String args[]的方式来定义。3、POJO 类中布尔类型的变...原创 2018-04-08 22:58:37 · 614 阅读 · 0 评论