feat(商城): 代码优化

master
wayn 4 years ago
parent 7eb4bf7f01
commit ca95adf1b1

@ -7,11 +7,13 @@ import com.wayn.common.core.domain.shop.Order;
import com.wayn.common.core.service.shop.IAdminOrderService;
import com.wayn.common.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("shop/order")
@EnableConfigurationProperties(value = ExpressProperties.class)
public class AdminOrderController extends BaseController {
@Autowired

@ -1,15 +1,12 @@
package com.wayn.admin.framework.config.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Configuration
@EnableConfigurationProperties
//@Configuration
@ConfigurationProperties(prefix = "shop.express")
public class ExpressProperties {
private boolean enable;

Loading…
Cancel
Save