JavaShuo
栏目
标签
springboot在实体类中创建一个有参的构造函数 报错 Consider defining a bean of type 'java.lang.String' in your configurat
时间 2021-01-11
标签
注解
栏目
Spring
繁體版
原文
原文链接
新建了一个实体类 准备测试一下 @ModelAttribute注解的用法,在实体类里面写了一个有参的构造方法 编译正常, 启动项目报错如下 看问题描述意思是: com.example.demo.Book中构造函数的参数0需要找不到“java.lang.String”类型的bean。 并建议在配置中定义一个“java.lang.String”类型的bean。 问题原因:spring boot 自动注
>>阅读原文<<
相关文章
1.
一个扎心的错——Consider defining a bean of type 'java.lang.String' in your configuration.
2.
Consider defining a bean of type 'xxx' in your configuration.
3.
Consider defining a bean of type 'javax.activation.DataSource' in your configuration.
4.
spring boot 出现Consider defining a bean of type '*********' in your configurat
5.
springboot启动报Consider defining a bean of type 'xxx' in your configuration的错
6.
Consider defining a bean of type 'com.ls.config.DBConfig1' in your configuration
7.
springboot报错:Consider defining a bean of type com.service.VodClient in your configuration
8.
Consider defining a bean of type xxxxMapper in your configuration
9.
Consider defining a bean of type 'com.lvjing.dao.DeviceStatusMapper' in your configuration.
10.
SpringBoot项目启动报 Consider defining a bean of type xxxxx.' in your configuration.
更多相关文章...
•
Eclipse 创建 Java 类
-
Eclipse 教程
•
网络体系的构成和类型
-
TCP/IP教程
•
TiDB 在摩拜单车在线数据业务的应用和实践
•
C# 中 foreach 遍历的用法
相关标签/搜索
configurat
consider
defining
建立一个类
java.lang.string
参数种类、参数个数
创造
参错
bean
建造
Spring
Java
Redis教程
PHP参考手册
Spring教程
SpringBoot
架构
建议
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
gitlab4.0备份还原
2.
openstack
3.
深入探讨OSPF环路问题
4.
代码仓库-分支策略
5.
Admin-Framework(八)系统授权介绍
6.
Sketch教程|如何访问组件视图?
7.
问问自己,你真的会用防抖和节流么????
8.
[图]微软Office Access应用终于启用全新图标 Publisher已在路上
9.
微软准备淘汰 SHA-1
10.
微软准备淘汰 SHA-1
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
一个扎心的错——Consider defining a bean of type 'java.lang.String' in your configuration.
2.
Consider defining a bean of type 'xxx' in your configuration.
3.
Consider defining a bean of type 'javax.activation.DataSource' in your configuration.
4.
spring boot 出现Consider defining a bean of type '*********' in your configurat
5.
springboot启动报Consider defining a bean of type 'xxx' in your configuration的错
6.
Consider defining a bean of type 'com.ls.config.DBConfig1' in your configuration
7.
springboot报错:Consider defining a bean of type com.service.VodClient in your configuration
8.
Consider defining a bean of type xxxxMapper in your configuration
9.
Consider defining a bean of type 'com.lvjing.dao.DeviceStatusMapper' in your configuration.
10.
SpringBoot项目启动报 Consider defining a bean of type xxxxx.' in your configuration.
>>更多相关文章<<