Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
69 lines (50 loc) · 2.3 KB

File metadata and controls

69 lines (50 loc) · 2.3 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Maven 的单模块 / 多模块之 Spring MVC + Spring + Mybatis 项目讲解

初衷

  • 为了更加明了地展示 IntelliJ IDEA 的设置,本章教程为视频教程
  • 本章展示 IntelliJ IDEA 高度集成化的效果,降低 IntelliJ IDEA 入门时间

视频下载

开发环境

  • JDK 7(理论上支持 JDK 6、JDK 7、JDK 8)
  • Mysql 5.6
  • Maven 3.1.1
  • Tomcat 7
  • Git 2.7.0.2-64-bit
  • IntelliJ IDEA 15.0.4
  • 所有编码:UTF-8

演示内容



  • 项目设置:
    • 项目 JDK 设置
    • 项目 Facet 加入 Spring 配置

  • 代码相关:
    • 简单讲解 pom.xml 文件
    • 用 IntelliJ IDEA 的 Database 初始化数据库
    • 单元测试
    • 启动 Tomcat 加上 Make Project 事件
    • 访问 Controller 演示 Debug
    • 讲解 Controller 中代码左侧的各个按钮效果
    • JSP 页面直接点击请求地址直接跳转到 Controller
    • 静态资源映射特别提醒下,比如你做图片上传等等,如果你没有映射好可能都会遇到 404
    • 查看 Druid 提供监控
    • 演示用 Mybatis 插件自动生成代码
Morty Proxy This is a proxified and sanitized view of the page, visit original site.