Commit 87469c5d authored by zhangyong's avatar zhangyong

1

parent 898a8ccf
...@@ -8,11 +8,12 @@ import org.springframework.context.annotation.Configuration; ...@@ -8,11 +8,12 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
public class SolrConfig { public class SolrConfig {
@Value("solr.baseURL") @Value("${solr.baseURL}")
private String baseURL; private String baseURL;
@Bean @Bean
public HttpSolrClient httpSolrClient() { public HttpSolrClient httpSolrClient() {
System.out.println(baseURL);
return new HttpSolrClient(baseURL); return new HttpSolrClient(baseURL);
} }
......
...@@ -193,7 +193,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -193,7 +193,7 @@ public class GoodsServiceImpl implements GoodsService {
Page page = new Page(); Page page = new Page();
page.setIndex(Util.objTo(map.get("index"), Long .class)); page.setIndex(Util.objTo(map.get("index"), Long .class));
page.setLimit(Util.objTo(map.get("limit"), Long.class)); page.setLimit(Util.objTo(map.get("limit"), Long.class));
page.setLimitKey(" nGoodsID"); page.setLimitKey("nGoodsID desc");
//分类 //分类
if(StringUtil.isNotBlank(map.get("categoryID"))){ if(StringUtil.isNotBlank(map.get("categoryID"))){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment