#环境
sts (这里用的是IDDEA,STS在老师博客里)
Maven:
更新依赖不成功:远程仓库(阿里)和中央仓库切换着下载即可.
在IDEA中 File—Settings----搜索maven
在这里插入图片描述
1. 指向maven安装的目录中的maven软件 没有指定是用的内置的Maven
2.指向maven中的settings.xml的配置文件 (配置镜像仓库,下载依赖: 打开就是阿里的,关闭就是中央仓库)
如果依赖还下载不行:复制别人下载好的依赖到本地仓库.
3.本地仓库的位置: 没有指定默认位置,指定了就用指定仓库的位置.
默认位置:
在这里插入图片描述

lombak插件:
最好更新成最新版本
在这里插入图片描述

安装2个插件:
在这里插入图片描述

spring cloud 介绍

spring cloud 是一系列框架的集合。它利用 spring boot 的开发便利性巧妙地简化了分布式系统基础设施的开发,如服务发现注册、配置中心、消息总线、负载均衡、断路器、数据监控等,都可以用 spring boot 的开发风格做到一键启动和部署。spring cloud 并没有重复制造轮子,它只是将目前各家公司开发的比较成熟、经得起实际考验的服务框架组合起来,通过 spring boot 风格进行再封装屏蔽掉了复杂的配置和实现原理,最终给开发者留出了一套简单易懂、易部署和易维护的分布式系统开发工具包。

spring cloud 对于中小型互联网公司来说是一种福音,因为这类公司往往没有实力或者没有足够的资金投入去开发自己的分布式系统基础设施,使用 spring cloud == 一站式解决方案能在从容应对业务发展的同时大大减少开发成本==。同时,随着近几年微服务架构和 docker 容器概念的火爆,也会让 spring cloud 在未来越来越“云”化的软件开发风格中立有一席之地,尤其是在目前五花八门的分布式解决方案中提供了标准化的、一站式的技术方案,意义可能会堪比当年 servlet 规范的诞生,有效推进服务端软件系统技术水平的进步。

spring cloud 技术组成

在这里插入图片描述
eureka
微服务治理,服务注册和发现

ribbon
负载均衡、请求重试

hystrix
断路器,服务降级、熔断

feign
ribbon + hystrix 集成,并提供声明式客户端

hystrix dashboard 和 turbine
hystrix 数据监控

zuul
API 网关,提供微服务的统一入口,并提供统一的权限验证

config
配置中心

bus
消息总线, 配置刷新

sleuth+zipkin
链路跟踪

Spring Cloud 对比 Dubbo

在这里插入图片描述
Dubbo

Dubbo只是一个远程调用(RPC)框架
默认基于长连接,支持多种序列化格式

Spring Cloud

框架集
提供了一整套微服务解决方案(全家桶)
基于http调用, Rest API

一、service - 服务

在这里插入图片描述
商品服务 item service,端口 8001
用户服务 user service,端口 8101
订单服务 order service,端口 8201
在这里插入图片描述
这个项目都是demo数据写死的, 没有数据库等.这个项目主要是为了springcloud工具的使用.

二、commons 通用项目

新建 maven 项目

1.File–new --project(新建工程)—Empty Project 即工作空间
或者直接在D盘建一个目录,然后再File–open–打开这个目录
在这里插入图片描述
2.新建项目
File–new–Model(模块) —Maven 或则直接在工作空间上右键model
注意指定路径即可.
在这里插入图片描述

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>cn.tedu</groupId><artifactId>sp01-commons</artifactId><version>0.0.1-SNAPSHOT</version><name>sp01-commons</name><dependencies><dependency><groupId>com.fasterxml.jackson.module</groupId><artifactId>jackson-module-parameter-names</artifactId><version>2.9.8</version></dependency><dependency><groupId>com.fasterxml.jackson.datatype</groupId><artifactId>jackson-datatype-jdk8</artifactId><version>2.9.8</version></dependency><dependency><groupId>com.fasterxml.jackson.datatype</groupId><artifactId>jackson-datatype-jsr310</artifactId><version>2.9.8</version></dependency><dependency><groupId>com.fasterxml.jackson.datatype</groupId><artifactId>jackson-datatype-guava</artifactId><version>2.9.8</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><version>1.18.6</version></dependency><dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>3.1.0</version></dependency><dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>1.7.26</version></dependency><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.9</version></dependency></dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.8.0</version><configuration><source>1.8</source><target>1.8</target></configuration></plugin></plugins></build>
</project>

java 源文件

在这里插入图片描述

pojo

Item

package cn.tedu.sp01.pojo;import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;@Data
@NoArgsConstructor
@AllArgsConstructor
public class Item {private Integer id;private String name;private Integer number;
}

User

package cn.tedu.sp01.pojo;import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {private Integer id;private String username;private String password;
}

Order

package cn.tedu.sp01.pojo;import java.util.List;import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {private String id;private User user;private List<Item> items;
}

service

ItemService

package cn.tedu.sp01.service;import java.util.List;import cn.tedu.sp01.pojo.Item;public interface ItemService {//根据商品id,获取商品列表List<Item> getItems(String orderId);//减少商品库存void decreaseNumbers(List<Item> list);
}

UserService

package cn.tedu.sp01.service;import cn.tedu.sp01.pojo.User;public interface UserService {
//根据用户id获取用户信息User getUser(Integer id);//增加用户积分void addScore(Integer id, Integer score);
}

OrderService

package cn.tedu.sp01.service;import cn.tedu.sp01.pojo.Order;public interface OrderService {
//获取订单信息Order getOrder(String orderId);//保存订单void addOrder(Order order);
}

Util

CookieUtil

package cn.tedu.web.util;import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;public class CookieUtil {/*** @param response* @param name* @param value* @param maxAge*/public static void setCookie(HttpServletResponse response,String name, String value, String domain, String path, int maxAge) {Cookie cookie = new Cookie(name, value);if(domain != null) {cookie.setDomain(domain);}cookie.setPath(path);cookie.setMaxAge(maxAge);response.addCookie(cookie);}public static void setCookie(HttpServletResponse response, String name, String value, int maxAge) {setCookie(response, name, value, null, "/", maxAge);}public static void setCookie(HttpServletResponse response, String name, String value) {setCookie(response, name, value, null, "/", 3600);}public static void setCookie(HttpServletResponse response, String name) {setCookie(response, name, "", null, "/", 3600);}/*** @param request* @param name* @return*/public static String getCookie(HttpServletRequest request, String name) {String value = null;Cookie[] cookies = request.getCookies();if (null != cookies) {for (Cookie cookie : cookies) {if (cookie.getName().equals(name)) {value = cookie.getValue();}}}return value;}/*** @param response* @param name* @return*/public static void removeCookie(HttpServletResponse response, String name, String domain, String path) {setCookie(response, name, "", domain, path, 0);}}

JsonUtil

package cn.tedu.web.util;import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Writer;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;import org.apache.commons.lang3.StringUtils;import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.datatype.guava.GuavaModule;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;import lombok.extern.slf4j.Slf4j;@Slf4j
public class JsonUtil {private static ObjectMapper mapper;private static JsonInclude.Include DEFAULT_PROPERTY_INCLUSION = JsonInclude.Include.NON_DEFAULT;private static boolean IS_ENABLE_INDENT_OUTPUT = false;private static String CSV_DEFAULT_COLUMN_SEPARATOR = ",";static {try {initMapper();configPropertyInclusion();configIndentOutput();configCommon();} catch (Exception e) {log.error("jackson config error", e);}}private static void initMapper() {mapper = new ObjectMapper();}private static void configCommon() {config(mapper);}private static void configPropertyInclusion() {mapper.setSerializationInclusion(DEFAULT_PROPERTY_INCLUSION);}private static void configIndentOutput() {mapper.configure(SerializationFeature.INDENT_OUTPUT, IS_ENABLE_INDENT_OUTPUT);}private static void config(ObjectMapper objectMapper) {objectMapper.enable(JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN);objectMapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);objectMapper.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);objectMapper.enable(DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY);objectMapper.enable(DeserializationFeature.FAIL_ON_NUMBERS_FOR_ENUMS);objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);objectMapper.disable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES);objectMapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);objectMapper.enable(JsonParser.Feature.ALLOW_COMMENTS);objectMapper.disable(JsonGenerator.Feature.ESCAPE_NON_ASCII);objectMapper.enable(JsonGenerator.Feature.IGNORE_UNKNOWN);objectMapper.enable(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES);objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));objectMapper.enable(JsonParser.Feature.ALLOW_SINGLE_QUOTES);objectMapper.registerModule(new ParameterNamesModule());objectMapper.registerModule(new Jdk8Module());objectMapper.registerModule(new JavaTimeModule());objectMapper.registerModule(new GuavaModule());}public static void setSerializationInclusion(JsonInclude.Include inclusion) {DEFAULT_PROPERTY_INCLUSION = inclusion;configPropertyInclusion();}public static void setIndentOutput(boolean isEnable) {IS_ENABLE_INDENT_OUTPUT = isEnable;configIndentOutput();}public static <V> V from(URL url, Class<V> c) {try {return mapper.readValue(url, c);} catch (IOException e) {log.error("jackson from error, url: {}, type: {}", url.getPath(), c, e);return null;}}public static <V> V from(InputStream inputStream, Class<V> c) {try {return mapper.readValue(inputStream, c);} catch (IOException e) {log.error("jackson from error, type: {}", c, e);return null;}}public static <V> V from(File file, Class<V> c) {try {return mapper.readValue(file, c);} catch (IOException e) {log.error("jackson from error, file path: {}, type: {}", file.getPath(), c, e);return null;}}public static <V> V from(Object jsonObj, Class<V> c) {try {return mapper.readValue(jsonObj.toString(), c);} catch (IOException e) {log.error("jackson from error, json: {}, type: {}", jsonObj.toString(), c, e);return null;}}public static <V> V from(String json, Class<V> c) {try {return mapper.readValue(json, c);} catch (IOException e) {log.error("jackson from error, json: {}, type: {}", json, c, e);return null;}}public static <V> V from(URL url, TypeReference<V> type) {try {return mapper.readValue(url, type);} catch (IOException e) {log.error("jackson from error, url: {}, type: {}", url.getPath(), type, e);return null;}}public static <V> V from(InputStream inputStream, TypeReference<V> type) {try {return mapper.readValue(inputStream, type);} catch (IOException e) {log.error("jackson from error, type: {}", type, e);return null;}}public static <V> V from(File file, TypeReference<V> type) {try {return mapper.readValue(file, type);} catch (IOException e) {log.error("jackson from error, file path: {}, type: {}", file.getPath(), type, e);return null;}}public static <V> V from(Object jsonObj, TypeReference<V> type) {try {return mapper.readValue(jsonObj.toString(), type);} catch (IOException e) {log.error("jackson from error, json: {}, type: {}", jsonObj.toString(), type, e);return null;}}public static <V> V from(String json, TypeReference<V> type) {try {return mapper.readValue(json, type);} catch (IOException e) {log.error("jackson from error, json: {}, type: {}", json, type, e);return null;}}public static <V> String to(List<V> list) {try {return mapper.writeValueAsString(list);} catch (JsonProcessingException e) {log.error("jackson to error, obj: {}", list, e);return null;}}public static <V> String to(V v) {try {return mapper.writeValueAsString(v);} catch (JsonProcessingException e) {log.error("jackson to error, obj: {}", v, e);return null;}}public static <V> void toFile(String path, List<V> list) {try (Writer writer = new FileWriter(new File(path), true)) {mapper.writer().writeValues(writer).writeAll(list);writer.flush();} catch (Exception e) {log.error("jackson to file error, path: {}, list: {}", path, list, e);}}public static <V> void toFile(String path, V v) {try (Writer writer = new FileWriter(new File(path), true)) {mapper.writer().writeValues(writer).write(v);writer.flush();} catch (Exception e) {log.error("jackson to file error, path: {}, obj: {}", path, v, e);}}public static String getString(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).toString();} else {return null;}} catch (IOException e) {log.error("jackson get string error, json: {}, key: {}", json, key, e);return null;}}public static Integer getInt(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).intValue();} else {return null;}} catch (IOException e) {log.error("jackson get int error, json: {}, key: {}", json, key, e);return null;}}public static Long getLong(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).longValue();} else {return null;}} catch (IOException e) {log.error("jackson get long error, json: {}, key: {}", json, key, e);return null;}}public static Double getDouble(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).doubleValue();} else {return null;}} catch (IOException e) {log.error("jackson get double error, json: {}, key: {}", json, key, e);return null;}}public static BigInteger getBigInteger(String json, String key) {if (StringUtils.isEmpty(json)) {return new BigInteger(String.valueOf(0.00));}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).bigIntegerValue();} else {return null;}} catch (IOException e) {log.error("jackson get biginteger error, json: {}, key: {}", json, key, e);return null;}}public static BigDecimal getBigDecimal(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).decimalValue();} else {return null;}} catch (IOException e) {log.error("jackson get bigdecimal error, json: {}, key: {}", json, key, e);return null;}}public static boolean getBoolean(String json, String key) {if (StringUtils.isEmpty(json)) {return false;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).booleanValue();} else {return false;}} catch (IOException e) {log.error("jackson get boolean error, json: {}, key: {}", json, key, e);return false;}}public static byte[] getByte(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}try {JsonNode node = mapper.readTree(json);if (null != node) {return node.get(key).binaryValue();} else {return null;}} catch (IOException e) {log.error("jackson get byte error, json: {}, key: {}", json, key, e);return null;}}public static <T> ArrayList<T> getList(String json, String key) {if (StringUtils.isEmpty(json)) {return null;}String string = getString(json, key);return from(string, new TypeReference<ArrayList<T>>() {});}public static <T> String add(String json, String key, T value) {try {JsonNode node = mapper.readTree(json);add(node, key, value);return node.toString();} catch (IOException e) {log.error("jackson add error, json: {}, key: {}, value: {}", json, key, value, e);return json;}}private static <T> void add(JsonNode jsonNode, String key, T value) {if (value instanceof String) {((ObjectNode) jsonNode).put(key, (String) value);} else if (value instanceof Short) {((ObjectNode) jsonNode).put(key, (Short) value);} else if (value instanceof Integer) {((ObjectNode) jsonNode).put(key, (Integer) value);} else if (value instanceof Long) {((ObjectNode) jsonNode).put(key, (Long) value);} else if (value instanceof Float) {((ObjectNode) jsonNode).put(key, (Float) value);} else if (value instanceof Double) {((ObjectNode) jsonNode).put(key, (Double) value);} else if (value instanceof BigDecimal) {((ObjectNode) jsonNode).put(key, (BigDecimal) value);} else if (value instanceof BigInteger) {((ObjectNode) jsonNode).put(key, (BigInteger) value);} else if (value instanceof Boolean) {((ObjectNode) jsonNode).put(key, (Boolean) value);} else if (value instanceof byte[]) {((ObjectNode) jsonNode).put(key, (byte[]) value);} else {((ObjectNode) jsonNode).put(key, to(value));}}public static String remove(String json, String key) {try {JsonNode node = mapper.readTree(json);((ObjectNode) node).remove(key);return node.toString();} catch (IOException e) {log.error("jackson remove error, json: {}, key: {}", json, key, e);return json;}}public static <T> String update(String json, String key, T value) {try {JsonNode node = mapper.readTree(json);((ObjectNode) node).remove(key);add(node, key, value);return node.toString();} catch (IOException e) {log.error("jackson update error, json: {}, key: {}, value: {}", json, key, value, e);return json;}}public static String format(String json) {try {JsonNode node = mapper.readTree(json);return mapper.writerWithDefaultPrettyPrinter().writeValueAsString(node);} catch (IOException e) {log.error("jackson format json error, json: {}", json, e);return json;}}public static boolean isJson(String json) {try {mapper.readTree(json);return true;} catch (Exception e) {log.error("jackson check json error, json: {}", json, e);return false;}}private static InputStream getResourceStream(String name) {return JsonUtil.class.getClassLoader().getResourceAsStream(name);}private static InputStreamReader getResourceReader(InputStream inputStream) {if (null == inputStream) {return null;}return new InputStreamReader(inputStream, StandardCharsets.UTF_8);}
}

JsonResult

package cn.tedu.web.util;import lombok.Getter;
import lombok.Setter;@Getter
@Setter
public class JsonResult<T> {/** 成功 */public static final int SUCCESS = 200;/** 没有登录 */public static final int NOT_LOGIN = 400;/** 发生异常 */public static final int EXCEPTION = 401;/** 系统错误 */public static final int SYS_ERROR = 402;/** 参数错误 */public static final int PARAMS_ERROR = 403;/** 不支持或已经废弃 */public static final int NOT_SUPPORTED = 410;/** AuthCode错误 */public static final int INVALID_AUTHCODE = 444;/** 太频繁的调用 */public static final int TOO_FREQUENT = 445;/** 未知的错误 */public static final int UNKNOWN_ERROR = 499;private int code;private String msg;private T data;public static JsonResult build() {return new JsonResult();}public static JsonResult build(int code) {return new JsonResult().code(code);}public static JsonResult build(int code, String msg) {return new JsonResult<String>().code(code).msg(msg);}public static <T> JsonResult<T> build(int code, T data) {return new JsonResult<T>().code(code).data(data);}public static <T> JsonResult<T> build(int code, String msg, T data) {return new JsonResult<T>().code(code).msg(msg).data(data);}public JsonResult<T> code(int code) {this.code = code;return this;}public JsonResult<T> msg(String msg) {this.msg = msg;return this;}public JsonResult<T> data(T data) {this.data = data;return this;}public static JsonResult ok() {return build(SUCCESS);}public static JsonResult ok(String msg) {return build(SUCCESS, msg);}public static <T> JsonResult<T> ok(T data) {return build(SUCCESS, data);}public static JsonResult err() {return build(EXCEPTION);}public static JsonResult err(String msg) {return build(EXCEPTION, msg);}@Overridepublic String toString() {return JsonUtil.to(this);}
}

三、item service 商品服务

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 【Gitee】错误盘点解决!!!

    1. fatal: pathspec a.txt did not match any files 解决方式&#xff1a; 自己在命令行之外&#xff0c;手动添加a.txt&#xff08;注意编码格式最好是utf-8&#xff09;&#xff0c;然后再命令行中git add a.txt&#xff08;注意如果你windows中有没有隐藏文件类型的扩展名…...

    2024/4/23 15:36:00
  2. pycharm中更改python安装路径

    pycharm中更改python安装路径 前言 有时python安装的路径不太合适需要重新安装python&#xff0c;如果之前已经安装过pycharm&#xff0c;那么新装python路径发生改变就会使pycharm无法正常使用&#xff0c;需要更改pycharm配置。本文就是记录下pycharm中如何更改python路径。…...

    2024/4/25 22:36:35
  3. 处理json对象中的key

    json处理文件 JSONObject startedProcessJson BpmServiceUtil.daibanTasks(loginId,tenantId,uriVariables); BPMResultObject bpmResJson new BPMResultObject(); int dataSize startedProcessJson.containsKey(“total”) ? startedProcessJson.getInt(“total”) : 0;...

    2024/4/22 4:51:02
  4. JS 中实现扫码枪使用 [JavaScript,jQuery,一维扫码]

    前言&#xff1a; 首先是条码扫描头在设备管理器中可以看到就是一个键盘设备。 然后各家厂商都可以设置扫描结果设置自定义前缀后缀&#xff0c;搜索设备型号找到文档&#xff0c;扫描指定的设置码即可&#xff0c;我这边使用的是Honeywell(霍尼韦尔) MS5145条码阅读器的默认…...

    2024/5/2 12:15:29
  5. 一名“山寨版”电力工程师成长的故事

    随着点滴零碎知识点的积累&#xff0c;我们更应该顺势开始构建自己的知识体系。体系化学习策略可以帮助我们将零碎的知识网络化&#xff0c;相对于传统学习&#xff0c;几乎是碾压式的存在。 在高中求学时&#xff0c;我的数学老师是北师大高材生&#xff0c;也是校级优秀教师…...

    2024/4/19 23:05:48
  6. 深度优先、广度优先

    导入库 import sys #设置递归深度 sys.setrecursionlimit(10000) from queue import Queue定义节点结构 class node_info():节点信息存储结构def __init__(self):self.pre Noneself.level Noneself.value Noneself.nexts []读取数据,存储为树结构 def get_relation(node…...

    2024/5/2 12:18:57
  7. 链表 (剑指offer)

    目录 1.从尾到头打印链表 1. 从尾到头打印链表 # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val x # self.next None class Solution(object):def printListReversingly(self, head):"&qu…...

    2024/4/21 8:30:53
  8. JAVA强制性异常与非强制性异常

    java的异常处理机制是一项相当灵活的技术。也是java的特色。项目做的够不够出色&#xff0c;很大一部分取决于异常的处理。如何自定义异常&#xff0c;是该try catch还是该throws&#xff0c;这些都是我们该注意的方面。 java中的异常分为两大类&#xff0c;强制性异常(Checke…...

    2024/4/19 19:41:24
  9. 利用向量的运算判断两个物体的前后关系

    判断一个物体是否在另一个物体的前方一&#xff1a;关键步骤二&#xff1a;图解三&#xff1a;代码实现后言&#xff1a;一&#xff1a;关键步骤 向量相减向量点乘 二&#xff1a;图解 三&#xff1a;代码实现 public bool IsInView(Vector3 worldPos,Camera CurCamera) {Tr…...

    2024/5/2 1:23:27
  10. volatile和JMM

    volatile volatile是Java虚拟机提供的轻量级的同步机制&#xff08;乞丐版的synchronized&#xff09; volatile 1.1保证可见性 1.2不保证原子性 1.3禁止指令重排 JMM &#xff08;Java Memory Model&#xff09;Java内存模型(不真实存在&#xff0c;是一个约定和规范) JM…...

    2024/5/3 3:02:21
  11. AOE-网和关键路径算法

    前言 对于一个工程项目&#xff0c;在管理的时候可以将其按规模、功能等特征划分成不同的模块&#xff0c;而当各个小模块完成并进行整合后整个项目也就相应完成。在划分的方法中&#xff0c;主流的方法是按事件、活动的方式进行划分&#xff0c;并且为了直观表示&#xff0c;…...

    2024/4/25 2:53:14
  12. HDU 1529 Cashier Employment (差分约束)

    题意&#xff1a;德黑兰的某国营商店需要聘用一批员工&#xff0c;不同的时间有不同的人员需求&#xff0c;能够雇佣到的人数也不同。然而你一旦聘用了一个人&#xff0c;他就会跟着你干8个小时。输入24个时间点的需求与劳动力人数&#xff0c;输出满足需求最少需要的人数&…...

    2024/4/28 23:20:01
  13. pytorch ,ncnn,tnn等的减均值,归一化处理等

    1 pytorch 一般通过 transform transforms.Compose([ transforms.ToTensor(), transforms.Normalize(mean[0.5, 0.5, 0.5], std[0.50196078, 0.50196078, 0.50196078])]) toTensor()会进行归一化&#xff0c;Normalize的操作是(x-mean)/…...

    2024/4/23 8:39:38
  14. uboot env ethaddr 是如何生成的

    uboot env ethaddr 是如何生成的&#xff1f; 思考 默认环境变量中并不会指定 ethaddr , 然而板子起来后会自己生成ethaddr 变量&#xff0c;并且各个板子的ethaddr 是唯一的。并且即使清除env分区&#xff0c;重新启动后ethaddr 也不会变。是如何做到的&#xff1f; ethadd…...

    2024/4/24 18:26:37
  15. jdbc连接MySQL数据库代码

    数据库连接代码 public static Connection getConn(){Connection connnull;try {Class.forName(DRIVER);connDriverManager.getConnection(URL,USER,PWD);} catch (ClassNotFoundException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (SQLException …...

    2024/4/21 5:23:14
  16. cmake之获取文件名

    set(file_name "D:\\no.cpp") //设置变量STRING(REGEX REPLACE "./(.)\\..*" "\\1" FILE_NAME ${file_name}) //字符串获取set(name ${FILE_NAME}) //如需使用FILE_NAME该变量 必须拷贝使用 没有则 该变量FILE_NAME 不等于 "no" …...

    2024/4/24 0:48:04
  17. 解决问题:.../info/refs not valid: is this a git repository?

    问题 今天git clone一个项目的时候莫名出现这个报错&#xff1a;.../info/refs not valid: is this a git repository?解决方法 1.如果是在windows下&#xff0c;直接打开浏览器重新进入一下git仓库&#xff0c;一定要重新输入一下账号和密码的那种登录。 2.如果是Linux下&a…...

    2024/4/27 1:11:59
  18. Android O 高通 lk自定义按键恢复出厂设置功能

    Android O 高通 lk自定义按键恢复出厂设置功能1. 添加按键2. 添加触发事件项目需求&#xff0c;机器新增了一个自定义按键&#xff0c;用于开机恢复出厂设置。看了项目lk源码&#xff0c;源码里本来自带 “音量 电源键”的组合方式进入fastboot模式&#xff0c;可以参考源码添加…...

    2024/4/26 14:59:39
  19. linux clk时钟初始化

    实例记录的是AM335X 时钟初始化框架&#xff0c;具体细节还没来得及深究&#xff0c;仅供自己记录学习用。 /arch/arm/mach-omap2/board_generic.c DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)") .reserve omap_reserve, .m…...

    2024/5/1 22:38:38
  20. 学习笔记(10):深度学习与计算机视觉-图像阈值分割

    立即学习:https://edu.csdn.net/course/play/30024/433591?utm_sourceblogtoedu 基于Otsu算法&#xff08;大律算法&#xff09;的阈值分割方法 最大累间方差 分割 1、转灰度图 2、计算平均灰度 3、选定一个阈值T分两部分 4、计算no灰度和ni灰度 5、计算类间方差...

    2024/4/7 12:57:59

最新文章

  1. 综合能源系统:Modbus转IEC104网关解决方案

    Modbus转IEC104网关BE102 方案概述 Modbus和IEC104是两种通信协议&#xff0c;各自适用于不同行业和场景&#xff0c;其中Modbus常见于工业自动化&#xff0c;而IEC104则主导电力行业。在某些项目中&#xff0c;需要将Modbus设备的数据传至IEC104电力平台&#xff0c;但两者协…...

    2024/5/5 4:14:10
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. WKWebView的使用

    一、简介 在iOS中&#xff0c;WKWebView是WebKit框架提供的一个用于展示网页内容的控件&#xff0c;相比UIWebView有更好的性能和功能。 以下是在iOS中使用WKWebView的基本步骤&#xff1a; 1.1 导入WebKit框架 import WebKit1.2 创建WKWebView实例 let webView WKWebVie…...

    2024/5/4 11:20:05
  4. 17、Lua 文件 I-O

    Lua 文件 I/O Lua 文件 I/O简单模式完全模式 Lua 文件 I/O LuaI/O 库用于读取和处理文件。分为简单模式&#xff08;和C一样&#xff09;、完全模式。 简单模式&#xff08;simple model&#xff09;拥有一个当前输入文件和一个当前输出文件&#xff0c;并且提供针对这些文件…...

    2024/5/3 5:42:41
  5. 416. 分割等和子集问题(动态规划)

    题目 题解 class Solution:def canPartition(self, nums: List[int]) -> bool:# badcaseif not nums:return True# 不能被2整除if sum(nums) % 2 ! 0:return False# 状态定义&#xff1a;dp[i][j]表示当背包容量为j&#xff0c;用前i个物品是否正好可以将背包填满&#xff…...

    2024/5/4 12:05:22
  6. 【Java】ExcelWriter自适应宽度工具类(支持中文)

    工具类 import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet;/*** Excel工具类** author xiaoming* date 2023/11/17 10:40*/ public class ExcelUti…...

    2024/5/4 11:23:32
  7. Spring cloud负载均衡@LoadBalanced LoadBalancerClient

    LoadBalance vs Ribbon 由于Spring cloud2020之后移除了Ribbon&#xff0c;直接使用Spring Cloud LoadBalancer作为客户端负载均衡组件&#xff0c;我们讨论Spring负载均衡以Spring Cloud2020之后版本为主&#xff0c;学习Spring Cloud LoadBalance&#xff0c;暂不讨论Ribbon…...

    2024/5/4 14:46:16
  8. TSINGSEE青犀AI智能分析+视频监控工业园区周界安全防范方案

    一、背景需求分析 在工业产业园、化工园或生产制造园区中&#xff0c;周界防范意义重大&#xff0c;对园区的安全起到重要的作用。常规的安防方式是采用人员巡查&#xff0c;人力投入成本大而且效率低。周界一旦被破坏或入侵&#xff0c;会影响园区人员和资产安全&#xff0c;…...

    2024/5/4 23:54:44
  9. VB.net WebBrowser网页元素抓取分析方法

    在用WebBrowser编程实现网页操作自动化时&#xff0c;常要分析网页Html&#xff0c;例如网页在加载数据时&#xff0c;常会显示“系统处理中&#xff0c;请稍候..”&#xff0c;我们需要在数据加载完成后才能继续下一步操作&#xff0c;如何抓取这个信息的网页html元素变化&…...

    2024/5/4 12:10:13
  10. 【Objective-C】Objective-C汇总

    方法定义 参考&#xff1a;https://www.yiibai.com/objective_c/objective_c_functions.html Objective-C编程语言中方法定义的一般形式如下 - (return_type) method_name:( argumentType1 )argumentName1 joiningArgument2:( argumentType2 )argumentName2 ... joiningArgu…...

    2024/5/4 23:54:49
  11. 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】

    &#x1f468;‍&#x1f4bb;博客主页&#xff1a;花无缺 欢迎 点赞&#x1f44d; 收藏⭐ 留言&#x1f4dd; 加关注✅! 本文由 花无缺 原创 收录于专栏 【洛谷算法题】 文章目录 【洛谷算法题】P5713-洛谷团队系统【入门2分支结构】&#x1f30f;题目描述&#x1f30f;输入格…...

    2024/5/4 23:54:44
  12. 【ES6.0】- 扩展运算符(...)

    【ES6.0】- 扩展运算符... 文章目录 【ES6.0】- 扩展运算符...一、概述二、拷贝数组对象三、合并操作四、参数传递五、数组去重六、字符串转字符数组七、NodeList转数组八、解构变量九、打印日志十、总结 一、概述 **扩展运算符(...)**允许一个表达式在期望多个参数&#xff0…...

    2024/5/4 14:46:12
  13. 摩根看好的前智能硬件头部品牌双11交易数据极度异常!——是模式创新还是饮鸩止渴?

    文 | 螳螂观察 作者 | 李燃 双11狂欢已落下帷幕&#xff0c;各大品牌纷纷晒出优异的成绩单&#xff0c;摩根士丹利投资的智能硬件头部品牌凯迪仕也不例外。然而有爆料称&#xff0c;在自媒体平台发布霸榜各大榜单喜讯的凯迪仕智能锁&#xff0c;多个平台数据都表现出极度异常…...

    2024/5/4 14:46:11
  14. Go语言常用命令详解(二)

    文章目录 前言常用命令go bug示例参数说明 go doc示例参数说明 go env示例 go fix示例 go fmt示例 go generate示例 总结写在最后 前言 接着上一篇继续介绍Go语言的常用命令 常用命令 以下是一些常用的Go命令&#xff0c;这些命令可以帮助您在Go开发中进行编译、测试、运行和…...

    2024/5/4 14:46:11
  15. 用欧拉路径判断图同构推出reverse合法性:1116T4

    http://cplusoj.com/d/senior/p/SS231116D 假设我们要把 a a a 变成 b b b&#xff0c;我们在 a i a_i ai​ 和 a i 1 a_{i1} ai1​ 之间连边&#xff0c; b b b 同理&#xff0c;则 a a a 能变成 b b b 的充要条件是两图 A , B A,B A,B 同构。 必要性显然&#xff0…...

    2024/5/5 2:25:33
  16. 【NGINX--1】基础知识

    1、在 Debian/Ubuntu 上安装 NGINX 在 Debian 或 Ubuntu 机器上安装 NGINX 开源版。 更新已配置源的软件包信息&#xff0c;并安装一些有助于配置官方 NGINX 软件包仓库的软件包&#xff1a; apt-get update apt install -y curl gnupg2 ca-certificates lsb-release debian-…...

    2024/5/4 21:24:42
  17. Hive默认分割符、存储格式与数据压缩

    目录 1、Hive默认分割符2、Hive存储格式3、Hive数据压缩 1、Hive默认分割符 Hive创建表时指定的行受限&#xff08;ROW FORMAT&#xff09;配置标准HQL为&#xff1a; ... ROW FORMAT DELIMITED FIELDS TERMINATED BY \u0001 COLLECTION ITEMS TERMINATED BY , MAP KEYS TERMI…...

    2024/5/4 12:39:12
  18. 【论文阅读】MAG:一种用于航天器遥测数据中有效异常检测的新方法

    文章目录 摘要1 引言2 问题描述3 拟议框架4 所提出方法的细节A.数据预处理B.变量相关分析C.MAG模型D.异常分数 5 实验A.数据集和性能指标B.实验设置与平台C.结果和比较 6 结论 摘要 异常检测是保证航天器稳定性的关键。在航天器运行过程中&#xff0c;传感器和控制器产生大量周…...

    2024/5/4 13:16:06
  19. --max-old-space-size=8192报错

    vue项目运行时&#xff0c;如果经常运行慢&#xff0c;崩溃停止服务&#xff0c;报如下错误 FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 因为在 Node 中&#xff0c;通过JavaScript使用内存时只能使用部分内存&#xff08;64位系统&…...

    2024/5/4 16:48:41
  20. 基于深度学习的恶意软件检测

    恶意软件是指恶意软件犯罪者用来感染个人计算机或整个组织的网络的软件。 它利用目标系统漏洞&#xff0c;例如可以被劫持的合法软件&#xff08;例如浏览器或 Web 应用程序插件&#xff09;中的错误。 恶意软件渗透可能会造成灾难性的后果&#xff0c;包括数据被盗、勒索或网…...

    2024/5/4 14:46:05
  21. JS原型对象prototype

    让我简单的为大家介绍一下原型对象prototype吧&#xff01; 使用原型实现方法共享 1.构造函数通过原型分配的函数是所有对象所 共享的。 2.JavaScript 规定&#xff0c;每一个构造函数都有一个 prototype 属性&#xff0c;指向另一个对象&#xff0c;所以我们也称为原型对象…...

    2024/5/5 3:37:58
  22. C++中只能有一个实例的单例类

    C中只能有一个实例的单例类 前面讨论的 President 类很不错&#xff0c;但存在一个缺陷&#xff1a;无法禁止通过实例化多个对象来创建多名总统&#xff1a; President One, Two, Three; 由于复制构造函数是私有的&#xff0c;其中每个对象都是不可复制的&#xff0c;但您的目…...

    2024/5/4 23:54:30
  23. python django 小程序图书借阅源码

    开发工具&#xff1a; PyCharm&#xff0c;mysql5.7&#xff0c;微信开发者工具 技术说明&#xff1a; python django html 小程序 功能介绍&#xff1a; 用户端&#xff1a; 登录注册&#xff08;含授权登录&#xff09; 首页显示搜索图书&#xff0c;轮播图&#xff0…...

    2024/5/4 9:07:39
  24. 电子学会C/C++编程等级考试2022年03月(一级)真题解析

    C/C++等级考试(1~8级)全部真题・点这里 第1题:双精度浮点数的输入输出 输入一个双精度浮点数,保留8位小数,输出这个浮点数。 时间限制:1000 内存限制:65536输入 只有一行,一个双精度浮点数。输出 一行,保留8位小数的浮点数。样例输入 3.1415926535798932样例输出 3.1…...

    2024/5/4 14:46:02
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57