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

Commit f5301f8

Browse files
Update spring-boot-features.md
1 parent 1fc0903 commit f5301f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pages/spring-boot-features.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public class MyBean {
222222

223223
<a id="boot-features-command-line-runner"></a>
224224

225-
### 23.8、使用 ApplicationRunner 或 ApplicationRunner
225+
### 23.8、使用 ApplicationRunner 或 CommandLineRunner
226226

227227
如果您需要在 SpringApplication 启动时运行一些代码,可以实现 `ApplicationRunner` 或者 `CommandLineRunner` 接口。这两个接口的工作方式是一样的,都提供了一个单独的 `run` 方法,它将在 `SpringApplication.run(​...)` 完成之前调用。
228228

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /