diff --git a/bookMarkService/.gitignore b/bookMarkService/.gitignore new file mode 100644 index 0000000..230c075 --- /dev/null +++ b/bookMarkService/.gitignore @@ -0,0 +1,26 @@ +HELP.md +/target/ +!.mvn/wrapper/maven-wrapper.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +/build/ diff --git a/bookMarkService/business/README.md b/bookMarkService/business/README.md new file mode 100644 index 0000000..bb12641 --- /dev/null +++ b/bookMarkService/business/README.md @@ -0,0 +1 @@ +**本模块用于存放所有业务逻辑,并作为springboot入口** \ No newline at end of file diff --git a/bookMarkService/business/bms/README.md b/bookMarkService/business/bms/README.md new file mode 100644 index 0000000..f542fc1 --- /dev/null +++ b/bookMarkService/business/bms/README.md @@ -0,0 +1 @@ +**本模块为书签云存储相关功能模块** \ No newline at end of file diff --git a/bookMarkService/business/bms/pom.xml b/bookMarkService/business/bms/pom.xml new file mode 100644 index 0000000..274810d --- /dev/null +++ b/bookMarkService/business/bms/pom.xml @@ -0,0 +1,23 @@ + + + + business + com.fanxb + 1.0-SNAPSHOT + + 4.0.0 + + business-bms + + + + com.fanxb + business-bms + 1.0-SNAPSHOT + + + + + \ No newline at end of file diff --git a/bookMarkService/business/bms/src/main/java/Test.java b/bookMarkService/business/bms/src/main/java/Test.java new file mode 100644 index 0000000..e69de29 diff --git a/bookMarkService/business/pom.xml b/bookMarkService/business/pom.xml new file mode 100644 index 0000000..c75fbed --- /dev/null +++ b/bookMarkService/business/pom.xml @@ -0,0 +1,38 @@ + + + + bookMarkService + com.fanxb + 1.0-SNAPSHOT + + 4.0.0 + + business + pom + + user + bms + web + + + + + com.fanxb + common + 1.0-SNAPSHOT + + + + + org.springframework.boot + spring-boot-starter-web + 2.1.6.RELEASE + + + + + + + \ No newline at end of file diff --git a/bookMarkService/business/user/pom.xml b/bookMarkService/business/user/pom.xml new file mode 100644 index 0000000..7bc3173 --- /dev/null +++ b/bookMarkService/business/user/pom.xml @@ -0,0 +1,15 @@ + + + + business + com.fanxb + 1.0-SNAPSHOT + + 4.0.0 + + business-user + + + \ No newline at end of file diff --git a/bookMarkService/business/user/src/main/java/com/fanxb/business/user/Test.java b/bookMarkService/business/user/src/main/java/com/fanxb/business/user/Test.java new file mode 100644 index 0000000..870e8b5 --- /dev/null +++ b/bookMarkService/business/user/src/main/java/com/fanxb/business/user/Test.java @@ -0,0 +1,12 @@ +package com.fanxb.business.user; + +/** + * 类功能简述: + * 类功能详述: + * + * @author fanxb + * @date 2019/7/3 20:16 + */ +public class Test { + public int id; +} diff --git a/bookMarkService/business/user/src/main/java/com/fanxb/business/user/controller/User.java b/bookMarkService/business/user/src/main/java/com/fanxb/business/user/controller/User.java new file mode 100644 index 0000000..38ce99c --- /dev/null +++ b/bookMarkService/business/user/src/main/java/com/fanxb/business/user/controller/User.java @@ -0,0 +1,22 @@ +package com.fanxb.business.user.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 类功能简述: + * 类功能详述: + * + * @author fanxb + * @date 2019/7/4 8:59 + */ +@RestController +@RequestMapping("/user") +public class User { + + @GetMapping("test") + public String getName() { + return "test"; + } +} diff --git a/bookMarkService/business/web/README.md b/bookMarkService/business/web/README.md new file mode 100644 index 0000000..eb105c8 --- /dev/null +++ b/bookMarkService/business/web/README.md @@ -0,0 +1 @@ +**入口模块,最终只有这个模块会打出jar包** \ No newline at end of file diff --git a/bookMarkService/business/web/pom.xml b/bookMarkService/business/web/pom.xml new file mode 100644 index 0000000..f2f9085 --- /dev/null +++ b/bookMarkService/business/web/pom.xml @@ -0,0 +1,31 @@ + + + + business + com.fanxb + 1.0-SNAPSHOT + + 4.0.0 + + business.web + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + repackage + + + + + + + + + \ No newline at end of file diff --git a/bookMarkService/business/web/src/main/java/com/fanxb/business/web/Application.java b/bookMarkService/business/web/src/main/java/com/fanxb/business/web/Application.java new file mode 100644 index 0000000..6c7c096 --- /dev/null +++ b/bookMarkService/business/web/src/main/java/com/fanxb/business/web/Application.java @@ -0,0 +1,18 @@ +package com.fanxb.business.web; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +/** + * 类功能简述: + * 类功能详述: + * + * @author fanxb + * @date 2019/7/3 20:20 + */ +@SpringBootApplication(scanBasePackages = "com.fanxb") +public class Application { + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} diff --git a/bookMarkService/common/README.md b/bookMarkService/common/README.md new file mode 100644 index 0000000..9527f00 --- /dev/null +++ b/bookMarkService/common/README.md @@ -0,0 +1,6 @@ +**这是公共模块,不得存放业务代码,只能存放如下:** + +- 工具类 +- 过滤器,拦截器等统一逻辑 +- 权限认证 +- 基本实体类,数据库中表对应实体,或者自定义异常,或者响应对象 diff --git a/bookMarkService/common/pom.xml b/bookMarkService/common/pom.xml new file mode 100644 index 0000000..a076b8e --- /dev/null +++ b/bookMarkService/common/pom.xml @@ -0,0 +1,33 @@ + + + + bookMarkService + com.fanxb + 1.0-SNAPSHOT + + 4.0.0 + + common + + + + + com.alibaba + fastjson + 1.2.58 + + + + com.squareup.okhttp3 + okhttp + 4.0.0 + + + + + + + + \ No newline at end of file diff --git a/bookMarkService/pom.xml b/bookMarkService/pom.xml new file mode 100644 index 0000000..ef1e4f3 --- /dev/null +++ b/bookMarkService/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + com.fanxb + bookMarkService + pom + 1.0-SNAPSHOT + + common + business + + + utf-8 + utf-8 + 11 + + + + org.springframework.boot + spring-boot-starter-parent + 2.1.4.RELEASE + + + + + \ No newline at end of file