- 博客(46)
- 收藏
- 关注
原创 Android访问本机ip
Android模拟器(simulator)把它自己作为了localhost,也就是说,代码中使用localhost或者127.0.0.1来访问,都是访问模拟器自己!这是不行的! 如果你想在模拟器simulator上面访问你的电脑,那么就使用android内置的IP 10.0.2.2 吧,10.0.2.2 是模拟器设置的特定ip,是你的电脑的别名alias 记住,...
2012-05-20 18:19:37
299
原创 linux jdk安装
jdk新的下载地址: [url]http://www.oracle.com/technetwork/java/javase/downloads/index.html[/url] [url]http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html[/url] 有两种安装包...
2012-03-22 14:41:46
205
WebLogic Server 12c (12.1.1)安装
下载地址: [url]http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html[/url] 下载Installers with Oracle WebLogic Server and Oracle Coherence:的Generic (997 MB) 得到一个jar包wl...
2012-03-22 11:33:07
375
原创 struts2自定义类型转换
实现了自定义类型转换器之后,将该类型转换器注册在Web应用中,Struts2框架才可以正常使用该类型转换器。 关于类型转换器的注册方式,主要有一下几种: A、注册局部类型转换器:仅仅对某个Action的属性起作用。 在Action相同包下新建BigDecimalConverter类 [code="java"]import java.math.BigDecimal; import...
2012-03-21 11:36:32
138
原创 getRequestURI,getRequestURL的区别
test1.jsp======================= 跳转到test2 test2.jsp======================= 显示结果: [color=blue]basePath:http://localhost:8080/test/ getContextPath:/test getServletPath:/test.jsp getReque...
2012-03-21 10:11:43
340
内部框架页session过期时实现整个框架页跳转到登陆页
在登陆页展示之前加上如下代码 [code="js"]if (window != top) { top.location.href = location.href; }[/code]
2012-03-20 15:30:38
139
原创 weblogic缓存清除
Weblogic是一个强大的企业级J2EE WEB应用中间件,使用相当广泛。 今天部署项目到WebLogic,发现代码总不能生效,查了好久都查不出原因,最后想到可能是缓存文件的原因,可是这缓存文件到底在哪里呢? 在Tomcat中,我们知道%catalina_home%\work是存放缓存文件的地方,发现上述情况,可以通过删除这里面的文件,让它重新编译,以便代码生效。 可...
2012-03-19 17:25:24
322
原创 weblogic 文档
官方网站 [url]http://docs.oracle.com/cd/E12840_01/wls/docs103/sitemap.html[/url] 官方weblogic.xml配置 [url]http://docs.oracle.com/cd/E23943_01/web.1111/e13712/weblogic_xml.htm#autoId0[/url] ...
2012-03-18 11:07:22
209
原创 DWR CSRF Security Error
在weblogic出现错误:DWR CSRF Security Error 解决办法: 修改 web.xml 中 DWR 配置信息 原: dwr-invoker org.directwebremoting.spring.DwrSpringServlet debug true ...
2012-03-18 00:07:11
149
原创 jar命令
jar 功能说明: Java归档工具 语法: jar [ 命令选项 ] [manifest] destination input-file [input-files] 补充说明: jar工具是个java应用程序,可将多个文件合并为单个JAR归档文件。jar是个多用途的存档及压缩工具,它基于ZIP和ZLIB压缩格式。然而, 设计jar的主要目的是便于将java ...
2012-03-17 10:37:58
162
jaxb2MarshallingView两种配置方式
[code="xml"] com.aa.User com.aa.AccountBean [/code] ...
2012-03-12 16:22:02
448
将一个对象的所有字段名称和值放到map
假设 value为对象 ,类为entityClass [code="java"]private Class entityClass;[/code] [code="java"] Map entityColumnMap = new HashMap(); PropertyDescriptor[] propDescs = PropertyUtils.getPropertyDe...
2012-03-12 09:33:21
1478
原创 spring的ParameterMethodNameResolver
spring的ParameterMethodNameResolver的可以根据不同的参数执行不同方法,类似Struts的dyncaction 下面有一个例子 package ee.bug; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.ht...
2012-03-04 10:37:04
178
原创 Struts2JSON
转载自: [url]http://code.google.com/p/j2eewiki/wiki/Struts2JSON[/url] 1.导入jsonplugin包 Struts2.16:导入jsonplugin-0.34.jar包(下载包)和commons-logging-1.0.4.jar(Struts2 lib下有) Struts2.18导入struts2-json-pl...
2012-02-26 21:06:09
127
原创 solr相关下载网址
[b]官方网[/b]: [url]http://lucene.apache.org/solr/[/url] [b]下载地址[/b]: [url]http://apache.etoak.com//lucene/solr/[/url] [b]最新版本[/b]: For information about working with the most current (unofficia...
2012-02-25 23:09:31
150
原创 xml有哪些解析技术?区别是什么?
答:有DOM,SAX,STAX等 DOM:处理大型文件时其性能下降的非常厉害。这个问题是由DOM的树结构所造成的,这种结构占用的内存较多,而且DOM必须在解析文件之前把整个文档装入内存,适合对XML的随机访问 SAX:不现于DOM,SAX是事件驱动型的XML解析方式。它顺序读取XML文件,不需要一次全部装载整个文件。当遇到像文件开头,文档结束,或者标签开头与标签结束时,它会触发一个事件...
2011-12-21 10:06:15
143
Nexus私服搭建
[b]1.下载[/b] [url]http://nexus.sonatype.org/downloads/[/url] [url]http://nexus.sonatype.org/downloads/nexus-oss-webapp-1.9.1.1-bundle.zip[/url] [b]2.安装和启动服务[/b] 到目录:D:\Development_Tools\nexus-o...
2011-06-02 14:35:48
110
Profile中允许出现的元素
[code="xml"] ... ... ... ... ... ... ... ... ... ... ... ... ... ...
2011-05-26 13:22:04
178
原创 使Maven 2在package、install等阶段跳过运行Test的配置
方法1: To skip running the tests for a particular project, set the skipTests property to true. [...] org.apache.maven.plugins maven-surefi...
2011-05-24 13:56:35
130
Oracle 10g轻量级客户端安装
oracle技术官方网 [url]http://www.oracle.com/technetwork/cn/index.html[/url] oracle技术官方网下载页面 [url]http://www.oracle.com/technetwork/cn/indexes/downloads/index.html[/url] oracle技术官方网Instant Client下载列...
2011-05-23 10:05:27
158
mongodb入门
1.下载地址: http://www.mongodb.org/downloads 如: http://downloads.mongodb.org/win32/mongodb-win32-i386-1.8.1.zip 2.启动服务: 解压,然后在根目录下创建文件夹 \data\db 在bin目录下执行: mongod -dbpath=D:\Development_Tools...
2011-05-22 11:03:20
93
原创 CheckStyle、cobertura、Findbugs与Maven2的集成
转载自:http://julianlali.blog.163.com/blog/static/58133643201023103035974/ (一) 将CheckStyle(http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html)、FindBugs(http://mojo.codehaus.org/...
2011-05-20 13:50:51
180
maven命令
The report will be generated when you execute: [b]mvn site[/b] Explicitly Generate JXR Files The JXR files for the project's main sources will be generated using this command: [b]m...
2011-05-19 16:39:21
107
css基础
[b]css优先级:[/b] div 1 .class 10 #id 100 style 1000 [b]position:[/b] relative(相对定位,以自己为参照物移动 不脱离文档流) absolute(选取其最近的父级定位元素做参照物来定位,脱离文档流) fixed(以浏览器为参照物定位 脱离文档流)----[b]不受浏览器分辨率设置等因素影响[/b] ...
2011-05-19 14:14:19
111
Maven Archetype Plugin
[url]http://maven.apache.org/archetype/maven-archetype-plugin/[/url] [color=olive]•archetype:create-from-project creates an archetype from an existing project.[/color] [url]http://maven.apac...
2011-05-18 16:35:56
116
原创 apache整合svn
[b]一、Apache2.2.14\conf\httpd.conf[/b] 添加如下内容: [color=olive]#解决httpd: Could not reliably determine the server's fully qualified domain name ServerName localhost:80 Listen 80 ServerAdmin shenjc@...
2011-05-18 14:23:11
118
网站性能优化七---yahoo网站页面性能优化34条黄金守则---mobile
[color=red][b]1.Keep Components under 25K 保持单个内容小于25K[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#under25[/url] [color=blue]这条限制主要是因为iPhone不能缓存大于25K的文件。[/color]注意这里指的是解...
2011-05-14 22:40:49
171
网站性能优化六---yahoo网站页面性能优化34条黄金守则---server
[color=red][b]1.Use a Content Delivery Network 使用内容分发网络[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#cdn[/url] 按地域布置网站内容的第一步并不是要尝试重新架构你的网站让他们在分发服务器上正常运行。[color=olive]根据应...
2011-05-14 22:29:22
144
网站性能优化五---yahoo网站页面性能优化34条黄金守则---content
[color=red][b]1.Minimize HTTP Requests 尽量减少HTTP请求次数[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#num_http[/url] [color=olive]CSS Sprites[/color]是减少图像请求的有效方法。把所有的背景图像都放到一...
2011-05-14 17:41:51
234
网站性能优化四---yahoo网站页面性能优化34条黄金守则---cookie
[color=red][b]1.Reduce Cookie Size 减小Cookie体积[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#cookie_size[/url] [color=blue]coockie内的有关信息是通过HTTP文件头来在web服务器和浏览器之间进行交流的。因此保持c...
2011-05-12 17:02:36
177
原创 网站性能优化三---yahoo网站页面性能优化34条黄金守则---javascript
[color=red][b]1.Put Scripts at the Bottom 把脚本置于页面底部[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#js_bottom[/url] 脚本带来的问题就是它阻止了页面的平行下载。HTTP/1.1 规范建议,浏览器每个主机名的并行下载内容不超过两个。...
2011-05-12 14:37:46
162
原创 网站性能优化二---yahoo网站页面性能优化34条黄金守则---images
[color=red][b]1.Optimize Images 优化图像[/b][/color] [url]http://developer.yahoo.com/performance/rules.html#opt_images[/url] 你可以检查一下你的GIF图片中图像颜色的数量是否和调色板规格一致。 使用imagemagick中下面的命令行很容易检查: identify...
2011-05-12 09:30:17
148
原创 网站性能优化一---yahoo网站页面性能优化34条黄金守则---css
参考资料: [url]http://developer.yahoo.com/performance/rules.html[/url] [url]http://apps.hi.baidu.com/share/detail/14611816[/url] [color=red][b]1.Put Stylesheets at the Top 把样式表置于顶部[/b][/color]...
2011-05-07 22:42:58
149
原创 Header Field Definitions
Header Field Definitions [url]http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[/url]
2011-05-06 22:42:39
164
关于jsp
设置chartset JSP注释,也称为“隐藏注释”。JSP引擎将忽略它。标记内的所有JSP脚本元素、指令和动作都将不起作用。 HTML注释,也称为“输出的注释”,直接出现在结果HTML文档中。标记内的所有JSP脚本元素、指令和动作正常执行。 第一种: [color=blue] [/color] -跳转后地址不变。这种跳转称为服务器端跳转。 第二种: [color...
2011-05-05 11:22:46
101
adobe软件下载及安装
下载地址: http://get.adobe.com/reader/ http://get.adobe.com/flashplayer/ http://get.adobe.com/air/ http://get.adobe.com/shockwave/ 这里会下载到一个adobe的下载工具,Adobe Download Manager, 它会把安装包下载到这个目录下: C:\...
2011-04-24 16:30:20
473
web.xml中配置过滤器的正确顺序
web.xml filter顺序: OpenSessionInViewFilter, UrlRewriteFilter, struts2-cleanup, struts2
2011-04-24 15:53:04
714
关于win7的一些笔记
快速启动任务条的快捷方式保存路径: C:\Users\shenjc\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
2011-04-24 15:46:07
210
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅