mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Remove unnecessary semicolon
See gh-24628
This commit is contained in:
parent
9928d74a9e
commit
097104584c
@ -7,7 +7,7 @@ import groovyx.net.http.*
|
||||
class Example implements CommandLineRunner {
|
||||
|
||||
@Autowired
|
||||
ApplicationContext context;
|
||||
ApplicationContext context
|
||||
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
class Example {
|
||||
|
||||
@Autowired
|
||||
private MyService myService;
|
||||
private MyService myService
|
||||
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
public String helloWorld() {
|
||||
return myService.sayWorld();
|
||||
return myService.sayWorld()
|
||||
}
|
||||
|
||||
}
|
||||
@ -16,6 +16,6 @@ class Example {
|
||||
class MyService {
|
||||
|
||||
public String sayWorld() {
|
||||
return "World!";
|
||||
return "World!"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user