cost 111 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,我收到以下錯誤 以下是我的電子郵件服務 我正在 ...

Spring Boot 啟動器依賴項是否可以投入生產?

[英]Are Spring Boot starter dependencies production-ready?

我正在學習 Spring Boot 以自己開發電子商務網站。 我認為像spring-boot-starter-web, spring-boot-starter-security這樣的 starter 依賴項可以用於生產環境還是僅用於學習目的? 另一個問題,有人告訴我,我不應該將 JPA 用於電子商 ...

我的控制器代碼無法從 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 ...

Eclipse - 如何創建 SQL 文件?

[英]Eclipse - How to create SQL File?

我目前正在從事 Spring Starter 項目。 我試圖在我的資源文件夾中添加/創建一個 SQL 文件。 但是在搜索“SQL 文件”時我沒有得到結果。 我也在 E​​clipse Marketplace 中尋找合適的東西,但我沒有找到任何東西。 當我搜索 SQL 時,我只得到 SQL Edito ...

為什么我第一次創建骨架 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