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.core.service.shop.IAdminOrderService;
import com.wayn.common.util.R; import com.wayn.common.util.R;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping("shop/order") @RequestMapping("shop/order")
@EnableConfigurationProperties(value = ExpressProperties.class)
public class AdminOrderController extends BaseController { public class AdminOrderController extends BaseController {
@Autowired @Autowired

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

Loading…
Cancel
Save