com.sun.javafx.binding.StringFormatter Java Examples
The following examples show how to use
com.sun.javafx.binding.StringFormatter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DogMarketController.java From baidu-chain-dog with GNU General Public License v3.0 | 6 votes |
@RequestMapping("marketLink") @SneakyThrows public String marketLink(@RequestParam String petId, HttpServletResponse response) { Pet pet = store.queryPetById(petId); if (pet == null) { return "没有在市场上找到这只狗狗。"; } response.sendRedirect(StringFormatter.format(MARKET_LINK_FORMAT, pet.getPetId(), pet.getValidCode()).getValue()); return ""; }