会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tyb1222
个人博客:https://tao-yb.github.io/blogs/
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2015年1月22日
spring mvc 配置对静态资源的访问
摘要: 在spring mvc的配置文件中做如下配置:1、 1、 2.
阅读全文
posted @ 2015-01-22 12:13 tyb1222
阅读(3917)
评论(0)
推荐(0)
2015年1月16日
EntLib 自动数据库连接字符串加密
摘要: const string provider = "RsaProtectedConfigurationProvider"; Configuration config = null; config = ConfigurationManager...
阅读全文
posted @ 2015-01-16 16:49 tyb1222
阅读(534)
评论(0)
推荐(0)
2015年1月9日
块级格式化上下文( Block formatting contexts)
摘要: 那么如何触发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
阅读(207)
评论(0)
推荐(0)
2015年1月6日
Entlib DAAB映射枚举类型
摘要: 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
阅读(247)
评论(0)
推荐(0)
2014年12月30日
js 继承
摘要: 混合方式这种继承方式使用构造函数定义类,并非使用任何原型。对象冒充的主要问题是必须使用构造函数方式,这不是最好的选择。不过如果使用原型链,就无法使用带参数的构造函数了。开发者如何选择呢?答案很简单,两者都用。在前一章,我们曾经讲解过创建类的最好方式是用构造函数定义属性,用原型定义方法。这种方式同样适...
阅读全文
posted @ 2014-12-30 11:55 tyb1222
阅读(167)
评论(0)
推荐(0)
js 规范
摘要: 1、原型链的弊端是不支持多重继承。记住,原型链会用另一类型的对象重写类的 prototype 属性2、注意:调用 ClassA 的构造函数,没有给它传递参数。这在原型链中是标准做法。要确保构造函数没有任何参数。代码:function ClassA() {}摘录自:http://www.w3schoo...
阅读全文
posted @ 2014-12-30 11:48 tyb1222
阅读(214)
评论(0)
推荐(0)
2014年12月25日
伪类
摘要: 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
阅读(269)
评论(0)
推荐(0)
2014年12月17日
css 技巧
摘要: 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
阅读(140)
评论(0)
推荐(0)
块状元素与内联元素
摘要: 1、块状元素 。一般为容器类型的元素,排斥其他元素与其位于同一行,width,height对其起作用。如div,p h1等标签元素2、内联元素。只能容纳文本或者其他内联元素,允许其他内联元素与其位于同一行,width,height对其不起作用,如a标签。XHTML规范中:内联元素可以继承块元素,反之...
阅读全文
posted @ 2014-12-17 11:32 tyb1222
阅读(165)
评论(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
阅读(543)
评论(0)
推荐(0)
css 选择器
摘要: 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
阅读(220)
评论(0)
推荐(0)
2014年12月11日
Spring Security 匿名认证
摘要: 1、项目截图:2、匿名认证配置: --设置ROLE_USER访问权限 --> ...
阅读全文
posted @ 2014-12-11 16:39 tyb1222
阅读(5883)
评论(0)
推荐(0)
Spring Security 指定登陆入口
摘要: spring security除通过form-login的熟悉指定登陆还可以通过entry-point-ref 指定登陆入口。具体配置如下: ...
阅读全文
posted @ 2014-12-11 15:47 tyb1222
阅读(2175)
评论(0)
推荐(0)
2014年12月10日
Spring Security 使用数据库用户进行认证
摘要: 本文参考或摘录自:http://haohaoxuexi.iteye.com/blog/2157769本文使用Spring Security自带的方式连接数据库对用户进行认证。1、Spring Security 默认的表脚本:/*Navicat MySQL Data TransferSource Se...
阅读全文
posted @ 2014-12-10 15:56 tyb1222
阅读(2584)
评论(0)
推荐(0)
java 中使用log4j
摘要: 一、控制台使用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
阅读(290)
评论(0)
推荐(0)
2014年12月5日
Spring Security 认证流程
摘要: 请求之间共享SecurityContext原因:
阅读全文
posted @ 2014-12-05 17:48 tyb1222
阅读(391)
评论(0)
推荐(0)
Spring Security 之Http Basic认证
摘要: 使用Spring Security进行http Basic认证非常简单,直接配置即可使用,如下: ...
阅读全文
posted @ 2014-12-05 16:07 tyb1222
阅读(2676)
评论(0)
推荐(0)
Spring Security登陆
摘要: 本文参考或摘录自:http://haohaoxuexi.iteye.com/blog/2154714 在上一篇中使用Spring Security做了一些安全控制,如Spring Security 自动生成登陆页面登陆以后便能正常使用系统。本文介绍Spring Security 自定义登陆页面...
阅读全文
posted @ 2014-12-05 16:03 tyb1222
阅读(6346)
评论(0)
推荐(0)
初识Spring Security
摘要: 本文参考或者转自:http://haohaoxuexi.iteye.com/blog/21542991、新建Spring Security配置文件spring-security.xml: ...
阅读全文
posted @ 2014-12-05 10:04 tyb1222
阅读(395)
评论(0)
推荐(0)
2014年12月4日
Spring Mvc 入门Demo
摘要: 1、web.xml配置 --Spring Controller 配置 contextConfigLocation /WEB-INF/dispatcher-servlet.xml org.springframework.web.c...
阅读全文
posted @ 2014-12-04 20:17 tyb1222
阅读(351)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告