问题是: 我的应用的pom 并没有任何报错,但是代码报错,而且编译不通过。

如下,我本地项目,从 spring-cloud-alibaba-dependencies 0.2.1.RELEASE 升级到 0.2.2.RELEASE:

            <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency> <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>0.2..RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>

就出现了类找不到的情况 cannot resolve symbol "xxx" ,比如这个:

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;    < --- cannot resolve symbol "xxx"

EnableDiscoveryClient 是spring-cloud-commons jar 的内容, 而spring-cloud-commons 是dubbo-registry-nacos,spring-cloud-starter-alibaba-nacos-config 和 spring-cloud-starter-alibaba-nacos-discovery的 依赖。

spring cloud 相关的类/接口 似乎都不能用了, 但是之前都是好好的啊! 查看maven 的dependencies 图发现, 某些 jar 似乎缺少没有被依赖尽量。 不是某几个, 而是很多的。。。

似乎某些 dependency 被切断了。。 于是手动添加了几个 dependency 并写上了版本号,要是不写版本号, 那么问题依旧。 难道需要一个个的处理问题?

之前都不需要手动加入的dependency, 现在一个个手动添加, 也太麻烦了吧!

观察发现dubbo-registry-nacos-0.0.2.pom 似乎不对, 里面怎么全是NUL 这种黑色字符,经验告诉我,这个是文件格式不对或者编码格式问题, 也可能是文件没有正确结尾,或者是被修改了/截断了.. 怎么办? 这个版本的dubbo-registry-nacos-0.0.2 就是这样的? 查看了同事的这个dubbo-registry-nacos-0.0.2.pom 文件,发现没有这个问题! 删除重新下载吧!(同一个目录下的其他文件 包括jar 也一并全部删除) 就好了 ! 重新下载后pom 是正常了,但是问题依旧。

经验告诉我,maven 出了问题了, clean 一下吧:

E:\dev\erdp2\erdp_discuss>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.lkk:erdp_discuss_app:war:2.0.-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.fasterxml.jackson.core:jackson-core:jar -> duplicate declaration of version (?) @ line , column
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.fasterxml.jackson.core:jackson-databind:jar -> duplicate declaration of version (?) @ line , column
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.fasterxml.jackson.core:jackson-annotations:jar -> duplicate declaration of version (?) @ line , column
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.lkk:erdp_discuss_controller:jar:2.0.-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.lkk:erdp_plan_domain:jar -> duplicate declaration of version (?) @ line , column
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.lkk:erdp_discuss_service:jar:2.0.-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.lkk:erdp_system_domain:jar -> duplicate declaration of version (?) @ line , column
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] erdp_discuss [pom]
[INFO] erdp_discuss_controller [jar]
[INFO] erdp_discuss_service [jar]
[INFO] ppm_discuss_app [war]
[INFO]
[INFO] -----------------------< com.lkk:erdp_discuss >-----------------------
[INFO] Building erdp_discuss 2.0.-SNAPSHOT [/]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.:clean (default-clean) @ erdp_discuss ---
[INFO]
[INFO] -----------------< com.lkk:erdp_discuss_controller >------------------
[INFO] Building erdp_discuss_controller 2.0.-SNAPSHOT [/]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.alibaba:dubbo:jar:2.8. is missing, no dependency information available
[INFO]
[INFO] --- maven-clean-plugin:3.0.:clean (default-clean) @ erdp_discuss_controller ---
[INFO] Deleting E:\dev\erdp2\erdp_discuss\erdp_discuss_controller\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.:resources (default-resources) @ erdp_discuss_controller ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying resource
[INFO] Copying resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ erdp_discuss_controller ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling source files to E:\dev\erdp2\erdp_discuss\erdp_discuss_controller\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.:testResources (default-testResources) @ erdp_discuss_controller ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ erdp_discuss_controller ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling source files to E:\dev\erdp2\erdp_discuss\erdp_discuss_controller\target\test-classes
[INFO] /E:/dev/erdp2/erdp_discuss/erdp_discuss_controller/src/test/java/com/lkk/ppm/discuss/SysConsumerApplication.java: E:\dev\erdp2\erdp_discuss\erdp_discuss_controller\src\test\java\com\lkk\ppm\discuss\SysConsumerApplication.java使用或覆盖了已过
时的 API。
[INFO] /E:/dev/erdp2/erdp_discuss/erdp_discuss_controller/src/test/java/com/lkk/ppm/discuss/SysConsumerApplication.java: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
[INFO]
[INFO] --- maven-surefire-plugin:2.19.:test (default-test) @ erdp_discuss_controller ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.:jar (default-jar) @ erdp_discuss_controller ---
[INFO] Building jar: E:\dev\erdp2\erdp_discuss\erdp_discuss_controller\target\erdp_discuss_controller-2.0.-SNAPSHOT.jar
[INFO]
[INFO] -------------------< com.lkk:erdp_discuss_service >-------------------
[INFO] Building erdp_discuss_service 2.0.-SNAPSHOT [/]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.:clean (default-clean) @ erdp_discuss_service ---
[INFO] Deleting E:\dev\erdp2\erdp_discuss\erdp_discuss_service\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.:resources (default-resources) @ erdp_discuss_service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\dev\erdp2\erdp_discuss\erdp_discuss_service\src\main\resources
[INFO] skip non existing resourceDirectory E:\dev\erdp2\erdp_discuss\erdp_discuss_service\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ erdp_discuss_service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling source files to E:\dev\erdp2\erdp_discuss\erdp_discuss_service\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.:testResources (default-testResources) @ erdp_discuss_service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ erdp_discuss_service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling source files to E:\dev\erdp2\erdp_discuss\erdp_discuss_service\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.:test (default-test) @ erdp_discuss_service ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:3.0.:jar (default-jar) @ erdp_discuss_service ---
[INFO] Building jar: E:\dev\erdp2\erdp_discuss\erdp_discuss_service\target\erdp_discuss_service-2.0.-SNAPSHOT.jar
[INFO]
[INFO] ---------------------< com.lkk:erdp_discuss_app >---------------------
[INFO] Building ppm_discuss_app 2.0.-SNAPSHOT [/]
[INFO] --------------------------------[ war ]---------------------------------
[WARNING] The POM for org.springframework.cloud:spring-cloud-starter-alibaba-nacos-discovery:jar:0.2..RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.jboss.netty:netty:jar:3.2..Final is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.springframework.cloud:spring-cloud-starter-alibaba-nacos-config:jar:0.2..RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-clean-plugin:3.0.:clean (default-clean) @ erdp_discuss_app ---
[INFO] Deleting E:\dev\erdp2\erdp_discuss\erdp_discuss_app\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.:resources (default-resources) @ erdp_discuss_app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying resources
[INFO] Copying resource
[INFO]
[INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ erdp_discuss_app ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling source files to E:\dev\erdp2\erdp_discuss\erdp_discuss_app\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /E:/dev/erdp2/erdp_discuss/erdp_discuss_app/src/main/java/com/lkk/ppm/discuss/DiscussApplication.java:[,] 程序包org.springframework.cloud.client.discovery不存在
[ERROR] /E:/dev/erdp2/erdp_discuss/erdp_discuss_app/src/main/java/com/lkk/ppm/discuss/DiscussApplication.java:[,] 找不到符号
符号: 类 EnableDiscoveryClient
[INFO] errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for erdp_discuss 2.0.-SNAPSHOT:
[INFO]
[INFO] erdp_discuss ....................................... SUCCESS [ 0.313 s]
[INFO] erdp_discuss_controller ............................ SUCCESS [ 6.453 s]
[INFO] erdp_discuss_service ............................... SUCCESS [ 2.553 s]
[INFO] ppm_discuss_app .................................... FAILURE [ 1.628 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.844 s
[INFO] Finished at: --05T15::+:
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5:compile (default-compile) on project erdp_discuss_app: Compilation failure: Compilation failure:
[ERROR] /E:/dev/erdp2/erdp_discuss/erdp_discuss_app/src/main/java/com/lkk/ppm/discuss/DiscussApplication.java:[,] 程序包org.springframework.cloud.client.discovery不存在
[ERROR] /E:/dev/erdp2/erdp_discuss/erdp_discuss_app/src/main/java/com/lkk/ppm/discuss/DiscussApplication.java:[,] 找不到符号
[ERROR] 符号: 类 EnableDiscoveryClient
[ERROR] -> [Help ]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help ] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :erdp_discuss_app

问题并不能这么简单的解决。但是上面的信息并不能告诉我具体什么原因。 经验告诉我,通过-X 参数:

[DEBUG] =======================================================================
[WARNING] The POM for org.springframework.cloud:spring-cloud-starter-alibaba-nacos-discovery:jar:0.2..RELEASE is invalid, transitive dependencies (if any) will not be available: problems were encountered while building the effective model for org.spr
ingframework.cloud:spring-cloud-starter-alibaba-nacos-discovery:0.2..RELEASE
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (posi
tion: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-openfeign-dependencies\2.0..RELEASE\spring-cloud-openfeign-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \
u0 (position: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-openfeign-dependencies\2.0..RELEASE\spring-cloud-openfeign-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-bus-dependencies\2.0..RELEASE\spring-cloud-bus-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (position
: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-bus-dependencies\2.0..RELEASE\spring-cloud-bus-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-gateway-dependencies\2.0..RELEASE\spring-cloud-gateway-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (
position: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-gateway-dependencies\2.0..RELEASE\spring-cloud-gateway-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (posi
tion: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom, line , column [DEBUG] Using mirror lkk-public (http://192.168.11.200:8081/repository/lkk-public/) for maven2-repository.dev.java.net (http://download.java.net/maven/2/).
[WARNING] The POM for org.jboss.netty:netty:jar:3.2..Final is invalid, transitive dependencies (if any) will not be available: problem was encountered while building the effective model
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\jboss\netty\netty\3.2..Final\netty-3.2..Final.pom: only whitespace content allowed before start tag and not \u0 (position: START_DOCUMENT seen \u0... @:) @ line , column [WARNING] The POM for org.springframework.cloud:spring-cloud-starter-alibaba-nacos-config:jar:0.2..RELEASE is invalid, transitive dependencies (if any) will not be available: problems were encountered while building the effective model for org.spring
framework.cloud:spring-cloud-starter-alibaba-nacos-config:0.2..RELEASE
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (posi
tion: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-openfeign-dependencies\2.0..RELEASE\spring-cloud-openfeign-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \
u0 (position: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-openfeign-dependencies\2.0..RELEASE\spring-cloud-openfeign-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-bus-dependencies\2.0..RELEASE\spring-cloud-bus-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (position
: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-bus-dependencies\2.0..RELEASE\spring-cloud-bus-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-gateway-dependencies\2.0..RELEASE\spring-cloud-gateway-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (
position: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-gateway-dependencies\2.0..RELEASE\spring-cloud-gateway-dependencies-2.0..RELEASE.pom, line , column
[FATAL] Non-parseable POM C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom: only whitespace content allowed before start tag and not \u0 (posi
tion: START_DOCUMENT seen \u0... @:) @ C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-build-dependencies\2.0..RELEASE\spring-cloud-build-dependencies-2.0..RELEASE.pom, line , column

果然: The POM for org.springframework.cloud:spring-cloud-starter-alibaba-nacos-discovery:jar:0.2.2.RELEASE is invalid

确定无疑, pom 问题, 观察发现 spring-cloud-starter-alibaba-nacos-config-0.2.2.RELEASE ,以及 spring-cloud-starter-alibaba-nacos-discovery-0.2.2.RELEASE 也有同样的问题。删除重新下载,但还是有问题。

另外观察到 spring-cloud-build-dependencies-2.0.5.RELEASE.pom 也有问题:

难道maven 私服出现了问题? 登录上去一看, 发现maven 私服的 spring-cloud-build-dependencies-2.0.5.RELEASE.pom 等 都是正常的!

难道要一个个的检查repository目录中的 pom 是否有问题? 这太多了,干脆全部删除出现下载。不得已, 把 程序全部关闭,idea退出,整个repository目录(C:\Users\Administrator\.m2\repository )删除,重启idea ,刷新maven, 问题解决!

忽而想到了, 我上午的时候, 电脑电源线松动了, 电脑异常关机了一次, 然后, 电脑还自动升级了很久。 可能正是这个原因导致了 某些的 pom 文件损坏了吧!!!

真是奇了怪了, 这个问题是怎么引起的呢? 是什么原因呢? 网上并没有找到这种问题现象,bing 上面搜索 maven pom damaged 或  maven pom corrupted 都无果。

似乎大家都没有遇到, 就我一个人遇到?  真是活久见!!!

参考:

https://blog.csdn.net/cuiy6642/article/details/49789763

http://www.cnblogs.com/enjoyjava/p/9743460.html

https://grokbase.com/t/ant/user/09771k6h5v/maven2-pom-is-corrupt

活久见: maven pom 竟然都会崩溃!的更多相关文章

  1. 活久见!TCP两次挥手,你见过吗?那四次握手呢?

    活久见!TCP两次挥手,你见过吗?那四次握手呢? 文章持续更新,可以微信搜一搜「小白debug」第一时间阅读,回复[教程]获golang免费视频教程.本文已经收录在GitHub https://git ...

  2. [程序人生]那些IT界“活久见”的奇葩现象

    常言道,人活久了什么稀奇古怪的事都会见到.本文盘点几件刚毕业工作时想当然,工作若干年后啪啪打脸的“奇葩”事. (1)去年推荐一朋友来我们公司面试时,朋友说起当年她去某游戏公司时,那公司HR说这家公司是 ...

  3. 活久见: 原来 Chrome 浏览器支持 Import from 语法

    需要满足以下三个条件: 1.高版本的Chrome ,总而言之越新越好……,其他浏览器请参考:https://caniuse.com/#search=import 2.必须在服务器环境下才能运行,譬如a ...

  4. 活久见!Linux命令行居然也可以用来查看图像?

    在 Linux 中有很多 GUI 应用程序可以查看图像,但是这对经常使用命令行来工作的人可能会觉得很繁琐.今天要介绍的是 3 个实用的 CLI 图像查看器来在终端上查看图像,让那些使用 CLI 的朋友 ...

  5. 史上最全的maven pom.xml文件教程详解

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...

  6. (转)Maven pom.xml 配置详解

    背景:maven一直感觉既熟悉又陌生,归根结底还是自己不太熟. 1 什么是pom? pom作为项目对象模型.通过xml表示maven项目,使用pom.xml来实现.主要描述了项目:包括配置文件:开发者 ...

  7. maven pom文件详解

    http://www.blogjava.net/hellxoul/archive/2013/05/16/399345.html http://blog.csdn.net/houpengfei111/a ...

  8. 史上最全的Maven Pom文件标签详解

    <span style="padding:0px; margin:0px"><project xmlns="http://maven.apache.or ...

  9. Maven(四-2) Maven pom.xml 配置详解

    转载于:http://niuzhenxin.iteye.com/blog/2042102 什么是pom?    pom作为项目对象模型.通过xml表示maven项目,使用pom.xml来实现.主要描述 ...

随机推荐

  1. kubeadm join 超时报错 error execution phase kubelet-start: error uploading crisocket: timed out waiting for the condition

    解决: swapoff -a kubeadm reset systemctl daemon-reload systemctl restart kubelet iptables -F && ...

  2. e = e || window.event的区别及用法

    本文链接:https://blog.csdn.net/qq_41348029/article/details/81288481 e = e || window.event 在做事件处理时,用于区分IE ...

  3. selenium无界面执行和反爬

    selenium无界面执行和反爬 无界面执行 from selenium import webdriver from selenium.webdriver.chrome.options import ...

  4. Oracle SQL command slash

    We know that there is "commit" in oracle to submit all data in the session and used very c ...

  5. 【nodejs原理&源码赏析(1)】Express中间件系统的基本实现

    一直觉得express的中间件系统这种流式处理非常形象,就好像加工流水线一样,每个环节都在针对同一个产品的不同部分完成自己的工作,最后得到一个成品.今天就来实现一个简易的[中间件队列]. 一. API ...

  6. 188W+程序员关注过的问题:Java到底是值传递还是引用传递?

    在逛 Stack Overflow 的时候,发现了一些访问量像阿尔卑斯山一样高的问题,比如说这个:Java 到底是值传递还是引用传递?访问量足足有 188万+,这不得了啊!说明有很多很多的程序员被这个 ...

  7. 使用python实现http服务器

    主要使用python实现了一个http服务器.http服务器实现了用户的注册和登录的简单功能,当然还可以继续扩展. 数据的存储使用的是文件,有兴趣的话可以使用数据库进行存储.当然根据个人兴趣而定. 本 ...

  8. elasticSerach 知识学习

    一 介绍: ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于RESTful web接口.Elasticsearch是用Java语言开发的, ...

  9. [TimLinux] Python Django与WSGI的简介

    1. Web应用 web应用的最原始的访问流程: 客户端发送HTTP请求: 服务端接收到请求,生成一个HTML文档: 服务端将构造HTTP响应,包含:响应头(响应码.键值对).响应体(HTML文档) ...

  10. Codeforces Round #605 (Div. 3) E - Nearest Opposite Parity

    题目链接:http://codeforces.com/contest/1272/problem/E 题意:给定n,给定n个数a[i],对每个数输出d[i]. 对于每个i,可以移动到i+a[i]和i-a ...