自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(253)
  • 资源 (1)
  • 收藏
  • 关注

转载 Spring MVC hello world annotation example

Technologies used : Spring 2.5.6 JDK 1.6 Maven 3 Eclipse 3.6 1. Directory Structure2. MavenSpring’s annotation is bundled in the same spring-webmvc.jar.pom.xml<project xmlns="http://maven.apache.org/PO

2015-09-07 07:25:43 375

转载 Spring之ContextLoaderListener的作用

I see this in my Spring MVC app’s web.xml:<filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filte

2015-09-06 19:57:16 416

转载 Spring AOP的实现原理之<aop:aspectj-autoproxy />的解析

本文主要针对注解形式的AOP作分析,即在application.xml用<aop:aspectj-autoproxy /> 当Spring 解析application.xml遇到上面提及的aop标签,而这个标签属于自定义标签,DefaultBeanDefinitionDocumentReader 委托delegate处理自定义标签 /** * Parse the elements

2015-09-06 17:22:06 2760

转载 Spring AspectJ AOP 完整示例

首先新建一个maven项目,在项目的pom.xml中添加spring aop相关的依赖项: 如下是完整的pom.xml:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mave

2015-09-06 17:17:12 525

转载 Spring AOP使用整理:使用@AspectJ风格的切面声明

要启用基于@AspectJ风格的切面声明,需要进行以下的配置: <!-- 启用@AspectJ风格的切面声明 --> <aop:aspectj-autoproxy proxy-target-class="true"/> <!-- 通过注解定义bean。默认同时也通过注解自动注入 --> <context:component-scan base-package=

2015-09-06 17:00:02 418

转载 Spring AOP + AspectJ in XML configuration example

For those don’t like annotation or using JDK 1.4, you can use AspectJ in XML based instead.Review last customerBo interface again, with few methods, later you will learn how to intercept it via AspectJ

2015-09-06 16:50:36 295

转载 Spring AOP + AspectJ annotation example

In this tutorial, we show you how to integrate AspectJ annotation with Spring AOP framework. In simple, Spring AOP + AspectJ allow you to intercept method easily.Common AspectJ annotations : @Before –

2015-09-06 16:04:13 436

转载 Spring AOP Example Tutorial – Aspect, Advice, Pointcut, JoinPoint, Annotations, XML Configuration

Spring Framework is developed on two core concepts – Dependency Injection and Aspect Oriented Programming (AOP). Aspect Oriented Programming OverviewMost of the enterprise applications have some common

2015-09-06 15:48:54 873

转载 Spring AOP(Aspect Oriented Programming) Tutorials

In the enterprise level application programming we used to add different cross-cutting functionalities [cross-cutting functionalities means adding different types of services to the application at runt

2015-09-06 13:50:34 428

转载 SpringMVC中使用Interceptor拦截器

SpringMVC 中的Interceptor 拦截器也是相当重要和相当有用的,它的主要作用是拦截用户的请求并进行相应的处理。比如通过它来进行权限验证,或者是来判断用户是否登陆,或者是像12306 那样子判断当前时间是否是购票时间。一、定义Interceptor实现类SpringMVC 中的Interceptor 拦截请求是通过HandlerInterceptor 来实现的。在SpringMVC 中

2015-09-06 13:31:08 519 1

转载 struts2 Interceptor详解

1.在注册页面中(index.jsp)注册一下: <% session.setAttribute("user","lzw"); %> 2.在登录界面(login.jsp)登录: <form action="login.action" method="post"> <table align="center">

2015-09-06 13:13:12 470

转载 Struts 2的基石——拦截器(Interceptor)

Interceptor(以下译为拦截器)是Struts 2的一个强有力的工具,有许多功能(feature)都是构建于它之上,如国际化、转换器,校验等。什么是拦截器拦截器,在AOP(Aspect-Oriented Programming)中用于在某个方法或字段被访问之前,进行拦截然后在之前或之后加入某些操作。拦截是AOP的一种实现策略。拦截器是动态拦截Action调用的对象。它提供了一种机制可以让开发

2015-09-06 13:09:19 330

转载 Spring Auto proxy creator example

In last Spring AOP examples – advice, pointcut and advisor, you have to manually create a proxy bean (ProxyFactoryBean) for each beans whose need AOP support.This is not an efficient way, for example,

2015-09-06 12:34:11 342

转载 Spring AOP Interceptor transaction is not working

The Spring AOP transaction is not working in following interceptors? <bean id="testAutoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name

2015-09-06 11:43:27 507

转载 Spring AOP Example – Pointcut , Advisor

In last Spring AOP advice examples, the entire methods of a class are intercepted automatically. But for most cases, you may just need a way to intercept only one or two methods, this is what ‘Pointcut

2015-09-06 11:41:10 510

转载 Spring AOP Example – Advice

Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cutting concerns in aspects. Put it simple, it’s just an interceptor to intercept some processes, for example, when a meth

2015-09-06 10:50:39 395

转载 What's the point of Spring MVC's DelegatingFilterProxy?

I see this in my Spring MVC app’s web.xml:<filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> </filte

2015-09-05 21:29:05 824

转载 Injecting Spring Beans into Java Servlets

If you are working in a Java Web Application and you are using Spring IoC Container in your application, there is a chance that you might have to inject Spring Beans into a Java Servlet.Since there is

2015-09-04 23:50:36 405

转载 Spring JTA multiple resource transactions in Tomcat with Atomikos example

In this tutorial we shall show you how to implement JTA multiple resource transactions in a Tomcat server, using Atomikos Transaction Manager. Atomicos transaction manager provides support for distribu

2015-09-04 20:53:57 443

转载 Spring 3 MVC: Create Hello World application in Spring 3.0 MVC

Things We NeedBefore we starts with our first Hello World Spring MVC Example, we will need few tools. JDK 1.5 above Tomcat 5.x above or any other container (Glassfish, JBoss, Websphere, Weblogic etc) E

2015-09-02 16:51:08 376

转载 Implementing a Remote Interface

This section discusses the task of implementing a class for the compute engine. In general, a class that implements a remote interface should at least do the following: Declare the remote interfaces be

2015-09-02 15:14:19 334

转载 Designing a Remote Interface

At the core of the compute engine is a protocol that enables tasks to be submitted to the compute engine, the compute engine to run those tasks, and the results of those tasks to be returned to the cli

2015-09-02 14:04:40 313

转载 An Overview of RMI Applications

An Overview of RMI ApplicationsRMI applications often comprise two separate programs, a server and a client. A typical server program creates some remote objects, makes references to these objects acce

2015-09-02 13:55:15 320

转载 Spring 3 MVC – Introduction to Spring 3 MVC Framework

In Spring Web MVC you can use any object as a command or form-backing object; you do not need to implement a framework-specific interface or base class. Spring’s data binding is highly flexible: for ex

2015-09-02 13:32:00 335

转载 JNDI 是什么

JNDI是 Java 命名与目录接口(Java Naming and Directory Interface),在J2EE规范中是重要的规范之一。JNDI到底起什么作用?要了解JNDI的作用,我们可以从“如果不用JNDI我们怎样做?用了JNDI后我们又将怎样做?”这个问题来探讨。没有JNDI的做法: 程序员开发时,知道要开发访问MySQL数据库的应用,于是将一个对 MySQL JDBC 驱动程序类

2015-09-02 08:13:16 277

转载 JPA - ORM Components

Most contemporary applications use relational database to store data. Recently, many vendors switched to object database to reduce their burden on data maintenance. It means object database or object r

2015-09-02 07:45:30 440

转载 JPA - Architecture

Java Persistence API is a source to store business entities as relational entities. It shows how to define a Plain Oriented Java Object (POJO) as an entity and how to manage entities with relations.Cla

2015-09-02 07:30:43 294

转载 JPA - Introduction

Any enterprise application performs database operations by storing and retrieving vast amounts of data. Despite all the available technologies for storage management, application developers normally st

2015-09-02 07:17:03 252

转载 JPA Tutorial

Java Persistence API is a collection of classes and methods to persistently store the vast amounts of data into a database which is provided by the Oracle Corporation. This tutorial provides you the ba

2015-09-01 23:26:44 362

转载 Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve

2015-09-01 23:17:20 709

转载 JSP - Actions

JSP actions use constructs in XML syntax to control the behavior of the servlet engine. You can dynamically insert a file, reuse JavaBeans components, forward the user to another page, or generate HTML

2015-09-01 17:16:26 425

转载 JSP - Directives

JSP directives provide directions and instructions to the container, telling it how to handle certain aspects of JSP processing.A JSP directive affects the overall structure of the servlet class. It us

2015-09-01 16:43:40 315

转载 JSP - Syntax

This tutorial will give basic idea on simple syntax (ie. elements) involved with JSP development:The Scriptlet:A scriptlet can contain any number of JAVA language statements, variable or method declara

2015-09-01 16:29:37 458

转载 JSP - Life Cycle

The key to understanding the low-level functionality of JSP is to understand the simple life cycle they follow.A JSP life cycle can be defined as the entire process from its creation till the destructi

2015-09-01 15:32:56 364

转载 JSP - Architecture

The web server needs a JSP engine ie. container to process JSP pages. The JSP container is responsible for intercepting requests for JSP pages. This tutorial makes use of Apache which has built-in JSP

2015-09-01 15:25:46 325

转载 What is JavaServer Pages?

JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content which helps developers insert java code in HTML pages by making use of special JSP tags, most of which start

2015-09-01 15:14:29 387

转载 Next page So how does a JSP actually work?

So how does a JSP actually work?It is turned into a special kind of servlet. The code is generated by a JSP compiler, which generates Java code out of it. This is the Java code that will be run while y

2015-09-01 15:07:39 313

转载 How to access body of Custom tags in JSP tutorial

In the last tutorial we learnt how to create and use custom tags in JSP. In this tutorial we will see how to access the body of custom tag. For e.g. If our custom tag is xyz then we would learn to acce

2015-09-01 14:57:40 356

转载 JSP - Hits Counter

A hit counter tells you about the number of visits on a particular page of your web site. Usually you attach a hit counter with your index.jsp page assuming people first land on your home page.To imple

2015-09-01 14:53:38 423

转载 JSP Tutorial

JavaServer Pages (JSP) is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based applications. JSP have access to the entire famil

2015-09-01 14:48:25 365

javascript入门教程

javascript入门教程 一般不怎么样

2011-08-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除