servicetestpublic class Test { public static void main(String[] args) { LydApplicationContext applicationContext = new LydApplicationContext(AppConfig.class);// UserService userService = (UserService) applicationContext.getBean("userService"); UserInterface userService = (UserInterface) applicationContext.getBean("userService");// System.out.println(applicationContext.getBean("userService"));// System.out.println(applicationContext.getBean("roleService")); userService.test(); }}创作不易,如有错误请指正,感谢观看!记得点赞哦!
经验总结扩展阅读
- 冰的熔点是多少
- 【ASP.NET Core】MVC控制器的各种自定义:应用程序约定的接口与模型
- 基础版 【网络】内网穿透方案&FRP内网穿透实战
- 金线莲的吃法
- 2023年9月6日是疏通管道吉日吗 2023年9月6日适合疏通管道吗
- 半亩是多少
- 银耳可以泡一晚上再煮吗
- 熊猫便便有什么用
- 清除青苔最有效的方法
- 油是导体还是绝缘体