SpringBoot
学习Spring Boot,走向人生巅峰
慕斯-ing
一名混迹于互联网金融行业的小司机,行云流水敲码,凡尘俗世皆空,敲着代码品着茶,感受着趣味时光......
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
(一)springboot之用户退出功能
环境: 基于SpringBoot+SSM+Mysql前端代码:<script> //用户退出登录 function logout(){ if (confirm("确定要退出吗?")){ location.href="user_logout"; } }</script><a href="javascript:logout();"><li >用户退出&l原创 2021-07-27 18:23:30 · 1071 阅读 · 0 评论 -
No qualifying bean of type ‘com.bruceliu.mapper.UserMapper‘
报错信息:解决办法:这里只需要在mapper下的UserMapper中加入一个注解@Mapper即可(加入该注解用以生成对象)原创 2021-07-12 01:41:41 · 663 阅读 · 0 评论 -
SpringBoot中的Thymeleaf中index.html的命名空间如何写?
(1)页面是htmls型,命名空间:<html lang="en">(2)页面是thymeleaf型,命名空间:<html xmlns:th="http://www.thymeleaf.org">原创 2021-06-30 07:54:34 · 283 阅读 · 0 评论 -
IDEA开发SpringBoot之项目编译或启动后无法在target下的classes中生成资源文件(resources中的)
问题截图如下:经过调查发现,在pox.xml文件中有配置错误导致编译的时候无法同时也把包下面的xml以及resources下的资源文件同时编译到target中。正确的配置应该是如下所示: <resources> <!--编译的时候同时也把包下面的xml同时编译进去--> <resource> <directory>src/main/java</directory> <include原创 2021-06-30 02:35:17 · 2904 阅读 · 1 评论 -
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on
报错内容如下:解决办法:在pox.xml中加入下列代码即可。<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> &l原创 2021-06-26 20:31:11 · 239 阅读 · 0 评论 -
IDEA中程序包Org.Springframework.Boot不存在
问题描述:编译程序提示org.springframework.boot不存在。解决办法:对于新版的IDEA,需要在Setting里把 delegate IDE build/run actions to Maven勾选上。启动程序,看看能否成功!原创 2021-06-25 04:32:17 · 2433 阅读 · 2 评论
分享