首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
SpringBoot
其然乐衣
创建于2022-11-08
订阅专栏
SpringBoot
暂无订阅
共9篇文章
创建于2022-11-08
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
(多余的@autowired)springboot异常:Consider defining a bean of type ‘java.lang.String‘
(多余的@autowired)springboot异常:Consider defining a bean of type ‘java.lang.String‘
Java后端数据返回通用类
private Integer code private String msg private T data private Map map = new HashMap()
Spring Boot-MyBatis配置带下划线命名的字段自动转换驼峰命名解决方案
在Spring Boot中,可以通过设置map-underscore-to-camel-case属性为true来开启驼峰功能。
云服务器上部署一个Springboot的web项目(图文讲解)
(PS:在部署之前, 1.你的虚拟机需要安装有jdk(这个Centos内部应该自带有,我的就是)和mysql(注意,如果你使用的数据库是8.0版本以上的,则需要安装mysql8.0以上的)
(实体类没有写get和set方法若的祸啦)No serializer found for class com.example.domain
报错: No serializer found for class com.example.domain.Men and no properties discovered to create Bean
(service层传来的总是null?)Springboot报错 java.lang.NullPointerException: null
上图表示dataSectionService返回是空,问题原因是因为上头注入DataSectionService时定义成了static,切记是这样是不能的,否则就是会报异常
Field restTemplate in cn.itcast.order.service.OrderService required a bean of ty
错误 这个错说明没有找到restTemplate模板,说明没有注入到spring容器中去 解决:再Applocation上注入即可
导入依赖报错 Original error: Could not transfer artifact com.sun
报错: Original error: Could not transfer artifact com.sun.jersey:jersey-server:pom:1.19.4 from/to cent
将maven项目改造成springboot项目
pom.xml配置之springboot 1.1 继承springboot父项目依赖 1.2 插件依赖 启动类配置 application.yml