Polish sample package names
This commit is contained in:
@@ -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");
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample;
|
||||
package sample.cache;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -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;
|
||||
@@ -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);
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample;
|
||||
package sample.cache;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
Reference in New Issue
Block a user