SpringBoot
雪子
这个作者很懒,什么都没留下…
展开
-
Springboot打成war包部署到Tomcat
1.在pom.xml中修改打成的包名称 <build> <finalName>你的包名称</finalName> <plugins> <plugin> <groupId>org.springframework.boot</gro...原创 2020-01-07 22:36:50 · 529 阅读 · 0 评论 -
Invalid VCS root mapping
idea导入springboot项目后 报错如下:这个错误的原因是maven路径配置不对,解决方案file -》 setting在左上角的搜索框输入maven配置正确的maven安装目录及seetting,xml位置和maven仓库问题解决2019-12-19 -- 雨南京...原创 2019-12-19 22:38:01 · 1054 阅读 · 0 评论 -
Exception in thread "main" java.lang.AbstractMethodError(Spring boot启动报错)
具体报错:Exception in thread "main" java.lang.AbstractMethodError: org.springframework.boot.context.config.ConfigFileApplicationListener.supportsSourceType(Ljava/lang/Class;)Z原因:在pom.xml文件中<paren...原创 2019-05-26 12:07:05 · 2654 阅读 · 0 评论 -
Unregistering JMX-exposed beans on shutdown Disconnected from the target VM(springboot启动报错: )
具体报错:Unregistering JMX-exposed beans on shutdownDisconnected from the target VM, address: '127.0.0.1:52998', transport: 'socket'解决方法:在pom.xml加tomcat依赖:<dependency><g...原创 2019-05-26 12:11:20 · 1475 阅读 · 0 评论 -
springboot使用fastjson解析json中文乱码问题
使用fastjson解析json 需要在配置文件application.properties中添加spring.http.encoding.force=true否则 中文会出现乱码原创 2019-05-26 12:16:30 · 1240 阅读 · 0 评论 -
springboot访问数据库报 Invalid bound statement (not found)
如果在使用mapper.xml时报了Invalid bound statement (not found)的错误,并且自己的mapper.xml的路径和文件名都没有错误的情况,很可能是因为没有在pom.xml中配置如下代码:<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 --> <resources> <resource...转载 2019-05-26 12:31:09 · 547 阅读 · 0 评论 -
springboot项目创建
1step:File -> New -> project...2step:在New Project窗口选择Spring Initializer -> 选择default -> Next3step:命名好项目名等信息点击 Next4step:选择左侧的第二个Web选项,在Web选项右边的弹窗中勾选第一个Web选项,然后Next...原创 2019-05-26 20:28:02 · 243 阅读 · 0 评论 -
SpringBoot存入数据库问号问题
将resources目录下的application.properties配置文件中数据库URL配置改为:spring.datasource.url = jdbc:mysql://localhost:3306/student?useSSL=true&characterEncoding=UTF-8即可解决数据库中存储的全是问号的问题,自己遇到问号问题就是这样解决的!!!...原创 2019-05-27 21:26:46 · 934 阅读 · 0 评论