Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
09710458
Commit
09710458
authored
Jan 01, 2021
by
Andrey Kolchanov
Committed by
Stephane Nicoll
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary semicolon
See gh-24628
parent
9928d74a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
http.groovy
spring-boot-project/spring-boot-cli/samples/http.groovy
+2
-2
integration.groovy
...g-boot-project/spring-boot-cli/samples/integration.groovy
+2
-2
template.groovy
spring-boot-project/spring-boot-cli/samples/template.groovy
+1
-1
ui.groovy
spring-boot-project/spring-boot-cli/samples/ui.groovy
+1
-1
web.groovy
spring-boot-project/spring-boot-cli/samples/web.groovy
+3
-3
No files found.
spring-boot-project/spring-boot-cli/samples/http.groovy
View file @
09710458
...
@@ -7,7 +7,7 @@ import groovyx.net.http.*
...
@@ -7,7 +7,7 @@ import groovyx.net.http.*
class
Example
implements
CommandLineRunner
{
class
Example
implements
CommandLineRunner
{
@Autowired
@Autowired
ApplicationContext
context
;
ApplicationContext
context
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
@ResponseBody
@ResponseBody
...
@@ -16,7 +16,7 @@ class Example implements CommandLineRunner {
...
@@ -16,7 +16,7 @@ class Example implements CommandLineRunner {
}
}
void
run
(
String
...
args
)
{
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
def
world
=
new
RESTClient
(
"http://localhost:"
+
port
).
get
(
path:
"/"
).
data
.
text
print
"Hello "
+
world
print
"Hello "
+
world
}
}
...
...
spring-boot-project/spring-boot-cli/samples/integration.groovy
View file @
09710458
...
@@ -5,11 +5,11 @@ package org.test
...
@@ -5,11 +5,11 @@ package org.test
class
SpringIntegrationExample
implements
CommandLineRunner
{
class
SpringIntegrationExample
implements
CommandLineRunner
{
@Autowired
@Autowired
private
ApplicationContext
context
;
private
ApplicationContext
context
@Bean
@Bean
DirectChannel
input
()
{
DirectChannel
input
()
{
new
DirectChannel
()
;
new
DirectChannel
()
}
}
@Override
@Override
...
...
spring-boot-project/spring-boot-cli/samples/template.groovy
View file @
09710458
package
org.test
package
org.test
import
static
org
.
springframework
.
boot
.
groovy
.
GroovyTemplate
.*
;
import
static
org
.
springframework
.
boot
.
groovy
.
GroovyTemplate
.*
@Component
@Component
class
Example
implements
CommandLineRunner
{
class
Example
implements
CommandLineRunner
{
...
...
spring-boot-project/spring-boot-cli/samples/ui.groovy
View file @
09710458
...
@@ -7,7 +7,7 @@ class Example {
...
@@ -7,7 +7,7 @@ class Example {
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
public
String
helloWorld
(
Map
<
String
,
Object
>
model
)
{
public
String
helloWorld
(
Map
<
String
,
Object
>
model
)
{
model
.
putAll
([
title:
"My Page"
,
date:
new
Date
(),
message:
"Hello World"
])
model
.
putAll
([
title:
"My Page"
,
date:
new
Date
(),
message:
"Hello World"
])
return
"home"
;
return
"home"
}
}
}
}
...
...
spring-boot-project/spring-boot-cli/samples/web.groovy
View file @
09710458
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
class
Example
{
class
Example
{
@Autowired
@Autowired
private
MyService
myService
;
private
MyService
myService
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
@ResponseBody
@ResponseBody
public
String
helloWorld
()
{
public
String
helloWorld
()
{
return
myService
.
sayWorld
()
;
return
myService
.
sayWorld
()
}
}
}
}
...
@@ -16,6 +16,6 @@ class Example {
...
@@ -16,6 +16,6 @@ class Example {
class
MyService
{
class
MyService
{
public
String
sayWorld
()
{
public
String
sayWorld
()
{
return
"World!"
;
return
"World!"
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment