![](/img/trans.png)
[英]spring boot app does not reload despite spring boot dev tools already installed
我已經在我的 pom.xml 文件中包含了這個依賴項 在編譯器/設置中更改為“自動構建項目”,重新加載 Maven 項目,重新構建項目,但是當我在控制器中進行更改時,它似乎沒有重新加載應用程序(我看不到更改),盡管我在終端中看到了這個 ...
[英]spring boot app does not reload despite spring boot dev tools already installed
我已經在我的 pom.xml 文件中包含了這個依賴項 在編譯器/設置中更改為“自動構建項目”,重新加載 Maven 項目,重新構建項目,但是當我在控制器中進行更改時,它似乎沒有重新加載應用程序(我看不到更改),盡管我在終端中看到了這個 ...
[英]How to make Spring Boot Kotlin bootRun and devtools restart faster?
我正在開發一個 Spring Boot + Kotlin 應用程序,並希望加快 bootRun 啟動和 devtools 重啟時間。 目前重啟大約需要 20-30 秒,與可以熱重載時近乎即時刷新前端更改相比,這感覺慢得令人痛苦。 我正在使用 macOS Big Sur 11.6.7 和 Amazo ...
[英]What is happening after Spring Boot Devtools logs "Starting application"
我正在嘗試找出在使用 spring-boot-devtools 時改善 Spring Boot 應用程序重啟時間的方法,並看到這些日志行之間始終存在約 5 秒的延遲: 我已將根日志級別設置為 TRACE,但在那 5 秒內仍然什么也看不到。 那段時間發生了什么,有什么可以加快速度的嗎? ...
[英]spring-dev-tools does not reloading changes in project, Intellij idea
Maven 依賴項 spring-boot-devtools 不會自動重新加載項目中的更改。 我通過更改“運行配置”的參數解決了這個問題。 Go 編輯配置->在 Spring 啟動部分你會看到- 運行應用程序更新策略- 選項更改 - "在“更新”操作- 到 -> 更新觸發器文件和 ...
[英]Spring boot devtools with Spring mvc
是否可以在Spring MVC項目中使用spring-boot-devtools ? 我基本上希望.jsp頁面和其他 static 資源在不重啟服務器的情況下自動重新加載。 ...
[英]spring boot application with data JPA added data many time
我使用數據 JPA 創建了 Spring 引導應用程序並添加了開發工具依賴項,並在 JSP 和注冊頁面中創建了一個簡單的登錄頁面。 當我填寫注冊表並使用@ModelAttribute在controller中獲取注冊數據並將此數據保存到數據庫和go回到登錄頁面並刷新登錄頁面2或3次然后我的數據在數據庫 ...
[英]spring-boot-devtools Automatic Restart not working
我有一個使用 mvn 構建的 Spring Boot 2.25 應用程序。 根據這個文檔我添加 從文檔中: 由於 DevTools 監視類路徑資源,觸發重啟的唯一方法是更新類路徑。 更新類路徑的方式取決於您使用的 IDE。 在 Eclipse 中,保存修改后的文件會導致類路徑更新並觸發重啟。 在 I ...
[英]Spring Boot Dev Tools / Live Reloading - refresh of static resources is not working
為了改善開發人員體驗,我嘗試包含 Spring 開發工具。 我的設置: 多個模塊 Gradle 6.6 Spring 啟動 2.4.2 Thymeleaf 與 Webpack 反應子頁面我使用了一個多項目 gradle 構建,其中包含一個settings.gradle文件和一個子模塊,該子模塊也 ...
[英]Hot Reloading on GraalVM
我最近從 OpenJDK 8 升級到 GraalVM 20.1.0 (OpenJDK 11.0.7)。 有誰知道如何實現熱 class 重新加載(或至少 web 資產重新部署)。 Spring-Boot-Devtools 不會接受這些更改。 HotSpotAgent (DCEVM) 有一個 JD ...
[英]Spring Boot Devtools Remote cause error at Pivotal Cloud Foundry
抱歉,不能發布信譽低的圖片)這是我的設置:Spring 啟動:2.3.0.RELEASE 秘密 build.gradle Intellij Idea IDE 運行/調試配置我有這個應用程序在 Pivotal Cloud Foundry 工作。 我已經運行遠程應用程序並在通過 IDE 構建或使用./ ...
[英]java.lang.ClassCastException: class … is in unnamed module of loader 'app' - spring-boot-dev-tools
我們有一個更大的 Spring 引導應用程序,它會導致以下異常: 從與 JPA 類有關的 IDEA IntelliJ 開始。 該應用程序在從普通命令行啟動時運行良好。 在我們移除依賴之后 IDE 內的執行工作正常,沒有任何問題。 我們正在使用: Idea IntelliJ 2020.1.2 ...
[英]spring boot dev tools
I'm writing a REST API in spring boot that generates a class, controller and repository at runtime. 生成代碼后,我正在使用開發工具重新編譯 class。 我在我的 pom.xml 中包含了開發工具依 ...
[英]Spring boot devtools and ActiveJDBC integration
有什么辦法可以把Spring boot devtools的自動重啟功能和ActiveJDBC的instrumentation功能結合起來嗎? 每次模型或DB發生變化時也需要提供instrumentation,但是Spring boot的devtools端出現Auto-Restart時生成的代碼是A ...
[英]How to dynamically recompile and deploy Java project that a Spring Boot project is dependent upon?
我有一個啟用了 Spring Boot DevTools 的 Spring Boot Maven 項目,這樣當我更改項目中的代碼時,它會自動重新加載。 我還有一個我在 pom.xml 中引用的依賴項目: 我還希望在依賴項目中具有相同的功能,以便當我在該項目中更改代碼時,父項目將動態獲取更改並重新 ...
[英]Spring Boot live reload inside a docker container not working
我們有一個在 docker 容器內運行的 Spring boot gradle 項目,它使用一個 docker 卷。 Spring devtools 實時重新加載功能與以下屬性一起使用。 我們正在使用 docker 卷來更改容器內的源文件。 文件src/main/resources/reloa ...
[英]Gradle Spring Boot Devtools: developmentOnly and runtimeClasspath
我對在gradle文件中使用的gradle代碼感到困惑,這是由開發工具上的Spring Boot 文檔建議的 我想我必須聲明developmentOnly配置,因為它要在dependencies {}塊中使用,但是為什么我需要runtimeClasspath的行? 我實際上嘗試刪除我的項目中的行 ...
[英]How can I make spring-boot-devtools work without @EnableAutconfiguration or @SpringBootApplication?
我正在使用 spring-boot v1.3.5.RELEASE 開發一個應用程序,它不使用@SpringBootApplication也不使用@EnableAutconfiguration (客戶要求)。 我想讓spring-boot-devtools在我的 IDE 中具有“重啟”功能。 我把它 ...
[英]How to exclude classes generated with WSDL from Spring-Devtools restart cycle?
當我啟動 Spring 啟動應用程序並啟用 Spring-Devtools 並從 WSDL 模式生成類時,我得到: Caused by: java.lang.IllegalArgumentException: org.wsdl.WsdlServiceWs referenced from a met ...
[英]Live reload for thymeleaf template
當我更改駐留在 /templates 中的 thymeleaf.html 文件時,我希望瀏覽器自動重新加載頁面。 我安裝了實時重載插件,它能夠與 spring 啟動服務器進行握手。 但是,在更改 thymeleaf 模板文件后,我必須手動重新加載瀏覽器。 任何我可能遺漏的建議。 顯然我啟用了spri ...
[英]Spring Boot devtools - sometimes reloaded bean is not picked up on restart
我在使用spring-devtools重新啟動功能時遇到了一些麻煩。 似乎有時出於未知原因而更改,並且未拾取重新裝入的Bean。 應用類別: 命令行運行器: 更改並重新加載的服務: pom.xml中: 通常第一次重裝可以正常工作: 但是第二或第三次 ...