范文健康探索娱乐情感热点
投稿投诉
热点动态
科技财经
情感日志
励志美文
娱乐时尚
游戏搞笑
探索旅游
历史星座
健康养生
美丽育儿
范文作文
教案论文
国学影视

重写Nacos服务发现多个服务器如何跨命名空间,访问公共服务?

  一、问题背景
  在开发某个公共应用时,笔者发现该公共应用的数据是所有测试环境(假设存在 dev/dev2/dev3)通用的。
  这就意味着只需部署一个应用,就能满足所有测试环境的需求;也意味着所有测试环境都需要调用该公共应用,而不同测试环境的应用注册在不同的 Nacos 命名空间。
  二、两种解决方案
  如果所有测试环境都需要调用该公共应用,有两种可行的方案。第一种,将该公共服务同时注册到不同的测试环境所对应的命名空间中。
  第二种,将公共应用注册到单独的命名空间,不同的测试环境能够跨命名空间访问该应用。
  三、详细的问题解决过程
  先行交代笔者的版本号配置。Nacos 客户端版本号为  NACOS 1.4.1 ;Java 项目的 Nacos 版本号如下。
  最初想法是将该公共应用同时注册到多个命名空间下。在查找资料的过程中,团队成员在  GitHub  上发现了一篇类似问题的博客分享:Registration Center: Can services in different namespaces be called from each other? #1176。
  01 注册多个命名空间
  从该博客中,我们看到其他程序员朋友也遇到了类似的公共服务的需求。在本篇文章中,笔者将进一步分享实现思路以及示例代码。
  说明:以下代码内容来自用户 chuntaojun 的分享。  shareNamespace={namespaceId[:group]},{namespaceId[:group]}  @RunWith(SpringRunner.class) @SpringBootTest(classes = NamingApp.class, properties = {"server.servlet.context-path=/nacos"},     webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class SelectServiceInShareNamespace_ITCase {      private NamingService naming1;     private NamingService naming2;     @LocalServerPort     private int port;     @Before     public void init() throws Exception{         NamingBase.prepareServer(port);         if (naming1 == null) {             Properties properties = new Properties();             properties.setProperty(PropertyKeyConst.SERVER_ADDR, "127.0.0.1"+":"+port);             properties.setProperty(PropertyKeyConst.SHARE_NAMESPACE, "57425802-3058-4507-9a73-3229b9f00a36");             naming1 = NamingFactory.createNamingService(properties);              Properties properties2 = new Properties();             properties2.setProperty(PropertyKeyConst.SERVER_ADDR, "127.0.0.1"+":"+port);             properties2.setProperty(PropertyKeyConst.NAMESPACE, "57425802-3058-4507-9a73-3229b9f00a36");             naming2 = NamingFactory.createNamingService(properties2);         }         while (true) {             if (!"UP".equals(naming1.getServerStatus())) {                 Thread.sleep(1000L);                 continue;             }             break;         }     }      @Test     public void testSelectInstanceInShareNamespaceNoGroup() throws NacosException, InterruptedException {         String service1 = randomDomainName();         String service2 = randomDomainName();         naming1.registerInstance(service1, "127.0.0.1", 90);         naming2.registerInstance(service2, "127.0.0.2", 90);          Thread.sleep(1000);          List instances = naming1.getAllInstances(service2);         Assert.assertEquals(1, instances.size());         Assert.assertEquals(service2, NamingUtils.getServiceName(instances.get(0).getServiceName()));     }      @Test     public void testSelectInstanceInShareNamespaceWithGroup() throws NacosException, InterruptedException {         String service1 = randomDomainName();         String service2 = randomDomainName();         naming2.registerInstance(service1, groupName, "127.0.0.1", 90);         naming3.registerInstance(service2, "127.0.0.2", 90);          Thread.sleep(1000);          List instances = naming3.getAllInstances(service1);         Assert.assertEquals(1, instances.size());         Assert.assertEquals(service1, NamingUtils.getServiceName(instances.get(0).getServiceName()));         Assert.assertEquals(groupName, NamingUtils.getServiceName(NamingUtils.getGroupName(instances.get(0).getServiceName())));     }  }
  进一步考虑后发现该解决方案可能不太契合当前遇到的问题。公司目前的开发测试环境有很多个,并且不确定以后会不会继续增加。
  如果每增加一个环境,都需要修改一次公共服务的配置,并且重启一次公共服务,着实太麻烦了。倒不如反其道而行,让其他的服务器实现跨命名空间访问公共服务。
  02 跨命名空间访问
  针对实际问题查找资料时,我们找到了类似的参考分享《重写 Nacos 服务发现逻辑动态修改远程服务IP地址》。
  跟着博客思路看代码,笔者了解到服务发现的主要相关类是  NacosNamingService , NacosDiscoveryProperties , NacosDiscoveryAutoConfiguration 。
  然后,笔者将博客的示例代码复制过来,试着进行如下调试:  @Slf4j @Configuration @ConditionalOnNacosDiscoveryEnabled @ConditionalOnProperty(         name = {"spring.profiles.active"},         havingValue = "dev" ) @AutoConfigureBefore({NacosDiscoveryClientAutoConfiguration.class}) public class DevEnvironmentNacosDiscoveryClient {      @Bean     @ConditionalOnMissingBean     public NacosDiscoveryProperties nacosProperties() {         return new DevEnvironmentNacosDiscoveryProperties();     }      static class DevEnvironmentNacosDiscoveryProperties extends NacosDiscoveryProperties {          private NamingService namingService;          @Override         public NamingService namingServiceInstance() {             if (null != this.namingService) {                 return this.namingService;             } else {                 Properties properties = new Properties();                 properties.put("serverAddr", super.getServerAddr());                 properties.put("namespace", super.getNamespace());                 properties.put("com.alibaba.nacos.naming.log.filename", super.getLogName());                 if (super.getEndpoint().contains(":")) {                     int index = super.getEndpoint().indexOf(":");                     properties.put("endpoint", super.getEndpoint().substring(0, index));                     properties.put("endpointPort", super.getEndpoint().substring(index + 1));                 } else {                     properties.put("endpoint", super.getEndpoint());                 }                  properties.put("accessKey", super.getAccessKey());                 properties.put("secretKey", super.getSecretKey());                 properties.put("clusterName", super.getClusterName());                 properties.put("namingLoadCacheAtStart", super.getNamingLoadCacheAtStart());                  try {                     this.namingService = new DevEnvironmentNacosNamingService(properties);                 } catch (Exception var3) {                     log.error("create naming service error!properties={},e=,", this, var3);                     return null;                 }                  return this.namingService;             }         }      }      static class DevEnvironmentNacosNamingService extends NacosNamingService {          public DevEnvironmentNacosNamingService(Properties properties) {             super(properties);         }          @Override         public List selectInstances(String serviceName, List clusters, boolean healthy) throws NacosException {             List instances = super.selectInstances(serviceName, clusters, healthy);             instances.stream().forEach(instance -> instance.setIp("10.101.232.24"));             return instances;         }     }  }
  调试后发现博客提供的代码并不能满足笔者的需求,还得进一步深入探索。
  但幸运的是,调试过程发现 Nacos 服务发现的关键类是  com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery ,其中的关键方法是 getInstances()  和 getServices() ,即「返回指定服务 ID 的所有服务实例」和「获取所有服务的名称」。
  也就是说,对  getInstances()  方法进行重写肯定能实现本次目标——跨命名空间访问公共服务。 /**  * Return all instances for the given service.  * @param serviceId id of service  * @return list of instances  * @throws NacosException nacosException  */ public List getInstances(String serviceId) throws NacosException {         String group = discoveryProperties.getGroup();         List instances = discoveryProperties.namingServiceInstance()                         .selectInstances(serviceId, group, true);         return hostToServiceInstanceList(instances, serviceId); }  /**  * Return the names of all services.  * @return list of service names  * @throws NacosException nacosException  */ public List getServices() throws NacosException {         String group = discoveryProperties.getGroup();         ListView services = discoveryProperties.namingServiceInstance()                         .getServicesOfServer(1, Integer.MAX_VALUE, group);         return services.getData(); }
  03 最终解决思路及代码示例
  具体的解决方案思路大致如下:  生成一个共享配置类 NacosShareProperties ,用来配置共享公共服务的 namespace  和 group ; 重写配置类  NacosDiscoveryProperties  (新:NacosDiscoveryPropertiesV2 ),将新增的共享配置类作为属性放进该配置类,后续会用到; 重写服务发现类  NacosServiceDiscovery  (新:NacosServiceDiscoveryV2 ),这是最关键的逻辑; 重写自动配置类  NacosDiscoveryAutoConfiguration ,将自定义相关类比 Nacos 原生类更早的注入容器。
  最终代码中用到了一些工具类,可以自行补充完整。  /**  * 
  *  @description: 共享nacos属性  *  @author: rookie0peng  *  @date: 2022/8/29 15:22  *  
*/ @Configuration @ConfigurationProperties(prefix = "nacos.share") public class NacosShareProperties { private final Map> NAMESPACE_TO_GROUP_NAME_MAP = new ConcurrentHashMap<>(); /** * 共享nacos实体列表 */ private List entities; public List getEntities() { return entities; } public void setEntities(List entities) { this.entities = entities; } public Map> getNamespaceGroupMap() { safeStream(entities).filter(entity -> nonNull(entity) && nonNull(entity.getNamespace())) .forEach(entity -> { Set groupNames = NAMESPACE_TO_GROUP_NAME_MAP.computeIfAbsent(entity.getNamespace(), k -> new HashSet<>()); if (nonNull(entity.getGroupNames())) groupNames.addAll(entity.getGroupNames()); }); return new HashMap<>(NAMESPACE_TO_GROUP_NAME_MAP); } @Override public String toString() { return "NacosShareProperties{" + "entities=" + entities + "}"; } /** * 共享nacos实体 */ public static final class NacosShareEntity { /** * 命名空间 */ private String namespace; /** * 分组 */ private List groupNames; public String getNamespace() { return namespace; } public void setNamespace(String namespace) { this.namespace = namespace; } public List getGroupNames() { return groupNames; } public void setGroupNames(List groupNames) { this.groupNames = groupNames; } @Override public String toString() { return "NacosShareEntity{" + "namespace="" + namespace + """ + ", groupNames=" + groupNames + "}"; } } } /** * @description: naocs服务发现属性重写 * @author: rookie0peng * @date: 2022/8/30 1:19 */ public class NacosDiscoveryPropertiesV2 extends NacosDiscoveryProperties { private static final Logger log = LoggerFactory.getLogger(NacosDiscoveryPropertiesV2.class); private final NacosShareProperties nacosShareProperties; private static final Map NAMESPACE_TO_NAMING_SERVICE_MAP = new ConcurrentHashMap<>(); public NacosDiscoveryPropertiesV2(NacosShareProperties nacosShareProperties) { super(); this.nacosShareProperties = nacosShareProperties; } public Map shareNamingServiceInstances() { if (!NAMESPACE_TO_NAMING_SERVICE_MAP.isEmpty()) { return new HashMap<>(NAMESPACE_TO_NAMING_SERVICE_MAP); } List entities = Optional.ofNullable(nacosShareProperties) .map(NacosShareProperties::getEntities).orElse(Collections.emptyList()); entities.stream().filter(entity -> nonNull(entity) && nonNull(entity.getNamespace())) .filter(PredicateUtil.distinctByKey(NacosShareProperties.NacosShareEntity::getNamespace)) .forEach(entity -> { try { NamingService namingService = NacosFactory.createNamingService(getNacosProperties(entity.getNamespace())); if (namingService != null) { NAMESPACE_TO_NAMING_SERVICE_MAP.put(entity.getNamespace(), namingService); } } catch (Exception e) { log.error("create naming service error! properties={}, e=", this, e); } }); return new HashMap<>(NAMESPACE_TO_NAMING_SERVICE_MAP); } private Properties getNacosProperties(String namespace) { Properties properties = new Properties(); properties.put(SERVER_ADDR, getServerAddr()); properties.put(USERNAME, Objects.toString(getUsername(), "")); properties.put(PASSWORD, Objects.toString(getPassword(), "")); properties.put(NAMESPACE, namespace); properties.put(UtilAndComs.NACOS_NAMING_LOG_NAME, getLogName()); String endpoint = getEndpoint(); if (endpoint.contains(":")) { int index = endpoint.indexOf(":"); properties.put(ENDPOINT, endpoint.substring(0, index)); properties.put(ENDPOINT_PORT, endpoint.substring(index + 1)); } else { properties.put(ENDPOINT, endpoint); } properties.put(ACCESS_KEY, getAccessKey()); properties.put(SECRET_KEY, getSecretKey()); properties.put(CLUSTER_NAME, getClusterName()); properties.put(NAMING_LOAD_CACHE_AT_START, getNamingLoadCacheAtStart()); // enrichNacosDiscoveryProperties(properties); return properties; } } /** * @description: naocs服务发现重写 * @author: rookie0peng * @date: 2022/8/30 1:10 */ public class NacosServiceDiscoveryV2 extends NacosServiceDiscovery { private final NacosDiscoveryPropertiesV2 discoveryProperties; private final NacosShareProperties nacosShareProperties; private final NacosServiceManager nacosServiceManager; public NacosServiceDiscoveryV2(NacosDiscoveryPropertiesV2 discoveryProperties, NacosShareProperties nacosShareProperties, NacosServiceManager nacosServiceManager) { super(discoveryProperties, nacosServiceManager); this.discoveryProperties = discoveryProperties; this.nacosShareProperties = nacosShareProperties; this.nacosServiceManager = nacosServiceManager; } /** * Return all instances for the given service. * @param serviceId id of service * @return list of instances * @throws NacosException nacosException */ public List getInstances(String serviceId) throws NacosException { String group = discoveryProperties.getGroup(); List instances = discoveryProperties.namingServiceInstance() .selectInstances(serviceId, group, true); if (isEmpty(instances)) { Map> namespaceGroupMap = nacosShareProperties.getNamespaceGroupMap(); Map namespace2NamingServiceMap = discoveryProperties.shareNamingServiceInstances(); for (Map.Entry entry : namespace2NamingServiceMap.entrySet()) { String namespace; NamingService namingService; if (isNull(namespace = entry.getKey()) || isNull(namingService = entry.getValue())) continue; Set groupNames = namespaceGroupMap.get(namespace); List shareInstances; if (isEmpty(groupNames)) { shareInstances = namingService.selectInstances(serviceId, group, true); if (nonEmpty(shareInstances)) break; } else { shareInstances = new ArrayList<>(); for (String groupName : groupNames) { List subShareInstances = namingService.selectInstances(serviceId, groupName, true); if (nonEmpty(subShareInstances)) { shareInstances.addAll(subShareInstances); } } } if (nonEmpty(shareInstances)) { instances = shareInstances; break; } } } return hostToServiceInstanceList(instances, serviceId); } /** * Return the names of all services. * @return list of service names * @throws NacosException nacosException */ public List getServices() throws NacosException { String group = discoveryProperties.getGroup(); ListView services = discoveryProperties.namingServiceInstance() .getServicesOfServer(1, Integer.MAX_VALUE, group); return services.getData(); } public static List hostToServiceInstanceList( List instances, String serviceId) { List result = new ArrayList<>(instances.size()); for (Instance instance : instances) { ServiceInstance serviceInstance = hostToServiceInstance(instance, serviceId); if (serviceInstance != null) { result.add(serviceInstance); } } return result; } public static ServiceInstance hostToServiceInstance(Instance instance, String serviceId) { if (instance == null || !instance.isEnabled() || !instance.isHealthy()) { return null; } NacosServiceInstance nacosServiceInstance = new NacosServiceInstance(); nacosServiceInstance.setHost(instance.getIp()); nacosServiceInstance.setPort(instance.getPort()); nacosServiceInstance.setServiceId(serviceId); Map metadata = new HashMap<>(); metadata.put("nacos.instanceId", instance.getInstanceId()); metadata.put("nacos.weight", instance.getWeight() + ""); metadata.put("nacos.healthy", instance.isHealthy() + ""); metadata.put("nacos.cluster", instance.getClusterName() + ""); metadata.putAll(instance.getMetadata()); nacosServiceInstance.setMetadata(metadata); if (metadata.containsKey("secure")) { boolean secure = Boolean.parseBoolean(metadata.get("secure")); nacosServiceInstance.setSecure(secure); } return nacosServiceInstance; } private NamingService namingService() { return nacosServiceManager .getNamingService(discoveryProperties.getNacosProperties()); } } /** * @description: 重写nacos服务发现的自动配置 * @author: rookie0peng * @date: 2022/8/30 1:08 */ @Configuration(proxyBeanMethods = false) @ConditionalOnDiscoveryEnabled @ConditionalOnNacosDiscoveryEnabled @AutoConfigureBefore({NacosDiscoveryAutoConfiguration.class}) public class NacosDiscoveryAutoConfigurationV2 { @Bean @ConditionalOnMissingBean public NacosDiscoveryPropertiesV2 nacosProperties(NacosShareProperties nacosShareProperties) { return new NacosDiscoveryPropertiesV2(nacosShareProperties); } @Bean @ConditionalOnMissingBean public NacosServiceDiscovery nacosServiceDiscovery( NacosDiscoveryPropertiesV2 discoveryPropertiesV2, NacosShareProperties nacosShareProperties, NacosServiceManager nacosServiceManager ) { return new NacosServiceDiscoveryV2(discoveryPropertiesV2, nacosShareProperties, nacosServiceManager); } }   本以为问题到这就结束了,但最后自测时发现程序根本不走 Nacos 的服务发现逻辑,而是执行 Ribbon 的负载均衡逻辑com.netflix.loadbalancer.AbstractLoadBalancerRule 。   不过实现类是 com.alibaba.cloud.nacos.ribbon.NacosRule ,继续基于 NacosRule 重写负载均衡。 /** * @description: 共享nacos命名空间规则 * @author: rookie0peng * @date: 2022/8/31 2:04 */ public class ShareNacosNamespaceRule extends AbstractLoadBalancerRule { private static final Logger LOGGER = LoggerFactory.getLogger(ShareNacosNamespaceRule.class); @Autowired private NacosDiscoveryPropertiesV2 nacosDiscoveryPropertiesV2; @Autowired private NacosShareProperties nacosShareProperties; /** * 重写choose方法 * * @param key * @return */ @SneakyThrows @Override public Server choose(Object key) { try { String clusterName = this.nacosDiscoveryPropertiesV2.getClusterName(); DynamicServerListLoadBalancer loadBalancer = (DynamicServerListLoadBalancer) getLoadBalancer(); String name = loadBalancer.getName(); NamingService namingService = nacosDiscoveryPropertiesV2 .namingServiceInstance(); List instances = namingService.selectInstances(name, true); if (CollectionUtils.isEmpty(instances)) { LOGGER.warn("no instance in service {}, then to get share service"s instance", name); List shareNamingService = this.getShareNamingService(name); if (nonEmpty(shareNamingService)) instances = shareNamingService; else return null; } List instancesToChoose = instances; if (org.apache.commons.lang3.StringUtils.isNotBlank(clusterName)) { List sameClusterInstances = instances.stream() .filter(instance -> Objects.equals(clusterName, instance.getClusterName())) .collect(Collectors.toList()); if (!CollectionUtils.isEmpty(sameClusterInstances)) { instancesToChoose = sameClusterInstances; } else { LOGGER.warn( "A cross-cluster call occurs,name = {}, clusterName = {}, instance = {}", name, clusterName, instances); } } Instance instance = ExtendBalancer.getHostByRandomWeight2(instancesToChoose); return new NacosServer(instance); } catch (Exception e) { LOGGER.warn("NacosRule error", e); return null; } } @Override public void initWithNiwsConfig(IClientConfig iClientConfig) { } private List getShareNamingService(String serviceId) throws NacosException { List instances = Collections.emptyList(); Map> namespaceGroupMap = nacosShareProperties.getNamespaceGroupMap(); Map namespace2NamingServiceMap = nacosDiscoveryPropertiesV2.shareNamingServiceInstances(); for (Map.Entry entry : namespace2NamingServiceMap.entrySet()) { String namespace; NamingService namingService; if (isNull(namespace = entry.getKey()) || isNull(namingService = entry.getValue())) continue; Set groupNames = namespaceGroupMap.get(namespace); List shareInstances; if (isEmpty(groupNames)) { shareInstances = namingService.selectInstances(serviceId, true); if (nonEmpty(shareInstances)) break; } else { shareInstances = new ArrayList<>(); for (String groupName : groupNames) { List subShareInstances = namingService.selectInstances(serviceId, groupName, true); if (nonEmpty(subShareInstances)) { shareInstances.addAll(subShareInstances); } } } if (nonEmpty(shareInstances)) { instances = shareInstances; break; } } return instances; } }   至此问题得以解决。   在 Nacos 上配置好共享 namespace 和 group 后,就能够进行跨命名空间访问了。 # nacos共享命名空间配置 示例 nacos.share.entities[0].namespace=e6ed2017-3ed6-4d9b-824a-db626424fc7b nacos.share.entities[0].groupNames[0]=DEFAULT_GROUP # 指定服务使用共享的负载均衡规则,service-id是注册到nacos上的服务id,ShareNacosNamespaceRule需要写全限定名 service-id.ribbon.NFLoadBalancerRuleClassName=***.***.***.ShareNacosNamespaceRule   注意:如果 Java 项目的 nacos discovery 版本用的是 2021.1 ,则不需要重写 Ribbon 的负载均衡类,因为该版本的 Nacos 不依赖 Ribbon。   2.2.1.RELEASE 版本 的 nacos discovery 依赖 Ribbon.   2021.1 版本 的 nacos discovery 不依赖 Ribbon。   四、总结   为了达到共享命名空间的预期,构思、查找资料、实现逻辑、调试,前后一共花费 4 天时间。成就感满满的同时,笔者也发现该功能仍存在共享服务缓存等可优化空间,留待后续实现。

郭艾伦暗讽裁判,孙铭徽受伤,众国手揭幕战低迷头条创作挑战赛郭艾伦暗讽裁判10月10日,CBA联赛揭幕战正式开打,首个比赛日只有两场比赛,分别是深圳男篮对阵山东男篮,辽宁男篮对阵浙江东阳光。辽宁男篮和浙江东阳光都是上个赛季的总2024欧洲杯预选赛抽签英意冤家再聚首北京时间10月9日,2024年欧洲杯预选赛抽签仪式在德国法兰克福举行,53支球队将被分为10个小组。2024年欧洲杯东道主为德国队,因此德国队不参加抽签。俄罗斯由于被禁赛也将不参加当库里逐渐被普尔替代后,该何去何从?金州勇士的老三叉戟正在逐渐被取代,不管格林如何搞事情,这次他可能真的留不下来了。汤普森复出后实力大不如前,目前合同还有两年,两年后克莱汤普森年满34岁,他不会有太多的选择,他目前的不在国内上市的两款小屏旗舰,价格贵但是有特点之前老刘的文章里面说过,当今比较值得购买的小屏旗舰只有一款,它就是小米12S,至于原因只有一个,那就是它使用了骁龙8。其实严格来说,小米12S采用的6。28英寸的屏幕并不算特别小,个人电脑市场需要另一次革新微软的Surface能否再次成功在第一款机型问世十年后,微软的个人电脑系列受到了行业影响。但Arm是未来,Surface需要实现这一目标。PC的未来看起来像SurfaceProX,微软最好让它发挥作用。现在很容易绿厂攒大招,FindX6系列将搭载IMX989主摄今年的高端市场中,绿厂也是比较安静,上半年推出FindX5系列后就没啥动静了,比较可惜的是FindX5系列影像上相比上一代升级不大,处理器还是一代火龙,骁龙8出现后也没有迭代机型发欧美包揽今年所有诺贝尔奖2022年诺贝尔奖的得主全部出自欧美,其中仅有一名科学门类奖项得主为女性。AFPBBNews2022年诺贝尔奖得主简介在过去的5年里,有4名女性获得了诺贝尔化学奖。这在迄今为止获得又结新欢!瓜帅爱女携男伴海边度假曼城球迷希望她能嫁给哈兰德刚刚,英国八卦媒体太阳报消息,惨遭阿里抛弃的瓜迪奥拉爱女玛莉亚,如今又有新欢了,日前她与一位纹身猛男前往西班牙伊维萨岛度假,在游艇上尽情享受。玛莉亚过去一段时间,玛莉亚的生活状态极漫评CBA深圳男篮展示不俗整体实力中国青年报客户端北京10月10日电(中青报中青网记者杨屾)20222023赛季CBA联赛10日拉开战幕,在率先进行的一场比赛中,深圳男篮以10290击败山东男篮,取得了赛季的开门红海天味业双标风波未停,李锦记的机会来了?编辑于斌出品潮起网于见专栏国庆期间,海天味业成了业界的关注焦点,起因是双标风波,也就是海天味业被指在国外售卖的酱油不含添加剂,而国内则含添加剂。随后引发网友热议全民讨论,甚至在整个孙颖莎夺冠后会做人!将金牌挂在别人脖子上,合影时主动站在边上在成都世乒赛女团决赛中,由陈梦王曼昱和孙颖莎组成的国乒女队以3比0横扫日本女队,取得了世乒赛女团的五连冠。作为世界排名第一的选手,孙颖莎为国乒锁定了3比0的比分,在此次夺冠的过程中
各有所长山东高速男篮三位外援特点分析,吉伦沃特才是定海神针在经历了漫长的摸索和尝试后,20222023赛季山东高速男篮再度完成了外援升级,目前队中后卫线外援是新引进的麦克莱默,23号位则是在第二阶段个人进攻能力出众的兰茨伯格,内线四五号位这不是篮球比赛,全场狂投126记三分,这几点让人失望!一年一度的NBA全明星赛今天终于打响,最终扬尼斯队以184175击败了勒布朗队。而在赛后,今天的面具侠杰伦布朗也接受了记者的采访,他说道这不是篮球比赛,像美化过的上篮训练,我希望有抓了李铁陈戌源,天就亮吗?其实天从没亮过,一直换汤不换药从谢亚龙南勇到陈戌源,哪一次我们没喊过天亮了,但实际上天真的亮过吗?我想各位球迷朋友们都很清楚。亚洲杯三连胜我们喊天亮了,里皮带队差一点冲出亚洲我们喊天亮了,恒大夺亚冠我们说天肯定不要看见别人发光,就觉得自己暗淡,否定自己的选择看到读书群分享千万不要看见别人发光,就觉得自己暗淡!很有感触。讲到生活中人和人的节奏不一样!有人三分钟泡面,有人一小时煲汤。你选择了你要的方式就坚定走下去,别胡思乱想!阳光少女,心帽爷头条创作挑战赛九十四岁的帽爷,老伴走的早,虽然膝下四男双女,儿孙满堂一大片,可他老人家偏偏一直坚守着独守一人过日子。就这样不但不拖累家人,还时不时的给小字辈们点补贴,那日子过得就是静下心来读书,它会一点一滴地滋养你1hr为什么要读书?很多时候,我们之所以陷于痛苦,烦恼不断,根源就是读书太少,囿于有限的学识和认知,没有足够的智慧来解决生活中的难题。读一书,增一智。阅读,才是最好的疗心良药,是真想日常生活中我们是如何进行思考的?想你想对了什么,想错了什么,英尼基海斯著,姚瑞元译,人民邮电出版社,2022年11月。我们大部分思考过程是没有意识的当我们说某人不能一边走路一边嚼口香糖时,这其实是一个由来已久的侮让自己保持优秀的5个习惯树立有意义的目标比起着急赶路,更重要的是先做好充足的准备,制定好缜密的计划。一个目标清晰的人,在前进的路上往往不会迷失方向。试试给自己设定一个有意义且实际的目标吧。找准目标,踏踏实五十岁以后,越能忍的人,往往越有福!年过半百之后,很多该经历的事情我们也都经历过了。慢慢的看人看事都渐渐通透,过去的激进也逐渐转变成了平和。以前无法放下的事情,现在也渐渐的看开放下了。这就是来自于心灵深处的成长,非常1万人跑深圳全马,70岁宁波籍院士励建安年龄最大阳过后首马深马开跑,组委会供图。2月19日,深圳天气晴好。在最高28的气温下,备受关注的阳康后第一个全马比赛由深圳市政府主办的深圳马拉松在市民中心广场上开跑,约1万名跑者穿过起点的2月19日今日资讯每日精选新闻简报每天一分钟知晓天下事2月19日,星期天,农历兔年正月二十九1四川凉山制止528起10万以上彩礼,涉及金额7010万元2黄冈威马工厂几乎成空城,威马汽车又现集体降薪引争议!3北斗卫星日定位量已超3000