Commit 9bc85b46 by 袁伟铭

1.0.0

parent bf967150
...@@ -5,12 +5,14 @@ import org.springframework.boot.SpringApplication; ...@@ -5,12 +5,14 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
/** /**
* @author wilmiam * @author wilmiam
* @since 2021-07-12 18:26 * @since 2021-07-12 18:26
*/ */
@EnableAsync
@EnableCaching @EnableCaching
@EnableScheduling @EnableScheduling
@MapperScan({"com.zq.user.dao", "com.zq.logging.mapper"}) @MapperScan({"com.zq.user.dao", "com.zq.logging.mapper"})
......
...@@ -154,7 +154,8 @@ public class UserService { ...@@ -154,7 +154,8 @@ public class UserService {
// @Cacheable // @Cacheable
public AppUser getUserInfo(String userId) { public AppUser getUserInfo(String userId) {
return userDao.selectById(userId); AppUser appUser = userDao.selectById(userId);
return appUser;
} }
/** /**
......
...@@ -52,7 +52,7 @@ public class AsyncConfig implements AsyncConfigurer { ...@@ -52,7 +52,7 @@ public class AsyncConfig implements AsyncConfigurer {
@Override @Override
public Executor getAsyncExecutor() { public Executor getAsyncExecutor() {
log.info(">> 初始化spring线程池..."); log.info(">> 初始化spring线程池 [core-pool={}] [max-pool={}] [queue-capacity={}] [keep-alive-seconds={}]", corePoolSize, maxPoolSize, queueCapacity, threadTimeout);
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor(); ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
// 当一个任务通过execute(Runnable)方法欲添加到线程池时: // 当一个任务通过execute(Runnable)方法欲添加到线程池时:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment