01 2017 档案

摘要:1, 2, 3, 4, 成功了 补充:】 也可以使用手动写配置文件的方式来的 阅读全文
posted @ 2017-01-25 14:09 张保维 阅读(5942) 评论(1) 推荐(2)
摘要: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... 阅读全文
posted @ 2017-01-05 16:44 张保维 阅读(145) 评论(0) 推荐(0)
摘要:1,Maven 面板 Root ,相当于 VS 中的 sln ? ,大概可以这样理解吧。 clean --> install 这样操作, 所有的项目都会被执行。 手工操作有点麻烦。换另一种方式 在控制台执行 mvn clean install -Dmaven.test.skip=true –X 与上面的命令相似的 mvn install -Dmave... 阅读全文
posted @ 2017-01-04 17:54 张保维 阅读(22451) 评论(0) 推荐(0)
摘要:1,下载Maven 从:https://maven.apache.org/download.cgi 其实两个都一样, 2,安装过程 解压你下载的包,随意放哪里都可以 ,假设 我放在了 D:\JavaTools\maven\apache-maven-3.3.9 。 3, 加入环境变量 TEST : 执行 mvn 应该可以看到如下提示 4,配置 1... 阅读全文
posted @ 2017-01-04 17:29 张保维 阅读(334) 评论(0) 推荐(0)
摘要:Idea 设置 -DarchetypeCatalog=internal 然后再执行 : Archetype repository not defined. Using the one from [org.apache.maven.archetypes:maven-archetype-webapp:1.0] found in catalog internal 阅读全文
posted @ 2017-01-04 14:03 张保维 阅读(910) 评论(0) 推荐(0)
摘要:抄自: http://www.techweb.com.cn/network/system/2016-01-05/2252188.shtml @RestController spring4为了更方便的支持restfull应用的开发,新增了RestController的注解,比Controller注解多的功能就是给底下的RequestMapping方法默认都加上ResponseBody注解,... 阅读全文
posted @ 2017-01-04 11:21 张保维 阅读(1625) 评论(0) 推荐(0)
摘要:WebMvcConfigurerAdapter : WebApplicationInitializer :http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/WebApplicationInitializer.html AbstractDispatcherServletIni... 阅读全文
posted @ 2017-01-04 11:12 张保维 阅读(126) 评论(0) 推荐(0)
摘要:在1中随意写code , 在 2中 会提示 com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: No matching constant for [1] at com.google.common.cache.LocalCache$Segmen... 阅读全文
posted @ 2017-01-03 14:29 张保维 阅读(2951) 评论(0) 推荐(0)