Carp后端开发文档
Carp后端开发文档
一、准备工作
(1)JDK8安装
下载地址及教程:https://mp.weixin.qq.com/s/j77xZTFLLR1_D23-T6c-JA
(2)数据库及服务器安装
MySQL8.0:https://mp.weixin.qq.com/s/eGtXyipJFyOWUxGTL5FQxg
MySQL教程:https://www.runoob.com/mysql/mysql-tutorial.html
Redis:https://www.runoob.com/redis/redis-install.html
Tomcat:http://tomcat.apache.org/
(3)开发工具安装
集成开发环境
IDEA2019:https://mp.weixin.qq.com/s/vTralVDHU1iNvPVpoy2b1Q
数据库管理软件
SQLyog:https://mp.weixin.qq.com/s/pYuAGRHdtcd7yw00LW6mvw
Linux远程连接工具
xshell:https://mp.weixin.qq.com/s/2ih8DTQp3Tryb3bNodyTYQ
其他开发辅助工具(可选)
RedisDesktopManager、Postman
(4)云服务器购买与配置
腾讯云学生优惠:https://cloud.tencent.com/act/campus?utm_source=qcloud&utm_medium=head&utm_campaign=campus
域名注册(不必立即完成):https://cloud.tencent.com/act/domainsales?from=dnspodqcloud
网站备案(不必立即完成):https://cloud.tencent.com/product/ba
腾讯云服务器在购买完成后需设置安全组、开放端口,具体可查阅CSDN相关博客;
(5)腾讯云服务器项目环境配置
须在腾讯云中安装Linux版本jdk8、Tomcat、mysql、redis并完成环境配置;
(6)代码版本管理仓库Git及Gitee(建议使用)
Git
官方下载地址:https://git-scm.com/download/win
安装教程:https://blog.csdn.net/monica1_1/article/details/80886048
命令:https://blog.csdn.net/halaoda/article/details/78661334
Gitee
官方网址:https://gitee.com/
二、SpringBoot开发框架
(1)新建SpringBoot项目
1.选择Spring初始化
2.点击next
3.点击next,初始化依赖,可暂时先选Web
4.点击next
5.点击Finish,等待Maven项目创建完成,初次创建时间可能会较长;
6.创建成功后打开项目目录
7.项目目录介绍
(2)SpringBoot依赖
依赖导入到pom.xml文件
<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><!--持久层相关依赖--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><scope>runtime</scope></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-jdbc</artifactId></dependency><dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>1.2.3</version></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.1.1</version></dependency><!--引入swagger2 --><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>2.9.2</version></dependency><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>2.9.2</version></dependency><!-- 引入swagger-bootstrap-ui包 /doc.html--><dependency><groupId>com.github.xiaoymin</groupId><artifactId>swagger-bootstrap-ui</artifactId><version>1.9.1</version></dependency><!--lombok--><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><optional>true</optional><version>1.18.2</version></dependency><!--字符串工具类--><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.11</version></dependency><!--redis--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>1.2.3</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId></dependency><!--测试包--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency><!-- http请求工具包依赖 --><dependency><groupId>org.apache.httpcomponents</groupId><artifactId>httpclient</artifactId><version>4.5.2</version></dependency><!--jsonObject需要的jar包--><dependency><groupId>net.sf.json-lib</groupId><artifactId>json-lib</artifactId><version>2.4</version><classifier>jdk15</classifier></dependency><!--工具类wxutils所需--><dependency><groupId>org.bouncycastle</groupId><artifactId>bcprov-jdk15on</artifactId><version>1.59</version></dependency><!--工具类wxutils的JSONObject.parseObject需要--><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>1.2.56</version></dependency></dependencies><build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><excludes><exclude><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></exclude></excludes></configuration></plugin></plugins><resources><resource><directory>src/main/java</directory><includes><include>**/*.xml</include></includes><filtering>true</filtering></resource></resources></build>
(3)项目目录下包分类
(4)SpringBoot全局配置
在resources目录下创建文件application.yml
三、数据库连接
未完…
Carp后端开发文档相关推荐
- php 后端 轻量 框架,GitHub - 22cloud/mixphp: 轻量 PHP 框架,基于 Swoole 的常驻内存型 PHP 高性能框架 (开发文档完善)...
高性能 • 轻量级 • 命令行 MixPHP 是什么 MixPHP 秉承 "普及 PHP 常驻内存型解决方案,促进 PHP 往更后端发展" 的理念而创造,采用 Swoole 扩展作 ...
- 记一次后端接口开发文档的组织过程(elasticsearch)
前言: 沟通是有成本的,尤其是项目成员技术差距很大的时候,良好的代码编写必须是以文档驱动的,这是领悟软件工程精髓的必经之路. 记一次小组开发文档的组织,虽然我本人组织得不伦不类,但是也必须得给 ...
- 知乎爆赞!4504页《微信小程序零基础入门开发文档》+《小程序实战笔记》,你学废了吗?
前言 微信小程序作为近几年"微服务"的杰出代表,应用十分广泛.小程序是一种新的开放能力,开发者可以快速地开发一个小程序.小程序可以在微信内被便捷地获取和传播,同时具有出色的使用体验 ...
- 数据库字典 - 微擎开发文档
数据库字典 - 微擎开发文档 参考文档 account 平台账号表(公众号.小程序.PC等) 字段名 数据类型 说明 acid int(10) 主键 uniacid int(10) 所属帐号uniac ...
- luajit开发文档wiki中文版(四) LuaJIT 内部结构
2022年6月10日15:15:22 luajit开发文档中文版(一)下载和安装 luajit开发文档中文版(二)LuaJIT扩展 luajit开发文档中文版(三)FAQ 常见问题 luajit开发文 ...
- BMS养殖后台管理系统开发文档
BMS养殖后台管理系统开发文档 简介: BMS是一个后台管理系统,基于经典技术组合(Spring Boot.Apache.Shiro.MyBatis.Thymeleaf)主要目的是通过项目系统的学 ...
- 基于 SSM 的网上购物系统(源码 + 开发文档 已开源)
你能做到的,比想像的更多. 一.项目背景 这个项目是自己从四月份开始学习 Spring + SpringMVC + MyBatis 后的一次项目实践,恰好赶上学校的数据库暑期课程实践,跟老师申请后更 ...
- 一看就懂!renren-fast 快速开发框架使用以及开发文档
目录 renren-fast框架介绍 入门 快速开始 1.后端部署 2.前端部署 测试实战 开发文档链接: https://pan.baidu.com/s/1LHT0cI1XDM6YZAiF2OX ...
- M5(项目)-01-尚硅谷谷粒商城项目分布式基础篇开发文档
M5(项目)-01-尚硅谷谷粒商城项目分布式基础篇开发文档 分布式基础篇 一.环境搭建 各种开发软件的安装 虚拟机: docker,mysql,redis 主机: Maven, idea(后端),Vs ...
最新文章
- java列表包含列表_java – 包含另一个列表的列表
- 利用CNN来检测伪造图像
- java cache缓存_涨姿势:为什么Java中“1000==1000”为false,而”100==100“为true?
- Shell程序设计 | 基本语法 :变量、I/O、算术运算、条件判断、流程控制、函数
- Zend_Feed 的项目实际应用
- mysql 批量加索引_mysql优化:按期删数据 + 批量insert + 字符串加索引为何很傻
- Booster 系列之——多线程优化
- 开发常用常用插件介绍
- matlab imf1,NGPM_v1.4y GA多目标优化的程序 带约束 里面有教程 matlab 272万源代码下载- www.pudn.com...
- PIC单片机应用开发实践教程(五): 烧录器简介
- 计算机网各管理员技能鉴定,计算机网络管理员国家职业技能鉴定考核指导
- 中国电信中国电信物联网开放平台-连接管理子系统 http返回为空
- Qt Creator vs2022 构建 Disney BRDF Explorer 项目
- python爬虫 | 爬取巨潮资讯上的上市公司招股说明书
- Python深度学习05——Keras循环神经网络实现股价预测
- 【计算机图形学与多媒体】 2019年-中国计算机学会推荐国际学术会议和期刊目录(七)
- Python3.6安装 pip安装 BeautifulSoup安装
- java实现第三届蓝桥杯DNA对比
- Believe in yourself
- Acwing第 61 场周赛【完结】
热门文章
- exe4j打成的exe文件运行时弹窗this executable was created with an evaluation version of exe4j问题解决
- Javascript技巧(230个)[转载]
- iPhone 12使用“通过Apple登录”方法教程「iphone技巧」
- Android 关闭屏幕方法
- Ubuntu桌面卡死解决办法
- 【机器学习】1. 线性模型 - 普通最小二乘法
- 设备驱动安装不上怎么办?
- 【Learning RAW-to-sRGB Mappings with Inaccurately Aligned Supervision通过不准确对齐的监督学习 RAW 到 sRGB 的映射】
- 更改centos7操作系统的IP地址
- 贝尔曼算法队列优化(SPFA)