转自:https://blog.csdn.net/weixin_42259631/article/details/80996198
Spring boot + Undertow + 腾讯云https证书配置SSL访问项目( 多个项目使用SSL也可以,需要利用Nginx ): https://blog.csdn.net/jie873440996/article/details/80801446
创建spring boot项目时无法访问https://start.spring.io的解决方法: https://blog.csdn.net/cslucifer/article/details/83573594
Spring boot 项目 配置https添加服务端客户端证书认证: https://blog.csdn.net/qq_26531719/article/details/82378477
本文讲解在springboot环境下,将ueditor保存到数据库中的html内容使用poi导出为word文件,亲测导出的文件在word和wps上打开均正常显示。
首先,在pom.xml文件中引入poi包
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.14</version>
</dependency>
然后在Service层中Impl下写导出函数
public void exportWord(HttpServletRequest request, HttpServletResponse response, String title, String text) {
try {
//word内容
String content="<html><body>" +
"<p style=\"text-align: center;\"><span style=\"font-family: 黑体, SimHei; font-size: 24px;\">"
+ title + "</span></p>" + text + "</body></html>