zno2

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页

2016年10月9日 #

快速创建一个 Servlet 项目(2)

摘要: 1. 新建一个 webapp 参考 http://www.cnblogs.com/zno2/p/5909019.html 2.调整jdk版本 修改 pom.xml 文件,将jdk 调整为适当的版本,比如 1.7 上面这个错误需要执行一下 maven - update project 3. 升级web 阅读全文

posted @ 2016-10-09 16:21 zno2 阅读(427) 评论(0) 推荐(0)

java.util.zip.ZipException: invalid LOC header (bad signature)

摘要: 解释 这个错误是 jar包 的签名错误 解决办法 删除旧jar包,重新下载 阅读全文

posted @ 2016-10-09 16:21 zno2 阅读(334) 评论(0) 推荐(0)

url pattern

摘要: JSR340 在Servlet规范中,关于 web.xml 的 url-pattern 两种格式: 例如:/* 例如:*.do 规范中不存在 /** 上面的日志信息中指出 这是可疑的 ,请参考 Servlet 参考文档的 12.1 和 12.2 章节 spring mvc 中dispatcher 的 阅读全文

posted @ 2016-10-09 16:21 zno2 阅读(997) 评论(0) 推荐(0)

快速创建一个 spring mvc 示例

摘要: 1. 创建一个 servlet 项目 参考 http://www.cnblogs.com/zno2/p/5908589.html 2. 引入 spring mvc 依赖 注:在sts中创建spring bean configuration file 时就可以载入Namespaces (视情况需 up 阅读全文

posted @ 2016-10-09 16:21 zno2 阅读(229) 评论(0) 推荐(0)

Servlet Life Cycle

摘要: Servlet Life Cycle http://docs.oracle.com/javaee/5/tutorial/doc/bnafi.html Servlet Filters and Event Listeners http://docs.oracle.com/cd/B14099_19/web 阅读全文

posted @ 2016-10-09 16:21 zno2 阅读(473) 评论(0) 推荐(0)

webAppRootKey

摘要: Spring MVC 中的web.xml 中这个配置是什么意思呢? 查找资料后这个是由Spring 定义的一个值 具体作用在源码中: 它的作用就是 System.setProperty(key,root); key 的默认值 "webapp.root" 给这个key 换一个名字 root 是 ser 阅读全文

posted @ 2016-10-09 16:20 zno2 阅读(1397) 评论(0) 推荐(0)

Java EE Servlet 几个path

摘要: ContextPath Context ['kɒntekst] 不识庐山真面目,只缘身在此山中。 相对路径 RealPath 绝对路径 ServletPath 就是servlet-mapping 中 的 url-pattern 阅读全文

posted @ 2016-10-09 16:20 zno2 阅读(387) 评论(0) 推荐(0)

2016年9月22日 #

org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0

摘要: 顺藤摸瓜,查看Eclipse 使用的 maven版本 (Window - Preferences - Maven - Installations) 发现用的是内置版本3.3.9 查看官网 http://maven.apache.org/download.cgi 发现这个版本最低要求JDK 1.7 继 阅读全文

posted @ 2016-09-22 19:24 zno2 阅读(17910) 评论(0) 推荐(0)

java.io.IOException: Can't read [\jre\lib\rt.jar]

摘要: 不要只看前半段,关键信息是 Unsupported version number [52.0] 降低jdk版本到1.7 也许1.6 就好了 版本对照表 http://docs.oracle.com/javame/config/cldc/opt-pkgs/api/cldc/api/doc-files/ 阅读全文

posted @ 2016-09-22 18:06 zno2 阅读(1863) 评论(0) 推荐(0)

2016年9月21日 #

Eclipse sysout 和 fore 不起作用

摘要: Content Assist ↑ 这是主角,可以快速生成语句。 sysout 快捷键之后生成了 System.out.println(); fore 快捷键之后生成了 for(String arg : args){}; 最近发现自己习惯使用的 Ctrl+/ 不好用了 原因是什么呢? 调查发现 Wor 阅读全文

posted @ 2016-09-21 14:47 zno2 阅读(486) 评论(0) 推荐(0)

2016年9月20日 #

可执行 jar | 到底如何执行

摘要: dog.jar bark.jar ps:When you use the -jar option, the specified JAR file is the source of all user classes, and other class path settings are ignored. 阅读全文

posted @ 2016-09-20 17:15 zno2 阅读(313) 评论(0) 推荐(0)

Remote Debugging (1)

摘要: The client/server design of the Java debugger allows you to launch a Java program from computer on your network and debug it from the workstation runn 阅读全文

posted @ 2016-09-20 17:15 zno2 阅读(244) 评论(0) 推荐(0)

Remote Debugging (2)

摘要: use Eclipse| a Java application 创建一个简单的maven项目 Main.java package cn.zno; public class Main { public static void main(String[] args) { for (String arg 阅读全文

posted @ 2016-09-20 17:15 zno2 阅读(256) 评论(0) 推荐(0)

Remote Debugging (3)

摘要: use Eclipse| a Web application 创建一个简单的web项目 AServlet.java package cn.zno; import java.io.IOException; import javax.servlet.ServletException; import ja 阅读全文

posted @ 2016-09-20 17:15 zno2 阅读(189) 评论(0) 推荐(0)

Using batch files

摘要: https://technet.microsoft.com/en-us/library/bb490869.aspx 阅读全文

posted @ 2016-09-20 17:15 zno2 阅读(108) 评论(0) 推荐(0)

java -version 版本号与path中配置的不一致

摘要: Error: could not open `F:\e\java\jre7\lib\amd64\jvm.cfg' C:\Users\wl>java -versionError: could not open `F:\e\java\jre7\lib\amd64\jvm.cfg' Win+R 输入reg 阅读全文

posted @ 2016-09-20 17:14 zno2 阅读(372) 评论(1) 推荐(0)

STS启动失败:Failed to load the JNI shared library

摘要: 版本位不一致 jdk 版本 ↓ eclipse 版本(%STS_HOME%/STS.ini) 阅读全文

posted @ 2016-09-20 17:13 zno2 阅读(1436) 评论(0) 推荐(0)

jar

摘要: https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html Introduction The META-INF directory Name-Value pairs and Sections JAR Manifest Ove 阅读全文

posted @ 2016-09-20 17:13 zno2 阅读(215) 评论(0) 推荐(0)

java -help

摘要: site:oracle.com java_opts classpath https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html 阅读全文

posted @ 2016-09-20 17:11 zno2 阅读(187) 评论(0) 推荐(0)

2016年9月9日 #

best performance / best appearance

摘要: 阅读全文

posted @ 2016-09-09 10:51 zno2 阅读(245) 评论(0) 推荐(0)

2016年9月7日 #

20) maven 项目结构:all in one

摘要: 这是最常见的项目结构 垂直结构 也是初学者常用的 也是小项目常用的 优点 全部代码在一个项目里,一目了然。 结构简单易于理解 一开始时小巧 缺点 随之而来的缺点也十分明显 前端项目,后端项目,接口项目等 多项目之间没有共用的代码,代码将被各种复制粘贴,越来越难维护 难于大型化分布式 高耦合 阅读全文

posted @ 2016-09-07 17:05 zno2 阅读(318) 评论(0) 推荐(0)

19) maven 项目结构:聚集

摘要: Project Aggregation [,æɡrɪ'ɡeɪʃən] https://maven.apache.org/guides/introduction/introduction-to-the-pom.html https://maven.apache.org/guides/mini/guid 阅读全文

posted @ 2016-09-07 16:55 zno2 阅读(430) 评论(0) 推荐(0)

18) maven 项目结构:继承

摘要: Project Inheritance [ɪn'herɪt(ə)ns] https://maven.apache.org/guides/introduction/introduction-to-the-pom.html 继承是指pom之间的继承 常见的继承项: <groupId></groupId> 阅读全文

posted @ 2016-09-07 14:53 zno2 阅读(152) 评论(0) 推荐(0)

2016年8月25日 #

ejb servlet demo

摘要: 官方文档: http://docs.oracle.com/javaee/6/tutorial/doc/gijre.html 启动log: 访问: http://localhost:8080/converter/ConverterServlet?amount=100 结果: ps: 访问http:// 阅读全文

posted @ 2016-08-25 17:00 zno2 阅读(361) 评论(0) 推荐(0)

2016年8月7日 #

checked unchecked Exception

摘要: https://docs.oracle.com/javase/specs/jls/se8/html/jls-11.html That is, the checked exception classes are Throwable and all its subclasses other than R 阅读全文

posted @ 2016-08-07 09:51 zno2 阅读(194) 评论(0) 推荐(0)

2016年8月6日 #

JAVA 面试题及思考

摘要: 学而时习之 1. 关键词:java内存分配 2. 关键词:c for 3. 关键词:override , overload The public type A must be defined in its own file Cannot reduce the visibility of the in 阅读全文

posted @ 2016-08-06 08:25 zno2 阅读(456) 评论(0) 推荐(0)

hash

摘要: 一、维基百科怎么说 A hash function is any function that can be used to map data of arbitrary size to data of fixed size. The values returned by a hash function 阅读全文

posted @ 2016-08-06 08:25 zno2 阅读(409) 评论(0) 推荐(1)

mybatis sql xml 字符逃脱

摘要: where a 不等于 1 where a <> 1 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(136) 评论(0) 推荐(0)

XML xmlns

摘要: xmlns xml namespaces 参考 http://www.w3school.com.cn/tags/tag_prop_xmlns.asp http://www.w3school.com.cn/xml/xml_namespaces.asp 放到同一个文件中,分不清楚,加上命名空间就可以分清 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(161) 评论(0) 推荐(0)

SecureCRTv7.3 和 navicat110_mysql

摘要: 激活SecureFX 时,不需要patch,只需要 名字和CRT一直,生成几个参数,填写完即可激活。(但是版本要保持一致,目前7无法激活8) navicat for mysql PatchNavicat.exe 使用这个打补丁 这些下载文件收录在微云。 阅读全文

posted @ 2016-08-06 08:24 zno2 阅读(555) 评论(0) 推荐(0)

npp 文本编辑器 开源

摘要: 下载地址 https://notepad-plus-plus.org/download/v6.8.4.html 使用过程中发现有一个自动提示功能很烦人,如何取消呢? Settings -> Preferences -> Auto-Completion -> 取消勾选 -> Close 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(424) 评论(0) 推荐(0)

winrar 真正的官网是没有广告的,google即得

摘要: http://www.rarlab.com/download.htm 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(630) 评论(0) 推荐(0)

chrome 字体太浅,如何设置

摘要: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-directwrite-for-ui 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(683) 评论(0) 推荐(0)

常见笔记本进入bios方法

摘要: 联想 y510p ->F2 ThinkPad E431 -> Fn + F1 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(188) 评论(0) 推荐(0)

保存分区表时出现错误(0000000001)函数不正确

摘要: 进入Windows PE —— 打开diskgenius 1. 区全部删掉 2. 菜单栏“硬盘”->“转化分区表类型为MBR格式” 3. 右键硬盘 -> 快速分区 注:Windows Preinstallation Environment(Windows PE),Windows预安装环境,是带有有限 阅读全文

posted @ 2016-08-06 08:23 zno2 阅读(4456) 评论(0) 推荐(0)

一些好的查询网站

摘要: 全国企业信息查询 好商网 www.haob2b.com 卫星地图 相约久久 http://www.meet99.com/map ip 、区号、手机归属地 、 地名查询 查询网 http://www.ip138.com/ 这是幻觉吗:http://neave.com/strobe/ 免费下载韦伯词典 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(281) 评论(0) 推荐(1)

JAVA开发常用计算机命令

摘要: 系统常用命令 win+r > control (可进入控制面板,管理工具,服务) win+r > cmd > systeminfo (x86-based 指32位系统,x86-64 指64位系统) 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(120) 评论(0) 推荐(0)

开机配置

摘要: 一些单词: Legacy 遗产 Legacy Mode 传统模式 BIOS Base Input Output System 基本输入输出系统 UEFI Unified Extensible Firmware Interface 【统一的,可扩展的,固件,接口】 统一的可扩展固件接口 ?扩展阅读? 阅读全文

posted @ 2016-08-06 08:22 zno2 阅读(190) 评论(0) 推荐(0)

Md5 util

摘要: Md5PasswordEncoder.java http://docs.spring.io/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/authentication/encoding/PasswordEnc 阅读全文

posted @ 2016-08-06 08:21 zno2 阅读(125) 评论(0) 推荐(0)

文件拷贝工具类

摘要: https://docs.spring.io/spring/docs/1.2.x/javadoc-api/org/springframework/util/FileCopyUtils.html 用法举例: 阅读全文

posted @ 2016-08-06 08:21 zno2 阅读(191) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页

导航