├── .gitignore
├── mkdocs.yml
├── docs
├── websocket.md
├── jwt.md
├── img
│ ├── gateway.png
│ ├── liquidbase-1.png
│ ├── liquidbase-2.png
│ └── liquidbase-3.png
├── ci.md
├── gateway-uaa-microservice-consul
├── liquidbase-update-field.md
├── reverse.md
└── index.md
├── README3.md
├── issue_template.md
├── README.md
├── LICENSE
└── README2.md
/.gitignore:
--------------------------------------------------------------------------------
1 | /site
--------------------------------------------------------------------------------
/mkdocs.yml:
--------------------------------------------------------------------------------
1 | site_name: Jhipster中文
2 |
--------------------------------------------------------------------------------
/docs/websocket.md:
--------------------------------------------------------------------------------
1 | ## websocket
2 |
3 |
4 | ### 1 修改字段
5 |
6 | 
--------------------------------------------------------------------------------
/docs/jwt.md:
--------------------------------------------------------------------------------
1 | ## JWT专题
2 |
3 | 在swagger API 菜单里:User JWT Controller
4 | /api/authenticate 方法
5 |
--------------------------------------------------------------------------------
/docs/img/gateway.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StayHungryStayFoolish/JHipsterQuestionGather/HEAD/docs/img/gateway.png
--------------------------------------------------------------------------------
/docs/img/liquidbase-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StayHungryStayFoolish/JHipsterQuestionGather/HEAD/docs/img/liquidbase-1.png
--------------------------------------------------------------------------------
/docs/img/liquidbase-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StayHungryStayFoolish/JHipsterQuestionGather/HEAD/docs/img/liquidbase-2.png
--------------------------------------------------------------------------------
/docs/img/liquidbase-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/StayHungryStayFoolish/JHipsterQuestionGather/HEAD/docs/img/liquidbase-3.png
--------------------------------------------------------------------------------
/docs/ci.md:
--------------------------------------------------------------------------------
1 | ## CI
2 |
3 | 同样的jh支持以命令的形式生成CI脚本,我们这里推荐 Jenkins2 pipline
4 |
5 | jhipster ci-cd
6 | 根据命令提示选择
7 |
8 | [ci-jenkins2 简单介绍](https://www.jhipster.tech/setting-up-ci-jenkins2/)
9 |
--------------------------------------------------------------------------------
/docs/gateway-uaa-microservice-consul:
--------------------------------------------------------------------------------
1 | ### jhipster 构建微服务
2 |
3 | ####工程项目
4 |
5 | * UAA
6 | * microservice1
7 | * gateway
8 |
9 | 先看下要到达的效果从网关项目中查看UAA和microservice1
10 |
11 | 
--------------------------------------------------------------------------------
/README3.md:
--------------------------------------------------------------------------------
1 | ### sync
2 |
3 | #### 20180327
4 |
5 | - [ ] jdl文件结构分析
6 | - [ ] dto * with mapstruct
7 | 生成entity与mapper的互换类
8 | - [ ] dto * with mapstruct
9 | - [ ] 生成kafka示例子代码
10 | - [ ] 生产环境切换oracle
11 | - [x] gradle 项目、修改 logo、banner.txt、 home.component.html
12 | - [x] image 替换 不能删除
13 | - [x] @mentions, #refs, [links](), **formatting**, and tags supported
14 |
--------------------------------------------------------------------------------
/issue_template.md:
--------------------------------------------------------------------------------
1 | #### JHipster 项目版本 【当前项目根路径运行 jhipster --version 】
2 |
3 | JHipster: [预填版本号]
4 | 开发系统: []
5 | 开发软件: []
6 |
7 | ---
8 |
9 | #### 项目架构及数据库情况
10 |
11 | 1. 项目架构
12 | 2. 当前使用数据库
13 |
14 | ---
15 |
16 | #### 问题
17 |
18 | 1. 遇到的问题描述
19 | 2. ...
20 | ----
21 | #### 错误日志
22 |
23 | 请尽量把错误日志贴全,避免分析问题方向偏离。
24 |
25 | 截图: 如果提供相关问题的截图。 请把图片拖拽到此处,并保证清晰度。
26 |
27 | ---
28 | **问题可能已经在 ISSUES 中解决过,请先查看 README.MD 文档,以便更快的帮你解决问题。**
29 |
--------------------------------------------------------------------------------
/docs/liquidbase-update-field.md:
--------------------------------------------------------------------------------
1 | ## 实体修改字段
2 |
3 |
4 | ### 1 修改字段为 bbb
5 |
6 | 
7 |
8 | ### 2 重新生成实体之后用 diff 生成变化日志文件
9 |
10 | jhipster import-jdl src/main/resources/dsl/mask.jh
11 | mvn liquibase:diff
12 |
13 | [jh操作50秒视频](https://asciinema.org/a/1iN4a4wTYQPEOE3m7zMIdG82p)
14 |
15 | ### 3 手动将日志文件名加入master.xml中
16 |
17 | 
18 |
19 | ### 4 重启后台查看表字段已经修改
20 |
21 | 
22 |
23 | ## 生成SQL
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # JHipsterQuestionGather
2 |
3 | - 该项目,为了方便国内同学更好的接触 **JHipster** ,少踩坑,以更快的去关注业务逻辑开发而建。
4 |
5 | - ISSUES 是在工作之余维护,回复可能不及时,请见谅。
6 |
7 | - 提问格式希望和下边保持一致,方便在业余时间尽快帮忙解决。
8 |
9 | - 欢迎喜欢新技术的同学交流沟通。
10 |
11 | ---
12 |
13 | ### JHipster 在 Mac 上的环境变量配置及安装
14 |
15 | [JHipster 安装](https://stayhungrystayfoolish.github.io/JHipster-Environment/)
16 |
17 | ### JHipster 技能图谱
18 |
19 | [涉及到的技术栈](https://stayhungrystayfoolish.github.io/JHipster-skills/)
20 |
21 | ### 配置文件介绍
22 |
23 | [配置文件](https://stayhungrystayfoolish.github.io/JHipster-Configuration/)
24 |
25 | ### 个人博客
26 |
27 | **翻墙用户:** [Bonismo`s Blog](https://stayhungrystayfoolish.github.io/)
28 |
29 | **不翻墙用户:** [Bonismo`s Blog](https://bonismo.ink/)
30 |
31 | ---
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README2.md:
--------------------------------------------------------------------------------
1 | [Getting Started with JHipster on OS X](https://dzone.com/articles/getting-started-jhipster-os-x)
2 |
3 | ## 初级
4 |
5 | ### 确定版本
6 |
7 | ➜ ~ rm '/usr/local/bin/jhipster'
8 | ➜ ~ brew link --overwrite jhipster
9 | Linking /usr/local/Cellar/jhipster/4.14.3... 1 symlinks created
10 | ➜ ~ jhipster --version
11 | Using JHipster version installed globally
12 | 4.14.3
13 |
14 | ### 加速三步骤
15 |
16 | #### pom.xml
17 |
18 | [阿里云代理](https://www.cnblogs.com/xinhudong/p/7804968.html)
19 |
20 | #### nodejs 代理
21 |
22 | [npm 淘宝](https://npm.taobao.org/)
23 |
24 | #### pathmanjs 迅雷下载
25 |
26 | yarn start 过程中 会下载 phantomjs-2.1.1-macosx.zip包,该包体积较大,国内仅能从迅雷下载,然后拷贝到对应目录中
27 |
28 | [参考图片](https://github.com/StayHungryStayFoolish/Images-Blog/blob/master/jhipster/1522214654527.jpg)
29 |
30 | ## 中级
31 |
32 | ### 简单JPA生成代码
33 |
34 | #### 根据表 生成实体
35 |
36 | jhipster entity --[options]
37 |
38 | ### 一个较为复杂的例子
39 |
40 | * 1、创建此 dsl 文件 [complex_jdl.jdl](https://github.com/jnuc093/jhipster-sample-app/blob/master/src/main/resources/dsl/complex_jdl.jdl)
41 |
42 | * 2、jhipster import-jdl complex_jdl.jh
43 |
44 | [jdl-studio](https://start.jhipster.tech/jdl-studio/)
45 |
46 | ### 目录命名规则
47 |
48 | ### 增量开发流程
49 |
50 | [database-updates-with-the-maven-liquibasediff-goal](http://www.jhipster.tech/development/#database-updates-with-the-maven-liquibasediff-goal)
51 |
52 | #### 数据库更新 三种工作方式
53 |
54 | #### 1、以entity sub-generator方式
55 |
56 | #### 2、以liquibase:diff goal方式
57 |
58 | #### 3、以编辑change log文件(修改字段...)方式
59 |
60 | * 修改JPA实体(添加字段、修改关系)
61 |
62 | * 新建 "change log"文件 如:20141006152300_added_price_to_product.xml
63 |
64 | * 将上一步文件放到 master.xml文件中,重启生效。
65 |
66 | #### profile的使用方式
67 |
68 | ### 角色与授权
69 |
70 | [add ROLE_MANAGER](https://stackoverflow.com/questions/32436745/using-roles-in-jhipster)
71 |
72 | [Spring Data REST + Spring Security](https://github.com/spring-projects/spring-data-examples/tree/master/rest/security)
73 |
74 | ## 高级
75 |
76 | ### docker启动
77 |
78 | ### kafka
79 |
80 | * 程序启动报错
81 |
82 | Parameter 0 of constructor in com.sgcc.syn.messaging.ProducerResource required a bean of type 'com.sgcc.syn.messaging.ProducerChannel' that could not be found.
83 |
84 | 在 MessagingConfiguration 类里
85 |
86 | @EnableBinding(value = {Source.class, ProducerChannel.class, ConsumerChannel.class})
87 | public class MessagingConfiguration {
88 |
89 | }
90 |
91 | * 消息未订阅成功
92 |
93 | 配置文件 application-dev.yml 添加以下内容
94 |
95 | bindings:
96 | messageChannel:
97 | destination: greetings
98 | content-type: application/json
99 | subscribableChannel:
100 | destination: greetings
101 |
102 |
103 | ### websocket
104 |
105 | ### cache缓存
106 |
107 | ## 升级
108 |
109 | ### 已有项目升级 生成器从从4.14.1升级到 4.14.3
110 |
111 | * rm -rf nodemodule
112 | * yarn install
--------------------------------------------------------------------------------
/docs/reverse.md:
--------------------------------------------------------------------------------
1 | ## 连接数据库
2 |
3 | ### 确定版本
4 |
5 | ➜ ~ rm '/usr/local/bin/jhipster'
6 | ➜ ~ brew link --overwrite jhipster
7 | Linking /usr/local/Cellar/jhipster/4.14.3... 1 symlinks created
8 | ➜ ~ jhipster --version
9 | Using JHipster version installed globally
10 | 4.14.3
11 |
12 | #### (一)升级到4.14.4版本
13 |
14 | brew upgrade jhipster
15 | jhipster --version
16 | Using JHipster version installed globally
17 | 4.14.4
18 |
19 | #### (二)原有项目从4.14.3升级到4.14.4
20 |
21 | ```a
22 | rm -rf node_modules
23 | rm yarn.lock
24 |
25 | jhipster
26 | overrite package.json(选择覆盖此文件)
27 | 根据提示选择性的覆盖原有文件 如 pom.xml等文件
28 |
29 | jhipster --version
30 | Using JHipster version installed locally in current project's node_modules
31 | 4.14.4
32 | 注意:此步骤是确定项目中的版本
33 | ```
34 |
35 |
36 |
37 | ### 加速三步骤
38 |
39 | #### pom.xml
40 |
41 | [阿里云代理](https://www.cnblogs.com/xinhudong/p/7804968.html)
42 |
43 | #### nodejs 代理
44 |
45 | [npm 淘宝](https://npm.taobao.org/)
46 |
47 | #### pathmanjs 迅雷下载
48 |
49 | yarn start 过程中 会下载 phantomjs-2.1.1-macosx.zip包,该包体积较大,国内仅能从迅雷下载,然后拷贝到对应目录中
50 |
51 | [参考图片](https://github.com/StayHungryStayFoolish/Images-Blog/blob/master/jhipster/1522214654527.jpg)
52 |
53 | ## 中级
54 |
55 | ### 简单JPA生成代码
56 |
57 | #### 根据表 生成实体
58 |
59 | jhipster entity --[options]
60 |
61 | ### 一个较为复杂的例子
62 |
63 | * 1、创建此 dsl 文件 [complex_jdl.jdl](https://github.com/jnuc093/jhipster-sample-app/blob/master/src/main/resources/dsl/complex_jdl.jdl)
64 |
65 | * 2、jhipster import-jdl complex_jdl.jh
66 |
67 | [jdl-studio](https://start.jhipster.tech/jdl-studio/)
68 |
69 | ### 目录命名规则
70 |
71 | ### 增量开发流程
72 |
73 | [database-updates-with-the-maven-liquibasediff-goal](http://www.jhipster.tech/development/#database-updates-with-the-maven-liquibasediff-goal)
74 |
75 | #### 数据库更新 三种工作方式
76 |
77 | #### 1、以entity sub-generator方式
78 |
79 | #### 2、以liquibase:diff goal方式
80 |
81 | #### 3、以编辑change log文件(修改字段...)方式
82 |
83 | * 修改JPA实体(添加字段、修改关系)
84 |
85 | * 新建 "change log"文件 如:20141006152300_added_price_to_product.xml
86 |
87 | * 将上一步文件放到 master.xml文件中,重启生效。
88 |
89 | #### profile的使用方式
90 |
91 | ### 角色与授权
92 |
93 | [add ROLE_MANAGER](https://stackoverflow.com/questions/32436745/using-roles-in-jhipster)
94 |
95 | [Spring Data REST + Spring Security](https://github.com/spring-projects/spring-data-examples/tree/master/rest/security)
96 |
97 | ## 高级
98 |
99 | ### docker启动
100 |
101 | ### kafka
102 |
103 | * 程序启动报错
104 |
105 | Parameter 0 of constructor in com.sgcc.syn.messaging.ProducerResource required a bean of type 'com.sgcc.syn.messaging.ProducerChannel' that could not be found.
106 |
107 | 在 MessagingConfiguration 类里
108 |
109 | @EnableBinding(value = {Source.class, ProducerChannel.class, ConsumerChannel.class})
110 | public class MessagingConfiguration {
111 |
112 | }
113 |
114 | * 消息未订阅成功
115 |
116 | 配置文件 application-dev.yml 添加以下内容
117 |
118 | bindings:
119 | messageChannel:
120 | destination: greetings
121 | content-type: application/json
122 | subscribableChannel:
123 | destination: greetings
124 |
125 |
126 | ### websocket
127 |
128 | #### 例子
129 |
130 | 访问http://127.0.0.1:9000/#/jhi-tracker,在另一个浏览器进行登录或者退出观察前一个浏览器变化。
131 |
132 | ### cache缓存
133 |
134 | ## 升级
135 |
136 | ### 已有项目升级 生成器从从4.14.1升级到 4.14.3
137 |
138 | * rm -rf nodemodule
139 | * yarn install
140 |
141 | For full documentation visit [mkdocs.org](http://mkdocs.org).
142 |
143 | ### gateway 网关 eureka
144 |
145 | mac:
146 |
147 | bootstrap.yml 文件中修改 eureka地址为 192.168.99.100
--------------------------------------------------------------------------------
/docs/index.md:
--------------------------------------------------------------------------------
1 | # Welcome to JH
2 |
3 | [Getting Started with JHipster on OS X](https://dzone.com/articles/getting-started-jhipster-os-x)
4 |
5 | ## 初级
6 |
7 | ### 确定版本
8 |
9 | ➜ ~ rm '/usr/local/bin/jhipster'
10 | ➜ ~ brew link --overwrite jhipster
11 | Linking /usr/local/Cellar/jhipster/4.14.3... 1 symlinks created
12 | ➜ ~ jhipster --version
13 | Using JHipster version installed globally
14 | 4.14.3
15 |
16 | #### (一)升级到4.14.4版本
17 |
18 | brew upgrade jhipster
19 | jhipster --version
20 | Using JHipster version installed globally
21 | 4.14.4
22 |
23 | #### (二)原有项目从4.14.3升级到4.14.4
24 |
25 | ```
26 | rm -rf node_modules
27 | rm yarn.lock
28 |
29 | jhipster
30 | overrite package.json(选择覆盖此文件)
31 | overrite DatabaseConfiguration.java(选择覆盖此文件)
32 | 根据提示选择性的覆盖原有文件 如 pom.xml等文件
33 |
34 | jhipster --version
35 | Using JHipster version installed locally in current project's node_modules
36 | 4.14.4
37 | 注意:此步骤是确定项目中的版本
38 | ```
39 |
40 |
41 |
42 |
43 |
44 | ### 加速三步骤
45 |
46 | #### pom.xml
47 |
48 | [阿里云代理](https://www.cnblogs.com/xinhudong/p/7804968.html)
49 |
50 | #### nodejs 代理
51 |
52 | [npm 淘宝](https://npm.taobao.org/)
53 |
54 | #### pathmanjs 迅雷下载
55 |
56 | yarn start 过程中 会下载 phantomjs-2.1.1-macosx.zip包,该包体积较大,国内仅能从迅雷下载,然后拷贝到对应目录中
57 |
58 | [参考图片](https://github.com/StayHungryStayFoolish/Images-Blog/blob/master/jhipster/1522214654527.jpg)
59 |
60 | ## 中级
61 |
62 | ### 简单JPA生成代码
63 |
64 | #### 根据表 生成实体
65 |
66 | jhipster entity --[options]
67 |
68 | ### 一个较为复杂的例子
69 |
70 | * 1、创建此 dsl 文件 [complex_jdl.jdl](https://github.com/jnuc093/jhipster-sample-app/blob/master/src/main/resources/dsl/complex_jdl.jdl)
71 |
72 | * 2、jhipster import-jdl complex_jdl.jh
73 |
74 | [jdl-studio](https://start.jhipster.tech/jdl-studio/)
75 |
76 | ### 目录命名规则
77 |
78 | ### 增量开发流程
79 |
80 | [database-updates-with-the-maven-liquibasediff-goal](http://www.jhipster.tech/development/#database-updates-with-the-maven-liquibasediff-goal)
81 |
82 | #### 数据库更新 三种工作方式
83 |
84 | #### 1、以entity sub-generator方式
85 |
86 | #### 2、以liquibase:diff goal方式
87 |
88 | #### 3、以编辑change log文件(修改字段...)方式
89 |
90 | * 修改JPA实体(添加字段、修改关系)
91 |
92 | * 新建 "change log"文件 如:20141006152300_added_price_to_product.xml
93 |
94 | * 将上一步文件放到 master.xml文件中,重启生效。
95 |
96 | #### profile的使用方式
97 |
98 | ### 角色与授权
99 |
100 | [add ROLE_MANAGER](https://stackoverflow.com/questions/32436745/using-roles-in-jhipster)
101 |
102 | [Spring Data REST + Spring Security](https://github.com/spring-projects/spring-data-examples/tree/master/rest/security)
103 |
104 | ## 高级
105 |
106 | ### docker启动
107 |
108 | ### kafka
109 |
110 | * 程序启动报错
111 |
112 | Parameter 0 of constructor in com.sgcc.syn.messaging.ProducerResource required a bean of type 'com.sgcc.syn.messaging.ProducerChannel' that could not be found.
113 |
114 | 在 MessagingConfiguration 类里
115 |
116 | @EnableBinding(value = {Source.class, ProducerChannel.class, ConsumerChannel.class})
117 | public class MessagingConfiguration {
118 |
119 | }
120 |
121 | * 消息未订阅成功
122 |
123 | 配置文件 application-dev.yml 添加以下内容
124 |
125 | bindings:
126 | messageChannel:
127 | destination: greetings
128 | content-type: application/json
129 | subscribableChannel:
130 | destination: greetings
131 |
132 |
133 | ### websocket
134 |
135 | #### 例子
136 |
137 | 访问http://127.0.0.1:9000/#/jhi-tracker,在另一个浏览器进行登录或者退出观察前一个浏览器变化。
138 |
139 | ### cache缓存
140 |
141 | ## 升级
142 |
143 | ### 已有项目升级 生成器从从4.14.1升级到 4.14.3
144 |
145 | * rm -rf nodemodule
146 | * yarn install
147 |
148 | For full documentation visit [mkdocs.org](http://mkdocs.org).
149 |
150 | ### gateway 网关 eureka
151 |
152 | mac:
153 |
154 | bootstrap.yml 文件中修改 eureka地址为 192.168.99.100
--------------------------------------------------------------------------------