springboot
zhengdaqian010
这个作者很懒,什么都没留下…
展开
-
packaging‘ with value ‘jar‘ is invalid. Aggregator projects require ‘pom‘ as packaging.
'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging.打包方式为jar包的打包方式无效,多模块项目需要POM的打包方式第二个箭头的地方指明了出问题的地方,The project com.changgou:changgou_web:1.0-SNAPSHOT (C:\JavaProject\07changgou_class\changgou_parent_3622\chan.原创 2022-01-06 02:31:40 · 6672 阅读 · 1 评论 -
Could not autowire.No beans of ‘ConnectionFactory‘ type found
Could not autowire.No beans of 'ConnectionFactory' type found错误的原因主要在于导错包正确的包,应该为import org.springframework.amqp.rabbit.connection.ConnectionFactory;原创 2021-12-28 11:38:11 · 4251 阅读 · 0 评论 -
java.lang.Exception: No runnable methods
错误在这里,主要原因是因为导错包正确的包,应该是这个如果对你有帮助,麻烦点个赞原创 2021-12-22 19:06:15 · 246 阅读 · 0 评论 -
ElasticsearchException: failed to map source XXX to class XXXX
ElasticsearchException: failed to map source XXXto class XXXX出现这种情况原因就是实体类中缺少空参构造在实体类中,添加空参构造即可如果对你有用,麻烦顺手点个赞原创 2021-12-19 21:12:31 · 363 阅读 · 0 评论 -
Invalid cluster node 127.0.0.1.9300 in 127.0.0.1.9300 Must be in the format host
Invalid cluster node 127.0.0.1.9300 in 127.0.0.1.9300! Must be in the format host:port! 错误在此:应该为:原创 2021-12-18 23:47:18 · 7909 阅读 · 0 评论 -
org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: main
在使用springcloud的配置中心的配置文件时,会遇到这样的情况:org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: main,虽然不影响程序的运行,但是对我一个追求完美的程序员来说,有点这样的小bug也实在看不下去。因为默认的标签是main, 而我们在配置文件中配置的标签不是main,所以就会报这样的小bug.我们只需要把默认的label,改成我们在配置文件中.原创 2021-12-11 18:01:09 · 2654 阅读 · 1 评论 -
Failed to introspect Class [org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyC
Failed to introspect Class [org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]Error processing condition on org.springframework.cloud.gateway.config.GatewayAu原创 2021-12-07 10:33:05 · 5554 阅读 · 4 评论