springBoot
RaySunWHUT
I am a coder and at the same time, I am a writer.
自认国学初窥门径,写文章胜过写程序。
个人主页: https://raysunwhut.github.io/
展开
-
从https://spring.io下载spring模块失败
从 https://spring.io 下载spring模块失败Cannot download ‘https://start.spring.io’: connect timed out.改成 Custom: →\rightarrow→ https://start.aliyun.com/原创 2020-07-20 09:01:27 · 1012 阅读 · 0 评论 -
SpringBoot: 普通类调用Dao层,报空指针异常(NullPointerException)
SpringBoot: 普通类调用Dao层,报空指针异常(NullPointerException)原创 2020-02-14 12:47:08 · 5546 阅读 · 6 评论 -
[java.lang.IllegalStateException: argument type mismatch Controller [dbsystem.sun.controller.Summary
[java.lang.IllegalStateException: argument type mismatch Controller [dbsystem.sun.controller.SummaryControllerMethod [public com.alibaba.fastjson.JSONObject dbsystem.sun.controller.SummaryController....原创 2020-02-14 11:20:42 · 4411 阅读 · 4 评论 -
Vue.js and SSM实现RESTful风格的前后端交互
前端HTML代码:vue写在login.html <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...原创 2019-10-30 18:07:29 · 1488 阅读 · 0 评论 -
后端SSM跨域请求解决方案
看了那么多,搞了这么久,一个 @CrossOrigin注解解决所有问题!!!在Controller层注解@CrossOrigin;@CrossOrigin@Controllerpublic class UserController { // http://localhost:8080/Sun/src/main/java/controller/UserController/select...原创 2019-10-30 18:50:50 · 1364 阅读 · 0 评论 -
Vue.js与SSM前后端交互,传对象
Vue.js与SSM前后端基本交互,可以参见我的上一篇博客上一篇博客:点击这里.本文介绍前后端交互传递对象的方法如果前后端交互过程中要传对象,那么上一篇博客可能就不适用了。向后端传对象与传普通字符串/字段的区别:1. 传对象首先要将对象格式转化为JSON格式,即JSON.stringify(_this.user),2. 然后将其直接赋给data,即data: JSON.stringif...原创 2019-10-31 00:07:03 · 4126 阅读 · 0 评论 -
springBoot: 启动报错, 出现乱码
Problem:SpringBoot启动报错:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than ...Solution:将springBoot的配置文件,application.properties中的:url:jdbc:mysql://localhost:3306/db?u...原创 2019-11-09 19:32:35 · 521 阅读 · 0 评论 -
springBoot: SpringBoot2.0中,endpoint端点问题
Problem:SpringBoot2.0中,Actuator自定义端点书写方式完全改变。Solution:见:package season.spring.actuator;import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint;imp...原创 2019-11-09 19:29:51 · 1132 阅读 · 0 评论 -
springBoot: “management.security.enabled=false”无效
Problem:Spring Boot 2.x中的“management.security.enabled=false”无效问题!Solution:无效的原因是被弃用!新的配置为:management.endpoints.web.exposure.include=*注:同时要将SpringSecurity注释掉,或者更改其“configure”方法如下:protected v...原创 2019-11-09 19:25:56 · 3057 阅读 · 0 评论 -
springBoot: 启动Tomcat失败
Problem:SpringBoot启动Tomcat失败:[StandardEngine[Tomcat].StandardHost[localhost]Solution:原因是挂了SSR,ip地址跳转到了境外的原因!解决方案:进入Tomcat的目录,“手动启动” 之后再 “手动关闭” Tomcat服务器。之后cmd,ping localhost ,如果成功则说明SSR已彻底关闭可使...原创 2019-11-09 19:23:13 · 1193 阅读 · 0 评论 -
springBoot: EmbeddedServletContainerCustomizer不存在
Problem:EmbeddedServletContainerCustomizer不存在Solution:SpringBoot2.0 以上,使用“WebServerFactoryCustomizer”接口替换“EmbeddedServletContainerCustomizer”组件完成对嵌入式Servlet容器的配置”。...原创 2019-11-09 19:22:05 · 721 阅读 · 0 评论 -
springBoot:集成Mybatis报错
SpringBoot集成Mybatis时:出现的(not found)的问题。“No enum constant org.apache.ibatis.type.JdbcType.INT”。Solution:1.按此博客:https://blog.csdn.net/weixin_44440658/article/details/88194381, 基本解决!2. jdbcTyp...原创 2019-11-09 19:21:11 · 214 阅读 · 0 评论 -
springBoot: JavaMail Exceoption
Java Mail Exception“Authentication failed; nested exception is javax.mail.AuthenticationFailedException”Solution:发送方的邮件要开通“POP3 / SMTP服务”,并遵守邮箱配置,且要“开启服务”!邮件主机(如:smtp.qq.com、smtp.163.com)必须和发件人的主...原创 2019-11-09 19:18:33 · 374 阅读 · 0 评论 -
springBoot: 引入log4j2日志时报错!
Problem:引入log4j2日志配置时报错:Logging system failed to initialize using configuration from 'classpath:log4j2.xml'java.lang.IllegalStateException: Logback configuration error detected: Solution:实际上是po...原创 2019-11-09 19:02:48 · 1469 阅读 · 1 评论 -
Redis集成到springBoot报错整理
Problem:Redis集成到springBoot报错: Caused by: java.lang.ClassNotFoundException: redis.clients.util.PoolSolution: jedis的版本过高造成,需要降低到3.0.0以下; 并且,引入redis时,三种dependency缺一不可!Problem:Redis插入数据插入后,key值为乱...原创 2019-11-09 18:58:25 · 283 阅读 · 0 评论 -
springBoot: SpringJPA,属性采用“驼峰命名法报错
problem:使用SpringJPA时,发现如果实体类中的属性采用“驼峰命名法”,则会出现Error:“org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.except...原创 2019-11-09 18:52:41 · 1762 阅读 · 0 评论 -
springBoot:application.properties与application.yml的区别?
problem: application.properties与application.yml的区别?solution:在.yml文件中:1. properties优先级更高。2. server、port的配置方式不同。原创 2019-11-09 18:47:15 · 508 阅读 · 0 评论