摘要:
>git remote rm origin >git remote add origin git@git.mygit.com:zhangbaowei/my.git >git add . >git commit >git push -u origin master 阅读全文
摘要:
转自:http://blog.lichengwu.cn/java/2013/11/24/use-findbugs-code-review/ 介绍 Findbugs是一个代码静态分析工具,用来找出Java代码中的bug。通过分析字节码并与一组缺陷模式匹配,找出代码中的问题。 目前Findbugs支持除了java 8以外的所有版本编译的字节码文件分析。 Findbugs不仅提供了可视化界面,还有Ide... 阅读全文
摘要:
热部署有多种方案,下面的方案是其中的一种。 暂时还没找到一种令人满意的方案。 1,配置WEB Server 去这里 (https://tomcat.apache.org/download-90.cgi) 下载最新 tomcat 包, 我下的是 apache-tomcat-9.0.0.M17-windows-x64.zip 并解压到磁盘某个位置。 2,如下图配置 ... 阅读全文
摘要:
1, 2, 3, 4, 成功了 补充:】 也可以使用手动写配置文件的方式来的 阅读全文
摘要:
1,下载 https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.2-01-bundle.zip 2,解压 3,安装 复制到bin目录下 如下: 以管理员身份运行控制台 nexus install 提示成功 nexus start 完成 下面这个写得比我的详细, http://ww... 阅读全文
摘要:
1,Maven 面板 Root ,相当于 VS 中的 sln ? ,大概可以这样理解吧。 clean --> install 这样操作, 所有的项目都会被执行。 手工操作有点麻烦。换另一种方式 在控制台执行 mvn clean install -Dmaven.test.skip=true –X 与上面的命令相似的 mvn install -Dmave... 阅读全文
摘要:
1,下载Maven 从:https://maven.apache.org/download.cgi 其实两个都一样, 2,安装过程 解压你下载的包,随意放哪里都可以 ,假设 我放在了 D:\JavaTools\maven\apache-maven-3.3.9 。 3, 加入环境变量 TEST : 执行 mvn 应该可以看到如下提示 4,配置 1... 阅读全文
摘要:
Idea 设置 -DarchetypeCatalog=internal 然后再执行 : Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-webapp:1.0] found in catalog internal 阅读全文
摘要:
抄自: http://www.techweb.com.cn/network/system/2016-01-05/2252188.shtml @RestController spring4为了更方便的支持restfull应用的开发,新增了RestController的注解,比Controller注解多的功能就是给底下的RequestMapping方法默认都加上ResponseBody注解,... 阅读全文
摘要:
WebMvcConfigurerAdapter : WebApplicationInitializer :http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/WebApplicationInitializer.html AbstractDispatcherServletIni... 阅读全文