![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
Ledegis
这个作者很懒,什么都没留下…
展开
-
Spring第一餐
项目结构图代码HelloWorld.javapackage org.spring.model;public class HelloWorld { public String sayHello(){ return "hello world"; } }beans.xml<?xml version="1.0" encoding="UTF-8"?> <beans xmlns=原创 2015-09-19 08:26:49 · 364 阅读 · 0 评论 -
Spring的依赖注入(基于XML)
项目结构图代码User.javapackage org.spring.bean;public class User { private int id; private String name; public User() { } public User(int id, String name) { this.id = id; th原创 2015-09-18 22:50:46 · 406 阅读 · 0 评论