Commit 4819f7b0 authored by tangtuo's avatar tangtuo

微信支付

parent 96d5d17e
......@@ -34,7 +34,8 @@ public class WxPayConfig {
private WxPayProperties wxPayProperties;
private PrivateKey getPrivateKey() {
@Bean
public PrivateKey wxPrivateKey() {
// 加载商户私钥(privateKey:私钥字符串地址)
try {
ClassPathResource resource = new ClassPathResource(wxPayProperties.getPrivateKeyPath());
......@@ -44,23 +45,20 @@ public class WxPayConfig {
}
}
@Bean
public CloseableHttpClient client() throws NotFoundException, HttpCodeException, GeneralSecurityException, IOException {
public CloseableHttpClient client(PrivateKey wxPrivateKey) throws NotFoundException, HttpCodeException, GeneralSecurityException, IOException {
// 获取证书管理器实例
CertificatesManager certificatesManager = CertificatesManager.getInstance();
// 向证书管理器增加需要自动更新平台证书的商户信息
PrivateKey merchantPrivateKey = getPrivateKey();
String mchId = wxPayProperties.getMchId();
String apiV3Key = wxPayProperties.getApiV3Key();
String mchSerialNum = wxPayProperties.getMchSerialNum();
certificatesManager.putMerchant(mchId, new WechatPay2Credentials(mchId,
new PrivateKeySigner(mchSerialNum, merchantPrivateKey)), apiV3Key.getBytes(StandardCharsets.UTF_8));
new PrivateKeySigner(mchSerialNum, wxPrivateKey)), apiV3Key.getBytes(StandardCharsets.UTF_8));
// 从证书管理器中获取verifier
Verifier verifier = certificatesManager.getVerifier(mchId);
WechatPayHttpClientBuilder builder = WechatPayHttpClientBuilder.create()
.withMerchant(mchId, mchSerialNum, merchantPrivateKey)
.withMerchant(mchId, mchSerialNum, wxPrivateKey)
.withValidator(new WechatPay2Validator(verifier));
// ... 接下来,你仍然可以通过builder设置各种参数,来配置你的HttpClient
// 通过WechatPayHttpClientBuilder构造的HttpClient,会自动的处理签名和验签,并进行证书自动更新
......
......@@ -56,16 +56,11 @@ public class Nft extends BaseEntity {
@ApiModelProperty("简介")
private String synopsis;
@ApiModelProperty("文件名")
private String fileName;
@ApiModelProperty("文件地址--用户选择不存档的情况下为空")
private String fileUrl;
@NotBlank(message = "作品哈希不能为空")
@ApiModelProperty("文件hash")
private String fileHash;
@NotBlank(message = "nft编号不能为空")
@ApiModelProperty("nft编号")
private String nftId;
......
package com.fzm.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import java.util.Date;
/**
* @author tangtuo
* @date 2022/1/19 15:33
*/
@Data
@TableName("tb_order")
public class Order {
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("订单名")
private String orderName;
@ApiModelProperty("支付场景 1-nft发行 2-版权申请")
private Integer payScene;
@ApiModelProperty("产品id nft主键或者版权主键")
private Integer productId;
@ApiModelProperty("用户id")
private Integer userId;
@ApiModelProperty("订单价格-单位(分)")
private Long fee;
@ApiModelProperty("0-支付中 1-支付成功 2-订单已关闭 3-已退款")
private Integer orderStatus;
@ApiModelProperty("支付类型 1-微信支付 2-支付宝支付")
private Integer payType;
@ApiModelProperty("创建时间")
private Date createDate;
@ApiModelProperty("最后一次修改时间")
private Date updateDate;
}
package com.fzm.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
@TableName("tb_payment")
public class Payment {
@TableId(type = IdType.AUTO)
private Integer id;
@ApiModelProperty("商品订单编号")
private Long orderId;
@ApiModelProperty("支付系统交易编号")
private String transactionId;
@ApiModelProperty("交易类型")
private String tradeType;
@ApiModelProperty("交易状态")
private String tradeState;
@ApiModelProperty("支付金额(分)")
private Integer totalFee;
@ApiModelProperty("商品订单编号")
private String successTime;
@ApiModelProperty("通知参数")
private String content;
private Date createDate;
private Date updateDate;
}
\ No newline at end of file
package com.fzm.common.entity.dto;
import lombok.Data;
/**
* @author tangtuo
* @date 2022/1/20 18:45
*/
@Data
public class JsapiPayDto {
private String openid;
private Long orderId;
}
package com.fzm.common.entity.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @author tangtuo
* @date 2022/1/19 15:09
*/
@Data
public class OrderDto {
@ApiModelProperty("订单价格")
private Long fee;
@ApiModelProperty("支付场景 1-nft发行 2-版权申请")
private Integer payScene;
@ApiModelProperty("产品id nft的id或者copyright的id")
private Integer productId;
}
package com.fzm.common.entity.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author tangtuo
* @date 2022/1/21 13:08
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderProcessMsg {
private Integer productId;
private Integer payScene;
}
......@@ -12,7 +12,7 @@ import lombok.ToString;
@Getter
@AllArgsConstructor
public enum CopyrightApplyState {
TO_BE_PAY(-2, "待支付", ""),
WITHDRAW(-1, "已撤回", ""),
TO_BE_REVIEWED(0, "待核验", ""),
SUBMITTED(2, "提交审核", "请耐心等待湖北版权局审核受理,受理成功后将在15个工作日内完成登记"),
......
package com.fzm.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author tangtuo
* @date 2022/1/19 15:53
*/
@AllArgsConstructor
@Getter
public enum OrderStatus {
// 支付中
PAYING(0),
// 支付成功
PAYED(1),
// 已关单
CLOSED(2),
// 退款中
REFUNDING(3),
// 退款成功
REFUNDED(4),
// 订单已取消(已关闭)
CANCEL(5),
;
private Integer status;
}
package com.fzm.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author tangtuo
* @date 2022/1/18 17:49
*/
@Getter
@AllArgsConstructor
public enum PayScene {
NFT(1, "NFT发行"),
COPYRIGHT(2, "版权申请");
private Integer code;
private String type;
public static String getTypeByCode(Integer code) {
for (PayScene value : PayScene.values()) {
if (value.getCode().equals(code)) {
return value.getType();
}
}
return NFT.getType();
}
}
package com.fzm.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum PayType {
/**
* 微信
*/
WXPAY(1, "微信支付"),
/**
* 支付宝
*/
ALIPAY(2, "支付宝支付");
/**
* 类型
*/
private Integer code;
private final String type;
}
......@@ -20,6 +20,7 @@ public enum ResultCode implements IErrorCode {
OPERATION_FAILED(418, "操作失败"),
COPYRIGHT_FAILED(420, "版权申请失败"),
SELECT_FAILED(421, "查询失败"),
PAY_FAILED(422, "支付失败"),
;
......
package com.fzm.common.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fzm.common.entity.Order;
import org.apache.ibatis.annotations.Mapper;
/**
* @author tangtuo
* @date 2022/1/19 15:41
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
}
package com.fzm.common.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fzm.common.entity.Payment;
import org.apache.ibatis.annotations.Mapper;
/**
* @author tangtuo
* @date 2022/1/20 16:39
*/
@Mapper
public interface PaymentMapper extends BaseMapper<Payment> {
}
package com.fzm.common.properties;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
......@@ -17,6 +18,9 @@ public class WxPayProperties {
@ApiModelProperty("微信公众号appId")
private String appId;
@ApiModelProperty("微信公众号APPSecret")
private String appSecret;
@ApiModelProperty("商户号")
private String mchId;
......@@ -29,4 +33,10 @@ public class WxPayProperties {
@ApiModelProperty("商户私钥文件路径")
private String privateKeyPath;
@ApiModelProperty("h5支付回调地址")
private String h5PayNotifyUrl;
@ApiModelProperty("h5退款回调地址")
private String h5RefundNotifyUrl;
}
......@@ -143,4 +143,12 @@ public interface CopyrightApplyService extends IService<CopyrightApply> {
*/
List<String> getSerialCodes();
/**
* 修改状态
*
* @param copyrightId
* @param state
* @return
*/
boolean updateRegisterState(Integer copyrightId, int state);
}
......@@ -23,7 +23,7 @@ public interface NftService extends IService<Nft> {
* @param nft
* @return
*/
NftDto saveNft(Nft nft);
Integer saveNft(Nft nft);
/**
* 查看nft列表
......@@ -124,10 +124,10 @@ public interface NftService extends IService<Nft> {
/**
* 发行nft
*
* @param nftDto
* @param id
* @return
*/
Integer publish(NftDto nftDto);
Integer publish(Integer id);
/**
* nft转让
......
package com.fzm.common.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzm.common.entity.Order;
import com.fzm.common.entity.dto.OrderDto;
import com.fzm.common.enums.OrderStatus;
/**
* @author tangtuo
* @date 2022/1/19 15:41
*/
public interface OrderService extends IService<Order> {
/**
* 根据支付场景和产品id查询订单
*
* @param payScene
* @param productId
* @return
*/
Order getByPaySceneAndProductId(Integer payScene, Integer productId);
/**
* 更新订单状态
*
* @param out_trade_no
* @param orderStatus
*/
void updateOrderStatus(Long out_trade_no, OrderStatus orderStatus);
/**
* 下单
* @param orderDto
* @return
*/
Long createOrder(OrderDto orderDto);
/**
*
* @param orderId
* @param payType
*/
Boolean updatePayType(Long orderId, Integer payType);
}
package com.fzm.common.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzm.common.entity.Payment;
/**
* @author tangtuo
* @date 2022/1/20 16:40
*/
public interface PaymentService extends IService<Payment> {
}
package com.fzm.common.service;
import cn.hutool.json.JSONObject;
import com.fzm.common.entity.dto.JsapiPayDto;
import javax.servlet.http.HttpServletRequest;
import java.security.GeneralSecurityException;
import java.util.Map;
/**
* @author tangtuo
* @date 2022/1/13 10:13
*/
public interface WxPayService {
/**
* h5支付下单并生成签名
*
* @param jsapiPayDto
* @return
* @throws Exception
*/
Map<String, Object> payJsapi(JsapiPayDto jsapiPayDto) throws Exception;
String encryptByPrivateKey(String data) throws Exception;
Boolean notifyH5(HttpServletRequest request);
/**
* 支付成功后处理订单
*
* @param jsonObject
*/
void processOrder(JSONObject jsonObject) throws GeneralSecurityException;
String queryOrder(Long orderId);
}
......@@ -114,8 +114,8 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
throw GlobalException.newException(ResultCode.VALIDATE_FAILED);
}
CopyrightApply copyrightApply = new CopyrightApply(copyrightDTO);
// 首次提交,登记状态为待提交
copyrightApply.setRegisterState(CopyrightApplyState.TO_BE_REVIEWED.getCode());
// 首次提交,登记状态为待支付
copyrightApply.setRegisterState(CopyrightApplyState.TO_BE_PAY.getCode());
copyrightApply.setUserId(user.getId());
copyrightApply.setApplyTime(new Date());
try {
......@@ -303,7 +303,7 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
copyrightApplyOwnerRelationService.saveBatch(owners);
}
copyrightApply.setApplyTime(new Date());
copyrightApply.setRegisterState(CopyrightApplyState.TO_BE_REVIEWED.getCode());
copyrightApply.setRegisterState(CopyrightApplyState.TO_BE_PAY.getCode());
return updateById(copyrightApply);
}
......@@ -444,4 +444,12 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
return copyrightApplyMapper.getSerialCodes();
}
@Override
public boolean updateRegisterState(Integer copyrightId, int state) {
CopyrightApply copyrightApply = new CopyrightApply();
copyrightApply.setId(copyrightId);
copyrightApply.setRegisterState(state);
return updateById(copyrightApply);
}
}
......@@ -14,7 +14,6 @@ import com.fzm.common.utils.JwtUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -38,16 +37,19 @@ public class EntrustShelfServiceImpl extends ServiceImpl<EntrustShelfMapper, Ent
@Override
public Boolean submit(EntrustShelf entrustShelf) {
// 查询当前nft是否已提交过申请
QueryWrapper<EntrustShelf> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("nft_hash", entrustShelf.getNftHash());
queryWrapper.eq("status", SystemConstant.BOOLEAN_DATA_FALSE);
if (this.count(queryWrapper) > 0) {
throw GlobalException.newException(ResultCode.FAILED, "此nft已提交过上架申请,请勿重复提交");
}
// 修改当前nft的是否已申请的状态为是
nftService.updateEntrust(entrustShelf.getNftHash(), SystemConstant.BOOLEAN_DATA_TRUE);
String authorization = request.getHeader("Authorization");
Integer userId = JwtUtil.getUserIdFromToken(authorization);
entrustShelf.setUserId(userId);
try {
return this.save(entrustShelf);
} catch (DuplicateKeyException e) {
throw GlobalException.newException(ResultCode.FAILED, "此nft已提交过上架申请,请勿重复提交");
}
}
@Override
......@@ -91,6 +93,7 @@ public class EntrustShelfServiceImpl extends ServiceImpl<EntrustShelfMapper, Ent
public EntrustShelf getByNftHash(String nftHash) {
QueryWrapper<EntrustShelf> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("nft_hash", nftHash);
queryWrapper.eq("status", SystemConstant.BOOLEAN_DATA_FALSE);
return this.getOne(queryWrapper);
}
}
......@@ -34,6 +34,7 @@ import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.redisson.Redisson;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service;
......@@ -77,19 +78,16 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
private NftTransferRecordService nftTransferRecordService;
@Resource
private ObsUtil obsUtil;
@Resource
private SmsUtil smsUtil;
@Resource
private SmsProperties smsProperties;
@Resource
private HttpServletRequest request;
private RabbitTemplate rabbitTemplate;
@Resource
private Redisson redisson;
private HttpServletRequest request;
@Value("${chain.para.cAddr}")
private String contractAddr;
......@@ -101,23 +99,16 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
private static String abi = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"burnTokenBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getTokenInfo\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"getUserTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mintToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"mintTokenBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"tokenInfo\",\"type\":\"string\"}],\"name\":\"setTokenInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]";
@Override
public NftDto saveNft(Nft nft) {
Integer userId = JwtUtil.getUserIdFromToken(request.getHeader("Authorization"));
nft.setUserId(userId);
public Integer saveNft(Nft nft) {
User user = userService.getUserByToken();
nft.setUserId(user.getId());
nft.setPublishAddress(user.getWallet());
save(nft);
User user = userService.getById(userId);
NftDto nftDto = new NftDto();
// 获取用户的钱包地址
String wallet = user.getWallet();
nftDto.setNftId(generateNftId(nft.getCategoryId()));
nftDto.setWallet(wallet);
nftDto.setId(nft.getId());
nftDto.setFileHash(nft.getFileHash());
return nftDto;
return nft.getId();
}
@Override
public Integer publish(NftDto nftDto) {
public Integer publish(Integer id) {
User user = userService.getUserByToken();
if (!AuthStatus.SUCCESS.getStatus().equals(user.getAuthStatus())) {
throw GlobalException.newException(ResultCode.PUBLISH_ERROR, "您还未实名认证,请先实名认证");
......@@ -127,9 +118,9 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
String privkey = paraChainClient.walletDumpPrivkey(wallet);
// 生产tokenId
long tokenId = getTokenId();
Nft nft = getById(nftDto.getId());
Nft nft = getById(id);
TreeMap<String, String> map = new TreeMap<>();
map.put("hash", nftDto.getFileHash());
map.put("hash", nft.getFileHash());
map.put("publishAddress", wallet);
map.put("author", nft.getAuthor());
map.put("synopsis", nft.getSynopsis());
......@@ -160,8 +151,6 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
nft.setNftHash(realHash);
nft.setTokenId(tokenId);
nft.setPublishTime(new Date());
nft.setNftId(nftDto.getNftId());
nft.setPublishAddress(wallet);
updateById(nft);
// 如果用户是第一次发行作品,把用户的isPublish修改成1,并清空用户统计的缓存信息
if (SystemConstant.BOOLEAN_DATA_FALSE.equals(user.getIsPublish())) {
......@@ -406,7 +395,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
if (nft == null) {
throw GlobalException.newException(ResultCode.DATA_ERROR, "没找到此nft详情");
}
obsUtil.downloadFile(nft.getFileUrl(), nft.getFileName());
// obsUtil.downloadFile(nft.getFileUrl(), nft.getFileName());
}
private long getTokenId() {
......
package com.fzm.common.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fzm.common.entity.Order;
import com.fzm.common.entity.dto.OrderDto;
import com.fzm.common.enums.OrderStatus;
import com.fzm.common.enums.PayScene;
import com.fzm.common.enums.PayType;
import com.fzm.common.mapper.OrderMapper;
import com.fzm.common.service.CopyrightApplyService;
import com.fzm.common.service.NftService;
import com.fzm.common.service.OrderService;
import com.fzm.common.utils.JwtUtil;
import com.fzm.common.utils.SnowflakeUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
/**
* @author tangtuo
* @date 2022/1/19 15:42
*/
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
@Resource
private NftService nftService;
@Resource
private CopyrightApplyService copyrightApplyService;
@Resource
private SnowflakeUtil snowflakeUtil;
@Resource
private HttpServletRequest request;
@Override
public Order getByPaySceneAndProductId(Integer payScene, Integer productId) {
QueryWrapper<Order> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("pay_scene", payScene)
.eq("product_id", productId);
return this.getOne(queryWrapper);
}
@Override
public void updateOrderStatus(Long out_trade_no, OrderStatus orderStatus) {
Order order = new Order();
order.setId(out_trade_no);
order.setOrderStatus(orderStatus.getStatus());
this.updateById(order);
}
@Override
public Long createOrder(OrderDto orderDto) {
Order order = new Order();
long id = snowflakeUtil.snowflakeId();
Integer productId = orderDto.getProductId();
String orderName;
if (PayScene.NFT.getCode().equals(orderDto.getPayScene())) {
orderName = nftService.getById(productId).getName();
} else {
orderName = copyrightApplyService.getById(productId).getOpusName();
}
order.setId(id);
order.setOrderName(orderName);
order.setPayScene(orderDto.getPayScene());
order.setOrderName(orderName);
order.setFee(orderDto.getFee());
order.setProductId(productId);
order.setUserId(JwtUtil.getUserIdFromToken(request.getHeader("Authorization")));
order.setOrderStatus(OrderStatus.PAYING.getStatus());
this.save(order);
return id;
}
@Override
public Boolean updatePayType(Long orderId, Integer payType) {
Order o = new Order();
o.setId(orderId);
o.setPayType(payType);
return updateById(o);
}
}
package com.fzm.common.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fzm.common.entity.Payment;
import com.fzm.common.mapper.PaymentMapper;
import com.fzm.common.service.PaymentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author tangtuo
* @date 2022/1/20 16:40
*/
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {
}
package com.fzm.common.service.impl;
import cn.hutool.core.util.IdUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fzm.common.entity.Order;
import com.fzm.common.entity.Payment;
import com.fzm.common.entity.dto.JsapiPayDto;
import com.fzm.common.entity.dto.OrderProcessMsg;
import com.fzm.common.enums.*;
import com.fzm.common.exception.GlobalException;
import com.fzm.common.properties.WxPayProperties;
import com.fzm.common.service.WxPayService;
import com.fzm.common.service.*;
import com.fzm.common.utils.JwtUtil;
import com.wechat.pay.contrib.apache.httpclient.util.AesUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.util.EntityUtils;
import org.redisson.Redisson;
import org.redisson.api.RLock;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Base64Utils;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.GeneralSecurityException;
import java.security.PrivateKey;
import java.security.Signature;
import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
/**
* @author tangtuo
* @date 2022/1/13 10:13
*/
@Slf4j
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class WxPayServiceImpl implements WxPayService {
// @Resource
// private CloseableHttpClient httpClient;
//
// @Resource
// private WxPayProperties wxPayProperties;
@Resource
private CloseableHttpClient httpClient;
@Resource
private WxPayProperties wxPayProperties;
@Resource
private PrivateKey wxPrivateKey;
@Resource
private OrderService orderService;
@Resource
private Redisson redisson;
@Resource
private PaymentService paymentService;
@Resource
private RabbitTemplate rabbitTemplate;
public Map<String, Object> payJsapi(JsapiPayDto jsapiPayDto) throws Exception {
RLock lock = redisson.getLock("pay-" + jsapiPayDto.getOrderId());
if (!lock.tryLock(10, TimeUnit.SECONDS)) {
throw GlobalException.newException(ResultCode.PAY_FAILED, "当前订单正在支付中,请勿重复点击");
}
try {
String appId = wxPayProperties.getAppId();
Long out_trade_no = jsapiPayDto.getOrderId();
Order order = orderService.getById(out_trade_no);
// 请求jsapi支付下单接口
String url = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
HttpPost httpPost = new HttpPost(url);
httpPost.addHeader("Accept", "application/json");
httpPost.addHeader("Content-type", "application/json; charset=utf-8");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectMapper objectMapper = new ObjectMapper();
ObjectNode rootNode = objectMapper.createObjectNode();
rootNode.put("mchid", wxPayProperties.getMchId())
.put("appid", appId)
.put("description", PayScene.getTypeByCode(order.getPayScene()))
.put("notify_url", wxPayProperties.getH5PayNotifyUrl())
.put("out_trade_no", String.valueOf(out_trade_no));
rootNode.putObject("amount")
.put("total", order.getFee());
rootNode.putObject("payer")
.put("openid", jsapiPayDto.getOpenid());
String json = objectMapper.writeValueAsString(rootNode);
log.info("h5下单接口请求参数: {}", json);
objectMapper.writeValue(bos, rootNode);
httpPost.setEntity(new StringEntity(bos.toString("UTF-8"), "UTF-8"));
CloseableHttpResponse response = httpClient.execute(httpPost);
String bodyAsString = EntityUtils.toString(response.getEntity());
JSONObject jsonObject = JSONUtil.parseObj(bodyAsString);
if (jsonObject == null || StringUtils.isBlank(jsonObject.getStr("prepay_id"))) {
throw GlobalException.newException(ResultCode.PAY_FAILED, "微信支付下单失败");
}
String prepay_id = jsonObject.getStr("prepay_id");
String timeStamp = String.valueOf(Instant.now().getEpochSecond());
String nonceStr = IdUtil.simpleUUID();
String packageInfo = "prepay_id=" + prepay_id;
String signStr = appId + "\n" +
timeStamp + "\n" +
nonceStr + "\n" +
packageInfo + "\n";
log.info("签名字符串为: {}", signStr);
String paySign = this.encryptByPrivateKey(signStr);
Map<String, Object> result = new HashMap<>();
result.put("appId", appId);
result.put("timeStamp", timeStamp);
result.put("nonceStr", nonceStr);
result.put("package", packageInfo);
result.put("signType", "RSA");
result.put("paySign", paySign);
result.put("orderId", out_trade_no);
// 修改此订单的支付方式为微信支付
orderService.updatePayType(jsapiPayDto.getOrderId(), PayType.WXPAY.getCode());
return result;
} finally {
lock.unlock();
}
}
/**
* 私钥签名
*
* @param data 需要加密的数据
* @return 加密后的数据
* @throws Exception 异常信息
*/
public String encryptByPrivateKey(String data) throws Exception {
Signature signature = Signature.getInstance("SHA256WithRSA");
signature.initSign(wxPrivateKey);
signature.update(data.getBytes(StandardCharsets.UTF_8));
byte[] signed = signature.sign();
return Base64Utils.encodeToString(signed);
}
@Override
public Boolean notifyH5(HttpServletRequest request) {
try {
String requestBodyData = this.getRequestBodyData(request);
log.info("接收微信支付回调请求, 请求参数: {}", requestBodyData);
JSONObject jsonObject = JSONUtil.parseObj(requestBodyData);
JSONObject resource = jsonObject.getJSONObject("resource");
String plainText = this.decrypt(resource);
log.info("解密后的明文信息为: {}", plainText);
JSONObject obj = JSONUtil.parseObj(plainText);
// 处理订单
processOrder(obj);
} catch (Exception e) {
log.error("微信支付回调异常", e);
return false;
}
return true;
}
@Override
public void processOrder(JSONObject jsonObject) {
// 获取订单号
Long out_trade_no = jsonObject.getLong("out_trade_no");
// 加锁,避免接口幂等性问题
RLock lock = redisson.getLock("pay-notify-" + out_trade_no);
lock.lock(10, TimeUnit.SECONDS);
// 修改订单状态
try {
Order order = orderService.getById(out_trade_no);
// 如果订单状态不是待支付,直接返回
if (!OrderStatus.PAYING.getStatus().equals(order.getOrderStatus())) {
log.warn("当前订单已处理完成, 订单号:==> {}", out_trade_no);
return;
}
Integer productId = order.getProductId();
// 订单支付成功后,给mq发送一条消息,处理nft发行或版权申请的状态
OrderProcessMsg orderProcessMsg = new OrderProcessMsg(productId, order.getPayScene());
rabbitTemplate.convertAndSend("order-exchange", "order.process", orderProcessMsg);
// 修改订单状态
orderService.updateOrderStatus(out_trade_no, OrderStatus.PAYED);
// 插入支付流水记录
Payment payment = new Payment();
payment.setOrderId(out_trade_no);
payment.setTradeType(jsonObject.getStr("trade_type"));
payment.setTotalFee(jsonObject.getJSONObject("amount").getInt("payer_total"));
payment.setTransactionId(jsonObject.getStr("transaction_id"));
payment.setSuccessTime(jsonObject.getStr("success_time"));
payment.setTradeState(jsonObject.getStr("trade_state"));
payment.setContent(JSONUtil.toJsonStr(jsonObject));
paymentService.save(payment);
} finally {
lock.unlock();
}
}
@Override
public String queryOrder(Long orderId) {
return null;
}
/**
* 解密
*
* @param resource
* @return
* @throws GeneralSecurityException
*/
private String decrypt(JSONObject resource) throws GeneralSecurityException {
AesUtil aesUtil = new AesUtil(wxPayProperties.getApiV3Key().getBytes(StandardCharsets.UTF_8));
String ciphertext = resource.getStr("ciphertext");
String associated_data = resource.getStr("associated_data");
String nonce = resource.getStr("nonce");
// 对密文解密
String plainText = aesUtil.decryptToString(associated_data.getBytes(StandardCharsets.UTF_8),
nonce.getBytes(StandardCharsets.UTF_8),
ciphertext);
return plainText;
}
/**
* 获取request中body数据
*
* @throws IOException
*/
private String getRequestBodyData(HttpServletRequest request) throws IOException {
BufferedReader bufferReader = new BufferedReader(request.getReader());
StringBuilder sb = new StringBuilder();
String line;
while ((line = bufferReader.readLine()) != null) {
sb.append(line);
}
bufferReader.close();
return sb.toString();
}
}
\ No newline at end of file
package com.fzm.common.utils;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.net.NetUtil;
import cn.hutool.core.util.IdUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@Component
@Slf4j
public class SnowflakeUtil {
@JsonFormat(shape = JsonFormat.Shape.STRING)
private long workerId = 0;//为终端ID
private long datacenterId = 1;//数据中心ID
private Snowflake snowflake = IdUtil.createSnowflake(workerId, datacenterId);
@PostConstruct
public void init() {
workerId = NetUtil.ipv4ToLong(NetUtil.getLocalhostStr());
log.info("当前机器的workId:{}", workerId);
}
public long snowflakeId() {
return snowflake.nextId();
}
public long snowflakeId(long workerId, long datacenterId) {
Snowflake snowflake = IdUtil.createSnowflake(workerId, datacenterId);
return snowflake.nextId();
}
}
2022-01-18 17:04:13.739 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-18 17:04:13.756 [main] INFO com.fzm.portal.WxPayTest-Starting WxPayTest on LAPTOP-AT8CNAMK with PID 117992 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2022-01-18 17:04:13.757 [main] INFO com.fzm.portal.WxPayTest-The following profiles are active: nj
2022-01-18 17:04:14.838 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 17:04:14.841 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 17:04:14.894 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2022-01-18 17:04:16.143 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 17:04:18.251 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-18 17:04:21.406 [main] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 17:04:20|2022-01-18 17:04:21|||0|
2022-01-18 17:04:21.408 [main] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 17:04:21.741 [main] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 17:04:22.734 [redisson-netty-4-20] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 17:04:22.872 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 17:04:23.032 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 17:04:23.170 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 17:04:23.313 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 17:04:25.206 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-18T09:04:25.206Z
2022-01-18 17:04:25.251 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 17:04:25.446 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-18T09:04:25.445Z
2022-01-18 17:04:26.989 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 17:04:27.034 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 17:04:27.085 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 17:04:27.271 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 17:04:27.278 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 17:04:27.292 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 17:04:27.317 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 17:04:27.357 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 17:04:27.381 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 17:04:27.409 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 17:04:27.410 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 17:04:27.416 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 17:04:27.417 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 17:04:27.419 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 17:04:27.423 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 17:04:27.431 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 17:04:27.433 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 17:04:27.474 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 17:04:27.483 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 17:04:27.504 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 17:04:27.513 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 17:04:27.516 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 17:04:27.519 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 17:04:27.521 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 17:04:27.522 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 17:04:27.524 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 17:04:27.564 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 17:04:27.598 [main] INFO com.fzm.portal.WxPayTest-Started WxPayTest in 14.245 seconds (JVM running for 15.64)
2022-01-18 17:04:28.366 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 17:04:28.565 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-18 17:04:28.574 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-19 10:24:26.918 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-19 10:24:26.934 [main] INFO com.fzm.portal.WxPayTest-Starting WxPayTest on LAPTOP-AT8CNAMK with PID 118208 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2022-01-19 10:24:26.934 [main] INFO com.fzm.portal.WxPayTest-The following profiles are active: nj
2022-01-19 10:24:28.090 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-19 10:24:28.090 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-19 10:24:28.153 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-19 10:24:29.450 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-19 10:24:30.865 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-19 10:24:34.257 [main] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-19 10:24:33|2022-01-19 10:24:34|||0|
2022-01-19 10:24:34.257 [main] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-19 10:24:34.632 [main] INFO org.redisson.Version-Redisson 3.16.0
2022-01-19 10:24:35.757 [redisson-netty-4-21] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:24:35.866 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:24:36.009 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-19 10:24:36.103 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-19 10:24:36.215 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:24:37.119 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-19T02:24:37.119Z
2022-01-19 10:24:37.294 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-19T02:24:37.294Z
2022-01-19 10:24:38.089 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-19 10:24:39.762 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-19 10:24:39.793 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-19 10:24:39.824 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-19 10:24:39.981 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-19 10:24:39.999 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-19 10:24:39.999 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-19 10:24:40.031 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-19 10:24:40.062 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-19 10:24:40.093 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-19 10:24:40.124 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-19 10:24:40.124 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-19 10:24:40.124 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-19 10:24:40.140 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-19 10:24:40.140 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-19 10:24:40.140 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-19 10:24:40.140 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-19 10:24:40.156 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-19 10:24:40.187 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-19 10:24:40.203 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-19 10:24:40.218 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-19 10:24:40.234 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-19 10:24:40.234 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-19 10:24:40.234 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-19 10:24:40.234 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-19 10:24:40.234 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-19 10:24:40.249 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-19 10:24:40.281 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-19 10:24:40.316 [main] INFO com.fzm.portal.WxPayTest-Started WxPayTest in 13.82 seconds (JVM running for 15.114)
2022-01-19 10:24:40.886 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:24:40.948 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-19 10:24:40.948 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-19 10:26:31.765 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-19 10:26:31.780 [main] INFO com.fzm.portal.WxPayTest-Starting WxPayTest on LAPTOP-AT8CNAMK with PID 120568 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2022-01-19 10:26:31.780 [main] INFO com.fzm.portal.WxPayTest-The following profiles are active: nj
2022-01-19 10:26:32.984 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-19 10:26:32.984 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-19 10:26:33.046 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-19 10:26:34.099 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-19 10:26:35.511 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-19 10:26:38.548 [main] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-19 10:26:37|2022-01-19 10:26:38|||0|
2022-01-19 10:26:38.548 [main] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-19 10:26:38.907 [main] INFO org.redisson.Version-Redisson 3.16.0
2022-01-19 10:26:40.164 [redisson-netty-4-32] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:26:40.242 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:26:40.351 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-19 10:26:40.480 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-19 10:26:40.588 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:26:41.420 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-19T02:26:41.420Z
2022-01-19 10:26:41.596 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-19T02:26:41.596Z
2022-01-19 10:26:42.337 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-19 10:26:43.911 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-19 10:26:43.942 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-19 10:26:43.989 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-19 10:26:44.133 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-19 10:26:44.149 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-19 10:26:44.164 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-19 10:26:44.180 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-19 10:26:44.227 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-19 10:26:44.242 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-19 10:26:44.274 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-19 10:26:44.274 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-19 10:26:44.274 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-19 10:26:44.274 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-19 10:26:44.289 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-19 10:26:44.289 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-19 10:26:44.289 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-19 10:26:44.289 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-19 10:26:44.336 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-19 10:26:44.336 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-19 10:26:44.367 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-19 10:26:44.367 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-19 10:26:44.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-19 10:26:44.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-19 10:26:44.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-19 10:26:44.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-19 10:26:44.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-19 10:26:44.417 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-19 10:26:44.433 [main] INFO com.fzm.portal.WxPayTest-Started WxPayTest in 13.078 seconds (JVM running for 14.299)
2022-01-19 10:26:45.002 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:26:45.065 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-19 10:26:45.080 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-19 10:27:39.836 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-19 10:27:39.852 [main] INFO com.fzm.portal.WxPayTest-Starting WxPayTest on LAPTOP-AT8CNAMK with PID 90568 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2022-01-19 10:27:39.852 [main] INFO com.fzm.portal.WxPayTest-The following profiles are active: nj
2022-01-19 10:27:41.060 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-19 10:27:41.076 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-19 10:27:41.129 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 12ms. Found 0 Redis repository interfaces.
2022-01-19 10:27:42.160 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-19 10:27:43.447 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-19 10:27:46.505 [main] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-19 10:27:45|2022-01-19 10:27:46|||0|
2022-01-19 10:27:46.505 [main] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-19 10:27:46.854 [main] INFO org.redisson.Version-Redisson 3.16.0
2022-01-19 10:27:47.906 [redisson-netty-4-25] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:27:48.016 [redisson-netty-4-23] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 10:27:48.129 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-19 10:27:48.228 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-19 10:27:48.338 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:27:49.164 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-19T02:27:49.164Z
2022-01-19 10:27:49.326 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-19T02:27:49.326Z
2022-01-19 10:27:50.069 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-19 10:27:51.666 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-19 10:27:51.697 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-19 10:27:51.744 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-19 10:27:51.869 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-19 10:27:51.869 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-19 10:27:51.901 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-19 10:27:51.916 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-19 10:27:51.951 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-19 10:27:51.982 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-19 10:27:52.003 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-19 10:27:52.003 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-19 10:27:52.019 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-19 10:27:52.019 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-19 10:27:52.019 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-19 10:27:52.019 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-19 10:27:52.034 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-19 10:27:52.034 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-19 10:27:52.065 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-19 10:27:52.065 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-19 10:27:52.097 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-19 10:27:52.097 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-19 10:27:52.097 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-19 10:27:52.112 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-19 10:27:52.112 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-19 10:27:52.112 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-19 10:27:52.112 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-19 10:27:52.144 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-19 10:27:52.175 [main] INFO com.fzm.portal.WxPayTest-Started WxPayTest in 12.745 seconds (JVM running for 13.916)
2022-01-19 10:27:52.728 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-19 10:27:52.805 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-19 10:27:52.820 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-19 11:26:35.348 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-19 11:26:35.364 [main] INFO com.fzm.portal.WxPayTest-Starting WxPayTest on LAPTOP-AT8CNAMK with PID 116500 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2022-01-19 11:26:35.364 [main] INFO com.fzm.portal.WxPayTest-The following profiles are active: nj
2022-01-19 11:26:36.453 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-19 11:26:36.453 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-19 11:26:36.515 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-19 11:26:37.742 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-19 11:26:38.931 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-19 11:26:41.942 [main] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-19 11:26:41|2022-01-19 11:26:41|||0|
2022-01-19 11:26:41.942 [main] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-19 11:26:42.286 [main] INFO org.redisson.Version-Redisson 3.16.0
2022-01-19 11:26:43.276 [redisson-netty-4-16] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 11:26:43.385 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-19 11:26:43.497 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-19 11:26:43.607 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-19 11:26:43.700 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-19 11:26:44.528 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-19T03:26:44.528Z
2022-01-19 11:26:44.812 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-19T03:26:44.812Z
2022-01-19 11:26:44.918 [main] INFO com.fzm.common.utils.SnowflakeUtil-当前机器的workId:167772161
2022-01-19 11:26:45.790 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-19 11:26:47.469 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-19 11:26:47.500 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-19 11:26:47.551 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-19 11:26:47.707 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-19 11:26:47.707 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-19 11:26:47.722 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-19 11:26:47.738 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-19 11:26:47.785 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-19 11:26:47.801 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-19 11:26:47.819 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-19 11:26:47.819 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-19 11:26:47.835 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-19 11:26:47.835 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-19 11:26:47.835 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-19 11:26:47.835 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-19 11:26:47.851 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-19 11:26:47.851 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-19 11:26:47.882 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-19 11:26:47.898 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-19 11:26:47.917 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-19 11:26:47.919 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-19 11:26:47.919 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-19 11:26:47.919 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-19 11:26:47.919 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-19 11:26:47.919 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-19 11:26:47.935 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-19 11:26:47.950 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-19 11:26:47.981 [main] INFO com.fzm.portal.WxPayTest-Started WxPayTest in 12.997 seconds (JVM running for 14.247)
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846720
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846721
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846722
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846723
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846724
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846725
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846726
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846727
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846728
2022-01-19 11:26:48.169 [main] INFO com.fzm.portal.WxPayTest-1483642067010846729
2022-01-19 11:26:48.200 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-19 11:26:48.266 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-19 11:26:48.282 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
......@@ -5,7 +5,7 @@
<parent>
<artifactId>fzm-joying</artifactId>
<groupId>com.fzm</groupId>
<version>1.0.0</version>
<version>1.1.0</version>
</parent>
<artifactId>joying-portal</artifactId>
......@@ -36,6 +36,11 @@
<artifactId>joying-common</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
</dependencies>
<build>
......
package com.fzm.portal.config;
import org.springframework.amqp.core.*;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author tangtuo
* @date 2022/1/21 11:28
*/
@Configuration
public class RabbitConfig {
/**
* 处理订单的交换机
*/
@Bean
public DirectExchange orderExchange() {
return new DirectExchange("order-exchange", true, false);
}
/**
* 处理订单的队列
*
* @return
*/
@Bean
public Queue orderQueue() {
return new Queue("order.process.queue", true);
}
/**
* 处理订单的队列和交换机之间的绑定
*
* @return
*/
@Bean
public Binding orderBinding() {
return BindingBuilder.bind(orderQueue()).to(orderExchange()).with("order.process");
}
/**
* 发行nft的交换机
*
* @return
*/
@Bean
public DirectExchange nftExchange() {
return new DirectExchange("nft-exchange", true, false);
}
/**
* 死信交换机,死信到期后将会被转发到这个交换机,然后再路由到相应的队列
*/
@Bean
public DirectExchange dlNftExchange() {
return new DirectExchange("dl-nft-exchange", true, false);
}
/**
* 死信队列,用户把nft的交易hash发到此队列,
*
* @return
*/
@Bean
public Queue dlNftQueue() {
return QueueBuilder.durable("dl.nft.queue")
.ttl(1000 * 10)
.deadLetterExchange("dl-nft-exchange")
.deadLetterRoutingKey("nft")
.build();
}
/**
* 接收死信的列队,用户监听这个队列
*
* @return
*/
@Bean
public Queue nftPublishQueue() {
return new Queue("nft.publish.queue", true);
}
/**
* 死信队列和nft交换机的绑定
*
* @return
*/
@Bean
public Binding dlNftBinding() {
return BindingBuilder.bind(dlNftQueue()).to(nftExchange()).with("nft.publish");
}
@Bean
public Binding nftBinding() {
return BindingBuilder.bind(nftPublishQueue()).to(dlNftExchange()).with("nft");
}
@Bean
public MessageConverter messageConverter() {
return new Jackson2JsonMessageConverter();
}
}
......@@ -58,19 +58,19 @@ public class NftController {
@Authentication
@PostMapping("/save")
@ApiOperation(value = "nft基本信息保存(基本信息和加密上链两个步骤)")
public ResponseModel<NftDto> save(@Validated @ModelAttribute Nft nft) {
public ResponseModel<Integer> save(@Validated @ModelAttribute Nft nft) {
return ResponseModel.success(nftService.saveNft(nft));
}
@Authentication
@PostMapping("/publish")
@ApiOperation("发行nft")
public ResponseModel<Integer> publish(@Validated @RequestBody NftDto nftDto) {
Integer id = nftService.publish(nftDto);
return ResponseModel.success(id);
}
// @Authentication
// @PostMapping("/publish")
// @ApiOperation("发行nft")
// public ResponseModel<Integer> publish(@Validated @RequestBody NftDto nftDto) {
// Integer id = nftService.publish(nftDto);
//
// return ResponseModel.success(id);
// }
@GetMapping("/list")
@ApiOperation(value = "获取nft列表")
......
package com.fzm.portal.controller;
import com.fzm.common.annotation.Authentication;
import com.fzm.common.entity.Order;
import com.fzm.common.entity.dto.OrderDto;
import com.fzm.common.enums.PayScene;
import com.fzm.common.model.ResponseModel;
import com.fzm.common.service.CopyrightApplyService;
import com.fzm.common.service.NftService;
import com.fzm.common.service.OrderService;
import com.fzm.common.utils.SnowflakeUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
/**
* @author tangtuo
* @date 2022/1/20 18:22
*/
@Authentication
@Api(tags = "作品类别")
@RestController
@RequestMapping("/opus/category")
public class OrderController {
@Resource
private OrderService orderService;
@PostMapping("/create")
@ApiOperation("下单")
public ResponseModel<Long> createOrder(@RequestBody OrderDto orderDto) {
Long orderId = orderService.createOrder(orderDto);
return ResponseModel.success(orderId);
}
@GetMapping("/query-order-status")
@ApiOperation(value = "查询订单状态")
public ResponseModel<Integer> queryOrderStatus(@PathVariable Long orderId) {
return ResponseModel.success(orderService.getById(orderId).getOrderStatus());
}
}
package com.fzm.portal.controller;
import cn.hutool.http.HttpStatus;
import com.fzm.common.annotation.Authentication;
import com.fzm.common.entity.dto.JsapiPayDto;
import com.fzm.common.entity.dto.OrderDto;
import com.fzm.common.model.ResponseModel;
import com.fzm.common.service.WxPayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
/**
* @author tangtuo
* @date 2022/1/13 9:55
*/
@Authentication
@Api(tags = "微信支付")
@RestController
@RequestMapping("/wx-pay")
public class WxPayController {
@PostMapping("/pay/h5")
@ApiOperation(value = "发起h5支付")
public ResponseModel<String> payH5() {
@Resource
private WxPayService wxPayService;
@Authentication
@PostMapping("/pay/jsapi")
@ApiOperation(value = "发起jsapi支付")
public ResponseModel<Map<String, Object>> payH5(@RequestBody JsapiPayDto jsapiPayDto) throws Exception {
return ResponseModel.success(wxPayService.payJsapi(jsapiPayDto));
}
return ResponseModel.success();
@ApiOperation("jsapi支付回调通知")
@PostMapping("/notify/jsapi")
public Map<String, String> notifyJsapi(HttpServletRequest request, HttpServletResponse response) {
Map<String, String> result = new HashMap<>();
Boolean notify = wxPayService.notifyH5(request);
if (notify) {
result.put("code", "SUCCESS");
result.put("message", "成功");
response.setStatus(HttpStatus.HTTP_OK);
} else {
result.put("code", "FAILED");
result.put("message", "系统异常");
response.setStatus(HttpStatus.HTTP_INTERNAL_ERROR);
}
return result;
}
}
package com.fzm.portal.listener;
import com.fzm.common.entity.dto.OrderProcessMsg;
import com.fzm.common.enums.CopyrightApplyState;
import com.fzm.common.enums.PayScene;
import com.fzm.common.service.CopyrightApplyService;
import com.fzm.common.service.NftService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* @author tangtuo
* @date 2022/1/21 11:44
*/
@Slf4j
@Component
public class OrderListener {
@Resource
private NftService nftService;
@Resource
private CopyrightApplyService copyrightApplyService;
@RabbitListener(queues = "order.process.queue")
public void listenProcessOrder(OrderProcessMsg msg) {
log.info("收到处理订单的消息: {}", msg);
if (PayScene.NFT.getCode().equals(msg.getPayScene())) {
// 如果支付场景是发行nft的话,需要把此订单的nft发行
nftService.publish(msg.getProductId());
} else {
// 如果支付场景是版权申请的话,需要把当前订单对应的版权状态改为待核验
copyrightApplyService.updateRegisterState(msg.getProductId(), CopyrightApplyState.TO_BE_REVIEWED.getCode());
}
}
@RabbitListener(queues = "nft.publish.queue")
public void listenProcessOrder(Long id) {
log.info("接收到信息: {}", id);
}
}
......@@ -45,7 +45,19 @@ spring:
type: redis
redis:
time-to-live: 86400000
rabbitmq:
host: 172.16.101.135
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5 # 最大重试次数
initial-interval: 1000 # 初始的失败等待时长为1秒
multiplier: 2 # 下次失败的等待时长倍数,下次等待时长 = multiplier * last-interval
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false
swagger:
title: 乐映影视门户系统
description: 乐映影视门户系统RESTFUL API
......@@ -96,7 +108,10 @@ huaweiyun:
wx-pay:
app-id: wxbdddd81913c795e9
app-secret: aa201717c46a0e07c4c143b1ee73229a
mch-id: 1604477044
api-v3-key: D864DA53FEF8ACD41519064967DC10D2
mch-serial-num: 72A62544B0A08A214FAEC780108692EDC6E7D5FA
private-key-path: apiclient_key.pem
h5-pay-notify-url: https://146.56.218.121:12100/wx-pay/notify/h5
h5-refund-notify-url:
......@@ -54,10 +54,10 @@ spring:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
max-attempts: 5 # 最大重试次数
initial-interval: 1000 # 初始的失败等待时长为1秒
multiplier: 2 # 下次失败的等待时长倍数,下次等待时长 = multiplier * last-interval
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false
swagger:
title: 乐映影视门户系统
description: 乐映影视门户系统RESTFUL API
......@@ -108,7 +108,10 @@ huaweiyun:
wx-pay:
app-id: wxbdddd81913c795e9
app-secret: aa201717c46a0e07c4c143b1ee73229a
mch-id: 1604477044
api-v3-key: D864DA53FEF8ACD41519064967DC10D2
mch-serial-num: 72A62544B0A08A214FAEC780108692EDC6E7D5FA
private-key-path: apiclient_key.pem
h5-pay-notify-url: https://146.56.218.121:12100/wx-pay/notify/h5
h5-refund-notify-url:
\ No newline at end of file
......@@ -46,7 +46,19 @@ spring:
type: redis
redis:
time-to-live: 86400000
rabbitmq:
host: 129.211.166.223
port: 5672
username: guest
password: guest
listener:
simple:
retry:
enabled: true
max-attempts: 5 # 最大重试次数
initial-interval: 1000 # 初始的失败等待时长为1秒
multiplier: 2 # 下次失败的等待时长倍数,下次等待时长 = multiplier * last-interval
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false
swagger:
title: 乐映影视门户系统
description: 乐映影视门户系统RESTFUL API
......@@ -109,7 +121,10 @@ huaweiyun:
wx-pay:
app-id: wxbdddd81913c795e9
app-secret: aa201717c46a0e07c4c143b1ee73229a
mch-id: 1604477044
api-v3-key: D864DA53FEF8ACD41519064967DC10D2
mch-serial-num: 72A62544B0A08A214FAEC780108692EDC6E7D5FA
private-key-path: apiclient_key.pem
h5-pay-notify-url: https://test.inmvo.com:8985/proxyApi/wx-pay/notify/h5
h5-refund-notify-url:
......@@ -46,6 +46,19 @@ spring:
type: redis
redis:
time-to-live: 86400000
rabbitmq:
host: 192.168.0.11
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5 # 最大重试次数
initial-interval: 1000 # 初始的失败等待时长为1秒
multiplier: 2 # 下次失败的等待时长倍数,下次等待时长 = multiplier * last-interval
stateless: true # true无状态;false有状态。如果业务中包含事务,这里改为false
swagger:
title: 乐映影视门户系统
......@@ -97,7 +110,10 @@ huaweiyun:
wx-pay:
app-id: wxbdddd81913c795e9
app-secret: aa201717c46a0e07c4c143b1ee73229a
mch-id: 1604477044
api-v3-key: D864DA53FEF8ACD41519064967DC10D2
mch-serial-num: 72A62544B0A08A214FAEC780108692EDC6E7D5FA
private-key-path: apiclient_key.pem
h5-pay-notify-url: https://nft.inmvo.com/proxyApi/wx-pay/notify/h5
h5-refund-notify-url:
\ No newline at end of file
spring:
profiles:
active: nj
active: local
application:
name: joying-portal
servlet:
......
......@@ -86,7 +86,7 @@ class LyPortalApplicationTests {
}
@Test
void contextLoads() {
public void contextLoads() {
System.out.println("redisson = " + redisson);
RSemaphore semaphore = redisson.getSemaphore("banner09");
boolean b = semaphore.trySetPermits(10);
......
package com.fzm.portal;
import com.fzm.common.utils.SnowflakeUtil;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
/**
* @author tangtuo
* @date 2022/1/19 14:04
*/
@SpringBootTest
public class SnawFlakeTest {
@Resource
private SnowflakeUtil snowflakeUtil;
@Test
public void test1() {
System.out.println(snowflakeUtil.snowflakeId());
}
}
......@@ -3,6 +3,9 @@ package com.fzm.portal;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fzm.common.properties.WxPayProperties;
import com.fzm.common.service.WxPayService;
import com.fzm.common.utils.SnowflakeUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
......@@ -19,6 +22,7 @@ import java.io.IOException;
* @author tangtuo
* @date 2022/1/13 15:30
*/
@Slf4j
@SpringBootTest
public class WxPayTest {
......@@ -29,34 +33,79 @@ public class WxPayTest {
@Resource
private WxPayProperties wxPayProperties;
@Resource
private WxPayService wxPayService;
@Resource
private SnowflakeUtil snowflakeUtil;
@Test
public void testSnowFlake() {
for (int i = 0; i < 10; i++) {
log.info(String.valueOf(snowflakeUtil.snowflakeId()));
}
}
@Test
public void testH5Pay() throws IOException {
for (int i = 0; i < 10; i++) {
log.info(String.valueOf(snowflakeUtil.snowflakeId()));
}
// String url = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
// HttpPost httpPost = new HttpPost(url);
// httpPost.addHeader("Accept", "application/json");
// httpPost.addHeader("Content-type", "application/json; charset=utf-8");
// ByteArrayOutputStream bos = new ByteArrayOutputStream();
// ObjectMapper objectMapper = new ObjectMapper();
//
// ObjectNode rootNode = objectMapper.createObjectNode();
// rootNode.put("mchid", wxPayProperties.getMchId())
// .put("appid", wxPayProperties.getAppId())
// .put("description", "Image形象店-深圳腾大-QQ公仔")
// .put("notify_url", "http://www.baidu.com")
// .put("out_trade_no", "nft-123");
// rootNode.putObject("amount")
// .put("total", 1);
// rootNode.putObject("payer")
// .put("openid", "oRpMVw3OiOuVDZPrJTzMwTJALf70");
// String json = objectMapper.writeValueAsString(rootNode);
// System.out.println("json = " + json);
// objectMapper.writeValue(bos, rootNode);
//
// httpPost.setEntity(new StringEntity(bos.toString("UTF-8"), "UTF-8"));
// CloseableHttpResponse response = httpClient.execute(httpPost);
//
// String bodyAsString = EntityUtils.toString(response.getEntity());
// System.out.println(bodyAsString);
//
// String data = "wx8888888888888888\n1414561699\n5K8264ILTKCH16CQ2502SI8ZNMTM67VS\nprepay_id=wx201410272009395522657a690389285100";
// try {
// System.out.println(wxPayService.encryptByPrivateKey(data));
// } catch (Exception e) {
// e.printStackTrace();
// }
}
@Test
void test() {
String prepay_id = "wx181704295362907bc91140bfb2a71b0000";
String url = "https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi";
HttpPost httpPost = new HttpPost(url);
httpPost.addHeader("Accept", "application/json");
httpPost.addHeader("Content-type","application/json; charset=utf-8");
httpPost.addHeader("Content-type", "application/json; charset=utf-8");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectMapper objectMapper = new ObjectMapper();
ObjectNode rootNode = objectMapper.createObjectNode();
rootNode.put("mchid",wxPayProperties.getMchId())
rootNode.put("mchid", wxPayProperties.getMchId())
.put("appid", wxPayProperties.getAppId())
.put("description", "Image形象店-深圳腾大-QQ公仔")
.put("notify_url", "http://www.baidu.com")
.put("out_trade_no", "nft-123");
rootNode.putObject("amount")
.put("total", 1);
rootNode.putObject("payer")
.put("openid", "oRG0ZxPPF0fbH1KCmMV5goJ69W8I");
String json = objectMapper.writeValueAsString(rootNode);
System.out.println("json = " + json);
objectMapper.writeValue(bos, rootNode);
httpPost.setEntity(new StringEntity(bos.toString("UTF-8"), "UTF-8"));
CloseableHttpResponse response = httpClient.execute(httpPost);
}
String bodyAsString = EntityUtils.toString(response.getEntity());
System.out.println(bodyAsString);
}
}
2022-01-18 11:33:05.967 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-18 11:33:06.014 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 124064 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 11:33:06.015 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 11:33:06.081 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-18 11:33:06.082 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-18 11:33:07.273 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 11:33:07.275 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 11:33:07.303 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 12ms. Found 0 Redis repository interfaces.
2022-01-18 11:33:08.314 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 11:33:08.323 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 11:33:08.323 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 11:33:08.324 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 11:33:08.462 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 11:33:08.462 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 2380 ms
2022-01-18 11:33:08.636 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 11:33:11.599 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-18 11:33:13.432 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 11:33:13|2022-01-18 11:33:13|||0|
2022-01-18 11:33:13.434 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 11:33:13.754 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 11:33:14.800 [redisson-netty-4-13] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 11:33:14.912 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 11:33:15.064 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 11:33:15.142 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 11:33:15.228 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 11:33:16.609 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-18T03:33:16.609Z
2022-01-18 11:33:16.640 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 11:33:16.777 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-18T03:33:16.777Z
2022-01-18 11:33:16.934 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-18 11:33:17.616 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-18 11:33:17.630 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-18 11:33:17.631 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 11:33:17.648 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 11:33:17.680 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 11:33:17.805 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 11:33:17.811 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 11:33:17.822 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 11:33:17.841 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 11:33:17.871 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 11:33:17.892 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 11:33:17.916 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 11:33:17.917 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 11:33:17.922 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 11:33:17.924 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 11:33:17.927 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 11:33:17.931 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 11:33:17.939 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 11:33:17.942 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 11:33:17.975 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 11:33:17.980 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 11:33:17.999 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 11:33:18.007 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 11:33:18.009 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 11:33:18.012 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 11:33:18.013 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 11:33:18.014 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 11:33:18.015 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 11:33:18.039 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 11:33:18.063 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 12.65 seconds (JVM running for 15.599)
2022-01-18 11:34:20.547 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-01-18 11:34:20.547 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2022-01-18 11:34:20.556 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 9 ms
2022-01-18 12:53:34.511 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 12:53:34.626 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-18 12:53:34.639 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-18 14:14:02.080 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-18 14:14:02.139 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 105128 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 14:14:02.139 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 14:14:02.218 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-18 14:14:02.219 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-18 14:14:04.016 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 14:14:04.020 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 14:14:04.051 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-18 14:14:05.626 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 14:14:05.638 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 14:14:05.638 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 14:14:05.639 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 14:14:05.801 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 14:14:05.801 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 3582 ms
2022-01-18 14:14:06.004 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 14:14:07.367 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-18 14:14:10.115 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 14:14:09|2022-01-18 14:14:10|||0|
2022-01-18 14:14:10.121 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 14:14:10.525 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 14:14:11.699 [redisson-netty-4-30] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 14:14:12.109 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 14:14:12.524 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 14:14:12.643 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 14:14:12.836 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 14:14:15.170 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-18T06:14:15.170Z
2022-01-18 14:14:15.254 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 14:14:15.493 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-18T06:14:15.493Z
2022-01-18 14:14:15.628 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-18 14:14:16.582 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-18 14:14:16.604 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-18 14:14:16.605 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 14:14:16.623 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 14:14:16.660 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 14:14:16.813 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 14:14:16.827 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 14:14:16.855 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 14:14:16.905 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 14:14:16.977 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 14:14:17.021 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 14:14:17.070 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 14:14:17.072 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 14:14:17.083 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 14:14:17.085 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 14:14:17.090 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 14:14:17.097 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 14:14:17.106 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 14:14:17.108 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 14:14:17.149 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 14:14:17.158 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 14:14:17.191 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 14:14:17.198 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 14:14:17.200 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 14:14:17.202 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 14:14:17.203 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 14:14:17.204 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 14:14:17.205 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 14:14:17.243 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 14:14:17.303 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 16.101 seconds (JVM running for 18.495)
2022-01-18 14:14:22.110 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-01-18 14:14:22.111 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2022-01-18 14:14:22.136 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 25 ms
2022-01-18 14:46:50.207 [http-nio-8001-exec-5] INFO com.fzm.portal.aop.LogAop-请求路径: /banner/list,请求参数:[]
2022-01-18 14:46:52.459 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Preparing: SELECT id,name,jump_url,poster,sort,create_date,update_date FROM tb_banner ORDER BY sort DESC
2022-01-18 14:46:52.673 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Parameters:
2022-01-18 14:46:52.772 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.BannerMapper.selectList-<== Total: 6
2022-01-18 14:46:52.776 [http-nio-8001-exec-5] INFO com.fzm.portal.aop.LogAop-请求路径:/banner/list,接口耗时:2573ms
2022-01-18 14:50:20.122 [http-nio-8001-exec-7] INFO com.fzm.portal.aop.LogAop-请求路径: /banner/list,请求参数:[]
2022-01-18 14:50:20.179 [http-nio-8001-exec-7] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Preparing: SELECT id,name,jump_url,poster,sort,create_date,update_date FROM tb_banner ORDER BY sort DESC
2022-01-18 14:50:20.180 [http-nio-8001-exec-7] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Parameters:
2022-01-18 14:50:20.208 [http-nio-8001-exec-7] DEBUG com.fzm.common.mapper.BannerMapper.selectList-<== Total: 6
2022-01-18 14:50:20.209 [http-nio-8001-exec-7] INFO com.fzm.portal.aop.LogAop-请求路径:/banner/list,接口耗时:87ms
2022-01-18 14:56:56.629 [http-nio-8001-exec-4] INFO com.fzm.portal.aop.LogAop-请求路径: /banner/list,请求参数:[]
2022-01-18 14:56:56.654 [http-nio-8001-exec-4] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Preparing: SELECT id,name,jump_url,poster,sort,create_date,update_date FROM tb_banner ORDER BY sort DESC
2022-01-18 14:56:56.655 [http-nio-8001-exec-4] DEBUG com.fzm.common.mapper.BannerMapper.selectList-==> Parameters:
2022-01-18 14:56:56.682 [http-nio-8001-exec-4] DEBUG com.fzm.common.mapper.BannerMapper.selectList-<== Total: 6
2022-01-18 14:56:56.683 [http-nio-8001-exec-4] INFO com.fzm.portal.aop.LogAop-请求路径:/banner/list,接口耗时:54ms
2022-01-18 17:42:00.481 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 17:42:00.655 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-18 17:42:00.667 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-18 17:42:09.584 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-18 17:42:09.611 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 17:42:09.611 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 17:42:09.657 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-18 17:42:09.657 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-18 17:42:10.833 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 17:42:10.835 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 17:42:10.856 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 10ms. Found 0 Redis repository interfaces.
2022-01-18 17:42:11.778 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 17:42:11.786 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 17:42:11.786 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 17:42:11.787 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 17:42:11.927 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 17:42:11.927 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 2269 ms
2022-01-18 17:42:12.089 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 17:42:14.254 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-18 17:42:15.907 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 17:42:15|2022-01-18 17:42:15|||0|
2022-01-18 17:42:15.910 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 17:42:16.198 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 17:42:17.481 [redisson-netty-4-17] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 17:42:17.692 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 17:42:17.849 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 17:42:17.931 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 17:42:18.020 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 17:42:18.881 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-18T09:42:18.881Z
2022-01-18 17:42:19.048 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-18T09:42:19.048Z
2022-01-18 17:42:19.437 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 17:42:19.725 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-18 17:42:20.347 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-18 17:42:20.360 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-18 17:42:20.361 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 17:42:20.378 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 17:42:20.412 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 17:42:20.541 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 17:42:20.546 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 17:42:20.559 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 17:42:20.577 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 17:42:20.608 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 17:42:20.628 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 17:42:20.649 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 17:42:20.650 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 17:42:20.656 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 17:42:20.657 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 17:42:20.659 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 17:42:20.663 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 17:42:20.670 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 17:42:20.672 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 17:42:20.702 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 17:42:20.707 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 17:42:20.727 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 17:42:20.734 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 17:42:20.736 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 17:42:20.738 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 17:42:20.739 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 17:42:20.741 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 17:42:20.741 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 17:42:20.763 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 17:42:20.788 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 11.664 seconds (JVM running for 12.733)
2022-01-18 18:29:14.310 [Thread-26] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:29:14.413 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-18 18:29:14.423 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-18 18:29:14.791 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 18:29:14.791 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 18:29:15.564 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 18:29:15.564 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 18:29:15.567 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 3ms. Found 0 Redis repository interfaces.
2022-01-18 18:29:16.085 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 18:29:16.086 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 18:29:16.087 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 18:29:16.087 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 18:29:16.162 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 18:29:16.162 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 1362 ms
2022-01-18 18:29:16.256 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 18:29:17.939 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-2} inited
2022-01-18 18:29:18.762 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 18:29:18|2022-01-18 18:29:18|||0|
2022-01-18 18:29:18.762 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 18:29:18.968 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 18:29:19.343 [redisson-netty-9-11] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:29:19.510 [redisson-netty-9-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:29:19.585 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 18:29:19.670 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 18:29:19.823 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:29:20.261 [restartedMain] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext-Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxPayController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.fzm.common.service.WxPayService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
2022-01-18 18:29:20.261 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:29:20.916 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-2} closing ...
2022-01-18 18:29:20.917 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-2} closed
2022-01-18 18:29:20.919 [restartedMain] INFO org.apache.catalina.core.StandardService-Stopping service [Tomcat]
2022-01-18 18:29:20.928 [restartedMain] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener-
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-18 18:29:21.131 [restartedMain] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter-
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'com.fzm.common.service.WxPayService' that could not be found.
Action:
Consider defining a bean of type 'com.fzm.common.service.WxPayService' in your configuration.
2022-01-18 18:36:26.859 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 18:36:26.860 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 18:36:27.536 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 18:36:27.536 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 18:36:27.538 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 1ms. Found 0 Redis repository interfaces.
2022-01-18 18:36:27.865 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 18:36:27.866 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 18:36:27.866 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 18:36:27.866 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 18:36:27.906 [restartedMain] INFO o.a.c.c.ContainerBase.[Tomcat-1].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 18:36:27.906 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 1041 ms
2022-01-18 18:36:27.951 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 18:36:29.837 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-3} inited
2022-01-18 18:36:30.508 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 18:36:30|2022-01-18 18:36:30|||0|
2022-01-18 18:36:30.508 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 18:36:30.657 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 18:36:30.865 [redisson-netty-14-18] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:36:31.432 [redisson-netty-14-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:36:31.497 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 18:36:31.565 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 18:36:31.642 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:36:32.636 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 18:36:32.782 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-18 18:36:33.155 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-18 18:36:33.157 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-18 18:36:33.157 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 18:36:33.158 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 18:36:33.162 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 18:36:33.173 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 18:36:33.176 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 18:36:33.181 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 18:36:33.190 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 18:36:33.206 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 18:36:33.220 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 18:36:33.234 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 18:36:33.235 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 18:36:33.239 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 18:36:33.239 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 18:36:33.240 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 18:36:33.244 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 18:36:33.249 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 18:36:33.251 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 18:36:33.273 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 18:36:33.276 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 18:36:33.285 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 18:36:33.292 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 18:36:33.294 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 18:36:33.296 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 18:36:33.297 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 18:36:33.298 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 18:36:33.299 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 18:36:33.316 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 18:36:33.323 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 6.525 seconds (JVM running for 3265.267)
2022-01-18 18:36:33.325 [restartedMain] INFO o.s.b.d.a.ConditionEvaluationDeltaLoggingListener-Condition evaluation unchanged
2022-01-18 18:43:52.556 [Thread-36] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:43:52.649 [Thread-36] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-3} closing ...
2022-01-18 18:43:52.655 [Thread-36] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-3} closed
2022-01-18 18:43:53.039 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 18:43:53.039 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 18:43:53.562 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 18:43:53.562 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 18:43:53.565 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 2ms. Found 0 Redis repository interfaces.
2022-01-18 18:43:53.870 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 18:43:53.871 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 18:43:53.871 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 18:43:53.871 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 18:43:53.910 [restartedMain] INFO o.a.c.c.ContainerBase.[Tomcat-1].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 18:43:53.910 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 866 ms
2022-01-18 18:43:53.953 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 18:43:55.031 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-4} inited
2022-01-18 18:43:55.864 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 18:43:55|2022-01-18 18:43:55|||0|
2022-01-18 18:43:55.865 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 18:43:56.093 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 18:43:56.177 [redisson-netty-19-31] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:43:56.261 [redisson-netty-19-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:43:56.334 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 18:43:56.415 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 18:43:56.503 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:43:57.310 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-18 18:43:57.463 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-18 18:43:57.832 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-18 18:43:57.834 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-18 18:43:57.835 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-18 18:43:57.835 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-18 18:43:57.840 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-18 18:43:57.849 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-18 18:43:57.851 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-18 18:43:57.855 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-18 18:43:57.863 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-18 18:43:57.879 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-18 18:43:57.895 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-18 18:43:57.908 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-18 18:43:57.909 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-18 18:43:57.912 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-18 18:43:57.913 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-18 18:43:57.914 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-18 18:43:57.917 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-18 18:43:57.921 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-18 18:43:57.923 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-18 18:43:57.942 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-18 18:43:57.945 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2022-01-18 18:43:57.952 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-18 18:43:57.957 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-18 18:43:57.959 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-18 18:43:57.960 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-18 18:43:57.961 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-18 18:43:57.962 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-18 18:43:57.962 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-18 18:43:57.978 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-18 18:43:57.985 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 5.012 seconds (JVM running for 3709.93)
2022-01-18 18:43:57.987 [restartedMain] INFO o.s.b.d.a.ConditionEvaluationDeltaLoggingListener-Condition evaluation unchanged
2022-01-18 18:50:54.890 [Thread-44] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:50:55.018 [Thread-44] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-4} closing ...
2022-01-18 18:50:55.020 [Thread-44] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-4} closed
2022-01-18 18:50:55.332 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 18:50:55.333 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 18:50:55.810 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 18:50:55.810 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 18:50:55.813 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 2ms. Found 0 Redis repository interfaces.
2022-01-18 18:50:56.166 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 18:50:56.166 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 18:50:56.166 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 18:50:56.167 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 18:50:56.209 [restartedMain] INFO o.a.c.c.ContainerBase.[Tomcat-1].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 18:50:56.209 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 872 ms
2022-01-18 18:50:56.262 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 18:50:57.209 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-5} inited
2022-01-18 18:50:58.034 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 18:50:58|2022-01-18 18:50:58|||0|
2022-01-18 18:50:58.035 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 18:50:58.242 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 18:50:58.393 [redisson-netty-24-1] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:50:58.584 [redisson-netty-24-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:50:58.676 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 18:50:58.750 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 18:50:58.834 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:50:59.184 [restartedMain] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext-Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxPayController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxPayServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apache.http.impl.client.CloseableHttpClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
2022-01-18 18:50:59.184 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:50:59.226 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-5} closing ...
2022-01-18 18:50:59.227 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-5} closed
2022-01-18 18:50:59.227 [restartedMain] INFO org.apache.catalina.core.StandardService-Stopping service [Tomcat]
2022-01-18 18:50:59.232 [restartedMain] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener-
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-18 18:50:59.318 [restartedMain] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter-
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'org.apache.http.impl.client.CloseableHttpClient' that could not be found.
Action:
Consider defining a bean of type 'org.apache.http.impl.client.CloseableHttpClient' in your configuration.
2022-01-18 18:51:18.379 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 120440 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-18 18:51:18.379 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-18 18:51:19.039 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-18 18:51:19.039 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-18 18:51:19.041 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 1ms. Found 0 Redis repository interfaces.
2022-01-18 18:51:19.236 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-18 18:51:19.237 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-18 18:51:19.237 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-18 18:51:19.237 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-18 18:51:19.277 [restartedMain] INFO o.a.c.c.ContainerBase.[Tomcat-2].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-18 18:51:19.277 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 894 ms
2022-01-18 18:51:19.323 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-18 18:51:21.703 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-6} inited
2022-01-18 18:51:22.309 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-18 18:51:22|2022-01-18 18:51:22|||0|
2022-01-18 18:51:22.309 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-18 18:51:22.455 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-18 18:51:22.512 [redisson-netty-29-17] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:51:22.613 [redisson-netty-29-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-18 18:51:22.697 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-18 18:51:22.800 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-18 18:51:22.924 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:51:23.361 [restartedMain] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext-Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxPayController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wxPayServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apache.http.impl.client.CloseableHttpClient' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
2022-01-18 18:51:23.361 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-18 18:51:23.407 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-6} closing ...
2022-01-18 18:51:23.408 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-6} closed
2022-01-18 18:51:23.409 [restartedMain] INFO org.apache.catalina.core.StandardService-Stopping service [Tomcat]
2022-01-18 18:51:23.412 [restartedMain] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener-
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-18 18:51:23.494 [restartedMain] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter-
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'org.apache.http.impl.client.CloseableHttpClient' that could not be found.
Action:
Consider defining a bean of type 'org.apache.http.impl.client.CloseableHttpClient' in your configuration.
This source diff could not be displayed because it is too large. You can view the blob instead.
2022-01-21 11:47:36.132 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-21 11:47:36.171 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 10660 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-21 11:47:36.172 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-21 11:47:36.243 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-21 11:47:36.245 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-21 11:47:37.664 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-21 11:47:37.666 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-21 11:47:37.697 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2022-01-21 11:47:39.014 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-21 11:47:39.034 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-21 11:47:39.035 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-21 11:47:39.035 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-21 11:47:39.317 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-21 11:47:39.317 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 3070 ms
2022-01-21 11:47:39.638 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-21 11:47:40.911 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-21 11:47:42.896 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-21 11:47:42|2022-01-21 11:47:42|||0|
2022-01-21 11:47:42.897 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-21 11:47:43.274 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-21 11:47:43.362 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-21 11:47:43.457 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-21 11:47:43.604 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-21 11:47:44.613 [redisson-netty-4-29] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 11:47:44.721 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 11:47:45.257 [restartedMain] INFO com.fzm.common.utils.SnowflakeUtil-当前机器的workId:167772161
2022-01-21 11:47:45.825 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-21T03:47:45.825Z
2022-01-21 11:47:46.020 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-21T03:47:46.020Z
2022-01-21 11:47:46.373 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-21 11:47:46.656 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-21 11:47:47.212 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-21 11:47:47.226 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-21 11:47:47.227 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-21 11:47:47.243 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-21 11:47:47.272 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-21 11:47:47.386 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-21 11:47:47.392 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-21 11:47:47.403 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-21 11:47:47.420 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-21 11:47:47.450 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-21 11:47:47.471 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-21 11:47:47.493 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-21 11:47:47.494 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-21 11:47:47.499 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-21 11:47:47.500 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-21 11:47:47.503 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-21 11:47:47.507 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-21 11:47:47.514 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-21 11:47:47.517 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-21 11:47:47.550 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-21 11:47:47.567 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-21 11:47:47.574 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-21 11:47:47.576 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-21 11:47:47.578 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-21 11:47:47.582 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-21 11:47:47.583 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-21 11:47:47.584 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-21 11:47:47.607 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-21 11:47:47.625 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Attempting to connect to: [129.211.166.223:5672]
2022-01-21 11:47:47.736 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Created new connection: rabbitConnectionFactory#44a1ac93:0/SimpleConnection@70263342 [delegate=amqp://guest@129.211.166.223:5672/, localPort= 51478]
2022-01-21 11:47:48.149 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 12.485 seconds (JVM running for 14.421)
2022-01-21 11:55:13.932 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Waiting for workers to finish.
2022-01-21 11:55:14.218 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Successfully waited for workers to finish.
2022-01-21 11:55:14.424 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Shutdown ignored - container is not active already
2022-01-21 11:55:14.467 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-21 11:55:14.511 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-21 11:55:14.517 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-21 11:55:17.066 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-21 11:55:17.103 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 13916 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-21 11:55:17.103 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-21 11:55:17.162 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-21 11:55:17.162 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-21 11:55:18.248 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-21 11:55:18.250 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-21 11:55:18.277 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-21 11:55:19.256 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-21 11:55:19.263 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-21 11:55:19.264 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-21 11:55:19.264 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-21 11:55:19.390 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-21 11:55:19.390 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 2227 ms
2022-01-21 11:55:19.542 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-21 11:55:21.011 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-21 11:55:22.665 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-21 11:55:22|2022-01-21 11:55:22|||0|
2022-01-21 11:55:22.666 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-21 11:55:23.029 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-21 11:55:23.123 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-21 11:55:23.231 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-21 11:55:23.361 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-21 11:55:24.362 [redisson-netty-4-1] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 11:55:24.472 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 11:55:25.000 [restartedMain] INFO com.fzm.common.utils.SnowflakeUtil-当前机器的workId:167772161
2022-01-21 11:55:25.488 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-21T03:55:25.488Z
2022-01-21 11:55:25.845 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-21T03:55:25.845Z
2022-01-21 11:55:26.018 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-21 11:55:26.292 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-21 11:55:26.825 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-21 11:55:26.837 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-21 11:55:26.838 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-21 11:55:26.852 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-21 11:55:26.879 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-21 11:55:26.985 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-21 11:55:26.991 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-21 11:55:27.003 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-21 11:55:27.021 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-21 11:55:27.050 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-21 11:55:27.069 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-21 11:55:27.089 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-21 11:55:27.090 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-21 11:55:27.096 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-21 11:55:27.097 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-21 11:55:27.099 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-21 11:55:27.103 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-21 11:55:27.110 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-21 11:55:27.113 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-21 11:55:27.143 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-21 11:55:27.161 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-21 11:55:27.168 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-21 11:55:27.170 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-21 11:55:27.172 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-21 11:55:27.176 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-21 11:55:27.177 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-21 11:55:27.177 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-21 11:55:27.199 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-21 11:55:27.214 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Attempting to connect to: [129.211.166.223:5672]
2022-01-21 11:55:27.334 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Created new connection: rabbitConnectionFactory#78074f01:0/SimpleConnection@3a7562a7 [delegate=amqp://guest@129.211.166.223:5672/, localPort= 51790]
2022-01-21 11:55:27.810 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 11.138 seconds (JVM running for 12.258)
2022-01-21 12:34:25.425 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x2d3faf55, L:/192.168.20.251:51760 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.426 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xb582452b, L:/192.168.20.251:51759 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.426 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xe487bc2e, L:/192.168.20.251:51758 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.426 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x3b248bee, L:/192.168.20.251:51763 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.427 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x8fdf0e98, L:/192.168.20.251:51765 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.427 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xecd0a326, L:/192.168.20.251:51762 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.427 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x40bd8d18, L:/192.168.20.251:51761 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.428 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x8bc6e42a, L:/192.168.20.251:51767 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.428 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x071e2386, L:/192.168.20.251:51771 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.428 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xdbe0fa00, L:/192.168.20.251:51773 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.428 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xa8f4ca00, L:/192.168.20.251:51769 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.429 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xab7ace98, L:/192.168.20.251:51770 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.429 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x096b6adf, L:/192.168.20.251:51772 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.430 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xed49e261, L:/192.168.20.251:51774 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.430 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x9a9727d7, L:/192.168.20.251:51775 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.430 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x62d0ce91, L:/192.168.20.251:51777 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.431 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xfebd431c, L:/192.168.20.251:51776 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.431 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xe4804a75, L:/192.168.20.251:51778 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.431 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x4c00148d, L:/192.168.20.251:51780 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.432 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xda16d39a, L:/192.168.20.251:51782 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.432 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0x0eb572ad, L:/192.168.20.251:51779 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:34:25.433 [redisson-timer-6-1] ERROR org.redisson.client.handler.PingConnectionHandler-Unable to send PING command over channel: [id: 0xc70a72cf, L:/192.168.20.251:51781 - R:146.56.218.121/146.56.218.121:6379]
org.redisson.client.RedisTimeoutException: Command execution timeout for command: (PING), params: [], Redis client: [addr=redis://146.56.218.121:6379]
at org.redisson.client.RedisConnection.lambda$async$1(RedisConnection.java:219)
at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:672)
at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:747)
at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:472)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
2022-01-21 12:35:03.866 [AMQP Connection 129.211.166.223:5672] WARN com.rabbitmq.client.impl.ForgivingExceptionHandler-An unexpected connection driver error occured (Exception message: Connection reset)
2022-01-21 12:35:03.869 [AMQP Connection 129.211.166.223:5672] ERROR o.s.a.rabbit.connection.CachingConnectionFactory-Channel shutdown: connection error
2022-01-21 12:35:03.869 [SpringContextShutdownHook] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Attempting to connect to: [129.211.166.223:5672]
2022-01-21 12:35:04.089 [SpringContextShutdownHook] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Created new connection: rabbitConnectionFactory#78074f01:1/SimpleConnection@2feed623 [delegate=amqp://guest@129.211.166.223:5672/, localPort= 51648]
2022-01-21 12:35:04.965 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Waiting for workers to finish.
2022-01-21 12:35:04.965 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Successfully waited for workers to finish.
2022-01-21 12:35:05.236 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Shutdown ignored - container is not active already
2022-01-21 12:35:05.388 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-21 12:35:05.439 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-21 12:35:05.447 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2022-01-21 12:35:08.898 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2022-01-21 12:35:08.937 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 13424 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2022-01-21 12:35:08.937 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2022-01-21 12:35:09.001 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-01-21 12:35:09.001 [restartedMain] INFO o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor-For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-01-21 12:35:10.465 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2022-01-21 12:35:10.468 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-01-21 12:35:10.496 [restartedMain] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2022-01-21 12:35:11.748 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2022-01-21 12:35:11.758 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2022-01-21 12:35:11.759 [restartedMain] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2022-01-21 12:35:11.759 [restartedMain] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2022-01-21 12:35:11.934 [restartedMain] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2022-01-21 12:35:11.935 [restartedMain] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 2933 ms
2022-01-21 12:35:12.154 [restartedMain] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2022-01-21 12:35:13.484 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2022-01-21 12:35:15.700 [restartedMain] INFO com.obs.services.ObsClient-Storage|1|HTTP+XML|ObsClient||||2022-01-21 12:35:15|2022-01-21 12:35:15|||0|
2022-01-21 12:35:15.702 [restartedMain] WARN com.obs.services.ObsClient-[OBS SDK Version=3.20.6.1];[Endpoint=https://obs.cn-east-3.myhuaweicloud.com:443/];[Access Mode=Virtul Hosting]
2022-01-21 12:35:16.237 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2022-01-21 12:35:16.365 [restartedMain] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2022-01-21 12:35:16.513 [restartedMain] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2022-01-21 12:35:16.696 [restartedMain] INFO org.redisson.Version-Redisson 3.16.0
2022-01-21 12:35:18.077 [redisson-netty-4-15] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 12:35:18.963 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2022-01-21 12:35:19.715 [restartedMain] INFO com.fzm.common.utils.SnowflakeUtil-当前机器的workId:167772161
2022-01-21 12:35:20.248 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Begin update Certificates.Date:2022-01-21T04:35:20.248Z
2022-01-21 12:35:20.421 [scheduled_update_cert_thread] INFO c.w.p.c.apache.httpclient.cert.CertificatesManager-Finish update Certificates.Date:2022-01-21T04:35:20.421Z
2022-01-21 12:35:20.970 [restartedMain] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2022-01-21 12:35:21.313 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer-LiveReload server is running on port 35729
2022-01-21 12:35:22.092 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2022-01-21 12:35:22.108 [restartedMain] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2022-01-21 12:35:22.110 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2022-01-21 12:35:22.128 [restartedMain] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2022-01-21 12:35:22.166 [restartedMain] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2022-01-21 12:35:22.313 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2022-01-21 12:35:22.324 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2022-01-21 12:35:22.339 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2022-01-21 12:35:22.366 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2022-01-21 12:35:22.407 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2022-01-21 12:35:22.434 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2022-01-21 12:35:22.462 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2022-01-21 12:35:22.463 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2022-01-21 12:35:22.472 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2022-01-21 12:35:22.473 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2022-01-21 12:35:22.476 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2022-01-21 12:35:22.481 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2022-01-21 12:35:22.491 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2022-01-21 12:35:22.494 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: submitUsingPOST_1
2022-01-21 12:35:22.537 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2022-01-21 12:35:22.568 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2022-01-21 12:35:22.580 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2022-01-21 12:35:22.583 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2022-01-21 12:35:22.586 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_10
2022-01-21 12:35:22.595 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2022-01-21 12:35:22.596 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2022-01-21 12:35:22.597 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2022-01-21 12:35:22.630 [restartedMain] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2022-01-21 12:35:22.650 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Attempting to connect to: [129.211.166.223:5672]
2022-01-21 12:35:22.751 [restartedMain] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Created new connection: rabbitConnectionFactory#3fe709b1:0/SimpleConnection@41002005 [delegate=amqp://guest@129.211.166.223:5672/, localPort= 51792]
2022-01-21 12:35:23.124 [restartedMain] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 14.736 seconds (JVM running for 16.341)
2022-01-21 12:37:12.161 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Waiting for workers to finish.
2022-01-21 12:37:12.525 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Successfully waited for workers to finish.
2022-01-21 12:37:12.728 [SpringContextShutdownHook] INFO o.s.a.r.listener.SimpleMessageListenerContainer-Shutdown ignored - container is not active already
2022-01-21 12:37:12.788 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2022-01-21 12:37:12.824 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2022-01-21 12:37:12.830 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
......@@ -6,7 +6,7 @@
<groupId>com.fzm</groupId>
<artifactId>fzm-joying</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<modules>
<module>joying-common</module>
<module>joying-portal</module>
......
......@@ -574,5 +574,40 @@ UPDATE `tb_opus_category` SET `value` = '其他作品' WHERE `id` = 18;
alter table tb_copyright_apply modify column evidence_date datetime DEFAULT NULL COMMENT '存证时间';
-- v2.1.0
CREATE UNIQUE INDEX idx_nfthash ON tb_entrust_shelf ( nft_hash );
alter table tb_nft add column is_entrust tinyint(1) not null default 0 comment '是否已委托上架 0-否 1-是' after status;
CREATE TABLE `tb_entrust_shelf` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL COMMENT '用户id',
`nft_hash` varchar(255) NOT NULL COMMENT 'nft哈希',
`name` varchar(12) NOT NULL DEFAULT '' COMMENT '姓名',
`telephone` varchar(16) NOT NULL DEFAULT '' COMMENT '电话号码',
`wechat_num` varchar(128) DEFAULT NULL COMMENT '微信号',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0-委托中 1-已取消',
`create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='委托上架';
CREATE TABLE `tb_banner` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '名称',
`poster` varchar(255) NOT NULL DEFAULT '' COMMENT '海报',
`jump_url` varchar(255) NOT NULL DEFAULT '' COMMENT '跳转地址',
`sort` int(2) NOT NULL DEFAULT '0' COMMENT '排序',
`create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;
CREATE TABLE `tb_order` (
`id` bigint(20) NOT NULL,
`pay_scene` tinyint(1) NOT NULL COMMENT '支付场景 1-nft发行 2-版权申请',
`product_id` int(11) NOT NULL COMMENT '产品id nft主键或者版权主键',
`user_id` int(11) NOT NULL COMMENT '用户id',
`fee` bigint(20) NOT NULL COMMENT '订单价格-单位(分)',
`order_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0-支付中 1-支付成功 2-订单已关闭 3-已退款',
`prepay_id` varchar(128) NOT NULL COMMENT '微信预支付交易会话标识',
`create_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment