腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
在
wildfly
上
运行时
Spring
Boot
应用程序
问题
(
bean
创建
错误
)
spring-boot
、
wildfly
我是开发Java
应用程序
的新手,我正在尝试
在
Wildfly
上部署一个简单的
应用程序
,并且我已经收到了org.springframework.beans.factory.BeanCreationException.我不明白出了什么
问题
。当我使用Tomcat运行相同的
应用程序
时,我没有收到任何
错误
。</groupId> <artifactId>
spring
-
boot
-starter-par
浏览 189
提问于2020-02-02
得票数 1
回答已采纳
1
回答
为什么要显式地定义KafkaTemplate beans?
java
、
spring-boot
、
spring-kafka
Spring
Kafka reference documentation建议显式
创建
Kafka模板的
bean
。我使用的是
spring
-
boot
-starter 2.3.3和
spring
-kafka 2.5.5,我注意到您只需
创建
一个带有通配符类型的生产者工厂,Kafka模板
bean
就会自动
创建
。这种方法的缺点是,IDE不能再正确地评估是否确实存在@Autowired模板
bean
。当您在Kafka模板中使用大量不同的值
浏览 9
提问于2020-08-20
得票数 2
回答已采纳
2
回答
使用旧
Spring
Jars的
Spring
Boot
项目/项目|无法启动
java
、
spring
、
spring-boot
、
maven
需要新的
Spring
Boot
项目。需要包含现有
Spring
(非
Boot
)项目的Jar,因为它有一个我们需要使用的
bean
(有很多代码在那里,所以无法将其移动到
boot
)我已经
在
我的
spring
</artifactId>我已经
在
我的
Spring
Boot
浏览 0
提问于2020-08-31
得票数 0
1
回答
仅在server.log中以通配符打印
错误
日志。
java
、
spring
、
spring-boot
、
server
、
wildfly
我已经
创建
了一个带有war项目(2.7.0版本)的
spring
-
boot
文件,用于
在
wildfly
应用服务器中进行输出。
Boot
";}
问题
是System.out.println输出不是
在
server.log中写入的,而System.err.println实际
上
是打印
在
server.log文件中的。
在
我的实际
应用程序
中,我使用slf4j进行日志记录。我在那里
浏览 3
提问于2022-06-23
得票数 0
1
回答
在
项目中使用
Wildfly
java
、
spring
、
spring-boot
、
wildfly
我正在尝试
在
我的
spring
引导项目中使用
WildFly
。<dependency> <artifactId>
spring
-
boot
-starter-web</executions> <
浏览 2
提问于2017-10-27
得票数 2
回答已采纳
1
回答
在
运行时
更改Java
Spring
Boot
Bean
java
、
spring
、
spring-boot
、
javabeans
大家好,开发人员, 我使用
Spring
引导框架
创建
了一个库。这个库使用@Beans
创建
一个动态数据库连接,其中我
创建
了一个"data“
Bean
,它包含由Postgresql数据库提供的无限数据源
Bean
。不同数据库的信息存储
在
postgres中。它在
应用程序
启动时加载到此
bean
中。我的
问题
是,我不能在不同的数据源
bean
之间切换。
Spring
boot
浏览 3
提问于2017-04-18
得票数 0
1
回答
改变野生苍蝇上部署的
Spring
项目的端口
spring
、
port
、
wildfly
请注意版主:其他现有
问题
请参考默认界面。我不想改变这个。我需要具体地更改每个部署的端口。基于此,请不要关闭
问题
。现在,
问题
是:@Configuration @SpringBootApplication首先,它是.war名称和
浏览 4
提问于2022-06-21
得票数 0
回答已采纳
1
回答
关闭连接后在
运行时
重置
Spring
boot
中的数据库连接
java
、
database
、
spring-boot
、
database-connection
我在运行db2数据库的
spring
boot
应用程序
时遇到
错误
connection reset。
在
重新启动
应用程序
时,连接开始工作。如果我收到connection closed或connection reset
错误
,我需要在
运行时
重新连接到数据库。 做这件事的最佳方式是什么?或者一些
spring
boot
配置,比如@RefreshScope,会在配置更改后重新
创建
bean
。在这种情
浏览 0
提问于2020-12-18
得票数 0
6
回答
创建
在类路径资源中定义的名为'defaultValidator‘的
bean
时出错
spring
、
spring-boot
、
jboss
当我试图
在
JBOSS上部署我的
spring
boot
应用程序
时,我得到了以下
错误
。不过,它在嵌入式Tomcat Server
上
运行良好。我试图浏览Stack overflow来查找类似的
问题
。56) Application run failed: org.springframework.beans.factory.BeanCreationException: Error creating
bean
(ServletWebServerApplication
浏览 2
提问于2018-08-15
得票数 12
1
回答
有没有一个可以
在
Java9
上
运行的Grails版本?
grails
我尝试
在
Java9
上
运行我的Grails 3.3.2
应用程序
,大多数情况下
应用程序
都可以工作。尝试发送邮件会导致此
错误
: org.springframework.beans.factory.BeanCreationException: Error creating
bean
with namemailService': Invocation of init method failed; nested exception is java.lang.IllegalArgumentE
浏览 1
提问于2018-01-05
得票数 1
4
回答
无法
在
Spring
Boot
应用程序
中提供JSP
spring-boot
、
spring-mvc
我已经尝试了几个教程来使用
Spring
Boot
提供JSP页面。它们都会返回404页未找到
错误
。>
spring
-
boot
-starter-web</artifactId><dependency> <groupId>org.apache.tomcat.embedo.s.w.s.r.ResourceHttpRequestHandler : Path with "WEB-INF&qu
浏览 0
提问于2019-01-02
得票数 0
1
回答
无法解析“javax.persistence.EntityManager”的
bean
spring-boot
我有一个嵌入式项目,这是一个war,我配置了
Spring
,它成功地部署
在
Wildfly
13
上
。我的
问题
是,我将
Spring
的存储库和服务移动到另一个模块,另一个jar,并且从web
应用程序
中将依赖项添加到这个jar中。我将类、EntityScan和ComponentScan的包名更改为新包,但也有相同的
错误
。 目标是使用这个组件成功地将我的web
应用程序
部署到
Wildfly
13
上
,这是业务逻辑分
浏览 0
提问于2019-02-13
得票数 1
回答已采纳
4
回答
Spring
构造函数参数0
java
、
spring
、
spring-boot
我试图写一个简单的CRUD程序,我得到了这个
错误
。这个计划是基于codecademy项目之后的。不知道我为什么不工作。 <artifactId>
spring
-
boot
-starter-parent</artifactId> <version>2.6.2</version<groupId>org.springframe
浏览 9
提问于2022-01-17
得票数 1
1
回答
Spring
存储库注入不起作用
spring-data-jpa
、
wildfly
我正在用maven编写一个使用
Spring
数据的
Spring
测试
应用程序
。当我
在
wildfly
18上部署它时,会出现一个
错误
,因为依赖注入不起作用: @Repositoryprivate UserRepository userRepository;
错误
是:
浏览 17
提问于2020-01-28
得票数 0
回答已采纳
25
回答
ApplicationContextException:由于缺少ServletWebServerFactory
bean
,无法启动ServletWebServerFactory
spring
、
spring-boot
、
spring-mvc
我已经使用
spring
编写了一个
Spring
批处理
应用程序
。当我试图使用命令行和本地系统
上
的类路径运行该
应用程序
时,它运行得很好。然而,当我试图
在
linux服务器
上
运行它时,它给了我以下异常org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApp
浏览 2
提问于2018-05-08
得票数 148
回答已采纳
3
回答
Springboot
Wildfly
10部署
错误
找不到jdk.unsupported模块
java
、
spring-boot
、
maven
、
wildfly
、
wildfly-10
我有一个使用Java1.8的Springboot v2项目,当我尝试
在
Wildfly
10上部署我的springboot项目时,我总是收到这个
错误
19:12:25,295 ERROR [org.jboss.as.controller.management-operation] (Controller
Boot
Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "
浏览 2
提问于2020-12-02
得票数 7
2
回答
获取URL时出现Jsoup crawler和HTTP
错误
java
、
http
、
web-crawler
、
jsoup
、
http-status-code-404
我正在用Jsoup编写一个爬虫程序,这是我得到的HTTP
错误
: org.jsoup.HttpStatusException: HTTP error fetching URL.Status=404, URL=https://www.mkyong.com/
spring
-
boot
/
spring
-
boot
-hibernate-search-example/%E2%80%9Chttp:/
wildfly
.org/downloads
浏览 0
提问于2018-04-02
得票数 1
1
回答
Security
在
API调用上引发401身份验证
错误
,即使凭据为真
java
、
spring-boot
、
tomcat
、
spring-security
、
glassfish
我正在使用
Spring
开发一个单一页面
应用程序
&使用JWT身份验证进行响应。然后,我将
应用程序
打包并部署为一个WAR到一个应用服务器/servlet容器等
应用程序
开始拒绝来自我的客户端和火狐
上
其他客户端'RESTClient‘的身份验证()请求。输出因此目前没有关于请求拒绝的服务器输出,我还在Apache 8.5.23上部署了该
应用程序
,请求安全资源时的
错误
消息如下所示: JwtAuthenticationEntryPoint :
浏览 0
提问于2018-05-28
得票数 3
3
回答
在
一个简单的rest服务上得到了一个404
错误
spring
、
tomcat
、
spring-boot
、
http-status-code-404
、
spring-restcontroller
我对web开发非常陌生,今年夏天我
在
Spring
上
开发了一个web
应用程序
,但这个
应用程序
已经安装好了,只是在做一些Java和AngularJS的工作。但是现在我遇到了一些
问题
,要从头开始使用这种类型的
应用程序
。我试着测试一个简单的web服务,但是不能找到我想要的url,我得到了一个404
错误
。plugins> <depend
浏览 2
提问于2016-09-07
得票数 0
2
回答
未能确定CMD中合适的驱动程序类
java
、
spring
、
spring-boot
、
spring-mvc
我正在开发
spring
引导Rest
应用程序
,
在
我的VS代码
应用程序
中
运行时
没有任何
运行时
错误
,并且与postman一起工作,VS代码
运行时
输出。然而,当我通过VS代码导出JAR文件并尝试运行cmd时,该文件会弹出
运行时
错误
, cmd中的块引号误差Msg org.springframework.beans.factory.UnsatisfiedDependencyException: Error cr
浏览 5
提问于2022-06-29
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Java近期新闻:GlassFish 7.0、Payara平台、Apache NetBeans 16
MyEclipse 2020,支持Java14,升级框架,STS4集成
SpringBoot 2.0 系列(三):流程详解(下)
Spring和SpringBoot比较,解惑区别
Java近期新闻:JDK 18 GA、JMC 8.2、Spring升级、MicroStream 7.0-Beta1、WildFly 26.1-Beta1
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券