Java Notes
четверг, 6 февраля 2020 г.
пятница, 3 января 2020 г.
@Controller vs @RestController - Spring
- @RestController - it's just convenience way to combine two annotations: @Controller and @ResponseBody (to simplify the creation of RESTfull web services) see link;
- using @Controller - we have to use @ResponseBody, using @RestController - no!
- @Controller - return view, @RestController - return domain object.
суббота, 27 июня 2015 г.
Java: How To Parse HTML (Using Jsoup Java library)
In order to parse HTML on any web page I use Jsoup library. It light and very useful tool which allows to perform complex operations for getting and processing data from HTML.
You can get actual version of the library from official site. If you use Maven just place the following into your POM's
You can get actual version of the library from official site. If you use Maven just place the following into your POM's
<dependencies> section:
Подписаться на:
Сообщения (Atom)

