From 71bc98161c605c585fb9fd62ae84a735a3650e8b Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期三, 17 七月 2019 21:41:10 +0800
Subject: [PATCH] 服务绑定开发选择服务环节

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

diff --git a/java110-config/src/main/java/com/java110/config/properties/EventProperties.java b/java110-config/src/main/java/com/java110/config/properties/EventProperties.java
index 2d9ced4..71d976c 100644
--- a/java110-config/src/main/java/com/java110/config/properties/EventProperties.java
+++ b/java110-config/src/main/java/com/java110/config/properties/EventProperties.java
@@ -1,12 +1,16 @@
 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/4/14.
  */
-@ConfigurationProperties(prefix = "java110.event.properties",locations="classpath:config/event.properties")
+@Component
+@ConfigurationProperties(prefix = "java110.event.properties")
+@PropertySource("classpath:config/event.properties")
 public class EventProperties {
 
 

--
Gitblit v1.8.0