共 6 篇文章 |
|
阅14 转0 评0 公众公开 17-12-24 19:46 |
阅26 转0 评0 公众公开 17-12-24 19:46 |
SayHelloServiceImpl .javapackage cn.baidu.java;import org.springframework.stereotype.Service;@Servicepublic class SayHelloServiceImpl implements SayHelloService {public void sayHelloService(String str) {System.out.println("1...");}} 阅26 转0 评0 公众公开 17-12-24 19:45 |
TxManager .javapackage cn.baidu.java;import org.aspectj.lang.annotation. 阅48 转0 评0 公众公开 17-12-24 19:44 |
Testmess.javaimport org.junit.import cn.baidu.java.SayHelloService;public class Testmess {private static ClassPathXmlApplicationContext caa;public static void main(String[] args) { caa=new ClassPathXmlApplicationContext("mven.xml");SayHelloService says=caa.getBean("sayHelloServiceImpl",SayHello... 阅22 转0 评0 公众公开 17-12-24 19:44 |