标签:cat end depend 官网 nec http idea mave connector
这是一个我在github上看到的开源项目,采用的技术都是较新的技术
Vue
SpringBoot
mybatis
rabbitMQ
Docker
idea
HbuilderX
安装Vue
上vue官网https://vuejs.org/下载vue.js,并且将他复制到项目目录下,并在script标签引用
创建SpringBoot项目
首先安装maven然后在idea创建web项目,并在pom.xml中引入下列依赖
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.7.RELEASE</version> </parent> <dependencies> <!--引入springboot的web支持,帮你封装好了很多个依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!--springboot中集成jsp,下面三个 注意scope属性影响打war包--> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId> <scope>provided</scope> </dependency> <!--springboot整合mybatis,阿里的数据源,mysql或者Oracle--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.1</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.12</version> </dependency> <!--<dependency>--> <!--<groupId>com.oracle</groupId>--> <!--<artifactId>ojdbc6</artifactId>--> <!--<version>6.0</version>--> <!--</dependency>--> <!--<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency>--> <!-- fastjson格式转换 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.15</version> </dependency> <!--引入springboot测试依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!--引入lombok--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.8</version> <scope>provided</scope> </dependency> <!--引入devtools全局热部署,谨慎使用,和redis反序列化有缓存冲突,反序列化时报错--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency> <!--引入jedis--> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> <!-- 引入一个工具包 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.4</version> </dependency> </dependencies>
然后启动项目即可,
使用Docker部署项目:https://github.com/macrozheng/mall-learning/blob/master/docs/reference/linux_install.md
写的很详细清楚
标签:cat end depend 官网 nec http idea mave connector
原文地址:https://www.cnblogs.com/jinsheng1027/p/12232927.html