diff --git a/source/vue/xzs-admin/package.json b/source/vue/xzs-admin/package.json index 0162b1a..ddc90d9 100644 --- a/source/vue/xzs-admin/package.json +++ b/source/vue/xzs-admin/package.json @@ -1,7 +1,7 @@ { "name": "xzs-admin", "version": "3.0.7", - "author": "武汉思维跳跃科技", + "author": "武汉思维跳跃科技有限公司", "description": "学之思管理系统", "license": "AGPL-3.0", "private": true, diff --git a/source/vue/xzs-student/package.json b/source/vue/xzs-student/package.json index 2b7b314..1f734d3 100644 --- a/source/vue/xzs-student/package.json +++ b/source/vue/xzs-student/package.json @@ -1,7 +1,7 @@ { "name": "xzs-student", "version": "3.0.7", - "author": "武汉思维跳跃科技", + "author": "武汉思维跳跃科技有限公司", "description": "学之思考试系统", "license": "AGPL-3.0", "private": true, diff --git a/source/xzs/pom.xml b/source/xzs/pom.xml index 7b6bf19..89bf10e 100644 --- a/source/xzs/pom.xml +++ b/source/xzs/pom.xml @@ -9,7 +9,7 @@ jar xzs - 武汉思维跳跃科技-学之思考试系统 + 学之思考试系统 - 武汉思维跳跃科技有限公司 diff --git a/source/xzs/src/main/java/com/mindskip/xzs/XzsApplication.java b/source/xzs/src/main/java/com/mindskip/xzs/XzsApplication.java index 9e2a15b..2ded113 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/XzsApplication.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/XzsApplication.java @@ -8,7 +8,7 @@ import org.springframework.cache.annotation.EnableCaching; import org.springframework.transaction.annotation.EnableTransactionManagement; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @SpringBootApplication @EnableTransactionManagement diff --git a/source/xzs/src/main/java/com/mindskip/xzs/base/BaseApiController.java b/source/xzs/src/main/java/com/mindskip/xzs/base/BaseApiController.java index 77aa56b..da94105 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/base/BaseApiController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/base/BaseApiController.java @@ -8,7 +8,7 @@ import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class BaseApiController { protected final static String DEFAULT_PAGE_SIZE = "10"; diff --git a/source/xzs/src/main/java/com/mindskip/xzs/base/BaseEntity.java b/source/xzs/src/main/java/com/mindskip/xzs/base/BaseEntity.java index 326341b..31001ca 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/base/BaseEntity.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/base/BaseEntity.java @@ -2,7 +2,7 @@ package com.mindskip.xzs.base; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public abstract class BaseEntity { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/base/BasePage.java b/source/xzs/src/main/java/com/mindskip/xzs/base/BasePage.java index 29305cb..f1acb98 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/base/BasePage.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/base/BasePage.java @@ -3,7 +3,7 @@ package com.mindskip.xzs.base; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/base/RestResponse.java b/source/xzs/src/main/java/com/mindskip/xzs/base/RestResponse.java index 2e09a80..2c67976 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/base/RestResponse.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/base/RestResponse.java @@ -1,7 +1,7 @@ package com.mindskip.xzs.base; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class RestResponse { private int code; diff --git a/source/xzs/src/main/java/com/mindskip/xzs/base/SystemCode.java b/source/xzs/src/main/java/com/mindskip/xzs/base/SystemCode.java index 58519bb..12f7734 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/base/SystemCode.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/base/SystemCode.java @@ -1,7 +1,7 @@ package com.mindskip.xzs.base; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public enum SystemCode { /** diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/application/ApplicationContextProvider.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/application/ApplicationContextProvider.java index 36f1634..cb3afc6 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/application/ApplicationContextProvider.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/application/ApplicationContextProvider.java @@ -6,7 +6,7 @@ import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component public class ApplicationContextProvider implements ApplicationContextAware { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/SystemConfig.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/SystemConfig.java index 7dacf8d..fe2f710 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/SystemConfig.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/property/SystemConfig.java @@ -7,7 +7,7 @@ import java.util.List; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @ConfigurationProperties(prefix = "system") @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/mvc/WebMvcConfiguration.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/mvc/WebMvcConfiguration.java index aa59ba9..06ed8cc 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/mvc/WebMvcConfiguration.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/mvc/WebMvcConfiguration.java @@ -10,7 +10,7 @@ import java.util.List; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Configuration diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/AuthenticationBean.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/AuthenticationBean.java index 0a85703..6618b5a 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/AuthenticationBean.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/AuthenticationBean.java @@ -3,7 +3,7 @@ package com.mindskip.xzs.configuration.spring.security; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/LoginAuthenticationEntryPoint.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/LoginAuthenticationEntryPoint.java index f1cb363..961a1b4 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/LoginAuthenticationEntryPoint.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/LoginAuthenticationEntryPoint.java @@ -12,7 +12,7 @@ import java.io.IOException; /** * 未登录 - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component public final class LoginAuthenticationEntryPoint extends LoginUrlAuthenticationEntryPoint { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationFailureHandler.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationFailureHandler.java index b700539..998b64d 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationFailureHandler.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationFailureHandler.java @@ -12,7 +12,7 @@ import java.io.IOException; /** * 账号验证异常 - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component public class RestAuthenticationFailureHandler extends SimpleUrlAuthenticationFailureHandler { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationProvider.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationProvider.java index b4f1b91..c7668e5 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationProvider.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationProvider.java @@ -24,9 +24,8 @@ import java.util.ArrayList; /** * 登录用户名密码验证 * - * @author : Alvis + * @author : 武汉思维跳跃科技有限公司 * Description : 身份验证 - * Creation Date: 2018-05-02 5:00 PM */ @Component diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java index 86a5006..860139e 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestAuthenticationSuccessHandler.java @@ -20,7 +20,7 @@ import java.util.Date; /** * 登录成功返回 * - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component @AllArgsConstructor diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestDetailsServiceImpl.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestDetailsServiceImpl.java index fb988f5..de5451c 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestDetailsServiceImpl.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestDetailsServiceImpl.java @@ -14,9 +14,8 @@ import org.springframework.stereotype.Component; import java.util.ArrayList; /** - * @author : Alvis + * @author : 武汉思维跳跃科技有限公司 * Description : 验证通过之后,第二、三...请求,会调用此类 - * Creation Date: 2018-05-02 4:32 PM */ @Component diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLoginAuthenticationFilter.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLoginAuthenticationFilter.java index a334c00..d269f4d 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLoginAuthenticationFilter.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLoginAuthenticationFilter.java @@ -19,7 +19,7 @@ import java.io.InputStream; /** * 登录参数序列化 - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class RestLoginAuthenticationFilter extends AbstractAuthenticationProcessingFilter { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLogoutSuccessHandler.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLogoutSuccessHandler.java index 74bc76a..c03033f 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLogoutSuccessHandler.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestLogoutSuccessHandler.java @@ -18,7 +18,7 @@ import java.util.Date; /** * 用户登出 * - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component @AllArgsConstructor diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestTokenBasedRememberMeServices.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestTokenBasedRememberMeServices.java index 6e0075c..472a431 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestTokenBasedRememberMeServices.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestTokenBasedRememberMeServices.java @@ -7,7 +7,7 @@ import javax.servlet.http.HttpServletRequest; /** * 记住我,Cookie - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class RestTokenBasedRememberMeServices extends TokenBasedRememberMeServices { public RestTokenBasedRememberMeServices(String key, UserDetailsService userDetailsService) { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestUtil.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestUtil.java index 536e631..73489de 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestUtil.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/RestUtil.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class RestUtil { private static final Logger logger = LoggerFactory.getLogger(RestUtil.class); diff --git a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java index fddbabf..5cbcce1 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/configuration/spring/security/SecurityConfigurer.java @@ -19,7 +19,7 @@ import java.util.List; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Configuration diff --git a/source/xzs/src/main/java/com/mindskip/xzs/controller/admin/UserController.java b/source/xzs/src/main/java/com/mindskip/xzs/controller/admin/UserController.java index 9e1d5c7..7f4d403 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/controller/admin/UserController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/controller/admin/UserController.java @@ -26,7 +26,7 @@ import java.util.UUID; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @RestController("AdminUserController") @RequestMapping(value = "/api/admin/user") diff --git a/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java b/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java index 25d8d81..d8671b9 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/controller/student/UserController.java @@ -31,7 +31,7 @@ import java.util.stream.Collectors; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @RestController("StudentUserController") @RequestMapping(value = "/api/student/user") diff --git a/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java b/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java index e29e20c..81f1e4b 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/controller/wx/student/UserController.java @@ -32,7 +32,7 @@ import java.util.stream.Collectors; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Controller("WXStudentUserController") @RequestMapping(value = "/api/wx/student/user") diff --git a/source/xzs/src/main/java/com/mindskip/xzs/event/CalculateExamPaperAnswerCompleteEvent.java b/source/xzs/src/main/java/com/mindskip/xzs/event/CalculateExamPaperAnswerCompleteEvent.java index bbdf60a..4f079e2 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/event/CalculateExamPaperAnswerCompleteEvent.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/event/CalculateExamPaperAnswerCompleteEvent.java @@ -4,7 +4,7 @@ import com.mindskip.xzs.domain.ExamPaperAnswerInfo; import org.springframework.context.ApplicationEvent; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class CalculateExamPaperAnswerCompleteEvent extends ApplicationEvent { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/event/OnRegistrationCompleteEvent.java b/source/xzs/src/main/java/com/mindskip/xzs/event/OnRegistrationCompleteEvent.java index a77757b..5587d3c 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/event/OnRegistrationCompleteEvent.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/event/OnRegistrationCompleteEvent.java @@ -4,7 +4,7 @@ import com.mindskip.xzs.domain.User; import org.springframework.context.ApplicationEvent; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class OnRegistrationCompleteEvent extends ApplicationEvent { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/exception/BusinessException.java b/source/xzs/src/main/java/com/mindskip/xzs/exception/BusinessException.java index f7c8a34..feb9d47 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/exception/BusinessException.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/exception/BusinessException.java @@ -1,7 +1,7 @@ package com.mindskip.xzs.exception; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class BusinessException extends RuntimeException { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/listener/CalculateExamPaperAnswerListener.java b/source/xzs/src/main/java/com/mindskip/xzs/listener/CalculateExamPaperAnswerListener.java index 63fc622..31cd861 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/listener/CalculateExamPaperAnswerListener.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/listener/CalculateExamPaperAnswerListener.java @@ -19,7 +19,7 @@ import java.util.List; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component @AllArgsConstructor diff --git a/source/xzs/src/main/java/com/mindskip/xzs/listener/EmailSendListener.java b/source/xzs/src/main/java/com/mindskip/xzs/listener/EmailSendListener.java index 6dcdea4..2b43191 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/listener/EmailSendListener.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/listener/EmailSendListener.java @@ -8,7 +8,7 @@ import org.springframework.stereotype.Component; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Component public class EmailSendListener implements ApplicationListener { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/repository/UserMapper.java b/source/xzs/src/main/java/com/mindskip/xzs/repository/UserMapper.java index c526789..6bcddb9 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/repository/UserMapper.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/repository/UserMapper.java @@ -10,7 +10,7 @@ import java.util.List; import java.util.Map; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Mapper diff --git a/source/xzs/src/main/java/com/mindskip/xzs/service/AuthenticationService.java b/source/xzs/src/main/java/com/mindskip/xzs/service/AuthenticationService.java index bc06439..37627f0 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/service/AuthenticationService.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/service/AuthenticationService.java @@ -3,7 +3,7 @@ package com.mindskip.xzs.service; import com.mindskip.xzs.domain.User; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public interface AuthenticationService { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/service/UserService.java b/source/xzs/src/main/java/com/mindskip/xzs/service/UserService.java index c72769b..503e2ee 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/service/UserService.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/service/UserService.java @@ -8,7 +8,7 @@ import com.github.pagehelper.PageInfo; import java.util.List; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public interface UserService extends BaseService { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/service/impl/AuthenticationServiceImpl.java b/source/xzs/src/main/java/com/mindskip/xzs/service/impl/AuthenticationServiceImpl.java index 6b81ee6..6ecae17 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/service/impl/AuthenticationServiceImpl.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/service/impl/AuthenticationServiceImpl.java @@ -9,7 +9,7 @@ import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Service @AllArgsConstructor diff --git a/source/xzs/src/main/java/com/mindskip/xzs/service/impl/UserServiceImpl.java b/source/xzs/src/main/java/com/mindskip/xzs/service/impl/UserServiceImpl.java index 9c75f31..8e36ba1 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/service/impl/UserServiceImpl.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/service/impl/UserServiceImpl.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Service public class UserServiceImpl extends BaseServiceImpl implements UserService { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/utility/DateTimeUtil.java b/source/xzs/src/main/java/com/mindskip/xzs/utility/DateTimeUtil.java index af8ed8f..d5387e3 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/utility/DateTimeUtil.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/utility/DateTimeUtil.java @@ -10,7 +10,7 @@ import java.time.Duration; import java.util.*; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class DateTimeUtil { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/utility/Md5Util.java b/source/xzs/src/main/java/com/mindskip/xzs/utility/Md5Util.java index 3ff20a2..fac3e0f 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/utility/Md5Util.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/utility/Md5Util.java @@ -11,7 +11,7 @@ import java.security.NoSuchAlgorithmException; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class Md5Util { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/utility/PageInfoHelper.java b/source/xzs/src/main/java/com/mindskip/xzs/utility/PageInfoHelper.java index 29c223b..ce3c637 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/utility/PageInfoHelper.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/utility/PageInfoHelper.java @@ -6,7 +6,7 @@ import java.util.function.Function; import java.util.stream.Collectors; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class PageInfoHelper { diff --git a/source/xzs/src/main/java/com/mindskip/xzs/utility/RsaUtil.java b/source/xzs/src/main/java/com/mindskip/xzs/utility/RsaUtil.java index a8fc258..997ba68 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/utility/RsaUtil.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/utility/RsaUtil.java @@ -13,7 +13,7 @@ import java.util.Base64; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ public class RsaUtil { /** diff --git a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/BaseVM.java b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/BaseVM.java index 419567c..83562bc 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/BaseVM.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/BaseVM.java @@ -5,7 +5,7 @@ import lombok.Data; import org.modelmapper.ModelMapper; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserEventPageRequestVM.java b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserEventPageRequestVM.java index fbc2f0e..574176c 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserEventPageRequestVM.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserEventPageRequestVM.java @@ -4,7 +4,7 @@ import com.mindskip.xzs.base.BasePage; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserPageRequestVM.java b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserPageRequestVM.java index 4255045..71df31c 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserPageRequestVM.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserPageRequestVM.java @@ -4,7 +4,7 @@ import com.mindskip.xzs.base.BasePage; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserResponseVM.java b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserResponseVM.java index 0604f5c..503312f 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserResponseVM.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/admin/user/UserResponseVM.java @@ -6,7 +6,7 @@ import com.mindskip.xzs.viewmodel.BaseVM; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/student/user/UserResponseVM.java b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/student/user/UserResponseVM.java index 5834fd5..3664fe1 100644 --- a/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/student/user/UserResponseVM.java +++ b/source/xzs/src/main/java/com/mindskip/xzs/viewmodel/student/user/UserResponseVM.java @@ -6,7 +6,7 @@ import com.mindskip.xzs.viewmodel.BaseVM; import lombok.Data; /** - * @author alvis + * @author 武汉思维跳跃科技有限公司 */ @Data diff --git a/source/xzs/src/test/java/com/mindskip/xzs/XzsApplicationTests.java b/source/xzs/src/test/java/com/mindskip/xzs/XzsApplicationTests.java deleted file mode 100644 index 2b2e531..0000000 --- a/source/xzs/src/test/java/com/mindskip/xzs/XzsApplicationTests.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.mindskip.xzs; - -import com.mindskip.xzs.configuration.property.SystemConfig; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.context.properties.EnableConfigurationProperties; -import org.springframework.transaction.annotation.EnableTransactionManagement; - -@SpringBootApplication -@EnableTransactionManagement -@EnableConfigurationProperties(value = { SystemConfig.class}) -public class XzsApplicationTests { - - public static void main(String[] args) { - SpringApplication.run(XzsApplicationTests.class, args); - } -} diff --git a/source/xzs/src/test/java/com/mindskip/xzs/module/IndexTests.java b/source/xzs/src/test/java/com/mindskip/xzs/module/IndexTests.java deleted file mode 100644 index bf778e8..0000000 --- a/source/xzs/src/test/java/com/mindskip/xzs/module/IndexTests.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.mindskip.xzs.module; - -import com.mindskip.xzs.XzsApplicationTests; -import com.mindskip.xzs.service.ExamPaperService; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -import java.util.List; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes = XzsApplicationTests.class) -public class IndexTests { - - @Autowired - private ExamPaperService examPaperService; - - @Test - public void sumTest() { - Integer count = examPaperService.selectAllCount(); - List kv = examPaperService.selectMothCount(); - System.out.print(kv); - } - - -} diff --git a/source/xzs/src/test/java/com/mindskip/xzs/module/UserTests.java b/source/xzs/src/test/java/com/mindskip/xzs/module/UserTests.java deleted file mode 100644 index bde4f45..0000000 --- a/source/xzs/src/test/java/com/mindskip/xzs/module/UserTests.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.mindskip.xzs.module; - -import com.mindskip.xzs.XzsApplicationTests; -import com.mindskip.xzs.domain.User; -import com.mindskip.xzs.service.UserService; -import com.mindskip.xzs.viewmodel.admin.user.UserPageRequestVM; -import com.github.pagehelper.PageInfo; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes = XzsApplicationTests.class) -public class UserTests { - - @Autowired - private UserService userService; - - @Test - public void userPageListTest() { - User user = userService.getUserById(2); - UserPageRequestVM requestVM = new UserPageRequestVM(); - requestVM.setUserName("李"); - requestVM.setPageIndex(0); - requestVM.setPageSize(2); - PageInfo pageInfo = userService.userPage(requestVM); - Assert.assertNotEquals(0, pageInfo.getTotal()); - } - - -} diff --git a/source/xzs/src/test/java/com/mindskip/xzs/utility/RSATests.java b/source/xzs/src/test/java/com/mindskip/xzs/utility/RSATests.java deleted file mode 100644 index 80f3ac3..0000000 --- a/source/xzs/src/test/java/com/mindskip/xzs/utility/RSATests.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.mindskip.xzs.utility; - -import com.mindskip.xzs.XzsApplicationTests; -import com.mindskip.xzs.configuration.property.SystemConfig; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes = XzsApplicationTests.class) -public class RSATests { - - @Autowired - private SystemConfig systemConfig; - - @Test - public void rsaTest() { - String pwd = "123456"; - String encodeStr = RsaUtil.rsaEncode(systemConfig.getPwdKey().getPublicKey(), pwd); - String decodeStr = RsaUtil.rsaDecode(systemConfig.getPwdKey().getPrivateKey(), encodeStr); - Assert.assertEquals(pwd, decodeStr); - } - -} diff --git a/source/xzs/src/test/java/com/mindskip/xzs/utility/RedisTests.java b/source/xzs/src/test/java/com/mindskip/xzs/utility/RedisTests.java deleted file mode 100644 index 7528ab3..0000000 --- a/source/xzs/src/test/java/com/mindskip/xzs/utility/RedisTests.java +++ /dev/null @@ -1,80 +0,0 @@ -package com.mindskip.xzs.utility; - -import com.mindskip.xzs.XzsApplicationTests; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.data.redis.core.StringRedisTemplate; -import org.springframework.data.redis.core.script.DefaultRedisScript; -import org.springframework.test.context.junit4.SpringRunner; - -import java.util.*; -import java.util.concurrent.TimeUnit; -import java.util.stream.IntStream; - -@RunWith(SpringRunner.class) -@SpringBootTest(classes = XzsApplicationTests.class) -public class RedisTests { - - private final Logger logger = LoggerFactory.getLogger(RedisTests.class); - - @Autowired - private StringRedisTemplate stringRedisTemplate; - - @Test - public void redisAddTest() { - stringRedisTemplate.opsForValue().set("apple", "0"); - stringRedisTemplate.opsForValue().set("100000:apple", "0"); - stringRedisTemplate.opsForValue().set("100000:apple:red", "0"); - stringRedisTemplate.opsForHash().put("100000:people","name","alvis"); - } - - - @Test - public void redisListTest() { - stringRedisTemplate.opsForList().rightPush("alvis_list", "apple"); - stringRedisTemplate.opsForList().rightPush("alvis_list", "oragene"); - } - - @Test - public void redisLuaTest() { - String script = "return redis.call('set',KEYS[1],ARGV[1])"; - DefaultRedisScript redisScript = new DefaultRedisScript<>(script); - redisScript.setResultType(String.class); - List keys = Arrays.asList("apple"); - String result = stringRedisTemplate.execute(redisScript, keys, "1"); - Assert.assertEquals("OK", result); - } - - - @Test - public void redisAtomicTest() { - IntStream.rangeClosed(1, 1000).forEach(i -> { - Random rand = new Random(i); - new Thread(() -> { - stringRedisTemplate.opsForValue().increment("apple", 2); - threadSleep(rand.nextInt(i)); - }).start(); - new Thread(() -> { - stringRedisTemplate.opsForValue().decrement("apple", 2); - threadSleep(rand.nextInt(i)); - }).start(); - }); - - threadSleep(Integer.MAX_VALUE); - } - - private void threadSleep(Integer i) { - try { - TimeUnit.MILLISECONDS.sleep(i); - } catch (InterruptedException e) { - logger.error(e.getMessage(), e); - } - } - - -}