Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbec0cbc

Browse files
remove setter
1 parenta6d521a commitbec0cbc

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+
publicvoidsetMessage(Stringmessage) {
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
publicvoiddestroy() {
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)

[8]ページ先頭

©2009-2025 Movatter.jp