File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed
spring-boot-project/spring-boot-docs
src/main/java/org/springframework/boot/docs/features/logexample Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ task runRemoteSpringApplicationExample(type: org.springframework.boot.build.docs
284
284
285
285
task runSpringApplicationExample (type : org.springframework.boot.build.docs.ApplicationRunner ) {
286
286
classpath = configurations. springApplicationExample + sourceSets. main. output
287
- mainClass = " org.springframework.boot.docs.features.springapplication .MyApplication"
287
+ mainClass = " org.springframework.boot.docs.features.logexample .MyApplication"
288
288
args = [" --server.port=0" ]
289
289
output = file(" $buildDir /example-output/spring-application.txt" )
290
290
expectedLogging = " Started MyApplication in "
@@ -293,7 +293,7 @@ task runSpringApplicationExample(type: org.springframework.boot.build.docs.Appli
293
293
294
294
task runLoggingFormatExample (type : org.springframework.boot.build.docs.ApplicationRunner ) {
295
295
classpath = configurations. springApplicationExample + sourceSets. main. output
296
- mainClass = " org.springframework.boot.docs.features.springapplication .MyApplication"
296
+ mainClass = " org.springframework.boot.docs.features.logexample .MyApplication"
297
297
args = [" --spring.main.banner-mode=off" , " --server.port=0" ]
298
298
output = file(" $buildDir /example-output/logging-format.txt" )
299
299
expectedLogging = " Started MyApplication in "
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2012-2023 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .springframework .boot .docs .features .logexample ;
18
+
19
+ import org .springframework .boot .SpringApplication ;
20
+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
21
+
22
+ /**
23
+ * Sample application used to collect logs for the reference doc.
24
+ *
25
+ * @author Stephane Nicoll
26
+ */
27
+ @ SpringBootApplication
28
+ public class MyApplication {
29
+
30
+ public static void main (String [] args ) {
31
+ SpringApplication .run (MyApplication .class , args );
32
+ }
33
+
34
+ }
You can’t perform that action at this time.
0 commit comments