| | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.yeshi.utils.JsonUtil; |
| | | import org.yeshi.utils.TimeUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.PrintWriter; |
| | |
| | | } |
| | | |
| | | |
| | | @RequestMapping("getTime") |
| | | public void getTime(PrintWriter out) { |
| | | |
| | | long time = System.currentTimeMillis(); |
| | | |
| | | String str = TimeUtil.getGernalTime(time, "yyyyMMdd HH:mm:ss"); |
| | | |
| | | out.print(String.format("time: %s format:%s", time + "", str)); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("searchAlbum") |
| | | public void searchAlbum(String key, PrintWriter out) { |
| | | SearchService.SearchResult result = searchService.searchAlbum(0, key, null, 1, 20, false); |