From 3d18d3d08ac794ec39ba2e973befd7fb8782a024 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 15 六月 2020 16:16:12 +0800
Subject: [PATCH] 测试后端写了400 前台还是返回200 问题
---
java110-config/src/main/java/com/java110/config/properties/OrderProperties.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/java110-config/src/main/java/com/java110/config/properties/OrderProperties.java b/java110-config/src/main/java/com/java110/config/properties/OrderProperties.java
index 84f9c7e..b0b0dcc 100644
--- a/java110-config/src/main/java/com/java110/config/properties/OrderProperties.java
+++ b/java110-config/src/main/java/com/java110/config/properties/OrderProperties.java
@@ -1,6 +1,7 @@
package com.java110.config.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
@@ -8,8 +9,9 @@
* Created by wuxw on 2017/4/25.
*/
-@ConfigurationProperties(prefix = "java110.order",locations="classpath:config/order.properties")
+@ConfigurationProperties(prefix = "java110.order")
@Component("orderProperties")
+@PropertySource("classpath:config/order.properties")
public class OrderProperties {
private String deleteOrderAsyn;
--
Gitblit v1.8.0