Migrate auto-configurations to @AutoConfiguration

Closes gh-29871
This commit is contained in:
Moritz Halbritter
2022-02-11 11:18:04 +01:00
parent 2f2eca33b1
commit fdb1010cbc
254 changed files with 723 additions and 663 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2021 the original author or authors.
* Copyright 2012-2022 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.
@@ -18,12 +18,12 @@ package sample.autoconfig;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWarDeployment;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ConditionalOnWarDeployment
@Configuration
@AutoConfiguration
public class ExampleAutoConfiguration {
@Bean