BAEL-19967: Migrate spring-caching module to the com.baeldung package

This commit is contained in:
Krzysiek 2019-12-18 21:31:15 +01:00
parent faf8421d75
commit 4465bb6fa9
18 changed files with 31 additions and 31 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.config;
package com.baeldung.caching.config;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.config;
package com.baeldung.caching.config;
import java.util.Arrays;
@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@EnableCaching
@ComponentScan("org.baeldung.caching.example")
@ComponentScan("com.baeldung.caching.example")
public class CachingConfig {
@Bean

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.config;
package com.baeldung.caching.config;
import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.util.StringUtils;

View File

@ -1,6 +1,6 @@
package org.baeldung.caching.eviction.controllers;
package com.baeldung.caching.eviction.controllers;
import org.baeldung.caching.eviction.service.CachingService;
import com.baeldung.caching.eviction.service.CachingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.eviction.service;
package com.baeldung.caching.eviction.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.example;
package com.baeldung.caching.example;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.CachePut;

View File

@ -1,6 +1,6 @@
package org.baeldung.caching.example;
package com.baeldung.caching.example;
import org.baeldung.caching.model.Book;
import com.baeldung.caching.model.Book;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.example;
package com.baeldung.caching.example;
public class Customer {

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.example;
package com.baeldung.caching.example;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.example;
package com.baeldung.caching.example;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.model;
package com.baeldung.caching.model;
public class Book {

View File

@ -1,6 +1,6 @@
package org.baeldung.ehcache.calculator;
package com.baeldung.ehcache.calculator;
import org.baeldung.ehcache.config.CacheHelper;
import com.baeldung.ehcache.config.CacheHelper;
public class SquaredCalculator {
private CacheHelper cache;

View File

@ -1,4 +1,4 @@
package org.baeldung.ehcache.config;
package com.baeldung.ehcache.config;
import org.ehcache.Cache;
import org.ehcache.CacheManager;

View File

@ -13,7 +13,7 @@
<!-- <context:annotation-config/> -->
<!-- the service that you wish to make cacheable. -->
<bean id="customerDataService" class="org.baeldung.caching.example.CustomerDataService"/>
<bean id="customerDataService" class="com.baeldung.caching.example.CustomerDataService"/>
<bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">
@ -34,7 +34,7 @@
<!-- apply the behavior to all the implementations of CustomerDataService -->
<aop:config>
<aop:advisor advice-ref="cachingBehavior" pointcut="execution(* org.baeldung.caching.example.CustomerDataService.*(..))"/>
<aop:advisor advice-ref="cachingBehavior" pointcut="execution(* com.baeldung.caching.example.CustomerDataService.*(..))"/>
</aop:config>
</beans>

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.test;
package com.baeldung.caching.test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
@ -7,7 +7,7 @@ import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.baeldung.caching.eviction.service.CachingService;
import com.baeldung.caching.eviction.service.CachingService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,4 +1,4 @@
package org.baeldung.caching.test;
package com.baeldung.caching.test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
@ -7,7 +7,7 @@ import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.List;
import org.baeldung.caching.eviction.service.CachingService;
import com.baeldung.caching.eviction.service.CachingService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

View File

@ -1,9 +1,9 @@
package org.baeldung.caching.test;
package com.baeldung.caching.test;
import org.baeldung.caching.config.CachingConfig;
import org.baeldung.caching.example.Customer;
import org.baeldung.caching.example.CustomerDataService;
import org.baeldung.caching.example.CustomerServiceWithParent;
import com.baeldung.caching.config.CachingConfig;
import com.baeldung.caching.example.Customer;
import com.baeldung.caching.example.CustomerDataService;
import com.baeldung.caching.example.CustomerServiceWithParent;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,7 +1,7 @@
package org.baeldung.ehcache;
package com.baeldung.ehcache;
import org.baeldung.ehcache.calculator.SquaredCalculator;
import org.baeldung.ehcache.config.CacheHelper;
import com.baeldung.ehcache.calculator.SquaredCalculator;
import com.baeldung.ehcache.config.CacheHelper;
import org.junit.Before;
import org.junit.Test;