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
e1ec70ac
Commit
e1ec70ac
authored
Jan 05, 2021
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
Closes gh-24643
parents
86e94b95
691f905c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
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
classloader-test-app.groovy
...g-boot-cli/src/test/resources/classloader-test-app.groovy
+1
-1
command.groovy
...spring-boot-cli/src/test/resources/scripts/command.groovy
+1
-1
integration_auto.groovy
...ject/spring-boot-cli/test-samples/integration_auto.groovy
+1
-1
No files found.
spring-boot-project/spring-boot-cli/samples/http.groovy
View file @
e1ec70ac
...
...
@@ -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
}
...
...
spring-boot-project/spring-boot-cli/samples/integration.groovy
View file @
e1ec70ac
...
...
@@ -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
...
...
spring-boot-project/spring-boot-cli/samples/template.groovy
View file @
e1ec70ac
package
org.test
import
static
org
.
springframework
.
boot
.
groovy
.
GroovyTemplate
.*
;
import
static
org
.
springframework
.
boot
.
groovy
.
GroovyTemplate
.*
@Component
class
Example
implements
CommandLineRunner
{
...
...
spring-boot-project/spring-boot-cli/samples/ui.groovy
View file @
e1ec70ac
...
...
@@ -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"
}
}
...
...
spring-boot-project/spring-boot-cli/samples/web.groovy
View file @
e1ec70ac
...
...
@@ -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!"
}
}
spring-boot-project/spring-boot-cli/src/test/resources/classloader-test-app.groovy
View file @
e1ec70ac
...
...
@@ -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
)
}
}
...
...
spring-boot-project/spring-boot-cli/src/test/resources/scripts/command.groovy
View file @
e1ec70ac
...
...
@@ -16,7 +16,7 @@
package
org.test.command
import
java.util.Collection
;
import
java.util.Collection
class
TestCommand
implements
Command
{
...
...
spring-boot-project/spring-boot-cli/test-samples/integration_auto.groovy
View file @
e1ec70ac
...
...
@@ -5,7 +5,7 @@ package com.example
class
RestTests
{
@Autowired
TestRestTemplate
testRestTemplate
;
TestRestTemplate
testRestTemplate
@Test
void
testHome
()
{
...
...
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