Polishing

This commit is contained in:
Juergen Hoeller 2020-09-25 20:40:54 +02:00
parent 2dbceb9053
commit 7116e5f755
6 changed files with 17 additions and 12 deletions

View File

@ -433,7 +433,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
return;
}
if (IN_NATIVE_IMAGE) {
throw new BeanDefinitionStoreException("@Configuration classes need to be marked as proxyBeanMethods=false. Found: " + configBeanDefs.keySet());
throw new BeanDefinitionStoreException("@Configuration classes need to be marked as " +
"proxyBeanMethods=false. Found: " + configBeanDefs.keySet());
}
ConfigurationClassEnhancer enhancer = new ConfigurationClassEnhancer();

View File

@ -47,7 +47,7 @@ import org.springframework.util.StringUtils;
* @since 3.2
* @see #getSnapshotAsJson()
* @see org.springframework.web.context.support.LiveBeansViewServlet
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such need.
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such needs
*/
@Deprecated
public class LiveBeansView implements LiveBeansViewMBean, ApplicationContextAware {

View File

@ -21,7 +21,7 @@ package org.springframework.context.support;
*
* @author Juergen Hoeller
* @since 3.2
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such need.
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such needs
*/
@Deprecated
public interface LiveBeansViewMBean {

View File

@ -39,11 +39,13 @@ import org.springframework.util.ConcurrentReferenceHashMap;
import org.springframework.util.StreamUtils;
/**
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter} that can read and write JSON using
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter}
* that can read and write JSON using
* <a href="https://github.com/Kotlin/kotlinx.serialization">kotlinx.serialization</a>.
*
* <p>This converter can be used to bind {@code @Serializable} Kotlin classes. It supports {@code application/json} and
* {@code application/*+json} with various character sets, {@code UTF-8} being the default.
* <p>This converter can be used to bind {@code @Serializable} Kotlin classes.
* It supports {@code application/json} and {@code application/*+json} with
* various character sets, {@code UTF-8} being the default.
*
* @author Andreas Ahlenstorf
* @author Sebastien Deleuze

View File

@ -27,7 +27,8 @@ import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
* Servlet variant of {@link org.springframework.context.support.LiveBeansView}'s MBean exposure.
* Servlet variant of {@link org.springframework.context.support.LiveBeansView}'s
* MBean exposure.
*
* <p>Generates a JSON snapshot for current beans and their dependencies in
* all ApplicationContexts that live within the current web application.
@ -35,7 +36,7 @@ import org.springframework.util.Assert;
* @author Juergen Hoeller
* @since 3.2
* @see org.springframework.context.support.LiveBeansView#getSnapshotAsJson()
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such need.
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such needs
*/
@Deprecated
@SuppressWarnings("serial")

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2020 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.
@ -26,12 +26,13 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.util.Assert;
/**
* {@link org.springframework.context.support.LiveBeansView} subclass which looks for all ApplicationContexts
* in the web application, as exposed in ServletContext attributes.
* {@link org.springframework.context.support.LiveBeansView} subclass
* which looks for all ApplicationContexts in the web application,
* as exposed in ServletContext attributes.
*
* @author Juergen Hoeller
* @since 3.2
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such need.
* @deprecated as of 5.3, in favor of using Spring Boot actuators for such needs
*/
@Deprecated
public class ServletContextLiveBeansView extends org.springframework.context.support.LiveBeansView {