Skip to content

Commit 222096f

Browse files
authored
Update README.md
1 parent 15dbd8b commit 222096f

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

APIJSON-Java-Server/README.md

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,59 @@ https://github.com/TommyLemon/StaticResources/tree/master/APIJSONServer
1313

1414
<br />
1515

16-
### 2.用Eclipse for JavaEE或IntellIJ IDEA Ultimate运行后端工程
16+
### 2.用 Eclipse for JavaEE 或 IntellIJ IDEA Ultimate 运行后端工程
1717

1818
如果以上编辑器一个都没安装,运行前先下载安装一个。<br />
19-
我的配置是Windows 7 + JDK 1.7.0_71 + Eclipse 4.6.1 + IntellIJ 2016.3 和 OSX EI Capitan + JDK 1.8.0_91 + Eclipse 4.6.1 + IntellIJ 2016.2.5
19+
我的配置是 Windows 7 + JDK 1.7.0_71 + Eclipse 4.6.1 + IntellIJ 2016.3 和 OSX EI Capitan + JDK 1.8.0_91 + Eclipse 4.6.1 + IntellIJ 2016.2.5
2020

2121

2222
#### Eclipse for JavaEE
2323

24-
<h5>1)打开</h5>
25-
顶部菜单File > Import > Maven > Existing Maven Projects > Next > Browse <br />
24+
<h5>1)打开项目</h5>
25+
顶部菜单 File > Import > Maven > Existing Maven Projects > Next > Browse <br />
2626
> 选择刚才解压路径下的APIJSON-Master/APIJSON-Java-Server/APIJSONBoot <br />
2727
> 勾选 /pom.xml ... apijson-demo > Finish
2828
29-
<h5>2)Demo依赖Library</h5>
30-
右键libs里面的 apijson-orm.jar > Build Path > Add to Build Path <br />
31-
同样按照以上步骤来依赖 postgresql.jar 等libs目录内的其它所有jar包。 <br />
32-
其中 apijson-orm 可使用 Maven 或 Gradle 来远程依赖,具体见 https://github.com/APIJSON/apijson-orm
29+
<h5>2)配置依赖库 </h5>
30+
其中 apijson-orm, apijson-framework 默认使用 Maven 远程依赖仓库, <br />
31+
具体见 https://github.com/APIJSON/apijson-ormhttps://github.com/APIJSON/apijson-framework
32+
如果依赖下载不了,注释掉报错的 apijson-orm, apijson-framework 依赖代码, <br />
33+
然后右键 libs (APIJSONBoot 内,其它项目需要拷贝过去)里面的 apijson-orm.jar > Build Path > Add to Build Path <br />
34+
同样按照以上步骤来依赖 libs 目录内的其它所有 jar 包。 <br />
3335

34-
<h5>3)配置(如果完成下方步骤4,导入APIJSON的表,则可跳过)</h5>
35-
打开 apijson.demo.server.DemoSQLConfig 类,编辑 getDBUri,getDBAccount,getDBPassword,getSchema 的返回值为你自己数据库的配置。<br />
36+
<h5>3)配置数据库(如果完成下方步骤 4,导入 APIJSON 的表,则可跳过) </h5>
37+
打开 DemoSQLConfig 类,编辑 getDBUri,getDBAccount,getDBPassword,getSchema 的返回值为你自己数据库的配置。<br />
3638

37-
<h5>4)运行</h5>
38-
顶部菜单Run > Run As > Java Application > 选择APIJSONApplication > OK
39+
<h5>4)运行项目</h5>
40+
右键 DemoApplication > Run As > Java Application
3941

4042

4143
#### IntellIJ IDEA Ultimate
4244

43-
<h5>1)打开</h5>
44-
Open > 选择刚才解压路径下的APIJSON-Master/APIJSON-Java-Server/APIJSONBoot > OK
45+
<h5>1)打开项目</h5>
46+
Open > 选择刚才解压路径下的 APIJSON-Master/APIJSON-Java-Server 里面的 APIJSONBoot(实际项目) 或 APIJSONBootTest(简单Demo) > OK
4547

46-
<h5>2)Demo依赖Library</h5>
47-
右键libs里面的 apijson-orm.jar > Add as Library > OK <br />
48-
同样按照以上步骤来依赖 postgresql.jar 等libs目录内的其它所有jar包。 <br />
49-
其中 apijson-orm 可使用 Maven 或 Gradle 来远程依赖,具体见 https://github.com/APIJSON/apijson-orm
48+
<h5>2)配置依赖库 </h5>
49+
其中 apijson-orm, apijson-framework 默认使用 Maven 远程依赖仓库, <br />
50+
具体见 https://github.com/APIJSON/apijson-ormhttps://github.com/APIJSON/apijson-framework
51+
如果依赖下载不了,注释掉报错的 apijson-orm, apijson-framework 依赖代码, <br />
52+
然后右键 libs (APIJSONBoot 内,其它项目需要拷贝过去)里面的 apijson-orm.jar > Add as Library > OK <br />
53+
同样按照以上步骤来依赖 libs 目录内的其它所有 jar 包。 <br />
5054

51-
<h5>3)配置(如果完成下方步骤4,导入APIJSON的表,则可跳过)</h5>
52-
打开 apijson.demo.server.DemoSQLConfig 类,编辑 getDBUri,getDBAccount,getDBPassword,getSchema 的返回值为你自己数据库的配置。<br />
55+
<h5>3)配置数据库(如果完成下方步骤 4,导入 APIJSON 的表,则可跳过) </h5>
56+
打开 DemoSQLConfig 类,编辑 getDBUri,getDBAccount,getDBPassword,getSchema 的返回值为你自己数据库的配置。<br />
5357

54-
<h5>4)运行</h5>
55-
顶部菜单Run > Run > Edit Configurations > + > Application > Configuration <br />
56-
> Main class 选APIJSONApplication <br />
58+
<h5>4)运行项目</h5>
59+
顶部菜单 Run > Run > Edit Configurations > + > Application > Configuration <br />
60+
> Main class 选 APIJSONApplication <br />
5761
> Use classpath of module 选apijson-demo <br />
5862
> 最后在底部 Run <br />
5963
60-
<h4>运行后会出现 APIJSON的测试日志,最后显示 "APIJSON已启动" ,说明已启动完成。</h4>
64+
<h4>运行后会出现 APIJSON 的测试日志,最后显示 "APIJSON 已启动" ,说明已启动完成。</h4>
6165

62-
如果是Address already in use,说明8080端口被占用,<br />
63-
可以关闭占用这个端口的程序(可能就是已运行的APIJSON工程) <br />
64-
或者 改下APIJSON工程的端口号,参考 [SpringBoot改端口](https://stackoverflow.com/questions/21083170/spring-boot-how-to-configure-port)。<br />
66+
如果是 Address already in use,说明 8080 端口被占用,<br />
67+
可以关闭占用这个端口的程序(可能就是已运行的 APIJSON 工程) <br />
68+
或者 改下 APIJSON 工程的端口号,参考 [SpringBoot 改端口](https://stackoverflow.com/questions/21083170/spring-boot-how-to-configure-port)。<br />
6569
其它问题请谷歌或百度。
6670

6771
<br />

0 commit comments

Comments
 (0)