课程一:开发环境搭建IDE === **目录索引:** - 下载项目导入 - 创建数据库初始化数据 - jeewx-boot项目结构 - jeewx-boot架构讲解 - jeewx-boot配置文件 - IDEA启动项目 ## **开发环境搭建IDE** * 1.下载jeewx-boot项目到本地 配置好相关环境变量导入jeewx-boot 点击Clone or download,可以选择Download下载zip包,也可以选择Git链接直接在IDEA中Clone方便更新 拷贝链接在IDEA中使用Git打开 ![](https://img.kancloud.cn/29/0d/290d7183f282ea518c448f876b28f6cb_793x498.png) ***或者*** ![](https://img.kancloud.cn/31/82/31823d9fcb3ff5d0cde6f4c880e66923_608x388.png) 下载完成后在本地解压压缩包 ![](https://img.kancloud.cn/59/19/5919e462a6791f99047d1cb18c7b5d65_434x330.png) 选择解压的项目 ![](https://img.kancloud.cn/be/81/be8105ef9ad584ea051299a21fbd2889_552x311.png) 选择maven工程 ![](https://img.kancloud.cn/b8/8c/b88cde19b5ecf37e7ad449a9ce57f8de_384x204.png) 之后一直点击next就可以了 导入成功项目截图 ![](https://img.kancloud.cn/83/3e/833e4789cfdc823e7ca6be82e18b196a_352x335.png) * **2.jeewx-boot项目数据库初始化:** 新建一个数据库,运行解压项目下的sql文件 ![](https://img.kancloud.cn/96/7a/967ac85b7aa527fdc468b0309e99df31_991x378.png) 运行后刷新数据库,项目数据库初始化完成 **3.jeewx-boot项目说明 :** | 项目名 | 中文名 | 备注 | |----------|:-------------:|------:| | jeewx-boot-start | 启动项目 | | | jeewx-boot-base-system | 系统用户管理模块 | | | jeewx-boot-module-weixin | 微信公众号管理 | | | jeewx-boot-module-api | 共通业务API接口 | | | huodong/jeewx-boot-module-goldenegg | 砸金蛋活动 | | **4.jeewx-boot架构讲解:** - 采用SpringBoot2.1.3 + Mybatis + Velocity 框架技术 - 启动项目,执行下面启动类 ``` jeewx-boot-start/src/main/java/com/jeecg/JeewxBootApplication.java 登录账号密码: admin\123456 ``` - 页面采用模板语言Velocity - 插件式开发,每个模块独立打成jar **5.jeewx-boot配置文件:** - 1、数据库文件 ``` jeewx-boot-start/src/main/resources/application.yml ``` 数据库配置: ![](https://img.kancloud.cn/be/fd/befd8f12a479279f925d29919ee812a1_846x528.png) - 2、redis配置: ![](https://img.kancloud.cn/3a/2c/3a2cff84b83c1e78045a2db7b9467ab9_442x247.png) - 3、微信域名配置 ``` jeewx-boot-start/src/main/resources/jeewx.properties ``` ![](https://img.kancloud.cn/31/b8/31b894022db1f472d1346d5b39110d85_550x408.png) - 4、maven依赖下载失败,请配置镜像 找到 maven老家 conf/settings.xml 在标签内增加下面方式的阿里云maven镜像(删除自己的镜像配置), 最终结果见下面: ``` <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>*,!jeecg,!jeecg-snapshots</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> </mirrors> ``` - 5、阿里云存储(重要)、短信、邮箱配置: 参考文档: [开发环境搭建-入门必读](http://doc.jeewx.com/1414959) **6.IDEA启动项目:** 运行项目前先在IDEA中使用maven工程下载依赖 ![](https://img.kancloud.cn/f8/10/f810dd58634dadfc8c0542d7ae48453d_480x413.png) 再右键执行启动类 ![](https://img.kancloud.cn/c4/ba/c4ba93710fce5c4568c3dc7a8d451ecd_1341x541.png)