Java
Freguez · duoyu
这个作者很懒,什么都没留下…
展开
-
SpringBoot集成websocket实现后台消息推送
SpringBoot集成Websocket实现后台消息推送给前端 1.pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> <!-- https://mvnrepository.com/artifact/net.原创 2020-07-11 21:44:30 · 694 阅读 · 0 评论 -
Java使用Thylemeaf + iText实现html(带图片)转pdf文件
基于SpringBoot使用Thymeleaf+iText实现html(带图片)转pdf文件 1.导入依赖 <!-- Thymeleaf 模板引擎 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> &l原创 2020-07-10 00:22:09 · 3768 阅读 · 4 评论 -
Jsoup的使用
Jsoup的使用 最近在做一个功能需要解析html字符串,于是用到了Jsoup,整理了一番方便以后翻查。 Jsoup能够实现java对html文件和html字符串的解析,并能获取其内容和修改内容。 我是Maven工程,使用时需要导入Jsoup的依赖: <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup --> <dependency> <groupId>org.jsoup</groupId>原创 2020-07-03 00:22:58 · 198 阅读 · 0 评论