Skip to content

Commit

Permalink
🎨 规范注释风格
Browse files Browse the repository at this point in the history
  • Loading branch information
xkcoding committed Oct 25, 2020
1 parent ca87bd0 commit f56236a
Show file tree
Hide file tree
Showing 471 changed files with 1,183 additions and 3,442 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
* 启动器
* </p>
*
* @package: com.xkcoding.activiti
* @description: 启动器
* @author: yangkai.shen
* @date: Created in 2019-03-31 22:24
* @copyright: Copyright (c) 2019
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2019-03-31 22:24
*/
@SpringBootApplication
public class SpringBootDemoActivitiApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@
* 安全配置类
* </p>
*
* @package: com.xkcoding.activiti.config
* @description: 安全配置类
* @author: yangkai.shen
* @date: Created in 2019-07-01 18:40
* @copyright: Copyright (c) 2019
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2019-07-01 18:40
*/
@Slf4j
@Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,8 @@
* 认证工具
* </p>
*
* @package: com.xkcoding.activiti.util
* @description: 认证工具
* @author: yangkai.shen
* @date: Created in 2019-07-01 18:38
* @copyright: Copyright (c) 2019
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2019-07-01 18:38
*/
@Component
@RequiredArgsConstructor(onConstructor_ = @Autowired)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.actuator
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/9/29 2:27 PM
* @copyright: Copyright (c)2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-9-29 14:27
*/
@SpringBootApplication
public class SpringBootDemoActuatorApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.admin.client
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/10/8 2:16 PM
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-10-8 14:16
*/
@SpringBootApplication
public class SpringBootDemoAdminClientApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
* 首页
* </p>
*
* @package: com.xkcoding.admin.client.controller
* @description: 首页
* @author: yangkai.shen
* @date: Created in 2018/10/8 2:15 PM
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-10-08 14:15
*/
@RestController
public class IndexController {
Expand Down
9 changes: 2 additions & 7 deletions demo-admin/admin-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.admin.server
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/10/8 2:08 PM
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-10-08 14:08
*/
@EnableAdminServer
@SpringBootApplication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.admin.server
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/10/8 2:08 PM
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-10-08 14:08
*/
@EnableAdminServer
@SpringBootApplication
Expand Down
29 changes: 7 additions & 22 deletions demo-async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ spring:
* 启动器
* </p>
*
* @package: com.xkcoding.async
* @description: 启动器
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:28
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:28
*/
@EnableAsync
@SpringBootApplication
Expand All @@ -117,13 +112,8 @@ public class SpringBootDemoAsyncApplication {
* 任务工厂
* </p>
*
* @package: com.xkcoding.async.task
* @description: 任务工厂
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:37
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:37
*/
@Component
@Slf4j
Expand Down Expand Up @@ -193,13 +183,8 @@ public class TaskFactory {
* 测试任务
* </p>
*
* @package: com.xkcoding.async.task
* @description: 测试任务
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:49
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:49
*/
@Slf4j
public class TaskFactoryTest extends SpringBootDemoAsyncApplicationTests {
Expand Down Expand Up @@ -269,4 +254,4 @@ public class TaskFactoryTest extends SpringBootDemoAsyncApplicationTests {

## 参考

- Spring Boot 异步任务线程池的配置 参考官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/htmlsingle/#boot-features-task-execution-scheduling
- Spring Boot 异步任务线程池的配置 参考官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/htmlsingle/#boot-features-task-execution-scheduling
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
* 启动器
* </p>
*
* @package: com.xkcoding.async
* @description: 启动器
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:28
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:28
*/
@EnableAsync
@SpringBootApplication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
* 任务工厂
* </p>
*
* @package: com.xkcoding.async.task
* @description: 任务工厂
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:37
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:37
*/
@Component
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
* 测试任务
* </p>
*
* @package: com.xkcoding.async.task
* @description: 测试任务
* @author: yangkai.shen
* @date: Created in 2018-12-29 10:49
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-12-29 10:49
*/
@Slf4j
public class TaskFactoryTest extends SpringBootDemoAsyncApplicationTests {
Expand Down Expand Up @@ -58,4 +53,4 @@ public void taskTest() throws InterruptedException {

log.info("同步任务全部执行结束,总耗时:{} 毫秒", (end - start));
}
}
}
29 changes: 7 additions & 22 deletions demo-cache-ehcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.cache.ehcache
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/11/16 17:02
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 17:02
*/
@SpringBootApplication
@EnableCaching
Expand Down Expand Up @@ -165,13 +160,8 @@ logging:
* UserService
* </p>
*
* @package: com.xkcoding.cache.ehcache.service.impl
* @description: UserService
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:54
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:54
*/
@Service
@Slf4j
Expand Down Expand Up @@ -240,13 +230,8 @@ public class UserServiceImpl implements UserService {
* ehcache缓存测试
* </p>
*
* @package: com.xkcoding.cache.ehcache.service
* @description: ehcache缓存测试
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:58
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:58
*/
@Slf4j
public class UserServiceTest extends SpringBootDemoCacheEhcacheApplicationTests {
Expand Down Expand Up @@ -298,4 +283,4 @@ public class UserServiceTest extends SpringBootDemoCacheEhcacheApplicationTests

- Ehcache 官网:http://www.ehcache.org/documentation/
- Spring Boot 官方文档:https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/htmlsingle/#boot-features-caching-provider-ehcache2
- 博客:https://juejin.im/post/5b308de9518825748b56ae1d
- 博客:https://juejin.im/post/5b308de9518825748b56ae1d
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@
* 启动类
* </p>
*
* @package: com.xkcoding.cache.ehcache
* @description: 启动类
* @author: yangkai.shen
* @date: Created in 2018/11/16 17:02
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 17:02
*/
@SpringBootApplication
@EnableCaching
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@
* 用户实体
* </p>
*
* @package: com.xkcoding.cache.ehcache.entity
* @description: 用户实体
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:53
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:53
*/
@Data
@AllArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
* UserService
* </p>
*
* @package: com.xkcoding.cache.ehcache.service
* @description: UserService
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:53
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:53
*/
public interface UserService {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@
* UserService
* </p>
*
* @package: com.xkcoding.cache.ehcache.service.impl
* @description: UserService
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:54
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:54
*/
@Service
@Slf4j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@
* ehcache缓存测试
* </p>
*
* @package: com.xkcoding.cache.ehcache.service
* @description: ehcache缓存测试
* @author: yangkai.shen
* @date: Created in 2018/11/16 16:58
* @copyright: Copyright (c) 2018
* @version: V1.0
* @modified: yangkai.shen
* @author yangkai.shen
* @date Created in 2018-11-16 16:58
*/
@Slf4j
public class UserServiceTest extends SpringBootDemoCacheEhcacheApplicationTests {
Expand Down Expand Up @@ -62,4 +57,4 @@ public void deleteUser() {
// 删除,查看ehcache是否存在缓存数据
userService.delete(1L);
}
}
}
Loading

0 comments on commit f56236a

Please sign in to comment.