摘要: 在spring mvc的配置文件中做如下配置:1、 1、 2. 阅读全文
posted @ 2015-01-22 12:13 tyb1222 阅读(3905) 评论(0) 推荐(0) 编辑
摘要: const string provider = "RsaProtectedConfigurationProvider"; Configuration config = null; config = ConfigurationManager... 阅读全文
posted @ 2015-01-16 16:49 tyb1222 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 那么如何触发BFC呢?float 除了none以外的值overflow 除了visible 以外的值(hidden,auto,scroll )display (table-cell,table-caption,inline-block)position(absolute,fixed)fieldset... 阅读全文
posted @ 2015-01-09 12:35 tyb1222 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1、IRowMapper addressMapper = MapBuilder.MapAllProperties() .Map(p => p.Gender) .WithFunc(rec => rec.IsDBNull(rec.GetOrdinal("gender"))? Gender.Female:... 阅读全文
posted @ 2015-01-06 10:39 tyb1222 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 混合方式这种继承方式使用构造函数定义类,并非使用任何原型。对象冒充的主要问题是必须使用构造函数方式,这不是最好的选择。不过如果使用原型链,就无法使用带参数的构造函数了。开发者如何选择呢?答案很简单,两者都用。在前一章,我们曾经讲解过创建类的最好方式是用构造函数定义属性,用原型定义方法。这种方式同样适... 阅读全文
posted @ 2014-12-30 11:55 tyb1222 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1、原型链的弊端是不支持多重继承。记住,原型链会用另一类型的对象重写类的 prototype 属性2、注意:调用 ClassA 的构造函数,没有给它传递参数。这在原型链中是标准做法。要确保构造函数没有任何参数。代码:function ClassA() {}摘录自:http://www.w3schoo... 阅读全文
posted @ 2014-12-30 11:48 tyb1222 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1、链接伪类::link:visited2、动态伪类(可应用到任何元素):focus:hover:active伪类顺序很重要;通常建议:link-visited-focus-hover-active3、静态伪类:first-child(第一个此类元素) p:first-child { font-we... 阅读全文
posted @ 2014-12-25 17:09 tyb1222 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1、margin: 上右下左顺序margin-top: 20;margin-left: 20=margin:20 0 0 20margin:20 0=margin:20 0 20 02、!important (出现在熟悉值最后)指明规则重要性。如果规则出现冲突,!important将胜出。如:p {... 阅读全文
posted @ 2014-12-17 11:35 tyb1222 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1、块状元素 。一般为容器类型的元素,排斥其他元素与其位于同一行,width,height对其起作用。如div,p h1等标签元素2、内联元素。只能容纳文本或者其他内联元素,允许其他内联元素与其位于同一行,width,height对其不起作用,如a标签。XHTML规范中:内联元素可以继承块元素,反之... 阅读全文
posted @ 2014-12-17 11:32 tyb1222 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1、选择器集体声明h1,h2,h3{color:#900 }无论什么样的选择器,只有有公共的CSS 代码,都可以用这种集体声明来精简代码。如下代码进行精简:#header {font-size: 12px;background: 0230} div {font-size: 12px; wi... 阅读全文
posted @ 2014-12-17 10:51 tyb1222 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1、标签选择器p{font-size: 12px;background: #900;color: 090;}2、ID选择器 Id选择器3、类选择器 .one { font-size: 26px; background: #900; c... 阅读全文
posted @ 2014-12-17 10:16 tyb1222 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1、项目截图:2、匿名认证配置: --设置ROLE_USER访问权限 --> ... 阅读全文
posted @ 2014-12-11 16:39 tyb1222 阅读(5840) 评论(0) 推荐(0) 编辑
摘要: spring security除通过form-login的熟悉指定登陆还可以通过entry-point-ref 指定登陆入口。具体配置如下: ... 阅读全文
posted @ 2014-12-11 15:47 tyb1222 阅读(2093) 评论(0) 推荐(0) 编辑
摘要: 本文参考或摘录自:http://haohaoxuexi.iteye.com/blog/2157769本文使用Spring Security自带的方式连接数据库对用户进行认证。1、Spring Security 默认的表脚本:/*Navicat MySQL Data TransferSource Se... 阅读全文
posted @ 2014-12-10 15:56 tyb1222 阅读(2561) 评论(0) 推荐(0) 编辑
摘要: 一、控制台使用1、导入log4j包到工程中2、配置:log4j.rootLogger=DEBUG,console,Rlog4j.appender.console=org.apache.log4j.ConsoleAppenderlog4j.appender.console.threshold=INFO... 阅读全文
posted @ 2014-12-10 11:21 tyb1222 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 请求之间共享SecurityContext原因: 阅读全文
posted @ 2014-12-05 17:48 tyb1222 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 使用Spring Security进行http Basic认证非常简单,直接配置即可使用,如下: ... 阅读全文
posted @ 2014-12-05 16:07 tyb1222 阅读(2646) 评论(0) 推荐(0) 编辑
摘要: 本文参考或摘录自:http://haohaoxuexi.iteye.com/blog/2154714 在上一篇中使用Spring Security做了一些安全控制,如Spring Security 自动生成登陆页面登陆以后便能正常使用系统。本文介绍Spring Security 自定义登陆页面... 阅读全文
posted @ 2014-12-05 16:03 tyb1222 阅读(6277) 评论(0) 推荐(0) 编辑
摘要: 本文参考或者转自:http://haohaoxuexi.iteye.com/blog/21542991、新建Spring Security配置文件spring-security.xml: ... 阅读全文
posted @ 2014-12-05 10:04 tyb1222 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1、web.xml配置 --Spring Controller 配置 contextConfigLocation /WEB-INF/dispatcher-servlet.xml org.springframework.web.c... 阅读全文
posted @ 2014-12-04 20:17 tyb1222 阅读(342) 评论(0) 推荐(0) 编辑