0%

tmall-ssm

模仿天猫整站 SSM版项目

开发环境

  • IDE:IntelliJ IDEA 2021.2 (Ultimate Edition)
    Build #IU-212.4746.92, built on July 27, 2021
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Windows 10 10.0
    GC: G1 Young Generation, G1 Old Generation
    Memory: 1008M
    Cores: 8
  • maven:apache-maven-3.8.1

添加spring框架依赖:

1
2
3
4
5
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.3.9</version>
</dependency>

添加spring-webmvc以后基本上包含了spring framework的内容

添加mybatis依赖

1
2
3
4
5
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.0.6</version>
</dependency>

问题

java源码编写:

  • 自动装箱及使用场景

spring:

  • autowired

mybatis:

  • resultType
  • keyProperty
  • useGenerateKeys
  • parameterType
  • #{}
  • 整合spring
  • typeAliases