cost 206 ms
Spring 使用 Spring-boot-starter-data-jpa 和 spring-boot-starter-test 引导应用程序使 spring 找不到应用程序属性 - Spring boot application with Spring-boot-starter-data-jpa and spring-boot-starter-test makes spring does not find application properties

我创建了一个带有 spring 引导的小型应用程序,该应用程序使用 spring 数据访问数据库(mySql): spring-boot-starter-parent:2.4.2 spring-boot-starter-web:2.4.2 spring-boot-starter-data-jp ...

没有可用的“java.lang.String”类型的合格 bean:预计至少有 1 个有资格作为自动装配候选者的 bean。 依赖注解: - No qualifying bean of type 'java.lang.String' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations:

当有新的职位发布时,我正在使用 spring starter-email 服务向用户发送电子邮件:我正在关注 geeks for geeks 的这篇文章,我觉得问题出在 @Value 注释上,但在运行时无法获取mvn-clean install,我收到以下错误 以下是我的电子邮件服务 我正在 ...

我的控制器代码无法从 MockMvc get 请求访问,我总是收到 404 - My controller code is not reachable from the MockMvc get request and i am always getting 404

我正在尝试模拟我的控制器并为其编写测试用例。 但是当我尝试调试 Test 类时,控件没有进入我的 Controller 类。 我不确定我在这里做错了什么。 请帮我解决这个问题,因为我被困在这几乎超过 3 个小时。 我的服务类 我的测试班 我的控制器类 ...

是否必须仅在子模块中添加 spring-boot-starter-* 依赖项? - Mandatory to add spring-boot-starter-* dependencies in child module only?

我有一个父模块 (A),它已经作为依赖包含/导入到子模块 (B) 中。 模块A。 模块B 问题:编译没有错误,模块B的war工件(B.war)创建成功。 但是当我部署模块 B(即 B.war)时,它会因以下错误而失败。 线程“main”中的异常 java.lang.NoClassDefFoundE ...

为什么我第一次创建骨架 Boot 项目时 STS 会显示编译错误? - Why does STS show compilation errors when I first create a skeleton Boot project?

我刚刚下载并安装了 Spring Tool Suite 4 for Mac。 它有以下版本... 版本:4.6.2.RELEASE 构建 ID:202005250833 我创建了一个全新的 Spring 引导项目,方法是转到“文件”菜单,选择“新建”,然后选择“Spring Starter Pro ...

如何在 spring 自定义启动器中基于属性动态创建 bean - How to create beans dynamically in spring custom starter based on property

我正在编写一个自定义 spring 启动器,其中我需要根据 application.properties 中定义的属性注册一个相同类型的 bean 列表我在 application.properties 中有以下属性 自动配置 class 的当前实现如下 我想简单地在 spring 引导应用程序中 ...

camunda spring 引导启动器与 gradle 给出了 processEngineConfigurationImpl bean 丢失 - camunda spring boot starter with gradle gives processEngineConfigurationImpl bean missing

我的问题与这个问题非常相似,而且很简单:从 maven 复制粘贴服务到 gradle 项目使启动器无法运行。 这是我用作示例的项目,它开始时就像一个魅力: 但是我从部分来源复制的项目给出了以下内容: 我应该在配置中添加/更改什么以使我的“gradle”服务像“maven”一样工作? ...

Spring boot 2.2.1-无法启动嵌入tomcat(日志中没有错误) - Spring boot 2.2.1- Unable to start embed tomcat(no errors in log)

我正在开发一个版本2.2.1RELEASE的Spring Boot应用程序。应用程序结构,我已将配置作为外部配置移动到 config 文件夹中。项目结构应该是这样的 当我运行我的应用程序时,它显示以下日志 Pom.xml文件添加了以下依赖项 我尝试了以下可能的解决方案。 更 ...

如何禁用 TomcatServletWebServerFactory 的 SpringBoot 自动配置以便自定义 spring-starter 提供它? - How to disable SpringBoot autoconfiguration for TomcatServletWebServerFactory in order for a custom spring-starter to provide it?

所以我正在编写自己的 SpringBootStarter,它应该能够在 SpringBoot 应用程序的嵌入式 tomcat 中启用 JNDI 查找。 我的示例 SpringBoot 应用程序依赖于我的自定义 SpringBootStarter,而后者又依赖于 spring-boot-starte ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM