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
49e754f4
Commit
49e754f4
authored
Dec 09, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.2.x' into 2.3.x
Closes gh-24411
parents
30717b6a
286ef610
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
61 additions
and
10 deletions
+61
-10
AccessLevel.java
.../boot/actuate/autoconfigure/cloudfoundry/AccessLevel.java
+3
-0
CloudFoundryAuthorizationException.java
...gure/cloudfoundry/CloudFoundryAuthorizationException.java
+30
-0
AutoConfigureOrder.java
...pringframework/boot/autoconfigure/AutoConfigureOrder.java
+3
-0
EnableAutoConfiguration.java
...framework/boot/autoconfigure/EnableAutoConfiguration.java
+4
-0
ConditionMessage.java
...mework/boot/autoconfigure/condition/ConditionMessage.java
+9
-4
DispatcherServletAutoConfiguration.java
...igure/web/servlet/DispatcherServletAutoConfiguration.java
+4
-4
WebMvcAutoConfiguration.java
...ot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java
+6
-0
checkstyle-suppressions.xml
src/checkstyle/checkstyle-suppressions.xml
+2
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/AccessLevel.java
View file @
49e754f4
...
...
@@ -38,6 +38,9 @@ public enum AccessLevel {
*/
FULL
;
/**
* The request attribute used to store the {@link AccessLevel}.
*/
public
static
final
String
REQUEST_ATTRIBUTE
=
"cloudFoundryAccessLevel"
;
private
final
List
<
String
>
ids
;
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/CloudFoundryAuthorizationException.java
View file @
49e754f4
...
...
@@ -58,24 +58,54 @@ public class CloudFoundryAuthorizationException extends RuntimeException {
*/
public
enum
Reason
{
/**
* Access Denied.
*/
ACCESS_DENIED
(
HttpStatus
.
FORBIDDEN
),
/**
* Invalid Audience.
*/
INVALID_AUDIENCE
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Invalid Issuer.
*/
INVALID_ISSUER
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Invalid Key ID.
*/
INVALID_KEY_ID
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Invalid Signature.
*/
INVALID_SIGNATURE
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Invalid Token.
*/
INVALID_TOKEN
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Missing Authorization.
*/
MISSING_AUTHORIZATION
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Token Expired.
*/
TOKEN_EXPIRED
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Unsupported Token Signing Algorithm.
*/
UNSUPPORTED_TOKEN_SIGNING_ALGORITHM
(
HttpStatus
.
UNAUTHORIZED
),
/**
* Service Unavailable.
*/
SERVICE_UNAVAILABLE
(
HttpStatus
.
SERVICE_UNAVAILABLE
);
private
final
HttpStatus
status
;
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigureOrder.java
View file @
49e754f4
...
...
@@ -48,6 +48,9 @@ import org.springframework.core.annotation.Order;
@Documented
public
@interface
AutoConfigureOrder
{
/**
* The default order value.
*/
int
DEFAULT_ORDER
=
0
;
/**
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfiguration.java
View file @
49e754f4
...
...
@@ -83,6 +83,10 @@ import org.springframework.core.io.support.SpringFactoriesLoader;
@Import
(
AutoConfigurationImportSelector
.
class
)
public
@interface
EnableAutoConfiguration
{
/**
* Environment property that can be used to override when auto-configuration is
* enabled.
*/
String
ENABLED_OVERRIDE_PROPERTY
=
"spring.boot.enableautoconfiguration"
;
/**
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java
View file @
49e754f4
...
...
@@ -401,23 +401,28 @@ public final class ConditionMessage {
*/
public
enum
Style
{
/**
* Render with normal styling.
*/
NORMAL
{
@Override
protected
Object
applyToItem
(
Object
item
)
{
return
item
;
}
@Override
public
Collection
<?>
applyTo
(
Collection
<?>
items
)
{
return
items
;
}
},
/**
* Render with the item surrounded by quotes.
*/
QUOTE
{
@Override
protected
String
applyToItem
(
Object
item
)
{
return
(
item
!=
null
)
?
"'"
+
item
+
"'"
:
null
;
}
};
public
Collection
<?>
applyTo
(
Collection
<?>
items
)
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfiguration.java
View file @
49e754f4
...
...
@@ -69,13 +69,13 @@ import org.springframework.web.servlet.DispatcherServlet;
@AutoConfigureAfter
(
ServletWebServerFactoryAutoConfiguration
.
class
)
public
class
DispatcherServletAutoConfiguration
{
/*
* The bean name for a DispatcherServlet that will be mapped to the root URL "/"
/*
*
* The bean name for a DispatcherServlet that will be mapped to the root URL "/"
.
*/
public
static
final
String
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
=
"dispatcherServlet"
;
/*
* The bean name for a ServletRegistrationBean for the DispatcherServlet "/"
/*
*
* The bean name for a ServletRegistrationBean for the DispatcherServlet "/"
.
*/
public
static
final
String
DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME
=
"dispatcherServletRegistration"
;
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.java
View file @
49e754f4
...
...
@@ -145,8 +145,14 @@ import org.springframework.web.util.UrlPathHelper;
ValidationAutoConfiguration
.
class
})
public
class
WebMvcAutoConfiguration
{
/**
* The default Spring MVC view prefix.
*/
public
static
final
String
DEFAULT_PREFIX
=
""
;
/**
* The default Spring MVC view suffix.
*/
public
static
final
String
DEFAULT_SUFFIX
=
""
;
private
static
final
String
[]
SERVLET_LOCATIONS
=
{
"/"
};
...
...
src/checkstyle/checkstyle-suppressions.xml
View file @
49e754f4
...
...
@@ -15,8 +15,8 @@
<suppress
files=
"[\\/]src[\\/]test[\\/]java[\\/]"
checks=
"Javadoc*"
/>
<suppress
files=
"[\\/]src[\\/]test[\\/]java[\\/]"
id=
"mainCodeIllegalImportCheck"
/>
<suppress
files=
"[\\/]src[\\/]test[\\/]java[\\/]"
checks=
"NonEmptyAtclauseDescription"
/>
<suppress
files=
"[\\/]autoconfigure[\\/]"
checks=
"JavadocType"
/>
<suppress
files=
"[\\/]autoconfigure[\\/]"
checks=
"JavadocVariable"
/>
<suppress
files=
"[\\/]autoconfigure[\\/]
.*Properties\.java
"
checks=
"JavadocType"
/>
<suppress
files=
"[\\/]autoconfigure[\\/]
.*Properties\.java
"
checks=
"JavadocVariable"
/>
<suppress
files=
"[\\/]spring-boot-docs[\\/]"
checks=
"JavadocType"
/>
<suppress
files=
"[\\/]spring-boot-smoke-tests[\\/]"
checks=
"JavadocType"
/>
<suppress
files=
"[\\/]spring-boot-smoke-tests[\\/]"
checks=
"ImportControl"
/>
...
...
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