mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Merge branch '3.0.x'
This commit is contained in:
commit
3dbc3a1943
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2023 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.
|
||||
@ -22,7 +22,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
/**
|
||||
* Tagging interface used to indicate that an operation result is intended to be returned
|
||||
* in the body of the response. Primarily intended to support JSON serialzation using an
|
||||
* in the body of the response. Primarily intended to support JSON serialization using an
|
||||
* endpoint specific {@link ObjectMapper}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
@ -31,7 +31,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
public interface OperationResponseBody {
|
||||
|
||||
/**
|
||||
* Return a {@link OperationResponseBody} {@link Map} instance containing entires from
|
||||
* Return a {@link OperationResponseBody} {@link Map} instance containing entries from
|
||||
* the given {@code map}.
|
||||
* @param <K> the key type
|
||||
* @param <V> the value type
|
||||
|
@ -203,7 +203,7 @@ public abstract class AbstractApplicationContextRunner<SELF extends AbstractAppl
|
||||
/**
|
||||
* Customize the {@link ClassLoader} that the {@link ApplicationContext} should use
|
||||
* for resource loading and bean class loading.
|
||||
* @param classLoader the classloader to use (can be null to use the default)
|
||||
* @param classLoader the classloader to use (or {@code null} to use the default)
|
||||
* @return a new instance with the updated class loader
|
||||
* @see FilteredClassLoader
|
||||
*/
|
||||
|
@ -106,7 +106,7 @@ public class SpringApplicationBuilder {
|
||||
* Creates a new {@link SpringApplication} instance from the given sources using the
|
||||
* given {@link ResourceLoader}. Subclasses may override in order to provide a custom
|
||||
* subclass of {@link SpringApplication}.
|
||||
* @param resourceLoader the resource loader (can be null)
|
||||
* @param resourceLoader the resource loader or {@code null}
|
||||
* @param sources the sources
|
||||
* @return the {@link SpringApplication} instance
|
||||
* @since 2.6.0
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
* Copyright 2012-2023 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.
|
||||
@ -98,10 +98,12 @@ public enum DatabaseDriver {
|
||||
* @since 2.1.0
|
||||
*/
|
||||
HANA("HDB", "com.sap.db.jdbc.Driver", "com.sap.db.jdbcext.XADataSourceSAP", "SELECT 1 FROM SYS.DUMMY") {
|
||||
|
||||
@Override
|
||||
protected Collection<String> getUrlPrefixes() {
|
||||
return Collections.singleton("sap");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@ -240,14 +242,18 @@ public enum DatabaseDriver {
|
||||
return name().toLowerCase(Locale.ENGLISH);
|
||||
}
|
||||
|
||||
protected boolean matchProductName(String productName) {
|
||||
return this.productName != null && this.productName.equalsIgnoreCase(productName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the url prefixes of this driver.
|
||||
* @return the url prefixes
|
||||
*/
|
||||
protected Collection<String> getUrlPrefixes() {
|
||||
return Collections.singleton(name().toLowerCase(Locale.ENGLISH));
|
||||
}
|
||||
|
||||
protected boolean matchProductName(String productName) {
|
||||
return this.productName != null && this.productName.equalsIgnoreCase(productName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the driver class name.
|
||||
* @return the class name or {@code null}
|
||||
|
Loading…
Reference in New Issue
Block a user