AOP- oriented tangent programming
in the daily development, the business logic is defined under a special service package, and the implementation is defined in the impl package under the service package.
Service Interfaces to Ixxxservice form, and service realization is xxxservice, this is the protocol design
steps:
1.e:\users\workspaces\kmwalletapp\spring\aop\test\helloworldservice.java Inheritance (implements) XX Interface
2.e:\users\workspaces\kmwalletapp\spring\aop\test\ihelloworldservice.java Defining interface Methods
3.HelloWorldService Implementing interface Methods
E:\Users\WorkSpaces\KmwalletApp\spring\aop\test\HelloWorldAspect.java defining Facets
E:\Users\WorkSpaces\KmwalletApp\spring\aop\test\AopTest.java Test Run
Keng:
1.xml Drop Location
Keywords
Classpathxmlapplicationcontext
2. missing jar Package
caused by:java.lang.noclassdeffounderror:org/aspectj/weaver/reflect/reflectionworld$reflectionworldexception
you're missing a aspectj.jar !
It's clear to see the anomaly.
Well, that's the way it is, and the rest is understanding.
Spring Getting started-AOP for tangent programming