Commit a5bea444 by giaogiao

完成项目结构修改

parent 6f6c1299
...@@ -53,16 +53,19 @@ ...@@ -53,16 +53,19 @@
## 项目结构 ## 项目结构
```text ```text
└── spring-boot-plus └── spring-boot-plus
├── admin SpringBootAdmin Server模块 ├── admin SpringBootAdmin Server服务监控模块
├── bootstrap spring-boot-plus 启动模块 ├── bootstrap spring-boot-plus 启动模块
├── config 配置模块 ├── config 配置模块
├── distribution 打包模块 ├── distribution 打包模块
├── docs 文档目录 ├── docs 文档目录
├── example 示例模块,自己的业务可新建多个模块处理
├── framework 框架核心模块 ├── framework 框架核心模块
├── generator 代码生成模块 ├── generator 代码生成模块
├── scheduled 任务调度模块 ├── scheduled 任务调度模块
└── system 系统模块 └── api-system 平台管理系统api模块
└── api-app app的api模块
└── api-merchant 商家api服务模块
└── common 通用模块
``` ```
### 项目环境 ### 项目环境
......
# 卓美亚航空 - 后端项目 # 卓美亚航空 - 后端项目
## 框架介绍 ## 框架介绍
> 本项目使用第三方开源脚手架项目: spring-boot-plus > 本项目使用第三方开源脚手架项目: spring-boot-plus 参考:README-zh.md
## 项目结构 ## 项目结构
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
└── api-merchant 商家api服务模块 └── api-merchant 商家api服务模块
└── common 通用模块 └── common 通用模块
> 参考:README-zh.md ## 安装软件
redis
mysql5.7
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2019-2029 geekidea(https://github.com/geekidea)
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0"
......
/*
* Copyright 2019-2029 geekidea(https://github.com/geekidea)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.jumeirah.api.app.controller; package com.jumeirah.api.app.controller;
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2019-2029 geekidea(https://github.com/geekidea)
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties; import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.OperationLog; import io.geekidea.springbootplus.framework.log.annotation.OperationLog;
...@@ -36,7 +36,7 @@ import java.io.IOException; ...@@ -36,7 +36,7 @@ import java.io.IOException;
@Slf4j @Slf4j
@Api(value = "Hello World", tags = {"Hello World"}) @Api(value = "Hello World", tags = {"Hello World"})
@RestController @RestController
@RequestMapping("/hello") @RequestMapping("/system/hello")
public class HelloWorldController { public class HelloWorldController {
/** /**
...@@ -49,8 +49,8 @@ public class HelloWorldController { ...@@ -49,8 +49,8 @@ public class HelloWorldController {
@OperationLog(name = "helloWorld") @OperationLog(name = "helloWorld")
@ApiOperation(value = "Hello World", response = String.class) @ApiOperation(value = "Hello World", response = String.class)
public ApiResult<String> helloWorld() throws IOException { public ApiResult<String> helloWorld() throws IOException {
log.debug("Hello World..."); log.debug("Hello World.../system");
return ApiResult.ok("Hello World"); return ApiResult.ok("Hello World/system");
} }
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.log.annotation.Module; import io.geekidea.springbootplus.framework.log.annotation.Module;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties; import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.common.controller.BaseController; import io.geekidea.springbootplus.framework.common.controller.BaseController;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.common.controller.BaseController; import io.geekidea.springbootplus.framework.common.controller.BaseController;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
import io.geekidea.springbootplus.framework.common.controller.BaseController; import io.geekidea.springbootplus.framework.common.controller.BaseController;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties; import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties; import io.geekidea.springbootplus.config.properties.SpringBootPlusProperties;
import io.geekidea.springbootplus.framework.common.api.ApiResult; import io.geekidea.springbootplus.framework.common.api.ApiResult;
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.jumeirah.common.controller; package com.jumeirah.api.system.controller;
import io.geekidea.springbootplus.config.constant.CommonConstant; import io.geekidea.springbootplus.config.constant.CommonConstant;
import io.geekidea.springbootplus.config.constant.CommonRedisKey; import io.geekidea.springbootplus.config.constant.CommonRedisKey;
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2019-2029 geekidea(https://github.com/geekidea)
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
############################# 访问路径、端口tomcat start ############################# ############################# 访问路径、端口tomcat start #############################
server: server:
port: 8888 port: 8889
servlet: servlet:
context-path: /api context-path: /api
tomcat: tomcat:
...@@ -14,7 +14,7 @@ server: ...@@ -14,7 +14,7 @@ server:
################################ spring config start ############################### ################################ spring config start ###############################
spring: spring:
application: application:
name: spring-boot-plus name: jumeirah
http: http:
encoding: encoding:
charset: UTF-8 charset: UTF-8
...@@ -189,13 +189,13 @@ spring-boot-plus: ...@@ -189,13 +189,13 @@ spring-boot-plus:
# 排除Swagger # 排除Swagger
- ${spring-boot-plus.swagger-paths} - ${spring-boot-plus.swagger-paths}
# 排除actuator # 排除actuator
- /actuator/** # - /actuator/**
- # 排除首页 - # 排除首页
- /,/index.html - /,/index.html
# 排除测试路径 # 排除测试路径
- /hello/world,/fooBar/**,/exampleOrder/** - /hello/world,/fooBar/**,/exampleOrder/**
- /app/hello/* - /app/hello/*
- /system/hello/*
# 多行字符串权限配置 # 多行字符串权限配置
filter-chain-definitions: | filter-chain-definitions: |
...@@ -305,11 +305,11 @@ spring-boot-plus: ...@@ -305,11 +305,11 @@ spring-boot-plus:
enable: true enable: true
base: base:
# 扫描的包,多个包使用逗号隔开 # 扫描的包,多个包使用逗号隔开
package: io.geekidea.springbootplus,com.example package: io.geekidea.springbootplus,com.jumeirah
contact: contact:
email: geekidea@qq.com email: jumeirah
name: springboot.plus name: jumeirah
url: https://springboot.plus url: jumeirah
description: description:
title: ${spring.application.name} API Documents title: ${spring.application.name} API Documents
url: https://springboot.plus url: https://springboot.plus
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<module>admin</module> <module>admin</module>
<module>bootstrap</module> <module>bootstrap</module>
<module>config</module> <module>config</module>
<module>distribution</module> <!-- <module>distribution</module>-->
<module>framework</module> <module>framework</module>
<module>generator</module> <module>generator</module>
<module>scheduled</module> <module>scheduled</module>
......
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