| | |
| | | import java.io.FileReader;
|
| | | import java.io.IOException;
|
| | | import java.io.PrintWriter;
|
| | | import java.io.UnsupportedEncodingException;
|
| | | import java.math.BigDecimal;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Iterator;
|
| | |
| | | if (goods == null)
|
| | | out.println("商品已下架");
|
| | | else
|
| | | out.println("<html><head><meta charset=utf-8></head><body>"
|
| | | + String.format("cat_name:%s <br> cat_leaf_name:%s", goods.getRootCategoryName(), goods.getLeafName())
|
| | | + "</body></html>");
|
| | | out.println(
|
| | | "<html><head><meta charset=utf-8></head><body>" + String.format("cat_name:%s <br> cat_leaf_name:%s",
|
| | | goods.getRootCategoryName(), goods.getLeafName()) + "</body></html>");
|
| | | }
|
| | |
|
| | | @RequestMapping("getJedisInfo")
|
| | | public void getJedisInfo(PrintWriter out) {
|
| | | JSONObject data = new JSONObject();
|
| | | data.put("active", jedisPool.getNumActive());
|
| | | data.put("idle", jedisPool.getNumIdle());
|
| | | data.put("waiters", jedisPool.getNumWaiters());
|
| | | out.print(data.toString());
|
| | | }
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }
|