Skip to content

Commit 1fb32fc

Browse files
committed
Merge branch '2.4.x'
Closes gh-24644
2 parents b62325a + e1ec70a commit 1fb32fc

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

spring-boot-project/spring-boot-cli/samples/http.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import groovyx.net.http.*
77
class Example implements CommandLineRunner {
88

99
@Autowired
10-
ApplicationContext context;
10+
ApplicationContext context
1111

1212
@RequestMapping("/")
1313
@ResponseBody
@@ -16,7 +16,7 @@ class Example implements CommandLineRunner {
1616
}
1717

1818
void run(String... args) {
19-
def port = context.webServer.port;
19+
def port = context.webServer.port
2020
def world = new RESTClient("http://localhost:" + port).get(path:"/").data.text
2121
print "Hello " + world
2222
}

spring-boot-project/spring-boot-cli/samples/integration.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ package org.test
55
class SpringIntegrationExample implements CommandLineRunner {
66

77
@Autowired
8-
private ApplicationContext context;
8+
private ApplicationContext context
99

1010
@Bean
1111
DirectChannel input() {
12-
new DirectChannel();
12+
new DirectChannel()
1313
}
1414

1515
@Override

spring-boot-project/spring-boot-cli/samples/template.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.test
22

3-
import static org.springframework.boot.groovy.GroovyTemplate.*;
3+
import static org.springframework.boot.groovy.GroovyTemplate.*
44

55
@Component
66
class Example implements CommandLineRunner {

spring-boot-project/spring-boot-cli/samples/ui.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Example {
77
@RequestMapping("/")
88
public String helloWorld(Map<String,Object> model) {
99
model.putAll([title: "My Page", date: new Date(), message: "Hello World"])
10-
return "home";
10+
return "home"
1111
}
1212
}
1313

spring-boot-project/spring-boot-cli/samples/web.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
class Example {
33

44
@Autowired
5-
private MyService myService;
5+
private MyService myService
66

77
@RequestMapping("/")
88
@ResponseBody
99
public String helloWorld() {
10-
return myService.sayWorld();
10+
return myService.sayWorld()
1111
}
1212

1313
}
@@ -16,6 +16,6 @@ class Example {
1616
class MyService {
1717

1818
public String sayWorld() {
19-
return "World!";
19+
return "World!"
2020
}
2121
}

spring-boot-project/spring-boot-cli/src/test/resources/classloader-test-app.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class Test implements CommandLineRunner {
66
public void run(String... args) throws Exception {
77
println "HasClasses-" + ClassUtils.isPresent("missing", null) + "-" +
88
ClassUtils.isPresent("org.springframework.boot.SpringApplication", null) + "-" +
9-
ClassUtils.isPresent(args[0], null);
9+
ClassUtils.isPresent(args[0], null)
1010
}
1111

1212
}

spring-boot-project/spring-boot-cli/src/test/resources/scripts/command.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package org.test.command
1818

19-
import java.util.Collection;
19+
import java.util.Collection
2020

2121
class TestCommand implements Command {
2222

spring-boot-project/spring-boot-cli/test-samples/integration_auto.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package com.example
55
class RestTests {
66

77
@Autowired
8-
TestRestTemplate testRestTemplate;
8+
TestRestTemplate testRestTemplate
99

1010
@Test
1111
void testHome() {

0 commit comments

Comments
 (0)