spring
sql2zy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux、JavaMail 发送邮件
在windows下发送邮件可以直接使用25端口,但是在Linux下可能无法正常运行:Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect tohost, port: xxxxxxx, 25; timeout -1.。在Linux下可以使用ssl加密465端口,概要配置如下:spring.mail.host=xxxxspring.mail.default-encoding=UTF-8spring..原创 2020-11-11 10:36:07 · 383 阅读 · 0 评论 -
springboot+jersey+jar:java.io.FileNotFoundException: *jar!\BOOT-INF\classes (系统找不到指定的路径。)
整合springboot+jersey,打包成jar,使用java -jar xxx.jar时,可能会出现:org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name 'org.springframework.boot.autoconfigure.jersey....原创 2020-04-15 09:40:42 · 1519 阅读 · 0 评论 -
Eureka error
1、java.net.UnknownHostException:原因有几种,我的解决方式是在服务提供者的配置文件中添加:eureka.instance.prefer-ip-address=true原创 2019-11-18 17:13:04 · 200 阅读 · 0 评论 -
swagger配置
https://my.oschina.net/wangmengjun/blog/907679转载 2019-01-07 15:34:50 · 465 阅读 · 1 评论 -
jersey+spring @Autowired注入失败
Controller中: */@RestController@Api(value = "/manage",description = "站点管理")@Path("/manage")public class ManageEndpoint { @Autowired private DeviceService deviceService; @GET @P...原创 2019-03-08 17:25:35 · 443 阅读 · 0 评论 -
jetty支持https
1、生成keystore文件:myJetty.keystore,放在etc路径下2、修改start.ini添加以下内容:--module=ssljetty.server.dumpBeforeStop=etc/jetty-ssl.xmletc/jetty-https.xml3、修改etc/jetty-ssl.xml <Call name="addConnector...原创 2019-09-30 10:45:48 · 448 阅读 · 0 评论
分享