瀏覽代碼

添加business模块

limeng 6 月之前
父節點
當前提交
09f8da5cde

+ 9 - 1
pom.xml

@@ -9,7 +9,7 @@
     <version>3.8.8</version>
 
     <name>zhjq</name>
-    <url>http://www.ruoyi.vip</url>
+    <url> </url>
     <description>智慧景区</description>
 
     <properties>
@@ -218,6 +218,13 @@
                 <version>${zhjq.version}</version>
             </dependency>
 
+            <!-- 业务依赖-->
+            <dependency>
+                <groupId>com.zhjq</groupId>
+                <artifactId>zhjq-business</artifactId>
+                <version>${zhjq.version}</version>
+            </dependency>
+
         </dependencies>
     </dependencyManagement>
 
@@ -228,6 +235,7 @@
         <module>zhjq-quartz</module>
         <module>zhjq-generator</module>
         <module>zhjq-common</module>
+        <module>zhjq-business</module>
     </modules>
     <packaging>pom</packaging>
 

+ 7 - 0
zhjq-admin/pom.xml

@@ -61,6 +61,13 @@
             <artifactId>zhjq-generator</artifactId>
         </dependency>
 
+        <!-- 业务依赖-->
+        <dependency>
+            <groupId>com.zhjq</groupId>
+            <artifactId>zhjq-business</artifactId>
+        </dependency>
+
+
         <!-- zxing生成二维码 -->
         <dependency>
             <groupId>com.google.zxing</groupId>

+ 1 - 1
zhjq-admin/src/main/resources/application-druid.yml

@@ -6,7 +6,7 @@ spring:
     druid:
       # 主库数据源
       master:
-        url: jdbc:mysql://www.sooka.onest.db:63306/zhjq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+        url: jdbc:mysql://192.168.10.15:63306/zhjq?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
         username: sooka
         password: sooka1a2b3c4d%...
       # 从库数据源

+ 65 - 0
zhjq-business/pom.xml

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>zhjq</artifactId>
+        <groupId>com.zhjq</groupId>
+        <version>3.8.8</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>zhjq-business</artifactId>
+
+    <description>
+        业务模块
+    </description>
+
+    <dependencies>
+        <!-- spring-boot-devtools -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-devtools</artifactId>
+            <optional>true</optional> <!-- 表示依赖不会传递 -->
+        </dependency>
+
+        <!-- swagger3-->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-boot-starter</artifactId>
+        </dependency>
+
+        <!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
+        <dependency>
+            <groupId>io.swagger</groupId>
+            <artifactId>swagger-models</artifactId>
+            <version>1.6.2</version>
+        </dependency>
+
+        <!-- Mysql驱动包 -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+        </dependency>
+
+        <!-- 核心模块-->
+        <dependency>
+            <groupId>com.zhjq</groupId>
+            <artifactId>zhjq-framework</artifactId>
+        </dependency>
+
+        <!-- 定时任务-->
+        <dependency>
+            <groupId>com.zhjq</groupId>
+            <artifactId>zhjq-quartz</artifactId>
+        </dependency>
+
+        <!-- 代码生成-->
+        <dependency>
+            <groupId>com.zhjq</groupId>
+            <artifactId>zhjq-generator</artifactId>
+        </dependency>
+
+    </dependencies>
+
+</project>

+ 15 - 0
zhjq-business/src/main/java/com/zhjq/controller/TestASDController.java

@@ -0,0 +1,15 @@
+package com.zhjq.controller;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/asdtest")
+public class TestASDController {
+
+    @GetMapping("/test")
+    public void test(){
+        System.out.println("12312312123");
+    }
+}