bean实例优化,解决bean方法多次调用的问题。
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user