From 13a908d22f5d486f6a51069c2b3d1507a5efaee0 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 05 Jul 2022 16:26:13 +0800
Subject: [PATCH] fix cms properties

---
 src/main/java/com/xcong/farmer/cms/configurations/properties/CmsProperties.java |    3 +++
 src/main/resources/application-test.yml                                         |    9 +++++----
 src/main/resources/application.yml                                              |    9 +++++----
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/xcong/farmer/cms/configurations/properties/CmsProperties.java b/src/main/java/com/xcong/farmer/cms/configurations/properties/CmsProperties.java
index 3a75d7d..fcab6eb 100644
--- a/src/main/java/com/xcong/farmer/cms/configurations/properties/CmsProperties.java
+++ b/src/main/java/com/xcong/farmer/cms/configurations/properties/CmsProperties.java
@@ -15,4 +15,7 @@
 
     private String outputPath;
 
+    private String staticUrl;
+
+    private String baseUrl;
 }
diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index efdc99a..02efd62 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -93,8 +93,9 @@
     path: /home/javaweb/webresource/uploadeFile/image/
 
 cms:
-  file:
-    template-path: /Users/helius/Desktop/template
-    static-path:
-    output-path: /Users/helius/Desktop/web/output
+  base-url: http://localhost
+  static-url: http://localhost
+  template-path: /Users/helius/Desktop/template
+  static-path:
+  output-path: /Users/helius/Desktop/web/output
 
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 45e7f31..f9fee05 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -97,8 +97,9 @@
     path: /image/
 
 cms:
-  file:
-    template-path: /Users/helius/Desktop/template
-    static-path:
-    output-path: /Users/helius/Desktop/web/output
+  base-url: http://localhost
+  static-url: http://localhost
+  template-path: /Users/helius/Desktop/template
+  static-path:
+  output-path: /Users/helius/Desktop/web/output
 

--
Gitblit v1.9.1