摘要:
直接上代码了。实现类 1 package com.cglib.service.impl; 2 3 public class AopServiceImpl { 4 5 private String user = null; 6 7 public String getUser() { 8 return user; 9 }10 11 public void setUser(String user) {12 this.user = user;13 }14 15 public AopServiceImpl() {16 ... 阅读全文
摘要:
直接上代码,需要注意的地方已经加上注释。接口1 package com.proxy.service;2 3 public interface AopService {4 public void save();5 }实现类 1 package com.proxy.service.impl; 2 3 import com.proxy.service.AopService; 4 5 public class AopServiceImpl implements AopService { 6 7 private String user = null; 8 9 public... 阅读全文