seata注册到nacos中

nacos 2.1.1
seata 1.6.1

seata配置文件

server:
  port: 7091

spring:
  application:
    name: ruoyi-seata-server
  profiles:
    # 环境配置
    active: zhongxinlian

logging:
  config: classpath:logback-spring.xml
  file:
    path: ./logs/seata
#  extend:
#    logstash-appender:
#      destination: 127.0.0.1:4560
#    kafka-appender:
#      bootstrap-servers: 127.0.0.1:9092
#      topic: logback_to_logstash

console:
  user:
    username: seata
    password: seata

seata:
  config:
    # support: nacos 、 consul 、 apollo 、 zk  、 etcd3
    type: nacos
    nacos:
      server-addr: 127.0.0.1:8848
      group: DEFAULT_GROUP
       #我发现这里只能填写对应的nacos命名空间的id,填名称会对应不上,无法注册
      namespace: 373e77cf-a511-4d82-866e-629d5979097b
      username: nacos
      password: g6ySGnapptZ7EjD666
      ##if use MSE Nacos with auth, mutex with username/password attribute
      #access-key: ""
      #secret-key: ""
      data-id: seata-server.properties
  registry:
    # support: nacos 、 eureka 、 redis 、 zk  、 consul 、 etcd3 、 sofa
    type: nacos
    nacos:
      application: ruoyi-seata-server
      server-addr: 127.0.0.1:8848
      group: DEFAULT_GROUP
      #我发现这里只能填写对应的nacos命名空间的id,填名称会对应不上,无法注册
      namespace: 373e77cf-a511-4d82-866e-629d5979097b  
      cluster: default
      username: nacos
      password: g6ySGnapptZ7EjD666
      ##if use MSE Nacos with auth, mutex with username/password attribute
      #access-key: ""
      #secret-key: ""
  security:
    secretKey:
    tokenValidityInMilliseconds: 1800000
    ignore:
      urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/api/v1/auth/login

最新版支付宝公钥证书问题,双BEGIN CERTIFICATE问题

本文讲述各语言 SDK 内支付宝公钥证书解析成支付宝公钥值的方法。
注意:本文示例代码仅供测试参考,PHP 语言解析出来的支付宝公钥因为有换行的情况会看到空格,但对 PHP 语言的回调验签不影响。

String alipaypublicKey = AlipaySignature.getAlipayPublicKey("支付宝公钥证书绝对路径");
//输出支付宝公钥的值
System.out.println("alipaypublicKey:"+alipaypublicKey);

nextjs监听数据改变

 useEffect(() => {
    if (defaultBrand && defaultBrand.length > 0) {
      setVibe(defaultBrand); // Set default model to the first model of the default brand
    } else {
      setVibe("Random"); // Set default model to the first model of the default brand
    }
  }, [brandVibe]);

htpasswd命令

实例1: 创建一个新的文件,并设置密码和用户,交互式 [root@test ~]# htpasswd -c /tmp/htpasswd linux New password: Re-type new password: Adding password for user linux [root@test ~]# cat /tmp/htpasswd linux:$apr1$3VhLd1HR$uSkhBgwIGYFDY5lWzZZsM0
实例2: 添加一个新用户到配置文件中,非交互式创建密码 [root@test ~]# htpasswd -b /tmp/htpasswd baodian 321 Adding password for user baodian [root@test ~]# cat /tmp/htpasswd linux:$apr1$3VhLd1HR$uSkhBgwIGYFDY5lWzZZsM0 baodian:$apr1$ApIm66k6$CpqxwyqMUq.ZbcmMVELu10
实例3: 删除一个指定的用户
[root@test ~]# htpasswd -D /tmp/htpasswd linux Deleting password for user linux [root@test ~]# cat /tmp/htpasswd baodian:$apr1$ApIm66k6$CpqxwyqMUq.ZbcmMVELu10