上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
框架后台已经实现了基本的增删改查公共操作类,Action调用Service,再由Service调用公共数据库操作类。正在琢磨如何把数据传输到前台并以何种方式进行展示,而且目标是能很好的实现前端开发人员与后端开发人员工作的分离,实现通过既定好的接口进行交互。先做了一个小小的实践,是这样的。。。大致思路是前后台传输使用具有固定结构的JSON字符串,JSON字符串中可以存在多个数据集,每个数据集有一个名字。前端与后端开发人员通过这个名字进行衔接。并且前台使用JQuery封装了一个common.js文件用来初始化以及处理服务端传来的JSON字符串。服务端:通过查询返回 List list = ( Read More
posted @ 2012-11-08 20:58 attitudedecidesall Views(414) Comments(0) Diggs(0) Edit
系统级:使用HTTPS协议以SSL(Security Socket Layer)交换数据,增强通信安全;通过数字签名防止传输过程篡改;对用户身份识别的UserToken使用DES算法数据加密;业务数据定时自动备份。程序级:完整的权限配置,包括功能权限和数据权限;客户端输入校验,防止JS攻击、XSS攻击、SQL注入等;辅助安全设计,比如密码控件、图片验证码、手机确认码等。 Read More
posted @ 2012-11-04 07:32 attitudedecidesall Views(174) Comments(0) Diggs(0) Edit
事件实现依赖ApplicationEvent抽象类和ApplicationListener接口,applicationContext发布(publishEvent)了事件以后,ApplicationListener的onApplicationEvent监听之: Java代码如下: 01package com.uqee.spring.applicationContext;0203import org.apache.commons.logging.Log;04import org.apache.commons.logging.LogFactory;05import org.springframew Read More
posted @ 2012-11-01 11:25 attitudedecidesall Views(202) Comments(0) Diggs(0) Edit
DispathcerServler继承FrameworkServlet FrameworkServlet 继承HttpServletBean HttpServletBean 继承 HttpServlet实现EnvironmentAware接口容器启动首先执行HttpServletBean的init方法 init方法将执行FrameworkServlet的initServletBean方法FrameworkServlet的initServletBean方法将 初始化webapplicationContext this.webApplicationContext = initWebApplicat Read More
posted @ 2012-11-01 10:19 attitudedecidesall Views(1707) Comments(1) Diggs(0) Edit
DispatcherServlet是spring的web框架(以下简称SpringWeb)中的核心servlet."Spring的web框架——象其它web框架一样——是一个请求驱动的web框架,其设计围绕一个能将请求分发到控制器的servlet,它也提供其它功能帮助web应用开发。"----《Spring Framework 开发参考手册(中文版)》而在SpringWeb框架中这个servlet就是org.springframework.web.servlet.DispatcherServlet。这个Servlet的继承关系如下图所示:SpringWeb首先将传统的Htt Read More
posted @ 2012-11-01 09:26 attitudedecidesall Views(348) Comments(0) Diggs(0) Edit
[b]1、Model[/b][size=11px][/size] [code=C#] [Serializable] public class Student { /// <summary> /// 学生编号,唯一标识 /// </summary> public int Id { get; set; } /// <summary> /// 学生姓名 /// </summary> public string Name { get; set; } /// <summary> /// 学生性别 /// </summary> pub Read More
posted @ 2012-09-09 19:05 attitudedecidesall Views(372) Comments(0) Diggs(0) Edit
代码能说明一切:using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace DearBruce.ConAppTest { enum Color { Red, Green, Blue }struct KeyValuePair<TKey, TValue> { public TKey Key { get; set; }public TValue Value { get; set; } }cla... Read More
posted @ 2012-09-02 20:17 attitudedecidesall Views(464) Comments(0) Diggs(0) Edit
http://yp.oss.org.cn/blog/show_resource.php?resource_id=1548 Read More
posted @ 2012-08-29 13:46 attitudedecidesall Views(194) Comments(0) Diggs(0) Edit
小测试,WCF分布式事务的用法以及回滚条件 分类: WCF服务 2009-07-16 10:48 1240人阅读 评论(3) 收藏 举报Host1 宿主AHost2 宿主BHost3 宿主CClient 客户端D数据层业务层表现层测试用例:宿主A、B、C皆是WCF服务。宿主A中方法F1访问数据库Db1,宿主B中方法F2访问数据库Db2,宿主C中方法F3调用F1和F2(按先F1后F2的顺序调用),客户端D调用宿主C的方法F3,完成一个业务流程。关于分布式事务的用法在宿主A、B中,([TransactionFlow(TransactionFlowOption.Allowed)])指示F1、F2方法 Read More
posted @ 2012-08-24 16:01 attitudedecidesall Views(598) Comments(0) Diggs(0) Edit
作者:BalanUML(The Unified Modeling Language )就是统一建模语言,不论它是怎么发展来的,也不论最新的官方Specification或工业标准是哪个版本,我想总结一下工作中最常用的一些知识:用UML语言描述类的关系。1,关联关系(Association)关联关系是类(也可以说是对象)之间特定的对应关系。按照对象的数量对比,可以分为:A 一对一 比如公民和公民身份卡之间的对应关系。B 一对多 一个部门对应0或者多位员工,一般而言一位员工只能属于某一个部门。C 多对多 用户和服务是多对多的关系,一个用户可以注册0个或多个服务,一个服务则可以被0个或者多个用户复用 Read More
posted @ 2012-08-24 14:55 attitudedecidesall Views(1170) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页