Polish sample package names

This commit is contained in:
Phillip Webb
2015-06-23 00:47:12 -07:00
parent 9c0335fc29
commit 1ce617f1ae
163 changed files with 401 additions and 760 deletions

View File

@@ -14,8 +14,10 @@
* limitations under the License.
*/
package sample;
package sample.cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.cache.CacheManager;
@@ -24,6 +26,9 @@ import org.springframework.stereotype.Component;
@Component
public class CacheManagerCheck implements CommandLineRunner {
private static final Logger logger = LoggerFactory
.getLogger(SampleCacheApplication.class);
private final CacheManager cacheManager;
@Autowired
@@ -33,7 +38,7 @@ public class CacheManagerCheck implements CommandLineRunner {
@Override
public void run(String... strings) throws Exception {
SampleCacheApplication.logger.info("\n\n"
logger.info("\n\n"
+ "=========================================================\n"
+ "Using cache manager: " + this.cacheManager.getClass().getName() + "\n"
+ "=========================================================\n\n");

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package sample;
package sample.cache;
import java.io.Serializable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package sample;
package sample.cache;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

View File

@@ -14,10 +14,8 @@
* limitations under the License.
*/
package sample;
package sample.cache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cache.annotation.EnableCaching;
@@ -28,8 +26,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
public class SampleCacheApplication {
static final Logger logger = LoggerFactory.getLogger(SampleCacheApplication.class);
public static void main(String[] args) {
new SpringApplicationBuilder().sources(SampleCacheApplication.class)
.profiles("app").run(args);

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package sample;
package sample.cache;
import java.util.Arrays;
import java.util.List;