Commit b3226990 by zhangliding

Merge remote-tracking branch 'origin/master'

parents f9843fb7 6f0054cd
## 前端开发调试文档
## 前端开发调试文档
#### 前端调试
***视频教程***
http://114.115.138.98:9497/gjjs-book/assets/videos/fore-end-debug.mp4
##### 1.观察XHR(异步请求)(TODO)
F12打开开发者工具,选中Network,可看到当前页面的所有资源请求。我们只需关注XHR请求,故在过滤条件中选中Fetch/XHR选项,剩下的就是XHR请求了。
![查看请求](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_1.png)
单击其中的某一个请求,可以看到该请求的详细信息,如下所示
![查看请求](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_2.png)
##### 2.观察响应数据
请求响应的结果在Preview和Response栏里,二者展示的形式不一样。
Preview模式
![响应结果预览](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_3.png)
Response模式
![响应结果1](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_4.1.png)
![响应结果2](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_4.2.png)
响应数据的属性:
![响应结果属性](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_5.png)
观察Response请求
##### 3.如何打前端断点
前端项目是通过Webpack进行加载的,我们编写的源文件在 webpack:// 目录下。其中 .vue 文件都在 webpack:///src下,.js文件都在 webpack:///./src 目录下
![源文件](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_6.png)
在需要调试的代码位置点一下,断点就标记完成,后面程序在执行到这一步时会停下来。
![标记断点](../../gjjs-lessons/assets/images/03-新国结产品开发/image/front_debug_7.png)
调试的常用按钮
![断点调试](../../../../../assets/images/03-新国结产品开发/image/front_debug_8.png)
\ No newline at end of file
## 后端项目下载运行
## 后端项目下载运行
......@@ -81,43 +81,45 @@ servers元素中配置如下
</servers>
```
mirrors元素中配置如下
```xml
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The
repository that
| this mirror serves has an ID that matches the mirrorOf element of this
mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique
across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>brilliance-virtual</id>
<mirrorOf>*</mirrorOf>
<name>brilliance-virtual</name>
<url>http://114.115.138.98:9620/artifactory/brilliance-virtual/</url>
</mirror>
<!-- <mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror> -->
<!-- <mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror> -->
</mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The
repository that
| this mirror serves has an ID that matches the mirrorOf element of this
mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique
across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>https://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>brilliance-virtual</id>
<mirrorOf>*</mirrorOf>
<name>brilliance-virtual</name>
<url>http://114.115.138.98:9620/artifactory/brilliance-virtual/</url>
</mirror>
<!-- <mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror> -->
<!-- <mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror> -->
</mirrors>
```
编译内存设置,建议根据自己电脑内存实际情况进行配置,推荐2048
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment