diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/.gitignore b/oneLineTxt/v1/onelinetextplublic/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/compiler.xml b/oneLineTxt/v1/onelinetextplublic/.idea/compiler.xml new file mode 100644 index 0000000..34f4317 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/compiler.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/encodings.xml b/oneLineTxt/v1/onelinetextplublic/.idea/encodings.xml new file mode 100644 index 0000000..3f8fffc --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/encodings.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/inspectionProfiles/Project_Default.xml b/oneLineTxt/v1/onelinetextplublic/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..6560a98 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/jarRepositories.xml b/oneLineTxt/v1/onelinetextplublic/.idea/jarRepositories.xml new file mode 100644 index 0000000..f3af888 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/jarRepositories.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/misc.xml b/oneLineTxt/v1/onelinetextplublic/.idea/misc.xml new file mode 100644 index 0000000..397b0a5 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/misc.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/0/d/0d61df201aa4614e7076ad69e563a4f872fbdf55 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/0/d/0d61df201aa4614e7076ad69e563a4f872fbdf55 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/1/6/1693e46b5ce9b6be5ce66416230380e302fb4112 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/1/6/1693e46b5ce9b6be5ce66416230380e302fb4112 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/3/7/370666152778028850fcb9bc1fc796bc65f13e37 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/3/7/370666152778028850fcb9bc1fc796bc65f13e37 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/4/4/442292b8a7efeabbe4cc176709b833b1792140ec b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/4/4/442292b8a7efeabbe4cc176709b833b1792140ec new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/4/a/4ace260bb3128f87bb23a9bced0e20a3976cf34c b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/4/a/4ace260bb3128f87bb23a9bced0e20a3976cf34c new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/6/0/602aa535b9f3987c17c0a3c6a0a72a3dc0827fe0 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/6/0/602aa535b9f3987c17c0a3c6a0a72a3dc0827fe0 new file mode 100644 index 0000000..80781fc --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/6/0/602aa535b9f3987c17c0a3c6a0a72a3dc0827fe0 @@ -0,0 +1,3 @@ + +J +java:S3740"/Provide the parametrized type for this generic.(ϸ \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/0/804887beed9c82d895b0c21ca7c6f0b55dc11b4b b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/0/804887beed9c82d895b0c21ca7c6f0b55dc11b4b new file mode 100644 index 0000000..0f9bf93 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/0/804887beed9c82d895b0c21ca7c6f0b55dc11b4b @@ -0,0 +1,7 @@ + +P +java:S1118":Add a private constructor to hide the implicit public one.( +Q +java:S1068"6Remove this unused "PASSENGER_IDENDITY" private field.(Θ +I +java:S1068"3Remove this unused "DRIVER_IDENDITY" private field.( \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/0/80c80f39494e1e55766484cea0a28764fa4f31ec b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/0/80c80f39494e1e55766484cea0a28764fa4f31ec new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/4/841a9a89c31fe92ca2095a073ae09e9d783e89f8 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/4/841a9a89c31fe92ca2095a073ae09e9d783e89f8 new file mode 100644 index 0000000..33e6330 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/4/841a9a89c31fe92ca2095a073ae09e9d783e89f8 @@ -0,0 +1,7 @@ + +l +java:S1128"ORemove this unused import 'org.springframework.web.bind.annotation.GetMapping'.(80 +Q +java:S3740!"/Provide the parametrized type for this generic.(Ϫ8˽0 +L +java:S3740"/Provide the parametrized type for this generic.(8𴰽0 \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/a/8ab7c26d11e8ad161c2563c07a55568b3ecb9f65 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/a/8ab7c26d11e8ad161c2563c07a55568b3ecb9f65 new file mode 100644 index 0000000..851d799 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/8/a/8ab7c26d11e8ad161c2563c07a55568b3ecb9f65 @@ -0,0 +1,7 @@ + +I +java:S16120",Replace this lambda with a method reference.(80 +I +java:S16020",Remove useless curly braces around statement(80 +W +java:S1118":Add a private constructor to hide the implicit public one.(80 \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/b/4/b4fc2f8bedd871388fbd3a7ebcec5bd3369406b6 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/b/4/b4fc2f8bedd871388fbd3a7ebcec5bd3369406b6 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/d/4/d4c2d21265b56c5bb7eb8ff8a00e2db7ad414c9c b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/d/4/d4c2d21265b56c5bb7eb8ff8a00e2db7ad414c9c new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/d/c/dcfd8ad08c9fccb3927196e53cef817c7b76f366 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/d/c/dcfd8ad08c9fccb3927196e53cef817c7b76f366 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/8/f8c03951fe2486c7989b1ebeb3e654171e897fb5 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/8/f8c03951fe2486c7989b1ebeb3e654171e897fb5 new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/a/fa131e89c1d00de6df89a12f7d0a01d3860ec6ad b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/a/fa131e89c1d00de6df89a12f7d0a01d3860ec6ad new file mode 100644 index 0000000..109c278 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/a/fa131e89c1d00de6df89a12f7d0a01d3860ec6ad @@ -0,0 +1,27 @@ + +V java:S125?"").( +` +java:S1128"ERemove this unused import 'org.springframework.stereotype.Component'.(Ѹ +k +java:S1128"PRemove this unused import 'org.springframework.web.bind.annotation.PostMapping'.( +b +java:S1128"GRemove this unused import 'org.apache.tomcat.util.security.MD5Encoder'.( \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/b/fbd7aa76caa16cb6c7b39065ef285afe9903c9a5 b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/b/fbd7aa76caa16cb6c7b39065ef285afe9903c9a5 new file mode 100644 index 0000000..54aceae --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/f/b/fbd7aa76caa16cb6c7b39065ef285afe9903c9a5 @@ -0,0 +1,12 @@ + + +java:S1186"Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.(ҍչ +z +java:S1149("_Replace the synchronized class "StringBuffer" by an unsynchronized one such as "StringBuilder".( +3 +java:S1118"Hide this public constructor.(ҍչ +h java:S100"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(į +T +java:S4719$"9Replace charset name argument with StandardCharsets.UTF_8( +O +java:S4719@"9Replace charset name argument with StandardCharsets.UTF_8(ɗ͈ \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/index.pb b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000..f94ddb9 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,33 @@ + +h +8untitled4/src/main/java/com/mashibing/util/JwtUtils.java,8\a\8ab7c26d11e8ad161c2563c07a55568b3ecb9f65 +j +:untitled4/src/main/java/com/mashibing/dto/TokenResult.java,8\0\80c80f39494e1e55766484cea0a28764fa4f31ec +t +Duntitled4/src/main/java/com/mashibing/constant/IdendityConstant.java,8\0\804887beed9c82d895b0c21ca7c6f0b55dc11b4b +v +Funtitled4/src/main/java/com/mashibing/response/NumberCodeResponse.java,3\7\370666152778028850fcb9bc1fc796bc65f13e37 +} +Msend-server/src/main/java/com/mashibing/sendserver/SendServerApplication.java,d\4\d4c2d21265b56c5bb7eb8ff8a00e2db7ad414c9c +z +Jsend-server/src/main/java/com/mashibing/sendserver/pojo/vo/SmsAccount.java,0\d\0d61df201aa4614e7076ad69e563a4f872fbdf55 +v +Fsend-server/src/main/java/com/mashibing/sendserver/utils/MD5Utils.java,f\b\fbd7aa76caa16cb6c7b39065ef285afe9903c9a5 +t +Duntitled4/src/main/java/com/mashibing/constant/CommonStatusEnum.java,1\6\1693e46b5ce9b6be5ce66416230380e302fb4112 +r +Buntitled4/src/main/java/com/mashibing/dto/PassengerRequestDto.java,d\c\dcfd8ad08c9fccb3927196e53cef817c7b76f366 + +Xsend-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java,f\a\fa131e89c1d00de6df89a12f7d0a01d3860ec6ad + +Uapi-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java,8\4\841a9a89c31fe92ca2095a073ae09e9d783e89f8 + +\api-passinger/src/main/java/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.java,4\a\4ace260bb3128f87bb23a9bced0e20a3976cf34c +7 +pom.xml,4\4\442292b8a7efeabbe4cc176709b833b1792140ec +E +api-passinger/pom.xml,b\4\b4fc2f8bedd871388fbd3a7ebcec5bd3369406b6 +~ +Napi-passinger/src/main/java/mashibing/online/text/ApiPassingerApplication.java,f\8\f8c03951fe2486c7989b1ebeb3e654171e897fb5 + +Oapi-passinger/src/main/java/mashibing/online/text/feign/SendSMSCodeService.java,6\0\602aa535b9f3987c17c0a3c6a0a72a3dc0827fe0 \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/.idea/uiDesigner.xml b/oneLineTxt/v1/onelinetextplublic/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/pom.xml b/oneLineTxt/v1/onelinetextplublic/api-passinger/pom.xml new file mode 100644 index 0000000..6bfd45c --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/pom.xml @@ -0,0 +1,41 @@ + + + + oneline-text-plublic + com.mashibing + 1.0-SNAPSHOT + + + + + 4.0.0 + + api-passinger + + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + com.mashibing + untitled4 + 1.0-SNAPSHOT + compile + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/ApiPassingerApplication.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/ApiPassingerApplication.java new file mode 100644 index 0000000..f3c41bc --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/ApiPassingerApplication.java @@ -0,0 +1,22 @@ +package mashibing.online.text; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +/** + * @author zxx + * @Description + * @date 2022/10/5 + */ + +@SpringBootApplication +@EnableDiscoveryClient +@EnableFeignClients +public class ApiPassingerApplication { + + public static void main(String[] args) { + SpringApplication.run(ApiPassingerApplication.class); + } +} diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java new file mode 100644 index 0000000..17abf68 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/controller/PassengerController.java @@ -0,0 +1,46 @@ +package mashibing.online.text.controller; + +import com.mashibing.dto.PassengerRequestDto; +import com.mashibing.dto.ResponseResult; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author zxx + * @Description + * @date 2022/10/5 + */ +@RestController +public class PassengerController { + + @PostMapping("/getPhoneNumberCode") + public ResponseResult getPhoneNumberCode(@RequestBody PassengerRequestDto passengerRequestDto){ + // 校验参数 + + // 调服务获取验证码 + + + // 存入redis 有限时间 + + + return ResponseResult.success("成功!"); + } + + + @PostMapping("/checkPhoneNumberCode") + public ResponseResult checkPhoneNumberCode(@RequestBody PassengerRequestDto passengerRequestDto){ + // 校验参数 + + // 校验验证码 + + // 用户注册 + + + // 返回token + + + return ResponseResult.success("成功!"); + } +} diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/SendSMSCodeService.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/SendSMSCodeService.java new file mode 100644 index 0000000..b0175c1 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/SendSMSCodeService.java @@ -0,0 +1,26 @@ +package mashibing.online.text.feign; + +import com.mashibing.dto.ResponseResult; +import mashibing.online.text.feign.fallback.SendSMSCodeServiceImpl; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * + * @packageName: mashibing.online.text.feign.fallback + * @description: + * @author: nod + * @create: 2022-10-09 + */ +@FeignClient(name = "send-server",fallback= SendSMSCodeServiceImpl.class) +public interface SendSMSCodeService { + + + @GetMapping("/send/acquireSMSCode") + public ResponseResult getSmsCode(@RequestParam("size") int size); +} diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.java b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.java new file mode 100644 index 0000000..3252210 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/java/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.java @@ -0,0 +1,33 @@ +package mashibing.online.text.feign.fallback; + +import com.mashibing.constant.CommonStatusEnum; +import com.mashibing.dto.ResponseResult; +import lombok.extern.slf4j.Slf4j; +import mashibing.online.text.feign.SendSMSCodeService; +import org.springframework.stereotype.Service; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * Description:
+ * + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: mashibing.online.text.feign.fallback + *
ClassName: + *
Date: 2022/10/9 18:32 + */ +@Service +@Slf4j +public class SendSMSCodeServiceImpl implements SendSMSCodeService { + + + @Override + + public ResponseResult getSmsCode(int size) { + log.info("获取短信验证码失败"); + return ResponseResult.fail(CommonStatusEnum.FAIL.getCode(), "获取短信验证码失败"); + } +} diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/resources/application.yml b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/resources/application.yml new file mode 100644 index 0000000..9f34a23 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/src/main/resources/application.yml @@ -0,0 +1,11 @@ +server: + port: 8082 + + +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: api-passinger \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/api-passinger-1.0-SNAPSHOT.jar b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/api-passinger-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..4631d66 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/api-passinger-1.0-SNAPSHOT.jar differ diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/application.yml b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/application.yml new file mode 100644 index 0000000..9f34a23 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/application.yml @@ -0,0 +1,11 @@ +server: + port: 8082 + + +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: api-passinger \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/ApiPassingerApplication.class b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/ApiPassingerApplication.class new file mode 100644 index 0000000..5bed24a Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/ApiPassingerApplication.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/controller/TestController.class b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/controller/TestController.class new file mode 100644 index 0000000..16d2929 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/controller/TestController.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/SendSMSCodeService.class b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/SendSMSCodeService.class new file mode 100644 index 0000000..b4f25c4 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/SendSMSCodeService.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.class b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.class new file mode 100644 index 0000000..6ffd27d Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/classes/mashibing/online/text/feign/fallback/SendSMSCodeServiceImpl.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-archiver/pom.properties b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-archiver/pom.properties new file mode 100644 index 0000000..5ed90a9 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=api-passinger +groupId=com.mashibing +version=1.0-SNAPSHOT diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..a4fc679 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,4 @@ +mashibing\online\text\ApiPassingerApplication.class +mashibing\online\text\controller\TestController.class +mashibing\online\text\feign\SendSMSCodeService.class +mashibing\online\text\feign\fallback\SendSMSCodeServiceImpl.class diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..e8a2823 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,4 @@ +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\controller\TestController.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\feign\SendSMSCodeService.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\feign\fallback\SendSMSCodeServiceImpl.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\ApiPassingerApplication.java diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/oneLineTxt/v1/onelinetextplublic/api-passinger/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/onelinetextplublic.iml b/oneLineTxt/v1/onelinetextplublic/onelinetextplublic.iml new file mode 100644 index 0000000..78b2cc5 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/onelinetextplublic.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/pom.xml b/oneLineTxt/v1/onelinetextplublic/pom.xml new file mode 100644 index 0000000..cc53678 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/pom.xml @@ -0,0 +1,80 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.4.13 + + + com.mashibing + oneline-text-plublic + 1.0-SNAPSHOT + + + + pom + + + + + net.sf.json-lib + json-lib + 2.4 + jdk15 + + + com.alibaba + fastjson + 1.2.70 + + + + org.apache.commons + commons-lang3 + 3.11 + + + + org.projectlombok + lombok + 1.18.24 + + + com.auth0 + java-jwt + 3.10.3 + + + + + + api-passinger + send-server + untitled4 + + + + + + com.alibaba.cloud + spring-cloud-alibaba-dependencies + 2021.1 + pom + import + + + org.springframework.cloud + spring-cloud-dependencies + Finchley.SR2 + pom + import + + + + + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/pom.xml b/oneLineTxt/v1/onelinetextplublic/send-server/pom.xml new file mode 100644 index 0000000..e9168d5 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/pom.xml @@ -0,0 +1,41 @@ + + + 4.0.0 + + oneline-text-plublic + com.mashibing + 1.0-SNAPSHOT + + + send-server + 0.0.1-SNAPSHOT + send-server + Demo project for Spring Boot + + 1.8 + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/SendServerApplication.java b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/SendServerApplication.java new file mode 100644 index 0000000..a48ee9e --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/SendServerApplication.java @@ -0,0 +1,15 @@ +package com.mashibing.sendserver; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +@SpringBootApplication +@EnableDiscoveryClient +public class SendServerApplication { + + public static void main(String[] args) { + SpringApplication.run(SendServerApplication.class, args); + } + +} diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java new file mode 100644 index 0000000..af7ce25 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/controller/SendSmsCodeController.java @@ -0,0 +1,180 @@ +package com.mashibing.sendserver.controller; + + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.mashibing.sendserver.pojo.vo.SmsAccount; +import com.mashibing.sendserver.utils.MD5Utils; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang.time.DateFormatUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.http.HttpEntity; +import org.apache.http.NameValuePair; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.entity.UrlEncodedFormEntity; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.ByteArrayEntity; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import org.apache.http.message.BasicNameValuePair; +import org.apache.http.util.EntityUtils; +import org.apache.tomcat.util.security.MD5Encoder; +import org.springframework.stereotype.Component; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import sun.security.provider.MD5; + +import javax.annotation.Resource; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +/** + * @author zxx + * @Description + * @date 2022/10/7 + */ +@Slf4j +@RestController("/send") +public class SendSmsCodeController { + + public static final String CHARSET_UTF8 = "UTF-8"; + + private static PoolingHttpClientConnectionManager cm; + + private static RequestConfig requestConfig; + + @Resource + private SmsAccount smsAccount; + /** + * 发送短信 + */ + private static String PATH_SEND_SMS = "websms/smsJsonService?action=sendsms"; + +// public String getTest(){ +// String msg="【我来啦】尊敬的用户,您的验证码为:706275,2分钟有效"; +// JSONObject jsonObject= prepareSendSms(smsAccount.getAccount(),smsAccount.getPassword(), +// "13710620759",msg,new Date(),false,null, UUID.randomUUID().toString()); +// String rutlet=post(smsAccount.getUrl()+PATH_SEND_SMS,jsonObject); +// return ""; +// } + + /*** + * 获取验证码 + * @author: nod + * @param + * @return + */ + @GetMapping("/acquireSMSCode") + public String acquireSMSCode(@RequestParam(name = "size") int size){ + + int radom = (int)(((Math.random()*9)+1) * Math.pow(10,(size-1))); + String msg="【我来啦】尊敬的用户,您的验证码为:"+radom+",2分钟有效"; + Map params = prepareParams(smsAccount.getAccount(), smsAccount.getPassword(), "13710620759", msg, null, null, + UUID.randomUUID().toString()); + String rutlet=post(smsAccount.getUrl() + PATH_SEND_SMS, params); + log.info("==="+rutlet); + JSONObject jsonObject=JSON.parseObject(rutlet); + Integer status=jsonObject.getInteger("status"); + if (!Integer.valueOf(0).equals(status)){ + log.info("发送失败。。"); + return ""; + } + return String.valueOf(radom); + } + + public static void main(String[] args) { + // int radom = (int)(((Math.random()*9)+1) * Math.pow(10,5)); + String msg="【招商银行】尊敬的用户,您的银行卡账号于10月15日14:22入账款项,人民币17,810.62。领黄金红包cmbt.cn/v5"; + Map params = prepareParams("bzxxhyhy", "3Vf8S9", "13710620759", msg, null, null, + UUID.randomUUID().toString()); + String rutlet=post("http://api.wxxsxx.com/" + PATH_SEND_SMS, params); + System.out.println("==="+rutlet); + } + + + + + + private static String post(String url, Map params) { + String result = null; + CloseableHttpClient httpClient = null; + CloseableHttpResponse response = null; + HttpEntity entity = null; + try { + httpClient = HttpClients.custom().setConnectionManager(cm).setConnectionManagerShared(true).build(); + HttpPost httpPost = new HttpPost(url); + + httpPost.setConfig(requestConfig); + List nameValuePairList = new ArrayList(); + for (String key : params.keySet()) { + nameValuePairList.add(new BasicNameValuePair(key, String.valueOf(params.get(key)))); + } + StringEntity postEntity = new UrlEncodedFormEntity(nameValuePairList, CHARSET_UTF8); + httpPost.setEntity(postEntity); + + response = httpClient.execute(httpPost); + entity = response.getEntity(); + if (entity != null) { + result = EntityUtils.toString(entity, CHARSET_UTF8); + } + } catch (Exception e) { + log.error("请求错误错误信息:", e); + } finally { + // 关闭连接 + if (entity != null) { + EntityUtils.consumeQuietly(entity); + } + if (response != null) { + try { + response.close(); + } catch (IOException e) { + log.error("关闭HttpResponse出错,错误信息:" + e.getMessage()); + } + } + if (httpClient != null) { + try { + httpClient.close(); + } catch (IOException e) { + log.error("关闭HttpClient出错,错误信息:" + e.getMessage()); + } + } + } + return result; + } + + private static Map prepareParams(String account, String password, String mobile, String content, + String contentArr, String extCode, String msgId) { + Map params = new HashMap<>(); + params.put("userId", account); + params.put("md5password", MD5Utils.MD5(password)); + if (StringUtils.isNotBlank(mobile)) { + params.put("mobile", mobile); + } + if (StringUtils.isNotBlank(content)) { + params.put("content", content); + } + if (StringUtils.isNotBlank(extCode)) { + params.put("extCode", content); + } + if (StringUtils.isNotBlank(msgId)) { + params.put("msgId", msgId); + } + if (StringUtils.isNoneBlank(contentArr)) { + params.put("contentArr", contentArr); + } + return params; + } + + + +} diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/pojo/vo/SmsAccount.java b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/pojo/vo/SmsAccount.java new file mode 100644 index 0000000..a33cf4b --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/pojo/vo/SmsAccount.java @@ -0,0 +1,29 @@ +package com.mashibing.sendserver.pojo.vo; + +import lombok.Data; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: com.mashibing.sendserver.pojo.vo + *
ClassName: SmsAccount + *
Date: 2022/10/8 10:24 + */ + +@Data +@ConfigurationProperties(prefix = "xsxx") +@Component +public class SmsAccount { + + + + private String url; + + + private String account; + + private String password; + +} diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/utils/MD5Utils.java b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/utils/MD5Utils.java new file mode 100644 index 0000000..f0957ee --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/java/com/mashibing/sendserver/utils/MD5Utils.java @@ -0,0 +1,72 @@ +package com.mashibing.sendserver.utils; + +import java.io.UnsupportedEncodingException; +import java.math.BigInteger; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.Map; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * Description:
+ * + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: com.mashibing.sendserver.controller + *
ClassName: + *
Date: 2022/10/9 16:59 + */ +public class MD5Utils { + private static final String[] strs = new String[]{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"}; + + public MD5Utils() { + } + + public static String MD5(String value) { + String md5 = ""; + + try { + if (value == null) { + return null; + } + + byte[] btInput = value.getBytes("UTF-8"); + MessageDigest mdInst = MessageDigest.getInstance("MD5"); + mdInst.update(btInput); + byte[] md = mdInst.digest(); + StringBuffer buffer = new StringBuffer(); + + for(int i = 0; i < md.length; ++i) { + int num = md[i]; + if (num < 0) { + num += 256; + } + + int index1 = num / 16; + int index2 = num % 16; + buffer.append(strs[index1] + strs[index2]); + } + + md5 = buffer.toString(); + } catch (Exception var10) { + var10.printStackTrace(); + } + + return md5; + } + + public static String generateKey(Map values) { + try { + MessageDigest digest = MessageDigest.getInstance("MD5"); + byte[] bytes = digest.digest(values.toString().getBytes("UTF-8")); + return String.format("%032x", new BigInteger(1, bytes)); + } catch (NoSuchAlgorithmException var3) { + throw new IllegalStateException("MD5 algorithm not available. Fatal (should be in the JDK).", var3); + } catch (UnsupportedEncodingException var4) { + throw new IllegalStateException("UTF-8 encoding not available. Fatal (should be in the JDK).", var4); + } + } +} diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/src/main/resources/application.yml b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/resources/application.yml new file mode 100644 index 0000000..ea62b44 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/src/main/resources/application.yml @@ -0,0 +1,16 @@ +server: + port: 8083 + +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + + application: + name: send-server + +xsxx: + url: http://api.wxxsxx.com + account: bzxxhyhy + password: 3Vf8S9 \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/application.yml b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/application.yml new file mode 100644 index 0000000..ea62b44 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/application.yml @@ -0,0 +1,16 @@ +server: + port: 8083 + +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + + application: + name: send-server + +xsxx: + url: http://api.wxxsxx.com + account: bzxxhyhy + password: 3Vf8S9 \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/SendServerApplication.class b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/SendServerApplication.class new file mode 100644 index 0000000..a35617d Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/SendServerApplication.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/controller/SendSmsCodeController.class b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/controller/SendSmsCodeController.class new file mode 100644 index 0000000..2f27a0a Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/controller/SendSmsCodeController.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/pojo/vo/SmsAccount.class b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/pojo/vo/SmsAccount.class new file mode 100644 index 0000000..7fbc385 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/pojo/vo/SmsAccount.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/utils/MD5Utils.class b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/utils/MD5Utils.class new file mode 100644 index 0000000..3c1a412 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/classes/com/mashibing/sendserver/utils/MD5Utils.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-archiver/pom.properties b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-archiver/pom.properties new file mode 100644 index 0000000..412d208 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=send-server +groupId=com.mashibing +version=0.0.1-SNAPSHOT diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..262d236 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com\mashibing\sendserver\SendServerApplication.class +com\mashibing\sendserver\controller\TestController.class diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..33e6894 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\controller\TestController.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\SendServerApplication.java diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/oneLineTxt/v1/onelinetextplublic/send-server/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar b/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar new file mode 100644 index 0000000..829447a Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar.original b/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar.original new file mode 100644 index 0000000..cc4187c Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/send-server/target/send-server-0.0.1-SNAPSHOT.jar.original differ diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/TEST-com.mashibing.sendserver.SendServerApplicationTests.xml b/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/TEST-com.mashibing.sendserver.SendServerApplicationTests.xml new file mode 100644 index 0000000..a05b54d --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/TEST-com.mashibing.sendserver.SendServerApplicationTests.xml @@ -0,0 +1,490 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + java.lang.IllegalStateException: Failed to load ApplicationContext +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata + + true]], class annotated with @DirtiesContext [false] with mode [null]. +22:38:45.844 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true} +2022-10-12 22:38:46.733 INFO 14592 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2022-10-12 22:38:46.744 WARN 14592 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +2022-10-12 22:38:46.751 INFO 14592 --- [ main] ConditionEvaluationReportLoggingListener : + +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. +2022-10-12 22:38:46.772 ERROR 14592 --- [ main] o.s.boot.SpringApplication : Application run failed + +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:762) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:771) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:763) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) [spring-boot-2.4.13.jar:2.4.13] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:208) [spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104) [spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70) [spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) [spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) [spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) [spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) [spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82) [spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:63) [spring-boot-2.4.13.jar:2.4.13] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117) [spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111) [spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:62) [spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:375) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:123) ~[spring-boot-test-2.4.13.jar:2.4.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:248) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138) ~[spring-test-5.3.13.jar:5.3.13] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_60] + at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_60] + at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) ~[surefire-booter-2.22.2.jar:2.22.2] +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.13.jar:5.3.13] + ... 102 common frames omitted +Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration.configurationPropertiesBeans(ConfigurationPropertiesRebinderAutoConfiguration.java:51) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.CGLIB$configurationPropertiesBeans$3() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29$$FastClassBySpringCGLIB$$43264754.invoke() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.13.jar:5.3.13] + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.configurationPropertiesBeans() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] + at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.13.jar:5.3.13] + ... 103 common frames omitted +Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata + at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_60] + at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_60] + ... 114 common frames omitted + +2022-10-12 22:38:46.776 ERROR 14592 --- [ main] o.s.boot.SpringApplication : Application run failed + +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:762) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:771) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:763) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:208) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:63) ~[spring-boot-2.4.13.jar:2.4.13] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:62) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:375) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:123) [spring-boot-test-2.4.13.jar:2.4.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:248) [spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138) [spring-test-5.3.13.jar:5.3.13] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_60] + at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_60] + at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) ~[surefire-booter-2.22.2.jar:2.22.2] +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.13.jar:5.3.13] + ... 102 common frames omitted +Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration.configurationPropertiesBeans(ConfigurationPropertiesRebinderAutoConfiguration.java:51) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.CGLIB$configurationPropertiesBeans$3() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29$$FastClassBySpringCGLIB$$43264754.invoke() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.13.jar:5.3.13] + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.configurationPropertiesBeans() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] + at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.13.jar:5.3.13] + ... 103 common frames omitted +Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata + at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_60] + at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_60] + ... 114 common frames omitted + +2022-10-12 22:38:46.782 ERROR 14592 --- [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@4b29d1d2] to prepare test instance [com.mashibing.sendserver.SendServerApplicationTests@4ef27d66] + +java.lang.IllegalStateException: Failed to load ApplicationContext + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:124) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:248) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:138) [spring-test-5.3.13.jar:5.3.13] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$6(ClassBasedTestDescriptor.java:350) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.executeAndMaskThrowable(ClassBasedTestDescriptor.java:355) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeTestInstancePostProcessors$7(ClassBasedTestDescriptor.java:350) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[na:1.8.0_60] + at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_60] + at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_60] + at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) ~[na:1.8.0_60] + at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742) ~[na:1.8.0_60] + at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeTestInstancePostProcessors(ClassBasedTestDescriptor.java:349) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$instantiateAndPostProcessTestInstance$4(ClassBasedTestDescriptor.java:270) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(ClassBasedTestDescriptor.java:269) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$2(ClassBasedTestDescriptor.java:259) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_60] + at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$testInstancesProvider$3(ClassBasedTestDescriptor.java:258) [junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.execution.TestInstancesProvider.getTestInstances(TestInstancesProvider.java:31) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$prepare$0(TestMethodTestDescriptor.java:101) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:100) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepare(TestMethodTestDescriptor.java:65) ~[junit-jupiter-engine-5.7.2.jar:5.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$prepare$1(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.prepare(NodeTestTask.java:111) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:79) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) ~[junit-platform-engine-1.7.2.jar:1.7.2] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) ~[junit-platform-launcher-1.3.1.jar:1.3.1] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:150) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:124) ~[surefire-junit-platform-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) ~[surefire-booter-2.22.2.jar:2.22.2] + at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) ~[surefire-booter-2.22.2.jar:2.22.2] +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:762) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:771) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:763) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:208) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:104) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:70) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:63) ~[spring-boot-2.4.13.jar:2.4.13] + at java.util.ArrayList.forEach(ArrayList.java:1249) ~[na:1.8.0_60] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:62) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:375) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) ~[spring-boot-2.4.13.jar:2.4.13] + at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:123) ~[spring-boot-test-2.4.13.jar:2.4.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) ~[spring-test-5.3.13.jar:5.3.13] + at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ~[spring-test-5.3.13.jar:5.3.13] + ... 67 common frames omitted +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.13.jar:5.3.13] + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.13.jar:5.3.13] + ... 102 common frames omitted +Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration.configurationPropertiesBeans(ConfigurationPropertiesRebinderAutoConfiguration.java:51) ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.CGLIB$configurationPropertiesBeans$3() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29$$FastClassBySpringCGLIB$$43264754.invoke() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.13.jar:5.3.13] + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.13.jar:5.3.13] + at org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$31657f29.configurationPropertiesBeans() ~[spring-cloud-context-2.0.2.RELEASE.jar:2.0.2.RELEASE] + at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] + at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] + at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] + at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.13.jar:5.3.13] + ... 103 common frames omitted +Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata + at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_60] + at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_60] + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_60] + ... 114 common frames omitted + +]]> + + \ No newline at end of file diff --git a/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/com.mashibing.sendserver.SendServerApplicationTests.txt b/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/com.mashibing.sendserver.SendServerApplicationTests.txt new file mode 100644 index 0000000..0c4ec50 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/send-server/target/surefire-reports/com.mashibing.sendserver.SendServerApplicationTests.txt @@ -0,0 +1,11 @@ +------------------------------------------------------------------------------- +Test set: com.mashibing.sendserver.SendServerApplicationTests +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.451 s <<< FAILURE! - in com.mashibing.sendserver.SendServerApplicationTests +contextLoads Time elapsed: 0.001 s <<< ERROR! +java.lang.IllegalStateException: Failed to load ApplicationContext +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans]: Factory method 'configurationPropertiesBeans' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata +Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata + diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/pom.xml b/oneLineTxt/v1/onelinetextplublic/untitled4/pom.xml new file mode 100644 index 0000000..62c8bf7 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/pom.xml @@ -0,0 +1,23 @@ + + + oneline-text-plublic + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + untitled4 + Archetype - untitled4 + http://maven.apache.org + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + + diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/CommonStatusEnum.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/CommonStatusEnum.java new file mode 100644 index 0000000..6843fbd --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/CommonStatusEnum.java @@ -0,0 +1,22 @@ +package com.mashibing.constant; + + +import lombok.Getter; + +public enum CommonStatusEnum { + + SUCCESS(1,"SUCCESS"), + FAIL(0,"FAIL"); + + @Getter + private int code; + @Getter + private String message; + + CommonStatusEnum (int code,String message){ + this.code=code; + this.message=message; + } + + +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/IdendityConstant.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/IdendityConstant.java new file mode 100644 index 0000000..87ebb27 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/constant/IdendityConstant.java @@ -0,0 +1,7 @@ +package com.mashibing.constant; + +public class IdendityConstant { + + private static final String PASSENGER_IDENDITY = "1"; + private static final String DRIVER_IDENDITY = "2"; +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/PassengerRequestDto.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/PassengerRequestDto.java new file mode 100644 index 0000000..7781d81 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/PassengerRequestDto.java @@ -0,0 +1,23 @@ +package com.mashibing.dto; + +import lombok.Data; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * Description:
+ * + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: com.mashibing.dto + *
ClassName: + *
Date: 2022/10/14 18:30 + */ +@Data +public class PassengerRequestDto { + + private String phoneNumberCode; + private String phoneNumber; +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/ResponseResult.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/ResponseResult.java new file mode 100644 index 0000000..758c874 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/ResponseResult.java @@ -0,0 +1,35 @@ +package com.mashibing.dto; + +import com.mashibing.constant.CommonStatusEnum; +import lombok.Data; +import lombok.experimental.Accessors; + +@Data +@Accessors(chain = true)//链式操作 +public class ResponseResult { + + private int code; + private String message; + private T data; + + + public static ResponseResult success(T data){ + return new ResponseResult().setCode(CommonStatusEnum.SUCCESS.getCode()) + .setMessage(CommonStatusEnum.SUCCESS.getMessage()) + .setData(data); + + } + + public static ResponseResult fail(){ + return new ResponseResult().setCode(CommonStatusEnum.FAIL.getCode()) + .setMessage(CommonStatusEnum.FAIL.getMessage()) + .setData(null); + } + + public static ResponseResult fail(int code,T data){ + return new ResponseResult().setCode(code) + .setMessage(CommonStatusEnum.FAIL.getMessage()) + .setData(data); + } + +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/TokenResult.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/TokenResult.java new file mode 100644 index 0000000..11134d1 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/dto/TokenResult.java @@ -0,0 +1,22 @@ +package com.mashibing.dto; + +import lombok.Data; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * Description:
+ * + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: com.mashibing.dto + *
ClassName: TokenResult + *
Date: 2022/10/14 9:24 + */ +@Data +public class TokenResult { + private String phoneNum; + private String idendity; +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/response/NumberCodeResponse.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/response/NumberCodeResponse.java new file mode 100644 index 0000000..0597025 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/response/NumberCodeResponse.java @@ -0,0 +1,9 @@ +package com.mashibing.response; + +import lombok.Data; + +@Data +public class NumberCodeResponse { + + private String numberCode; +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/util/JwtUtils.java b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/util/JwtUtils.java new file mode 100644 index 0000000..6870f64 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/src/main/java/com/mashibing/util/JwtUtils.java @@ -0,0 +1,74 @@ +package com.mashibing.util; + +import com.auth0.jwt.JWT; +import com.auth0.jwt.JWTCreator; +import com.auth0.jwt.algorithms.Algorithm; +import com.auth0.jwt.interfaces.Claim; +import com.auth0.jwt.interfaces.DecodedJWT; +import com.mashibing.dto.TokenResult; + +import java.util.Calendar; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +/** + * Copyright© 2020.10.20 by 博纳德集团有限公司.All rights reserved. + * 1.版权归博纳德集团公司所有; + * 2.未经原作者允许不得转载本代码内容,否则将视为侵权; + * 3.对于不遵守此声明或者其他违法使用本代码内容者,本公司依法保留追究权。. + * Description:
+ * + * @author nod + * ProjectName: onelinetextplublic + *
PackageName: com.mashibing.util + *
ClassName: + *
Date: 2022/10/14 9:11 + */ +public class JwtUtils { + + private static final String SINGN = "VBq12))*&"; + private static final String JWT_KEY = "phoneNum"; + private static final String IDENDITY = "idendity"; + + //生成token + + public static String genaroteToken(String phoneNum,String idendity){ + Map map =new HashMap<>(); + map.put(JWT_KEY,phoneNum); + map.put(IDENDITY,idendity); + + Calendar calendar=Calendar.getInstance(); + calendar.add(Calendar.DATE,1); + Date date =calendar.getTime(); + JWTCreator.Builder builder = JWT.create(); + + //遍历map,把map 的逐个元素值放到 builder里面去 + map.forEach( + (k,v)->{ + builder.withClaim(k,v); + } + ); + //把过期时间放到builder + builder.withExpiresAt(date); + + //最后生成token + return builder.sign(Algorithm.HMAC256(SINGN)); + + } + + + //解析token + public static TokenResult parseToken(String token){ + + DecodedJWT verify = JWT.require(Algorithm.HMAC256(SINGN)).build().verify(token); + Claim phoneClaim = verify.getClaim(JWT_KEY); + Claim idendityClaim = verify.getClaim(IDENDITY); + TokenResult tokenResult = new TokenResult(); + tokenResult.setIdendity(idendityClaim.toString()); + tokenResult.setPhoneNum(phoneClaim.toString()); + return tokenResult; + } + + +} diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/constant/CommonStatusEnum.class b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/constant/CommonStatusEnum.class new file mode 100644 index 0000000..65b9d3e Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/constant/CommonStatusEnum.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/dto/ResponseResult.class b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/dto/ResponseResult.class new file mode 100644 index 0000000..91cc41f Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/dto/ResponseResult.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/response/NumberCodeResponse.class b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/response/NumberCodeResponse.class new file mode 100644 index 0000000..4ddba26 Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/untitled4/target/classes/com/mashibing/response/NumberCodeResponse.class differ diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-archiver/pom.properties b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-archiver/pom.properties new file mode 100644 index 0000000..6b49733 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-archiver/pom.properties @@ -0,0 +1,3 @@ +artifactId=untitled4 +groupId=com.mashibing +version=1.0-SNAPSHOT diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..7ae6057 --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com\mashibing\constant\CommonStatusEnum.class +com\mashibing\dto\ResponseResult.class diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..59d42fa --- /dev/null +++ b/oneLineTxt/v1/onelinetextplublic/untitled4/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,3 @@ +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\constant\CommonStatusEnum.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\dto\ResponseResult.java +D:\huaqianlearn\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\response\NumberCodeResponse.java diff --git a/oneLineTxt/v1/onelinetextplublic/untitled4/target/untitled4-1.0-SNAPSHOT.jar b/oneLineTxt/v1/onelinetextplublic/untitled4/target/untitled4-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..02cb5ae Binary files /dev/null and b/oneLineTxt/v1/onelinetextplublic/untitled4/target/untitled4-1.0-SNAPSHOT.jar differ