Commit 87469c5d authored by zhangyong's avatar zhangyong

1

parent 898a8ccf
......@@ -8,11 +8,12 @@ import org.springframework.context.annotation.Configuration;
@Configuration
public class SolrConfig {
@Value("solr.baseURL")
@Value("${solr.baseURL}")
private String baseURL;
@Bean
public HttpSolrClient httpSolrClient() {
System.out.println(baseURL);
return new HttpSolrClient(baseURL);
}
......
......@@ -193,7 +193,7 @@ public class GoodsServiceImpl implements GoodsService {
Page page = new Page();
page.setIndex(Util.objTo(map.get("index"), Long .class));
page.setLimit(Util.objTo(map.get("limit"), Long.class));
page.setLimitKey(" nGoodsID");
page.setLimitKey("nGoodsID desc");
//分类
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