上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 1 String path = request.getContextPath(); // 获取的是 /项目名 2 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort 阅读全文
posted @ 2019-11-19 20:42 不要西红柿 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 使用cxf提供的JaxWsServerFactoryBean发布webService服务,wsdl文件中的标签会存在 wsdl:前缀。直接使用 javax.xml.ws.Endpoint; 调用publish方法发布服务 标签中不包含 wsdl: 前缀。 wsimport 生成的客户端使用方法为通过 阅读全文
posted @ 2019-11-19 20:39 不要西红柿 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 需要安装maven 2 3 mvn install:install-file -Dfile=C:\Users\sd\Desktop\com\oracle\ojdbc6\11.2.0.3.0\ojdbc6-11.2.0.3.0.jar -DgroupId=com.oracle -Dartifact 阅读全文
posted @ 2019-11-15 18:16 不要西红柿 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 1 在<Engine>的<Host>中添加 Context path为服务器映射路径 docBase为文件实际存储路径。可以将ftp服务器的图片通过http协议查询到。 2 端口号为 tomcat端口。 3 <Host appBase="webapps" autoDeploy="true" name 阅读全文
posted @ 2019-11-13 11:23 不要西红柿 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 该方法递归实现将多个文件夹压缩在同一个zip包中 然后删除文件夹directoryName 下需要被压缩的文件。 3 * @param directoryName 文件夹路径 4 * @param zos 压缩流 ZipOutputStream 确定压缩包生成的位置 5 * @p 阅读全文
posted @ 2019-11-11 17:10 不要西红柿 阅读(3127) 评论(0) 推荐(1) 编辑
摘要: 1 org.apache.commons.net.ftp.FTPClient包 api记录 2 3 //将文件上传到ftp服务器 4 storeFile(String remote, InputStream local); 5 // 从ftp文件服务器下载到本地 6 retrieveFile(Str 阅读全文
posted @ 2019-11-11 17:04 不要西红柿 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 1 @RunWith(SpringJUnit4ClassRunner.class) // 使用junit4测试 2 @ContextConfiguration(locations={"classpath:applicationContext.xml"}) // 引入spring配置文件 使用上面两个 阅读全文
posted @ 2019-11-11 16:56 不要西红柿 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 四大作用域 page request session application page request session application 九大内置对象 page request response session application out pageContext config except 阅读全文
posted @ 2019-08-13 18:06 不要西红柿 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 观察者模式简单实现,在主题中需要存在一个观察者的集合,存在一个 update(),状态改变的时候遍历调用观察者集合中的对象,调用update()方法实现通知。而观察者需要做的就是重写 update() 实现自己的逻辑,然后订阅主题,接收状态的改变信息。 上面说到的观察者模式 会导致每一个观察者都需要 阅读全文
posted @ 2019-08-01 08:31 不要西红柿 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 正数的原码等于反码等不补码。 符号位是 0。 负数的反码,需要先获取对应的原码, 符号位改为 1 然后取反码(符号位不变其他位 (0-->1), 然后去补码(末位 + 1)。 [1101]补码 = (-1) * 2^3 + 1*2^2 + 0*2^1 + 1*2^0 = -3 补码先比原码的优势在于 阅读全文
posted @ 2019-07-31 19:30 不要西红柿 阅读(246) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页