摘要: 1,Maven 面板 Root ,相当于 VS 中的 sln ? ,大概可以这样理解吧。 clean --> install 这样操作, 所有的项目都会被执行。 手工操作有点麻烦。换另一种方式 在控制台执行 mvn clean install -Dmaven.test.skip=true –X 与上面的命令相似的 mvn install -Dmave... 阅读全文
posted @ 2017-01-04 17:54 张保维 阅读(22359) 评论(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 张保维 阅读(323) 评论(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 张保维 阅读(876) 评论(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 张保维 阅读(1609) 评论(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 张保维 阅读(119) 评论(0) 推荐(0) 编辑