Skip to content

Commit

Permalink
Merge branch '2.4.x'
Browse files Browse the repository at this point in the history
Closes gh-24644
  • Loading branch information
snicoll committed Jan 5, 2021
2 parents b62325a + e1ec70a commit 1fb32fc
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions spring-boot-project/spring-boot-cli/samples/http.groovy
Expand Up @@ -7,7 +7,7 @@ import groovyx.net.http.*
class Example implements CommandLineRunner {

@Autowired
ApplicationContext context;
ApplicationContext context

@RequestMapping("/")
@ResponseBody
Expand All @@ -16,7 +16,7 @@ class Example implements CommandLineRunner {
}

void run(String... args) {
def port = context.webServer.port;
def port = context.webServer.port
def world = new RESTClient("http://localhost:" + port).get(path:"/").data.text
print "Hello " + world
}
Expand Down
Expand Up @@ -5,11 +5,11 @@ package org.test
class SpringIntegrationExample implements CommandLineRunner {

@Autowired
private ApplicationContext context;
private ApplicationContext context

@Bean
DirectChannel input() {
new DirectChannel();
new DirectChannel()
}

@Override
Expand Down
@@ -1,6 +1,6 @@
package org.test

import static org.springframework.boot.groovy.GroovyTemplate.*;
import static org.springframework.boot.groovy.GroovyTemplate.*

@Component
class Example implements CommandLineRunner {
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-project/spring-boot-cli/samples/ui.groovy
Expand Up @@ -7,7 +7,7 @@ class Example {
@RequestMapping("/")
public String helloWorld(Map<String,Object> model) {
model.putAll([title: "My Page", date: new Date(), message: "Hello World"])
return "home";
return "home"
}
}

Expand Down
6 changes: 3 additions & 3 deletions spring-boot-project/spring-boot-cli/samples/web.groovy
Expand Up @@ -2,12 +2,12 @@
class Example {

@Autowired
private MyService myService;
private MyService myService

@RequestMapping("/")
@ResponseBody
public String helloWorld() {
return myService.sayWorld();
return myService.sayWorld()
}

}
Expand All @@ -16,6 +16,6 @@ class Example {
class MyService {

public String sayWorld() {
return "World!";
return "World!"
}
}
Expand Up @@ -6,7 +6,7 @@ public class Test implements CommandLineRunner {
public void run(String... args) throws Exception {
println "HasClasses-" + ClassUtils.isPresent("missing", null) + "-" +
ClassUtils.isPresent("org.springframework.boot.SpringApplication", null) + "-" +
ClassUtils.isPresent(args[0], null);
ClassUtils.isPresent(args[0], null)
}

}
Expand Down
Expand Up @@ -16,7 +16,7 @@

package org.test.command

import java.util.Collection;
import java.util.Collection

class TestCommand implements Command {

Expand Down
Expand Up @@ -5,7 +5,7 @@ package com.example
class RestTests {

@Autowired
TestRestTemplate testRestTemplate;
TestRestTemplate testRestTemplate

@Test
void testHome() {
Expand Down

0 comments on commit 1fb32fc

Please sign in to comment.