随笔分类 - 常见问题
摘要:创建一个txt文本,文本采用的编码格式是ANSI,首先FileInputStream从a.txt文件读取,并且一个字节一个字节传给InputStreamReader,当返回三个字节时(UTF-8是三个字节为1个汉字),FileInputStream就去UTF-8表中找所对应的中文汉字。结果显而易见,
阅读全文
摘要:添加到本地包命名 mvn install:install-file -Dfile=F:/common-auth/target/common-auth-0.0.1-SNAPSHOT-core.jar -DgroupId=com.cloud -DartifactId=common-auth -Dvers
阅读全文
摘要:spring cloud 在初次使用 hystrix dashboard仪表盘的时候很容易出现hystrix dashboard Unable to connect to Command Metric Stream错误 如下图: 首先查看依赖时候添加全 <dependency> <groupId>o
阅读全文
摘要:1、找gradle 安装目录下的 gradle 2、修改 DEFAULT_JVM_OPTS="-Dfile.encoding=UTF-8" #在build.gradle文件中加入 tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } 转
阅读全文
摘要:问题:Description Resource Path Location TypeJava compiler level does not match the version of the installed Java project facet. hotnet_manage Unknown Fa
阅读全文
摘要:只有webapps 修改eclipse 默认的 发布位置改为 tomcat的安装位置 eclipse 默认的web-content 改为webroot ,发布后web-inf目录下才会有webroot文件夹
阅读全文
摘要: 把重复代码删除一条就可以了。
阅读全文
摘要:在项目的pom.xml文件添加如下两段 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>1.5.7.RELEASE</ver
阅读全文
摘要:Ctrl+Shift + Enter,语句完成“!”,否定完成,输入表达式时按 “!”键Ctrl+E,最近的文件Ctrl+Shift+E,最近更改的文件Shift+Click,可以关闭文件Ctrl+[ OR ],可以跑到大括号的开头与结尾Ctrl+F12,可以显示当前文件的结构Ctrl+F7,可以查
阅读全文
摘要:java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException at java.lang.Class.getDeclaredMethods0(Native Meth
阅读全文