SSM开发环境搭建一条龙

1.创建一个maven工程
2.开始导入需要的jar包(http://mvnrepository.com)

<br /> <!--spring 的5个核心依赖 --><br /> <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans --><br /> <dependency><br /> <groupId>org.springframework</groupId><br /> <artifactId>spring-beans</artifactId><br /> <version>${springframework.version}</version><br /> </dependency><br /> <!--spring 的上下文依赖 --><br /> <dependency><br /> <groupId>org.springframework</groupId><br /> <artifactId>spring-context</artifactId><br /> <version>${springframework.version}</version><br /> </dependency><br /> <!--springMvc+spring web引入 --><br /> <dependency><br /> <groupId>org.springframework</groupId><br /> <artifactId>spring-web</artifactId><br /> <version>${springframework.version}</version><br /> </dependency><br /> <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --><br /> <dependency><br /> <groupId>org.springframework</groupId><br /> <artifactId>spring-webmvc</artifactId><br /> <version>${springframework.version}</version><br /> </dependency><br /> <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc --><br /> <dependency><br /> <groupId>org.springframework</groupId><br /> <artifactId>spring-jdbc</artifactId><br /> <version>${springframework.version}</version><br /> </dependency><br /> <!--mybatis相关的包 --><br /> <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis --><br /> <dependency><br /> <groupId>org.mybatis</groupId><br /> <artifactId>mybatis</artifactId><br /> <version>3.4.0</version><br /> </dependency><br /> <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring --><br /> <dependency><br /> <groupId>org.mybatis</groupId><br /> <artifactId>mybatis-spring</artifactId><br /> <version>1.2.3</version><br /> </dependency><br /> <!--druid --><br /> <!-- https://mvnrepository.com/artifact/com.alibaba/druid --><br /> <dependency><br /> <groupId>com.alibaba</groupId><br /> <artifactId>druid</artifactId><br /> <version>1.1.6</version><br /> </dependency><br /> <!--mysql --><br /> <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --><br /> <dependency><br /> <groupId>mysql</groupId><br /> <artifactId>mysql-connector-java</artifactId><br /> <version>5.1.30</version><br /> </dependency><br /> <!--lombok 考虑到实际代码可阅读性这里不做引入仅供参考 --><br /> <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --><br /> <!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.18</version> <scope>provided</scope> </dependency> --><br /> <!--jackson --><br /> <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-guava --><br /> <dependency><br /> <groupId>com.fasterxml.jackson.datatype</groupId><br /> <artifactId>jackson-datatype-guava</artifactId><br /> <version>2.9.0</version><br /> </dependency><br />

发表评论