我再次扩展我的问题:在这里再次:我正在使用Spring Boot 2.6.7。
错误-
org.eclipse.jgit.api.errors.RefNotFoundException: Ref main cannot be resolved
at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:223) ~[org.eclipse.jgit-5.12.0.202106070339-r.jar:5.12.0.202106070339-r]
at org.springframework.cloud.co
我创建了一个spring boot微服务,即一个Eureka Client,这个客户端有一个发现服务器。当我启动发现服务器应用程序,然后启动此应用程序时,将得到以下错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationProp
我正在尝试设置一个默认路由,以便根据标题值处理消息:
public IntegrationFlow myFlow() {
return IntegrationFlows
.from(Jms.messageDrivenChannelAdapter(jmsConnectionFactory)
.destination(queueName))
.enrichHeaders(...) // set the status header ("failed", "success" o
我在简单的mongodb实体中有私有的LocalDateTime lastModifiedDate属性。使用最新的2.5.5和openjdk 17运行应用程序 Following exeptions I have with date time
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private java.time.LocalDateTime(java.time.LocalDate,java.time.LocalTime) accessible: module java.base do
我有Spring 1.5.21.RELEASE spring boot项目,但我无法初始化Spring Boot Datasoruce org.apache.commons.dbcp2.BasicDataSource。当应用程序启动时,我得到以下异常。我试了一次又一次地调试,但我不能确定是哪种不兼容导致了这个问题。我使用的是Java 8。 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined
如何按组名查找com.liferay.portal.model.Group对象?另外,如何通过角色名称找到com.liferay.portal.model.Role?
=============EDIT===============
我有testGroup:
Group group = GroupServiceUtil.getGroup(themeDisplay.getCompanyId(), "testGroup");
结果:
11:09:09,858 ERROR [RuntimePageImpl-15][render_portlet_jsp:132] null
com
我有一个Spring应用程序,有一个控制器类、一个模型类等等。每当我想要添加任何新类时,比如模型类。我可以在IDE中找到它,并在其他类中导入它。但是当我构建这个应用程序时,我会看到编译错误,说找不到这个类。
我已经尝试过清理这个项目,使缓存失效,重新启动等等。当我查看bin文件夹时,我的新模型类就丢失了。因此,由于某种原因,它没有被添加到那里。它是一个带有Gradle的Spring应用程序。我会感谢任何帮助,因为我是全新的Spring,我必须维护这个项目。
java.lang.IllegalStateException: Unable to load cache item
at
我正在将Spring应用程序从JDK 8迁移到JDK 17。
但是在JDK 17中,我有以下错误:
java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) accessible: module java.base does not "opens java.lang" to unnamed module @1356d4d4
at j
我已经将我的springboot版本从2.5.0改为2.6.2,当我运行我的后端时,我得到了以下错误:
java.lang.IllegalStateException: Failed to introspect Class [org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@2626b418]
at org.springframework.util.Refle
我正在将我的spring引导应用程序升级到最新的稳定版本2.6.6,构建是成功的,但是在运行时会出现以下错误。我如何查看为什么这个类PropertySourceLocator缺失,以及人们通常可以采取哪些步骤来解决与依赖相关的问题,比如在我的例子中。我尝试过各种方法,比如排除任何相互冲突的依赖,使用不同库的兼容版本,比如spring和spring。
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [MainApplicationClass];
提前谢谢你。当使用mongoDB启动我的spring-boot应用程序时,我得到了以下错误: java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCon
我正试图在我的SpringBoot Gradle项目中实现Zuul。我在运行应用程序时遇到了一些问题,我已经尝试了几乎所有可以在网上找到的方法。有人知道这里出了什么问题吗?
这是我的Gradle构建文件
plugins {
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
Spring引导试图找到@EnableWebSecurity类,尽管它不包括在内。
我正在使用@SpringApplication和@EnableWebMvc。可能是问题所在?
这是堆栈跟踪(仅当我使用调试级别时才会出现):
DEBUG o.s.c.t.c.AnnotationAttributesReadingVisitor - Failed to class-load type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavail
我目前正在试验Spring、Axon和java模块(使用JDK 17)。
我创建了一个回购程序来说明这个问题:
问题是应用程序没有启动,我得到的异常如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountViewProjection' defined in file [C:\workspace\axon\_issue_replication_repos\axon-module-error\axon-example-app\build\cl
我已经创建了简单的spring启动应用程序。然而,在启动该应用程序时,我得到了以下堆栈跟踪:
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1e4a7dd4: startup da
我试图创建一个使用spring引导和axon框架来实现CQRS和事件源的微服务。当我运行应用程序时,我正在获取FileNotFoundException。我在网上找不到任何解决办法。有人能帮我找到决议吗?如果我需要补充任何细节,请告诉我。
错误:
java.lang.IllegalStateException: Unable to read meta-data for class io.axoniq.axonserver.config.MetricsConfiguration
at org.springframework.boot.autoconfigure.AutoConfiguration
我是Java框架的新手。我正在尝试使用配置服务中的配置属性,并遵循。我尝试添加两个依赖项,一个是spring-cloud-config-client,另一个是spring-cloud-starter-bootstrap,但是每当我运行应用程序时,都会得到下面的错误
at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:334) ~[spring-core-5.3.21.jar:5.3.21]
at org.springframework.core.annotation.TypeMapped
我正在尝试用Java9做一个Spring Boot Maven多模块应用程序,它可以在不添加Spring数据支持和@Entity类的情况下工作,但现在它不能启动。问题是以下例外情况:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJp
当我在spring引导下初始化第一次运行时,在飞道上会出现错误,这是我在运行过程中遇到的错误。
只是尝试初始化我的第一个spring应用程序,并在sql数据库上创建表。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguratio
在IntelliJ中创建了一个spring引导项目,但在运行时出现了错误。
下面是错误
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.IllegalStateException: Temp directory 'C:\WINDOWS\TEMP' does not exist
at org.springframework.boot.web.servlet.context.ServletWebServ
当尝试使用Spring的tmp.txt文件删除C:\testing文件夹下的SystemCommandTasklet时,会出现以下错误。我的操作系统是windows 10。有什么快速指针出错了吗?
错误:
java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "del" (in directory "C:\testing"): CreateProcess error=2, The system cannot find the file specified