bean实例优化,解决bean方法多次调用的问题。

This commit is contained in:
aoshiguchen
2022-07-08 18:09:09 +08:00
parent 860678c2a5
commit a6c1dfe190
@@ -45,7 +45,7 @@ public class Launcher implements ApplicationRunner {
public void run(String[] args) {
person.walkTheDog();
System.out.println("---------------------");
person.walkTheDog();
person2.walkTheDog();
}
public static void main(String[] args) {