Merge branch '4.0.x'

Closes gh-48700
This commit is contained in:
Andy Wilkinson
2026-01-08 12:01:09 +00:00
45 changed files with 95 additions and 123 deletions
@@ -14,12 +14,11 @@
* limitations under the License.
*/
package org.springframework.boot.docs.howto.springbootapplication;
package org.springframework.boot.docs.howto.application.customizetheenvironmentorapplicationcontext;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.docs.howto.application.customizetheenvironmentorapplicationcontext.MyEnvironmentPostProcessor;
import org.springframework.core.env.StandardEnvironment;
import static org.assertj.core.api.Assertions.assertThat;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource;
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder;
import java.sql.SQLException;
@@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.configurable;
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.configurable;
import java.sql.SQLException;
@@ -25,6 +25,7 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.configurable.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.simple;
package org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.builder.simple;
import java.sql.SQLException;
@@ -25,6 +25,7 @@ import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.docs.howto.dataaccess.configurecustomdatasource.simple.MyDataSourceConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;