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
cfee9bab
Commit
cfee9bab
authored
Oct 11, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate remote shell support
Closes gh-7044
parent
5976d44f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
3 deletions
+58
-3
CrshAutoConfiguration.java
...ork/boot/actuate/autoconfigure/CrshAutoConfiguration.java
+1
-0
ShellProperties.java
...framework/boot/actuate/autoconfigure/ShellProperties.java
+1
-0
CrshAutoConfigurationTests.java
...oot/actuate/autoconfigure/CrshAutoConfigurationTests.java
+1
-0
ShellPropertiesTests.java
...work/boot/actuate/autoconfigure/ShellPropertiesTests.java
+1
-0
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+1
-1
pom.xml
...ng-boot-starters/spring-boot-starter-remote-shell/pom.xml
+2
-2
RemoteShellStarterDeprecatedWarningAutoConfiguration.java
...RemoteShellStarterDeprecatedWarningAutoConfiguration.java
+49
-0
spring.factories
...remote-shell/src/main/resources/META-INF/spring.factories
+2
-0
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java
View file @
cfee9bab
...
@@ -121,6 +121,7 @@ import org.springframework.util.StringUtils;
...
@@ -121,6 +121,7 @@ import org.springframework.util.StringUtils;
@EnableConfigurationProperties
(
ShellProperties
.
class
)
@EnableConfigurationProperties
(
ShellProperties
.
class
)
@AutoConfigureAfter
({
SecurityAutoConfiguration
.
class
,
@AutoConfigureAfter
({
SecurityAutoConfiguration
.
class
,
ManagementWebSecurityAutoConfiguration
.
class
})
ManagementWebSecurityAutoConfiguration
.
class
})
@Deprecated
public
class
CrshAutoConfiguration
{
public
class
CrshAutoConfiguration
{
public
static
final
String
AUTH_PREFIX
=
ShellProperties
.
SHELL_PREFIX
+
".auth"
;
public
static
final
String
AUTH_PREFIX
=
ShellProperties
.
SHELL_PREFIX
+
".auth"
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java
View file @
cfee9bab
...
@@ -40,6 +40,7 @@ import org.springframework.util.StringUtils;
...
@@ -40,6 +40,7 @@ import org.springframework.util.StringUtils;
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
@ConfigurationProperties
(
prefix
=
ShellProperties
.
SHELL_PREFIX
,
ignoreUnknownFields
=
true
)
@ConfigurationProperties
(
prefix
=
ShellProperties
.
SHELL_PREFIX
,
ignoreUnknownFields
=
true
)
@Deprecated
public
class
ShellProperties
{
public
class
ShellProperties
{
public
static
final
String
SHELL_PREFIX
=
"management.shell"
;
public
static
final
String
SHELL_PREFIX
=
"management.shell"
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfigurationTests.java
View file @
cfee9bab
...
@@ -68,6 +68,7 @@ import static org.hamcrest.CoreMatchers.isA;
...
@@ -68,6 +68,7 @@ import static org.hamcrest.CoreMatchers.isA;
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Deprecated
public
class
CrshAutoConfigurationTests
{
public
class
CrshAutoConfigurationTests
{
private
AnnotationConfigWebApplicationContext
context
;
private
AnnotationConfigWebApplicationContext
context
;
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/ShellPropertiesTests.java
View file @
cfee9bab
...
@@ -49,6 +49,7 @@ import static org.assertj.core.api.Assertions.assertThat;
...
@@ -49,6 +49,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Christian Dupuis
* @author Christian Dupuis
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
@Deprecated
public
class
ShellPropertiesTests
{
public
class
ShellPropertiesTests
{
@Rule
@Rule
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
cfee9bab
...
@@ -803,7 +803,7 @@ If you are using Jolokia but you don't want Spring Boot to configure it, simply
...
@@ -803,7 +803,7 @@ If you are using Jolokia but you don't want Spring Boot to configure it, simply
[[
production
-
ready
-
remote
-
shell
]]
[[
production
-
ready
-
remote
-
shell
]]
==
Monitoring
and
management
using
a
remote
shell
==
Monitoring
and
management
using
a
remote
shell
(
deprecated
)
Spring
Boot
supports
an
integrated
Java
shell
called
'`CRaSH`'
.
You
can
use
CRaSH
to
Spring
Boot
supports
an
integrated
Java
shell
called
'`CRaSH`'
.
You
can
use
CRaSH
to
`
ssh
`
or
`
telnet
`
into
your
running
application
.
To
enable
remote
shell
support
,
add
`
ssh
`
or
`
telnet
`
into
your
running
application
.
To
enable
remote
shell
support
,
add
the
following
dependency
to
your
project
:
the
following
dependency
to
your
project
:
...
...
spring-boot-starters/spring-boot-starter-remote-shell/pom.xml
View file @
cfee9bab
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
<version>
1.5.0.BUILD-SNAPSHOT
</version>
<version>
1.5.0.BUILD-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
spring-boot-starter-remote-shell
</artifactId>
<artifactId>
spring-boot-starter-remote-shell
</artifactId>
<name>
Spring Boot Remote Shell Starter
</name>
<name>
spring-boot-starter-remote-shell (DEPRECATED)
</name>
<description>
Starter for using the CRaSH remote shell to monitor and manage your
<description>
Starter for using the CRaSH remote shell to monitor and manage your
application over SSH
</description>
application over SSH
. Deprecated since 1.5
</description>
<url>
http://projects.spring.io/spring-boot/
</url>
<url>
http://projects.spring.io/spring-boot/
</url>
<organization>
<organization>
<name>
Pivotal Software, Inc.
</name>
<name>
Pivotal Software, Inc.
</name>
...
...
spring-boot-starters/spring-boot-starter-remote-shell/src/main/java/org/springframework/boot/starter/remote/shell/RemoteShellStarterDeprecatedWarningAutoConfiguration.java
0 → 100644
View file @
cfee9bab
/*
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
starter
.
remote
.
shell
;
import
javax.annotation.PostConstruct
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.context.annotation.Configuration
;
/**
* {@link EnableAutoConfiguration Auto-configuration} to print a deprecation warning about
* the starter.
*
* @author Stephane Nicoll
* @since 1.4.0
*/
@Configuration
@Deprecated
public
class
RemoteShellStarterDeprecatedWarningAutoConfiguration
{
private
static
final
Log
logger
=
LogFactory
.
getLog
(
RemoteShellStarterDeprecatedWarningAutoConfiguration
.
class
);
@PostConstruct
public
void
logWarning
()
{
logger
.
warn
(
"spring-boot-starter-remote-shell is deprecated since Spring Boot "
+
"1.5 and will be removed in Spring Boot 2.0"
);
}
}
spring-boot-starters/spring-boot-starter-remote-shell/src/main/resources/META-INF/spring.factories
0 → 100644
View file @
cfee9bab
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.boot.starter.remote.shell.RemoteShellStarterDeprecatedWarningAutoConfiguration
\ No newline at end of file
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