随笔分类 -  10.Spring.Net

摘要:http://stackoverflow.com/questions/4591638/spring-net-ref-to-dictionary-item<object name="Paths" id="Paths" type="System.Collections.Generic.Dictionary&lt;string,string&gt;"> <constructor-arg> <dictionary key-type="string" value-type=&qu 阅读全文
posted @ 2011-09-10 17:37 庚武 阅读(1033) 评论(0) 推荐(0) 编辑
摘要:1.Web.config:<appSettings> <add key="log4net.Internal.Debug" value="true"/></appSettings> 2.log4net_config_file.xml<appender name="DebugAppender" type="log4net.Appender.DebugAppender, log4net" > <layout type="log4net.Layout.Patt 阅读全文
posted @ 2011-09-02 15:57 庚武 阅读(1354) 评论(0) 推荐(0) 编辑
摘要:Spring: Data access using JDBCThere are a number of options for selecting an approach to form the basis for your JDBC datababse. There are three flavors of the JdbcTemplate, a new "SimpleJdbc" approach takingadvantage of data metadata.1.JdbcTemplate2.NamedParameterJdbcTemplate wraps a Jdbc 阅读全文
posted @ 2011-06-17 17:27 庚武 阅读(367) 评论(0) 推荐(0) 编辑
摘要:1.java代码://Foo.javapackage x.y.service;public class Foo { private int id; private String name; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }}//FooService.javapackage x.y.se 阅读全文
posted @ 2011-06-16 18:28 庚武 阅读(858) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-04-24 01:00 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Loggers, Appenders and LayoutsLog4j has three main components: loggers, appenders and layouts. These three types of components work together to enable developers to log messages according to message type and level, and to control at runtime how these messages are formatted and where they are reporte 阅读全文
posted @ 2011-04-21 19:13 庚武 阅读(427) 评论(0) 推荐(0) 编辑
摘要:applicationContext.xml:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx=&quo 阅读全文
posted @ 2011-04-21 16:33 庚武 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:文件下载: http://files.cnblogs.com/wucg/spring_aop_excise.zip 阅读全文
posted @ 2011-04-12 19:25 庚武 编辑
摘要://MyBean.javapackage test.aop;public class MyBean { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }//MyMethodBeforeAdvice.javapackage test.aop;import java.lang.reflect.Method;import org.springframework.aop.MethodBeforeAdvice;publ 阅读全文
posted @ 2011-04-09 19:57 庚武 阅读(330) 评论(0) 推荐(0) 编辑
摘要:AOP concepts Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology 阅读全文
posted @ 2011-04-01 14:52 庚武 阅读(333) 评论(0) 推荐(0) 编辑
摘要:Module SummaryLet's now examine the functionality that Spring offers in more detail. It is divided into a number of separate modules.There are two main categories of functionality in Spring:An IoC container and AOP framework, which handle configuration and application of services to objects.A se 阅读全文
posted @ 2011-03-30 16:27 庚武 阅读(249) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2011-01-12 14:40 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:配置http://www.castleproject.org/container/documentation/v21/manual/windsorconfigref.htmlapp.config 阅读全文
posted @ 2010-12-19 15:29 庚武 阅读(1618) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2010-11-16 10:39 庚武 阅读(2) 评论(0) 推荐(0) 编辑
摘要:[代码]项目文件: /Files/wucg/_TestProjects/TestCastleWinApp1.zip 阅读全文
posted @ 2010-09-29 15:35 庚武 阅读(391) 评论(0) 推荐(1) 编辑
摘要:相关概念:SAO,CAOSingleTon(默认),SingleCall用Spring.net 配置发布Remoting,服务器对象不需要继承MarshByRefObject,而是一个原生的PONO(plain .net object)。spring.net在运行时创建一个proxy继承MarshByRefObject.服务器端配置示例 Code highlighting produced by ... 阅读全文
posted @ 2010-08-23 13:53 庚武 阅读(886) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/KB/aspnet/spring-asp.aspx?msg=3395838IntroductionDeveloping software applications is hard enough even with good tools and technologies. It is said by Spring.NET developers t... 阅读全文
posted @ 2010-08-21 12:13 庚武 阅读(399) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicpartialclassSon1:Spring.Web.UI.Page{publicDaughtEntityDaught{get;set;}publicSonEntitySon{get;s... 阅读全文
posted @ 2010-08-18 14:15 庚武 阅读(276) 评论(0) 推荐(0) 编辑
摘要:Spring.Web data binding is very easy to use. Simply override the protectedInitializeDataBindingsmethodand configure data binding rules for the page. You also need to override three model management me... 阅读全文
posted @ 2010-08-16 10:50 庚武 阅读(399) 评论(0) 推荐(0) 编辑
摘要:我喜欢在Asp.Net MVC中使用NVelocity View Engine的一个很重要的理由就是:NVleocity简洁易用的语法。几乎使用#set,#if,#foreach就可以构成完整的应用,下面就介绍一下NVelocity中的语法及常用指令。  默认情况下,NVelocity解析是不分大小写的,当然可以通过设置runtime.strict.math=true,采用严格解析模式。  对变量... 阅读全文
posted @ 2010-07-26 10:13 庚武 阅读(531) 评论(0) 推荐(0) 编辑