zno2

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

2016年8月6日 #

文件拷贝工具类

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

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

html 源码 引入样式

摘要: post-title2 示例 sdf post-title 示例 阅读全文

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

HttpUtils

摘要: Tips: post 提交表单的时候需要注意content 的编码 ,一般约定使用UTF-8 ,系统默认编码时gb2312 如需调试,需要添加日志配置文件,级别调至 debug ,可以很方便排查乱码问题 有时候诡异的问题会出现,org.apache.commons.httpclient.HttpCl 阅读全文

posted @ 2016-08-06 08:20 zno2 阅读(307) 评论(0) 推荐(0) 编辑

其实就是这么回事

摘要: 1+2+3+4+5+6+7 = ? ①事物本身 ②分析过程 ③结果 ①③都很简单 唯独② 可以通过步骤分析计算、技巧计算、天马星空联想各种各样的途径 记忆的过程,从左至右,通过中间关联,通过无数次的推导,提升一个层次,模糊掉中间过程,A 直接 B 阅读全文

posted @ 2016-08-06 08:18 zno2 阅读(133) 评论(0) 推荐(0) 编辑

Spring 、 CXF 整合 swagger 【试炼】

摘要: 官网:http://swagger.io/ http://swagger.io/specification/ 上面就是描述了什么是 SWAGGER OBJECT 2. 如何用jax-rs 注解方式产生 SWAGGER CORE 3.如何更好的展现 SWAGGER UI 4.如何开始 找找demo 按 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(1664) 评论(0) 推荐(0) 编辑

cxf-rs 和 swagger 的点

摘要: 1. 从web.xml 说起 如果这样配置,所有的请求都走CXF(意思是作为一种资源进行请求) ,就无法访问 swagger UI ,所以不能配置成/* 应该如下配置: 这样做{协议}{host}{port}{项目}{资源} 补充welcome files:http://docs.oracle.co 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(1653) 评论(0) 推荐(0) 编辑

cxf-rs 、spring 和 swagger 环境配置切换【github 有项目】

摘要: 环境切换的目的是 准生产和生产环境切换时,只修改一个文件就可以达到效果 在spring bean 文件中 配置: 在index.jsp 中使用 再进一步: 把"http://localhost:8080/cxf-rs" 值配置到 properties 文件中 spring bean 中 常量文件 使 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(535) 评论(0) 推荐(0) 编辑

(二)swagger-springmvc

摘要: 如何入门 1. 我在 http://mvnrepository.com/ 上搜索 swagger-springmvc 2. 我找到一个具体版本 http://mvnrepository.com/artifact/com.mangofactory/swagger-springmvc/1.0.2 3. 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(151) 评论(0) 推荐(0) 编辑

(二)spring-mvc-showcase 和 swagger-springmvc 的恩恩怨怨

摘要: 1. 搜索 spring showcase 就可以找到这篇 http://spring.io/blog/2010/07/22/spring-mvc-3-showcase 就是教你如何使用spring mvc 2. 去github 下载源码 3. 接下来的任务就是将swagger 整合进去 1. 进入 阅读全文

posted @ 2016-08-06 08:17 zno2 阅读(931) 评论(0) 推荐(0) 编辑

svn 创建tag

摘要: 1. 右键项目(源) 2. 选择复制到哪个路径(创建文件夹选项) 3. 选择哪个版本(源的) 4. 填写备注 5. 结束 使用:import 、合并等 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(1593) 评论(0) 推荐(0) 编辑

swagger 入门

摘要: 官网:http://swagger.io/ Swagger UI 下载地址: https://github.com/swagger-api/swagger-ui 文档:README.md ### DownloadYou can use the swagger-ui code AS-IS! No ne 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(288) 评论(0) 推荐(0) 编辑

jax-rs

摘要: https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html http://tools.ietf.org/html/rfc5234 通过java api 注解类生成 RESTful 举例:@Path("/swagger.{type:j 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(194) 评论(0) 推荐(0) 编辑

swagger core 和 swagger ui 如何关联【窥探】

摘要: 几个片段: basePath 是定位到项目的前提下,访问谁 访问谁,访问哪个路径 !IMPORTANT 这个是基于jax-rs 项目整合的 阅读全文

posted @ 2016-08-06 08:16 zno2 阅读(645) 评论(0) 推荐(0) 编辑

配置 struts2 时掉进 web.xml 的坑

摘要: 这个声明不好用 这个声明才是struts2 的声明 会产生的问题: ${} EL 表达式无法使用。 这些路径无法获取。 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(200) 评论(0) 推荐(0) 编辑

struts2 action 中autowired 不能注入

摘要: 一、pom.xml 二、struts.xml org.apache.struts2.spring.StrutsSpringObjectFactory action 应该托管给spring 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(355) 评论(0) 推荐(0) 编辑

struts 拦截器

摘要: my-default.xml 说明:这是一个抽象的继承了struts-default.xml(位于struts2-core-xxxx.jar) 的配置文件,使用时需要被继承。 使用该文件配置的拦截器时应该这样用: my-view.xml 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(114) 评论(0) 推荐(0) 编辑

Apache Struts 2 Documentation Core Developers Guide

摘要: http://struts.apache.org/docs/core-developers-guide.html 阅读全文

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

Apache Struts 2 Documentation Big Picture

摘要: http://struts.apache.org/docs/big-picture.html 1. HttpServletRequest 穿越各个过滤器到达FilterDispatcher(这个已经不再使用,现在使用StrutsPrepareAndExecuteFilter) 2. 执行doFilt 阅读全文

posted @ 2016-08-06 08:15 zno2 阅读(197) 评论(0) 推荐(0) 编辑

JSTL 、 OGNL 与 EL

摘要: JSTL: JSP Standard Tag Library OGNL:Object-Graph Navigation Language EL:Expression Language action 中 import org.apache.struts2.ServletActionContext; i 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(157) 评论(0) 推荐(0) 编辑

struts2 的特征

摘要: web.xml 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(1058) 评论(0) 推荐(0) 编辑

The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

摘要: 多了这两个包,范围改有compile 改成 provided 阅读全文

posted @ 2016-08-06 08:14 zno2 阅读(627) 评论(0) 推荐(0) 编辑

web.xml 404 500 配置

摘要: web.xml controller.java spring mvc tree /F 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(315) 评论(0) 推荐(0) 编辑

重大发现 springmvc Controller 高级接收参数用法

摘要: 1. 数组接收 页面: ?ids=1&ids=2&ids=3 2. list 接收 package cn.zno.smse.pojo; import java.io.Serializable; import java.util.List; public class SystemUser implem 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(857) 评论(0) 推荐(0) 编辑

struts2 file

摘要: JavaBean 中: private File[] pic; private String[] picContentType; private String [] picFileName; setter getter Action中: JavaBean javaBean setter getter 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(91) 评论(0) 推荐(0) 编辑

struts2-core-2.3.20.jar

摘要: 核心配置位于该jar struts-default.xml struts-2.3.dtd 阅读全文

posted @ 2016-08-06 08:13 zno2 阅读(793) 评论(0) 推荐(0) 编辑

spring mvc 静态资源版本控制

摘要: spring bean 文件中增加 类文件 页面中: 阅读全文

posted @ 2016-08-06 08:12 zno2 阅读(379) 评论(0) 推荐(0) 编辑

spring mvc 文档哪里有

摘要: 官方: http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#spring-web The Web - Web MVC framework - Introduction to Spring 阅读全文

posted @ 2016-08-06 08:11 zno2 阅读(173) 评论(0) 推荐(0) 编辑

Spring MVC controller 被执行两次

摘要: interceptor 被执行两次 后来发现 时controller被执行两次 后来发现是jsp页面有个: 导致被执行两次。 解决方案:去掉 阅读全文

posted @ 2016-08-06 08:11 zno2 阅读(1038) 评论(0) 推荐(0) 编辑

spring 课程

摘要: 官网 参考文档 阅读全文

posted @ 2016-08-06 08:10 zno2 阅读(222) 评论(0) 推荐(0) 编辑

1) Spring_HelloWorld

摘要: 1. Spring Tool Suite™ 方式一:下载对应eclipse版本的文件,离线安装 4.4.2 springsource-tool-suite-3.6.4.RELEASE-e4.4.2-updatesite.zip 87MB 选择 Core / Spring IDE Extensions 阅读全文

posted @ 2016-08-06 08:10 zno2 阅读(206) 评论(0) 推荐(0) 编辑

spring p 标签

摘要: 需要引入命名空间 p 是什么含义 p 是 property 的缩写,为了简化bean的配置 完整项目 依赖 Spring Bean Configuration File [test.xml] java bean 文件 测试类 TestP.java 疑问 p:car 和 p:car-ref 用哪个? 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(305) 评论(0) 推荐(0) 编辑

事务不起作用 Closing non transactional SqlSession

摘要: spring文档地址 : http://docs.spring.io/spring/docs/4.2.0.RC1/spring-framework-reference/htmlsingle/#transaction-declarative-annotations 说明: 代理模式中,只拦截外部方法调 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(13849) 评论(0) 推荐(0) 编辑

Spring 获取资源文件路径

摘要: some.properties 位于classes 下 阅读全文

posted @ 2016-08-06 08:09 zno2 阅读(551) 评论(0) 推荐(0) 编辑

org.springframework spring-test

摘要: 需要的jar包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>3.2.3.RELEASE</version> <scope>test</scope> 阅读全文

posted @ 2016-08-06 08:08 zno2 阅读(1404) 评论(0) 推荐(0) 编辑

@Autowired 和 @Qualifier

摘要: 一 无冲突 bean工厂 测试主函数 javebean 片段 说明: here1 开启自动注入 here3 通过 new 的方式无法自动注入 here2 从bean工厂取的bean可以自动注入 二有冲突 单元测试: 注意: @Qualifier 必须配合 @Autowired ,否则无法注入 @Qu 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(496) 评论(0) 推荐(0) 编辑

Set List Map

摘要: ... 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(175) 评论(0) 推荐(0) 编辑

spring @Transactional 声明式事务

摘要: 项目地址:git@github.com:witaste/transaction-annotation.git 情景一: A external method calls a method of the target object 外部方法调用目标对象的事务方法,异常逐层抛出,最终由a() 抛出,可以回 阅读全文

posted @ 2016-08-06 08:07 zno2 阅读(7206) 评论(0) 推荐(0) 编辑

bean 的各个属性

摘要: http://www.springframework.org/schema/beans/spring-beans.xsd org.springframework.beans.factory.config.BeanDefinition 什么是bean Defines a single (usually 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(994) 评论(0) 推荐(0) 编辑

util:

摘要: 命名空间 xmlns:util="http://www.springframework.org/schema/util" 语法 http://www.springframework.org/schema/util http://www.springframework.org/schema/util/ 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(84) 评论(0) 推荐(0) 编辑

util:properties

摘要: 示例 全部属性 功能概述 Loads a Properties instance from the resource location specified by the ' <code>location</code> ' attribute. 属性详解 id #{A['B']} A means ut 阅读全文

posted @ 2016-08-06 08:06 zno2 阅读(786) 评论(0) 推荐(0) 编辑

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

导航