spring boot
xdhc304
这个作者很懒,什么都没留下…
展开
-
spring boot发邮件报错smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
1、错误信息 553 Mail from must equal authorized user com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTran...原创 2019-08-23 17:33:35 · 4361 阅读 · 0 评论 -
swagger2相关注解
@Api: 描述 Controller @ApiIgnore: 忽略该 Controller,指不对当前类做扫描 @ApiOperation: 描述 Controller类中的 method接口 @ApiParam: 单个参数描述,与 @ApiImplicitParam不同的是,他是写在参数左侧的。如( @ApiParam(name="username",value="用户名")Stringuse...原创 2019-08-23 10:38:23 · 152 阅读 · 0 评论 -
SpringBoot使用Swagger2提示Unable to infer base url错误
1、版本: swagger 2.7.0; 访问swagger首页 http://localhost:8080/swagger-ui.html,错误信息如下: Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway...原创 2019-08-23 10:34:08 · 14623 阅读 · 3 评论 -
java.lang.ClassCastException: java.lang.String cannot be cast to com.alibaba.fastjson.JSONObject
JSON.toJavaObject(JSON.parseObject(value), class) 改成 JSON.parseObject(value, class)原创 2019-08-24 11:36:28 · 13100 阅读 · 0 评论