From 8a524787c88a9128cc69af890d4181a01aad0e8c Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 06 七月 2019 23:09:33 +0800
Subject: [PATCH] 修改代码生成器生成的app 加入user_id 的问题

---
 java110-config/src/main/java/com/java110/config/properties/CommonProperties.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/java110-config/src/main/java/com/java110/config/properties/CommonProperties.java b/java110-config/src/main/java/com/java110/config/properties/CommonProperties.java
index 69758b3..5d72208 100644
--- a/java110-config/src/main/java/com/java110/config/properties/CommonProperties.java
+++ b/java110-config/src/main/java/com/java110/config/properties/CommonProperties.java
@@ -1,10 +1,14 @@
 package com.java110.config.properties;
 
 import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.PropertySource;
+import org.springframework.stereotype.Component;
 
 /**
  * Created by wuxw on 2017/7/25.
  */
-@ConfigurationProperties(prefix = "java110.common",locations="classpath:config/common.properties")
+@Component
+@ConfigurationProperties(prefix = "java110.common")
+@PropertySource("classpath:config/common.properties")
 public class CommonProperties {
 }

--
Gitblit v1.8.0