- 如何从Angularjs 升级到 Angular(译文)
快乐2020
原文:UpgradingfromAngularJStoAngularAuthor:AngularJS官方译者:philoenglish.com团队关键字:AngularjsAngularAngular1.xAngular2.xmigration迁移,升级这里的Angular是指Angular2.x,而AngularJS是指AngularJS1.x版本。Angular(通常是指"Angular2+"
- js、ts、argular、nodejs学习心得
海棠如醉
web技术web
工作中需要前端argular开发桌面程序,后端用nodejs开发服务器,商用软件架构AngularJS诞生于2009年,由MiskoHevery等人创建,是一款构建用户界面的前端框架,后为Google所收购。[3]Angular是AngularJS的重写,Angular2以后官方命名为Angular,2.0以前版本称为AngularJS。AngularJS是用JavaScript编写,而Angul
- Angular2-自定义指令@Directive
小处成就大事
Angular
我们按照下面的步骤一步一步带着思考去学习,相信很容易就能掌握Angular自定义指令,废话不多少,开始学习,你准备好来吗?概述所谓指令就是用于改变一个DOM元素的外观或行为,Angular2为我们封装了很多的内置指令,项目中也无时无刻不在使用指令,Angular2中有三类指令(1).结构型指通过添加和移除DOM元素改变DOM布局的指令,例如:Ngif和Ngfor(2).属性型指令改变元素、组件或其
- angular2-directives指令
页神建辑-思而后学
angular2angular2
属性型指令创建一个自定义hightlight指令示例。import{Directive,ElementRef,HostListener}from'@angular/core';@Directive({selector:'[appHighlight]'})exportclassHighlightDirective{constructor(privateel:ElementRef){}@HostLis
- 开发者要如何跟上快速迭代的技术变化
java成功之路
总的来说,科技发展的迅速是一件令人兴奋的事情。但如果站在一个技术开发者的角度去看的话,反而是一件心累的事儿,因为想要跟上科技更新的脚步并不是一件容易的事。Javascript就是一个典型的列子。Javascript变得越来越流行,所以大大小小的相关创新一直是层出不穷的,它们相互竞争,最后淘汰掉落后的那个。“你知道Angular1推出了吗?你不知道Angular2已经过时了吗?最近连Angular4
- angular项目引用 element-angular
MAYDAY77
1、安装element开发指南提供的安装方式:npmi--saveelement-angular2、引入在app.module.ts中引入,imports中不要忘记写。这样就可以直接在根模块中直接使用了。但是要想在子模块中使用element组件,必须在子模块query.module.ts中再次引入,imports中不要忘记写。这样子组件中也能使用了。
- Angular2中如何使用jquery
杀个程序猿祭天
Angular2中如何使用jqueryAngular2是以TypeScript语言作为默认编码语言,所以你看到的全部都是.ts结尾的文件。那什么是TypeScript首先,它是一个编译型语言;既然是编译型,那么你像重构、导航、智能提醒这种工具属性就可以发挥出来,所以你会发现使用VSCODE来写Angular简直就是绝配。同时,TypeScript还带来一些ES6/7才有特性,比如let、const
- Angular2,Springboot,Zuul,Shiro跨域CORS请求踩坑实录
weixin_30564901
javascriptjava前端ViewUI
前言:前后端分离,业务分离,网关路由等已经成为当下webapplication开发的流行趋势。前端以单页面路由为核心的框架为主体,可以单独部署在nodejs或nginx上。后端以springboot为代表的分布式微服务框架为主体,可以独立运行在任何端口上。相互通过符合restful规范的接口访问或数据交换。在这样的开发模式下,首先需要解决的就是由于跨域而引起的访问,cookie传递以及权限管理问题
- RxJS 核心概念之Subject
Alex__Gong
angular2RxJSangular2+
本文出处:https://segmentfault.com/a/1190000005069851,我做了一部分修改我们在接触到RxJS的时候,不免会有点晕头转向的感觉,对于什么是Subject,什么是Observer,什么是Observable,总感觉晕乎乎的。下面我引用一篇为自认为比较通俗易懂的博文,再加上自己的描述来给大家解释下,弄明白之后对于学习Angular2+有很大的帮助,因为在angu
- Angular2 发布思路
杀个程序猿祭天
Angular2发布思路本文是按着ng2官网的高级内容“Deployment”的思路整理得出的,原文虽然在angular2的中文站下挂着,截止目前却还是英文版未翻译,笔者就在这里结合自己的理解给出原文的一点点整理。这是原文地址:https://angular.cn/docs/ts/latest/guide/deployment.html1.最简单的发布流程最简单指的是开发完成好一个ng2应用后,做
- angular2+导出excel表格
点沙微痕
1、安装插件npminstallfile-saver--savenpminstallxlsx--save2、在需要使用的ts文件中引入以下代码import*asFileSaverfrom'file-saver';import*asXLSXfrom'xlsx';3、导出json格式数据为excel表格exportExcel(){//设置表格样式,!cols为列宽constoptions={'!col
- AngularJs中的模块定义,一个页面加载多个ng-app
TryCatch菌
AngularJs中的模块定义,一个页面加载多个ng-app基于AngularJS入门与进阶(江荣波著)这本书的笔记AngularJS1.x的demoAngularJS1.x和Angular2,4,5是不一样的两个东西,构建方式,语法,都很多不同AngularJS模块的定义//定义一个无依赖模块angular.module('appModule',[]);//定义一个依赖module1、modul
- [PWA] Keynote: Progressive Web Apps across all frameworks
weixin_30252709
javascriptwebpackViewUI
PWA:AddtohomescreenAngularUniversalServersiderendering:forachievingbetterproferenceoninitloadingAngular2CLIngnewmyapp--mobilesw-precache:withwebpack:sw-toolbox:runtimecachingangular2materialdesign:*sh
- 分享72个NodeJs项目源码总有一个是你想要的
亚丁号
开发语言
分享72个NodeJs项目源码总有一个是你想要的学习知识费力气,收集整理更不易。知识付费甚欢喜,为咱码农谋福利。链接:https://pan.baidu.com/s/1_bzxbmBlN8ga4-Ci1I0-0w?pwd=6666提取码:6666项目名称AlotterywebapponNode.jsbasicswithExpress.Nodejs彩票项目Angular2种子项目KoaHub.js-
- 分享72个NodeJs项目源码总有一个是你想要的
记忆的小河
开发语言
分享72个NodeJs项目源码总有一个是你想要的学习知识费力气,收集整理更不易。知识付费甚欢喜,为咱码农谋福利。链接:https://pan.baidu.com/s/1_bzxbmBlN8ga4-Ci1I0-0w?pwd=6666提取码:6666项目名称AlotterywebapponNode.jsbasicswithExpress.Nodejs彩票项目Angular2种子项目KoaHub.js-
- 分享72个NodeJs项目源码总有一个是你想要的
自动化新人
开发语言
分享72个NodeJs项目源码总有一个是你想要的学习知识费力气,收集整理更不易。知识付费甚欢喜,为咱码农谋福利。链接:https://pan.baidu.com/s/1_bzxbmBlN8ga4-Ci1I0-0w?pwd=6666提取码:6666项目名称AlotterywebapponNode.jsbasicswithExpress.Nodejs彩票项目Angular2种子项目KoaHub.js-
- Angular2使用G2画图表
Will_板凳
安装G2包npminstall@antv/g2--save在使用的组件中importimport*asG2from'@antv/g2';HTMLTSimport{Component,OnInit,Input,ElementRef}from"@angular/core";import*asG2from'@antv/g2';@Component({selector:'barChart-componen
- angular2中 如何引入一个公共的方法模块(新排版) 2021-07-19
追逐繁星的阿忠
写在开篇:可能与你需要的应用场景或多或少有区别,不过思路大体上是通用的;业务场景:当用户点击会员信息或者商品时,弹出对应的会员关键信息,弹出商品的关键信息。与其相关的界面有十多个,而且是需要单独调用接口去后台获取数据的。项目环境:ng4+解决思路:1.写一个工具类函数,主要介绍一下语法和怎么设计2.界面如何调用这个公共的函数(1.对应ts应用,2.对应界面调用)3.如何呈现给用户(这里提供一种解决
- angular2打包项目上传服务器
杀个程序猿祭天
1.在本地新建ng2项目,开发目录2.现在开始对上面的代码进行打包处理(命令ngbuild--prod--aot或者ngbuild--prod)3.然后再看看我们的项目目录,此时多了一个dist文件夹:这个dist文件夹里面就是我们所需要的最终的用来发布的项目了,我们通过tfp,将这个dist文件夹里面的内容放到我们的主机上就可以了;然后访问我们的主机,就可以看到正常的项目了;
- Angular 2 学习笔记
吴杼恩
前端
Angular2应用主要由以下几个部分组成:1、模块(Modules):2、组件(Components):3、模板(Templates):4、元数据(Metadata):5、数据绑定(DataBinding)6、指令(Directives)7、服务(Services):8、依赖注入(DependencyInjection)9、路由(Route):建立URL路径和组件之间的对应关系,根据不同的URL
- Angular2+ 集成ngx-echarts
boskt
注:github:https://github.com/xieziyu/ngx-echarts官方网站:https://xieziyu.github.io/ngx-echarts/#/homeecharts图表实例参考:http://echarts.baidu.com/examples/1.通过使用npm进行引入相关依赖npminstallecharts-Snpminstallngx-echart
- Angular2+ 如何向不关联组件传入数据
Evan不懂前端
开发语言javascript
前言众所周知,Angular2+向子组件传递数据用@Input(),子组件向父组件传递数据用@Output()。现在因为项目需求,需要在Angular2+的不关联组件中传递数据,本文详细介绍了具体步骤和代码。步骤1.在service文件添加如下代码privateidSubject:BehaviorSubject=newBehaviorSubject(null);publicid=this.idSu
- angular2 php 教程,如何使用angular2模块与共享模块
weixin_39519619
angular2php教程
这次给大家带来如何使用angular2模块与共享模块,使用angular2模块与共享模块的注意事项有哪些,下面就是实战案例,一起来看一下。创建模块,用到了共享模块PostSharedModule,共享模块里面包含了2个公用的模块:文章管理模块和评论管理模块1,创建一个模块testmodule.module.tsimport{CommonModule}from'@angular/common';im
- angular共享模块的使用
alisaGreen
angularjs2
这里的共享模块的书写形式是看了大漠大神的nicefish后弄出来的,熟悉了angular2后再去看大神的项目感觉不一样了现在来说明一下怎么运用1.先来看页面框架2.确定有两个懒加载路由,为两个父级目录加上导航条app.module.ts路由加载constroutes:Routes=[{path:”,redirectTo:‘setting’,pathMatch:‘full’},{path:‘sett
- Infragistics Adds Support for Angular 17
SEO-狼术
netDelphiCrackangular.js前端javascript
InfragisticsAddsSupportforAngular17IgniteUIforAngular23.1(17.0.0)takesadvantageoftheperformancerelatedoptimizationsinthelatestAngularrelease.InfragisticsIgniteUIforAngularisacomprehensivelibraryofAngu
- 如何用webstorm创建Angular项目
代码的克星
下载安装webstorm:配置成功:配置成功后就可以开启webstorm项目了。在webstorm下配置node环境:配置好后可以用webStorm创建项目了。1.首先需要创建一个project。可以看到图片上有两个关于Angular的选择。一个是AngularJS,这个创建的是基于Angular1.0版本类的project。另一个AngularCLI创建的才是基于Angular2.0的项目。We
- TypeScript简单介绍
nimw
1.TypeScript介绍1.1初识TypeScriptTypeScript是微软开发的一门编程语言,是JavaScript的一个超集。TypeScript扩展了JavaScript的语法,添加了一些新的遵循ES6规范的语法,具有基于类的面向对象编程的特性。任何已经存在的JavaScript程序可以不加任何改动的在TypeScript运行环境下运行。Angular2框架使用TypeScript编
- 关于angular2+的dev mode
avery1
angular2+本地ngserve启动起来的时候一般都是developmentmode。控制台会有如下提示。一般本地是用developmentmode。当我们发布出去到test,stg和prod环境的时候需要开启prodmode也就是控制台里提示的enableProdMode。在项目里有哪些地方进行这些控制,我们来看看。environment.ts首先我们src目录下有个environments
- 简述基于JavaEE企业级开发技术(Spring)(1)
5pace
java-eejava开发语言
一、绪论1、学习内容javaEE企业开发技术概述javaEE容器——SpringORM数据层——MyBatis/JPAWeb层——SpringMVC展现层——JSP/Thymeleaf整合框架——SSM/SSH用户模块分析用户模块+功能模块设计前端框架:Bootstrap,NodeJS,Vue/React/Angular2、WEB端开发发展历程(java)CGI——每次请求产生一个进程,重量级。S
- Angular CLI简介2
天马3798
Angular2AngularCLI简介2
本文整理AngularCLI的常用命令我们在使用Angular2项目时,直接使用官网提供的基础配置文件,在NodeJS下面就可以生成一个新的ng2项目,但是这样非常不便利,每次都要新建目录,复制配置文件,使用Node命令安装支持库,最后才是写代码。Angular-cli就是用来简化这一操作的,而且官方配置文件不包含打包命令,对于新手来说,对System打包和webpack打包都不熟悉的情况下,使用
- Hadoop(一)
朱辉辉33
hadooplinux
今天在诺基亚第一天开始培训大数据,因为之前没接触过Linux,所以这次一起学了,任务量还是蛮大的。
首先下载安装了Xshell软件,然后公司给了账号密码连接上了河南郑州那边的服务器,接下来开始按照给的资料学习,全英文的,头也不讲解,说锻炼我们的学习能力,然后就开始跌跌撞撞的自学。这里写部分已经运行成功的代码吧.
在hdfs下,运行hadoop fs -mkdir /u
- maven An error occurred while filtering resources
blackproof
maven报错
转:http://stackoverflow.com/questions/18145774/eclipse-an-error-occurred-while-filtering-resources
maven报错:
maven An error occurred while filtering resources
Maven -> Update Proje
- jdk常用故障排查命令
daysinsun
jvm
linux下常见定位命令:
1、jps 输出Java进程
-q 只输出进程ID的名称,省略主类的名称;
-m 输出进程启动时传递给main函数的参数;
&nb
- java 位移运算与乘法运算
周凡杨
java位移运算乘法
对于 JAVA 编程中,适当的采用位移运算,会减少代码的运行时间,提高项目的运行效率。这个可以从一道面试题说起:
问题:
用最有效率的方法算出2 乘以8 等於几?”
答案:2 << 3
由此就引发了我的思考,为什么位移运算会比乘法运算更快呢?其实简单的想想,计算机的内存是用由 0 和 1 组成的二
- java中的枚举(enmu)
g21121
java
从jdk1.5开始,java增加了enum(枚举)这个类型,但是大家在平时运用中还是比较少用到枚举的,而且很多人和我一样对枚举一知半解,下面就跟大家一起学习下enmu枚举。先看一个最简单的枚举类型,一个返回类型的枚举:
public enum ResultType {
/**
* 成功
*/
SUCCESS,
/**
* 失败
*/
FAIL,
- MQ初级学习
510888780
activemq
1.下载ActiveMQ
去官方网站下载:http://activemq.apache.org/
2.运行ActiveMQ
解压缩apache-activemq-5.9.0-bin.zip到C盘,然后双击apache-activemq-5.9.0-\bin\activemq-admin.bat运行ActiveMQ程序。
启动ActiveMQ以后,登陆:http://localhos
- Spring_Transactional_Propagation
布衣凌宇
springtransactional
//事务传播属性
@Transactional(propagation=Propagation.REQUIRED)//如果有事务,那么加入事务,没有的话新创建一个
@Transactional(propagation=Propagation.NOT_SUPPORTED)//这个方法不开启事务
@Transactional(propagation=Propagation.REQUIREDS_N
- 我的spring学习笔记12-idref与ref的区别
aijuans
spring
idref用来将容器内其他bean的id传给<constructor-arg>/<property>元素,同时提供错误验证功能。例如:
<bean id ="theTargetBean" class="..." />
<bean id ="theClientBean" class=&quo
- Jqplot之折线图
antlove
jsjqueryWebtimeseriesjqplot
timeseriesChart.html
<script type="text/javascript" src="jslib/jquery.min.js"></script>
<script type="text/javascript" src="jslib/excanvas.min.js&
- JDBC中事务处理应用
百合不是茶
javaJDBC编程事务控制语句
解释事务的概念; 事务控制是sql语句中的核心之一;事务控制的作用就是保证数据的正常执行与异常之后可以恢复
事务常用命令:
Commit提交
- [转]ConcurrentHashMap Collections.synchronizedMap和Hashtable讨论
bijian1013
java多线程线程安全HashMap
在Java类库中出现的第一个关联的集合类是Hashtable,它是JDK1.0的一部分。 Hashtable提供了一种易于使用的、线程安全的、关联的map功能,这当然也是方便的。然而,线程安全性是凭代价换来的――Hashtable的所有方法都是同步的。此时,无竞争的同步会导致可观的性能代价。Hashtable的后继者HashMap是作为JDK1.2中的集合框架的一部分出现的,它通过提供一个不同步的
- ng-if与ng-show、ng-hide指令的区别和注意事项
bijian1013
JavaScriptAngularJS
angularJS中的ng-show、ng-hide、ng-if指令都可以用来控制dom元素的显示或隐藏。ng-show和ng-hide根据所给表达式的值来显示或隐藏HTML元素。当赋值给ng-show指令的值为false时元素会被隐藏,值为true时元素会显示。ng-hide功能类似,使用方式相反。元素的显示或
- 【持久化框架MyBatis3七】MyBatis3定义typeHandler
bit1129
TypeHandler
什么是typeHandler?
typeHandler用于将某个类型的数据映射到表的某一列上,以完成MyBatis列跟某个属性的映射
内置typeHandler
MyBatis内置了很多typeHandler,这写typeHandler通过org.apache.ibatis.type.TypeHandlerRegistry进行注册,比如对于日期型数据的typeHandler,
- 上传下载文件rz,sz命令
bitcarter
linux命令rz
刚开始使用rz上传和sz下载命令:
因为我们是通过secureCRT终端工具进行使用的所以会有上传下载这样的需求:
我遇到的问题:
sz下载A文件10M左右,没有问题
但是将这个文件A再传到另一天服务器上时就出现传不上去,甚至出现乱码,死掉现象,具体问题
解决方法:
上传命令改为;rz -ybe
下载命令改为:sz -be filename
如果还是有问题:
那就是文
- 通过ngx-lua来统计nginx上的虚拟主机性能数据
ronin47
ngx-lua 统计 解禁ip
介绍
以前我们为nginx做统计,都是通过对日志的分析来完成.比较麻烦,现在基于ngx_lua插件,开发了实时统计站点状态的脚本,解放生产力.项目主页: https://github.com/skyeydemon/ngx-lua-stats 功能
支持分不同虚拟主机统计, 同一个虚拟主机下可以分不同的location统计.
可以统计与query-times request-time
- java-68-把数组排成最小的数。一个正整数数组,将它们连接起来排成一个数,输出能排出的所有数字中最小的。例如输入数组{32, 321},则输出32132
bylijinnan
java
import java.util.Arrays;
import java.util.Comparator;
public class MinNumFromIntArray {
/**
* Q68输入一个正整数数组,将它们连接起来排成一个数,输出能排出的所有数字中最小的一个。
* 例如输入数组{32, 321},则输出这两个能排成的最小数字32132。请给出解决问题
- Oracle基本操作
ccii
Oracle SQL总结Oracle SQL语法Oracle基本操作Oracle SQL
一、表操作
1. 常用数据类型
NUMBER(p,s):可变长度的数字。p表示整数加小数的最大位数,s为最大小数位数。支持最大精度为38位
NVARCHAR2(size):变长字符串,最大长度为4000字节(以字符数为单位)
VARCHAR2(size):变长字符串,最大长度为4000字节(以字节数为单位)
CHAR(size):定长字符串,最大长度为2000字节,最小为1字节,默认
- [强人工智能]实现强人工智能的路线图
comsci
人工智能
1:创建一个用于记录拓扑网络连接的矩阵数据表
2:自动构造或者人工复制一个包含10万个连接(1000*1000)的流程图
3:将这个流程图导入到矩阵数据表中
4:在矩阵的每个有意义的节点中嵌入一段简单的
- 给Tomcat,Apache配置gzip压缩(HTTP压缩)功能
cwqcwqmax9
apache
背景:
HTTP 压缩可以大大提高浏览网站的速度,它的原理是,在客户端请求网页后,从服务器端将网页文件压缩,再下载到客户端,由客户端的浏览器负责解压缩并浏览。相对于普通的浏览过程HTML ,CSS,Javascript , Text ,它可以节省40%左右的流量。更为重要的是,它可以对动态生成的,包括CGI、PHP , JSP , ASP , Servlet,SHTML等输出的网页也能进行压缩,
- SpringMVC and Struts2
dashuaifu
struts2springMVC
SpringMVC VS Struts2
1:
spring3开发效率高于struts
2:
spring3 mvc可以认为已经100%零配置
3:
struts2是类级别的拦截, 一个类对应一个request上下文,
springmvc是方法级别的拦截,一个方法对应一个request上下文,而方法同时又跟一个url对应
所以说从架构本身上 spring3 mvc就容易实现r
- windows常用命令行命令
dcj3sjt126com
windowscmdcommand
在windows系统中,点击开始-运行,可以直接输入命令行,快速打开一些原本需要多次点击图标才能打开的界面,如常用的输入cmd打开dos命令行,输入taskmgr打开任务管理器。此处列出了网上搜集到的一些常用命令。winver 检查windows版本 wmimgmt.msc 打开windows管理体系结构(wmi) wupdmgr windows更新程序 wscrip
- 再看知名应用背后的第三方开源项目
dcj3sjt126com
ios
知名应用程序的设计和技术一直都是开发者需要学习的,同样这些应用所使用的开源框架也是不可忽视的一部分。此前《
iOS第三方开源库的吐槽和备忘》中作者ibireme列举了国内多款知名应用所使用的开源框架,并对其中一些框架进行了分析,同样国外开发者
@iOSCowboy也在博客中给我们列出了国外多款知名应用使用的开源框架。另外txx's blog中详细介绍了
Facebook Paper使用的第三
- Objective-c单例模式的正确写法
jsntghf
单例iosiPhone
一般情况下,可能我们写的单例模式是这样的:
#import <Foundation/Foundation.h>
@interface Downloader : NSObject
+ (instancetype)sharedDownloader;
@end
#import "Downloader.h"
@implementation
- jquery easyui datagrid 加载成功,选中某一行
hae
jqueryeasyuidatagrid数据加载
1.首先你需要设置datagrid的onLoadSuccess
$(
'#dg'
).datagrid({onLoadSuccess :
function
(data){
$(
'#dg'
).datagrid(
'selectRow'
,3);
}});
2.onL
- jQuery用户数字打分评价效果
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/5.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery用户数字打分评分代码 - HoverTree</
- mybatis的paramType
kerryg
DAOsql
MyBatis传多个参数:
1、采用#{0},#{1}获得参数:
Dao层函数方法:
public User selectUser(String name,String area);
对应的Mapper.xml
<select id="selectUser" result
- centos 7安装mysql5.5
MrLee23
centos
首先centos7 已经不支持mysql,因为收费了你懂得,所以内部集成了mariadb,而安装mysql的话会和mariadb的文件冲突,所以需要先卸载掉mariadb,以下为卸载mariadb,安装mysql的步骤。
#列出所有被安装的rpm package rpm -qa | grep mariadb
#卸载
rpm -e mariadb-libs-5.
- 利用thrift来实现消息群发
qifeifei
thrift
Thrift项目一般用来做内部项目接偶用的,还有能跨不同语言的功能,非常方便,一般前端系统和后台server线上都是3个节点,然后前端通过获取client来访问后台server,那么如果是多太server,就是有一个负载均衡的方法,然后最后访问其中一个节点。那么换个思路,能不能发送给所有节点的server呢,如果能就
- 实现一个sizeof获取Java对象大小
teasp
javaHotSpot内存对象大小sizeof
由于Java的设计者不想让程序员管理和了解内存的使用,我们想要知道一个对象在内存中的大小变得比较困难了。本文提供了可以获取对象的大小的方法,但是由于各个虚拟机在内存使用上可能存在不同,因此该方法不能在各虚拟机上都适用,而是仅在hotspot 32位虚拟机上,或者其它内存管理方式与hotspot 32位虚拟机相同的虚拟机上 适用。
- SVN错误及处理
xiangqian0505
SVN提交文件时服务器强行关闭
在SVN服务控制台打开资源库“SVN无法读取current” ---摘自网络 写道 SVN无法读取current修复方法 Can't read file : End of file found
文件:repository/db/txn_current、repository/db/current
其中current记录当前最新版本号,txn_current记录版本库中版本