搭建Jhipster 2.0.13+SpringBoot 2.0.3.RELEASE 教程

244 阅读1分钟

1、准备环境:jdk8+,Node,Git

2、在此基础上执行以下命令创建工程

①、安装jhipster

C:\Users\xxx\Desktop\kk\noo> npm i -g --save-exact generator-jhipster@5.0.1

②、运行jhipster

C:\Users\xxx\Desktop\kk\noo>jhipster

③、起一个工程名字:

? Which *type* of application would you like to create? Monolithic application (recommended for simple projects) ? What is the base name of your application? (kk) **demo**  

包名默认:

What is your default Java package name? **com.mycompany.myapp**

④、选No

? Do you want to use the JHipster Registry to configure, monitor and scale your application? (Use arrow keys) > **No**

Yes

⑤、选 JWT authentication (stateless, with a token)

? Which *type* of authentication would you like to use? **JWT authentication (stateless, with a token)**

⑥、数据库选MySQL

? Which *type* of database would you like to use? **SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)**

? Which *production* database would you like to use? **MySQL**

? Which *development* database would you like to use? **MySQL**

⑦、缓存

? Do you want to use the Spring cache abstraction? **Yes, with the Ehcache implementation (local cache, for a single node)**

? Do you want to use Hibernate 2nd level cache? **Yes**

⑧、默认回车就行

⑨、看图

⑩、选

? Besides JUnit and Jest, which testing frameworks would you like to use?

( ) Gatling

( ) Cucumber

**>( ) Protractor**

? Would you like to install other generators from the JHipster Marketplace? **No**

接下来就创建工程:

3、在数据库中创建数据库实例

这里我的数据库实例是recruit 。

4、启动工程

 5、页面访问效果

  

第一次在掘金上写,初步学习,记录一下。