Skip to content

Commit bec0cbc

Browse files
remove setter
1 parent a6d521a commit bec0cbc

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

SpringTutorials/src/common/HelloChina.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public class HelloChina {
1717
// System.out.println(message);
1818
// }
1919

20-
// public void setMessage(String message) {
21-
// this.message = message;
22-
// }
20+
public void setMessage(String message) {
21+
this.message = message;
22+
}
2323

2424
// this init() method is required b/c I'm using HelloWorld as this
2525
// HelloChina's parent bean
@@ -32,4 +32,5 @@ public void init() {
3232
public void destroy() {
3333
System.out.println("Bean HelloChina will destroy now.");
3434
}
35+
3536
}

SpringTutorials/src/spring_component_scan_example/Person.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)