Rename packages for code samples to match sections

See gh-27132
This commit is contained in:
Madhura Bhave
2021-09-20 14:29:02 -07:00
parent ad8cb539ea
commit 7e257dc24c
83 changed files with 126 additions and 125 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.cassandra.connecting;
package org.springframework.boot.docs.data.nosql.cassandra.connecting;
import org.springframework.data.cassandra.core.CassandraTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.ldap.repositories;
package org.springframework.boot.docs.data.nosql.cassandra.connecting;
class User {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.couchbase.repositories;
package org.springframework.boot.docs.data.nosql.couchbase.repositories;
class CouchbaseProperties {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.couchbase.repositories;
package org.springframework.boot.docs.data.nosql.couchbase.repositories;
import org.springframework.data.couchbase.core.CouchbaseTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.couchbase.repositories;
package org.springframework.boot.docs.data.nosql.couchbase.repositories;
import org.springframework.core.convert.converter.Converter;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.couchbase.repositories;
package org.springframework.boot.docs.data.nosql.couchbase.repositories;
import org.assertj.core.util.Arrays;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.elasticsearch.connectingusingspringdata;
package org.springframework.boot.docs.data.nosql.elasticsearch.connectingusingspringdata;
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.elasticsearch.connectingusingspringdata;
package org.springframework.boot.docs.data.nosql.elasticsearch.connectingusingspringdata;
class User {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.ldap.repositories;
package org.springframework.boot.docs.data.nosql.ldap.repositories;
import java.util.List;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.cassandra.connecting;
package org.springframework.boot.docs.data.nosql.ldap.repositories;
class User {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.mongodb.connecting;
package org.springframework.boot.docs.data.nosql.mongodb.connecting;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.r2dbc.repositories;
package org.springframework.boot.docs.data.nosql.mongodb.repositories;
public class City {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.mongodb.repositories;
package org.springframework.boot.docs.data.nosql.mongodb.repositories;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.mongodb.template;
package org.springframework.boot.docs.data.nosql.mongodb.template;
import com.mongodb.client.MongoCollection;
import org.bson.Document;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.neo4j.connecting;
package org.springframework.boot.docs.data.nosql.neo4j.connecting;
import org.neo4j.driver.Driver;
import org.neo4j.driver.Session;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.neo4j.repositories;
package org.springframework.boot.docs.data.nosql.neo4j.repositories;
public class City {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.neo4j.repositories;
package org.springframework.boot.docs.data.nosql.neo4j.repositories;
import java.util.Optional;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.neo4j.repositories;
package org.springframework.boot.docs.data.nosql.neo4j.repositories;
import org.neo4j.driver.Driver;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.redis.connecting;
package org.springframework.boot.docs.data.nosql.redis.connecting;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.solr.connecting;
package org.springframework.boot.docs.data.nosql.solr.connecting;
import java.io.IOException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jdbctemplate;
package org.springframework.boot.docs.data.sql.jdbctemplate;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jooq.dslcontext;
package org.springframework.boot.docs.data.sql.jooq.dslcontext;
import java.util.GregorianCalendar;
import java.util.List;
@@ -23,7 +23,7 @@ import org.jooq.DSLContext;
import org.springframework.stereotype.Component;
import static org.springframework.boot.docs.features.sql.jooq.dslcontext.Tables.AUTHOR;
import static org.springframework.boot.docs.data.sql.jooq.dslcontext.Tables.AUTHOR;
@Component
public class MyBean {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jooq.dslcontext;
package org.springframework.boot.docs.data.sql.jooq.dslcontext;
import java.util.GregorianCalendar;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jpaandspringdata.entityclasses;
package org.springframework.boot.docs.data.sql.jpaandspringdata.entityclasses;
import java.io.Serializable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jpaandspringdata.entityclasses;
package org.springframework.boot.docs.data.sql.jpaandspringdata.entityclasses;
import java.io.Serializable;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jpaandspringdata.repositories;
package org.springframework.boot.docs.data.sql.jpaandspringdata.repositories;
import org.springframework.boot.docs.features.sql.jpaandspringdata.entityclasses.City;
import org.springframework.boot.docs.data.sql.jpaandspringdata.entityclasses.City;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.jpaandspringdata.repositories;
package org.springframework.boot.docs.data.sql.jpaandspringdata.repositories;
import org.springframework.boot.docs.features.sql.jpaandspringdata.entityclasses.Country;
import org.springframework.boot.docs.data.sql.jpaandspringdata.entityclasses.Country;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.r2dbc;
package org.springframework.boot.docs.data.sql.r2dbc;
import java.util.HashMap;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.r2dbc;
package org.springframework.boot.docs.data.sql.r2dbc;
import io.r2dbc.spi.ConnectionFactoryOptions;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.nosql.mongodb.repositories;
package org.springframework.boot.docs.data.sql.r2dbc.repositories;
public class City {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.r2dbc.repositories;
package org.springframework.boot.docs.data.sql.r2dbc.repositories;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.sql.r2dbc.usingdatabaseclient;
package org.springframework.boot.docs.data.sql.r2dbc.usingdatabaseclient;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.caching;
package org.springframework.boot.docs.io.caching;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.caching.provider;
package org.springframework.boot.docs.io.caching.provider;
import org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.caching.provider.couchbase;
package org.springframework.boot.docs.io.caching.provider.couchbase;
import java.time.Duration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.caching.provider.redis;
package org.springframework.boot.docs.io.caching.provider.redis;
import java.time.Duration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.jta.mixingxaandnonxaconnections.nonxa;
package org.springframework.boot.docs.io.jta.mixingxaandnonxaconnections.nonxa;
import javax.jms.ConnectionFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.jta.mixingxaandnonxaconnections.primary;
package org.springframework.boot.docs.io.jta.mixingxaandnonxaconnections.primary;
import javax.jms.ConnectionFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.jta.mixingxaandnonxaconnections.xa;
package org.springframework.boot.docs.io.jta.mixingxaandnonxaconnections.xa;
import javax.jms.ConnectionFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.quartz;
package org.springframework.boot.docs.io.quartz;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.quartz;
package org.springframework.boot.docs.io.quartz;
import java.util.Date;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.resttemplate;
package org.springframework.boot.docs.io.restclient.resttemplate;
class Details {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.resttemplate;
package org.springframework.boot.docs.io.restclient.resttemplate;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.stereotype.Service;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.resttemplate.customization;
package org.springframework.boot.docs.io.restclient.resttemplate.customization;
import java.time.Duration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.resttemplate.customization;
package org.springframework.boot.docs.io.restclient.resttemplate.customization;
import org.apache.http.HttpException;
import org.apache.http.HttpHost;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.webclient;
package org.springframework.boot.docs.io.restclient.webclient;
import org.neo4j.cypherdsl.core.Relationship.Details;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.validation;
package org.springframework.boot.docs.io.validation;
class Archive {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.validation;
package org.springframework.boot.docs.io.validation;
class Author {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.validation;
package org.springframework.boot.docs.io.validation;
import javax.validation.constraints.Size;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.webservices.template;
package org.springframework.boot.docs.io.webservices.template;
import org.springframework.boot.webservices.client.WebServiceTemplateBuilder;
import org.springframework.stereotype.Service;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.webservices.template;
package org.springframework.boot.docs.io.webservices.template;
import java.time.Duration;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.webservices.template;
package org.springframework.boot.docs.io.webservices.template;
class SomeRequest {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.webservices.template;
package org.springframework.boot.docs.io.webservices.template;
class SomeResponse {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.amqp.receiving;
package org.springframework.boot.docs.messaging.amqp.receiving;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.amqp.receiving.custom;
package org.springframework.boot.docs.messaging.amqp.receiving.custom;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.amqp.receiving.custom;
package org.springframework.boot.docs.messaging.amqp.receiving.custom;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageProperties;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.amqp.receiving.custom;
package org.springframework.boot.docs.messaging.amqp.receiving.custom;
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.amqp.sending;
package org.springframework.boot.docs.messaging.amqp.sending;
import org.springframework.amqp.core.AmqpAdmin;
import org.springframework.amqp.core.AmqpTemplate;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.jms.receiving;
package org.springframework.boot.docs.messaging.jms.receiving;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.jms.receiving.custom;
package org.springframework.boot.docs.messaging.jms.receiving.custom;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.jms.receiving.custom;
package org.springframework.boot.docs.messaging.jms.receiving.custom;
import javax.jms.ConnectionFactory;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.jms.receiving.custom;
package org.springframework.boot.docs.messaging.jms.receiving.custom;
import javax.jms.JMSException;
import javax.jms.Message;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.jms.sending;
package org.springframework.boot.docs.messaging.jms.sending;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.kafka.embedded.annotation;
package org.springframework.boot.docs.messaging.kafka.embedded.annotation;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.kafka.test.context.EmbeddedKafka;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.kafka.embedded.property;
package org.springframework.boot.docs.messaging.kafka.embedded.property;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.kafka.test.EmbeddedKafkaBroker;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.kafka.receiving;
package org.springframework.boot.docs.messaging.kafka.receiving;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.kafka.sending;
package org.springframework.boot.docs.messaging.kafka.sending;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.messaging.kafka.streams;
package org.springframework.boot.docs.messaging.kafka.streams;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.KeyValue;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.rsocket.requester;
package org.springframework.boot.docs.messaging.rsocket.requester;
import reactor.core.publisher.Mono;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.docs.features.rsocket.requester;
package org.springframework.boot.docs.messaging.rsocket.requester;
class User {