2018年3月15日
摘要: 整合SpringBoot ,Security ,Swagger. 阅读全文
posted @ 2018-03-15 15:47 darkcode 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1,项目构建 pom.xml 2,Spring MVC 配置 3,Web 配置 4,控制器 5,页面 6,打包部署到Tomcat,访问结果 简单Spring MVC Demo完成。 阅读全文
posted @ 2018-03-15 11:52 darkcode 阅读(212) 评论(0) 推荐(0) 编辑
  2018年3月6日
摘要: 操作 MongoDB CRUD 阅读全文
posted @ 2018-03-06 09:30 darkcode 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 在Java中使用MongoDB. 阅读全文
posted @ 2018-03-06 09:26 darkcode 阅读(588) 评论(0) 推荐(0) 编辑
  2017年7月13日
摘要: Maven web 项目中日志记录 1.pom.xml中引用 2.日志配置log4j.properties 3.代码中使用 阅读全文
posted @ 2017-07-13 11:38 darkcode 阅读(46783) 评论(0) 推荐(1) 编辑
  2017年6月30日
摘要: 1.Spring bean 1)编写各个实体类 Java 各个类,描述对象 2)声明spring的配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans 阅读全文
posted @ 2017-06-30 10:13 darkcode 阅读(134) 评论(0) 推荐(0) 编辑
  2017年6月5日
摘要: 1.Eclipse 新建maven 项目 2.Finish,index.jsp文件会提示错误,缺少依赖的问题,在pom.xml文件中添加依赖 3.添加tomcat插件 4. 运行项目 右键项目,run as -> maven build ... ,填写tomcat运行命令 5.查看运行 访问地址在控 阅读全文
posted @ 2017-06-05 16:47 darkcode 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1. Maven Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage 阅读全文
posted @ 2017-06-05 16:29 darkcode 阅读(143) 评论(0) 推荐(0) 编辑
  2017年2月16日
摘要: Java JDK的配置 阅读全文
posted @ 2017-02-16 09:35 darkcode 阅读(224) 评论(0) 推荐(0) 编辑
  2017年1月13日
摘要: 本文是自己开发中所遇到的问题,对一些及百度到的解决方案做一个记录。 DispatcherServlet配置文件 每次返回数据都被拦截返回成jsp文件,在控制器的方法上添加@ResponseBody注解解决返回页面问题; 页面接收json数据报错: The resource identified by 阅读全文
posted @ 2017-01-13 09:53 darkcode 阅读(2031) 评论(0) 推荐(0) 编辑