提交了代码

master
msb_89821 2 years ago
parent 117dd1e580
commit eb1716a2f3

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
</component>
</project>

@ -1,7 +1,10 @@
package mashibing.online.text.controller;
import cn.hutool.core.util.ObjectUtil;
import com.mashibing.dto.PassengerRequestDto;
import com.mashibing.dto.ResponseResult;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ -18,6 +21,10 @@ public class PassengerController {
@PostMapping("/getPhoneNumberCode")
public ResponseResult getPhoneNumberCode(@RequestBody PassengerRequestDto passengerRequestDto){
// 校验参数
if(ObjectUtil.isNull(passengerRequestDto)||ObjectUtil.isEmpty(passengerRequestDto.getPhoneNumber())){
throw new RuntimeException("手机号码必填");
}
// 调服务获取验证码

@ -1,4 +1,4 @@
mashibing\online\text\ApiPassingerApplication.class
mashibing\online\text\controller\TestController.class
mashibing\online\text\feign\SendSMSCodeService.class
mashibing\online\text\controller\PassengerController.class
mashibing\online\text\feign\fallback\SendSMSCodeServiceImpl.class

@ -1,4 +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
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\feign\SendSMSCodeService.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\ApiPassingerApplication.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\controller\PassengerController.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\api-passinger\src\main\java\mashibing\online\text\feign\fallback\SendSMSCodeServiceImpl.java

@ -37,7 +37,11 @@
<artifactId>commons-lang3</artifactId>
<version>3.11</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.12</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

@ -1,2 +1,4 @@
com\mashibing\sendserver\pojo\vo\SmsAccount.class
com\mashibing\sendserver\SendServerApplication.class
com\mashibing\sendserver\controller\TestController.class
com\mashibing\sendserver\utils\MD5Utils.class
com\mashibing\sendserver\controller\SendSmsCodeController.class

@ -1,2 +1,4 @@
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
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\pojo\vo\SmsAccount.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\utils\MD5Utils.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\SendServerApplication.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\send-server\src\main\java\com\mashibing\sendserver\controller\SendSmsCodeController.java

@ -1,11 +0,0 @@
-------------------------------------------------------------------------------
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

@ -1,2 +1,7 @@
com\mashibing\constant\IdendityConstant.class
com\mashibing\util\JwtUtils.class
com\mashibing\constant\CommonStatusEnum.class
com\mashibing\dto\ResponseResult.class
com\mashibing\dto\TokenResult.class
com\mashibing\dto\PassengerRequestDto.class
com\mashibing\response\NumberCodeResponse.class

@ -1,3 +1,7 @@
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
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\constant\IdendityConstant.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\dto\TokenResult.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\util\JwtUtils.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\dto\PassengerRequestDto.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\response\NumberCodeResponse.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\constant\CommonStatusEnum.java
D:\huaqianlearn\daimai_changcu\oneLineTxt\v1\onelinetextplublic\untitled4\src\main\java\com\mashibing\dto\ResponseResult.java

Loading…
Cancel
Save