cost 387 ms
Spring Boot 2.5.4 + Jersey + JSF

[英]Spring Boot 2.5.4 + Jersey + JSF

我用rest jersey jax-rs 和一些帶有JSF 的GUI 構建了一個spring boot + 項目。 它正在工作,但每次我啟動項目時都會生成一個錯誤日志,我試圖尋找它會是什么,但我不能。 有人可以幫我刪除它並在沒有錯誤的情況下啟動項目嗎? 這是我的pom: 這是帶有錯誤的啟動日志 ...

JerseyTest 框架:在集成測試中測試我的 proxyservlet

[英]JerseyTest framework: Testing my proxyservlet in integration tests

我的代碼中有一個 ProxyServlet (org.mitre.dsmiley.httpproxy),它執行一些操作並將某些以 */xyz 結尾的 url 轉發到不同的應用程序。 我有涵蓋我的應用程序的集成測試(使用 JerseyTest 框架)並希望使集成測試通過代理 servlet。 目前我 ...

無法再從 HttpServletRequest SpringBoot 2.2、Jersey 2.29 獲取表單數據

[英]Can no longer obtain form data from HttpServletRequest SpringBoot 2.2, Jersey 2.29

我們有一個 SpringBoot 應用程序,並且正在使用 Jersey 來審核傳入的 HTTP 請求。 我們實現了一個 Jersey ContainerRequestFilter來檢索傳入的HttpServletRequest並使用 HttpServletRequest 的getParameterM ...

在 Spring Boot 中使用 Jersey

[英]Using Jersey with Spring Boot

標題為7.3 JAX-RS 和 Jersey 的部分 Spring Boot 參考文檔提到“所有注冊的端點都應該是帶有 HTTP 資源注釋(@GET 和其他)的 @Components。由於端點是 Spring @Component,它的生命周期由 Spring 管理並且可以使用@Autowired ...

從 jar 運行時,Spring-boot jersey 崩潰並出現文件未找到異常。 從源代碼運行它沒有任何問題

[英]Spring-boot jersey crash with file not found exception when runs from jar. Running from source it works without any issue

當我從 Idea 運行它時,效果很好。 我使用gradle bootJar生成 jar。 當我運行它時,我得到: 我知道這是一個與掃描罐子內的球衣問題有關的問題,我已經在網上嘗試了所有可能的解決方案,我可以找到fe: 無法從 spring-boot jersey 運行生成的 jar ht ...

以 Json 和 csv 文件作為附件的 Rest API

[英]Rest API with both Json and a csv file as attachment

我們可以在 Rest 服務中同時提供 Json 響應和 csv 文件作為附件嗎? 我已經編寫了如下代碼,但我也確定它不會工作。 帶有文件的實體的第二個setter,基本上覆蓋了我之前作為實體插入的json內容。 所以請建議。 ...

總是在@RequestMapping function 之前調用 function

[英]Always call function before @RequestMapping function

我正在使用 spring 框架創建 API spring 服務。 對於我定義的每個端點,我有幾個@RequestMapping function。 在每個@RequestMapping function 中,我都有一個 function 在繼續之前檢查幾個授權變量。 在我轉發到相關的@Reques ...

如何使用Jersey Rest修復Spring Security和Spring Data JPA中禁止的403

[英]How to fix 403 forbidden in Spring security and Spring data JPA with Jersey rest

我從使用Spring Security的JDBC身份驗證的rest api獲取403 Forbidden。 我已經使用Jersey啟動Spring編寫了簡單的Restful api,並嘗試使用inMemoryAuthentication()方法實現Spring Security,並且工作正 ...

帶有平針織物的HK2InjectionManager,使用OpenJDK11進行升級

[英]HK2InjectionManager with jersey, upgrading with OpenJDK11

因為我正在升級jdk11和澤西,所以遇到一些錯誤,但這個特別難過。 因此,據說球衣2.28與OpenJDK11兼容並修復了之前在2.25.1中的一些問題,所以我升級了它 我也看到了這個,而不是一個有效的解決方案 - Jersey Spring Maven java.lang.NoClas ...

在 spring boot jar 中解壓球衣庫

[英]Unpacking jersey libraries in spring boot jar

我有一個帶有球衣依賴項的彈簧靴項目: 當我執行spring-boot:run所有上下文都變得完美並且一切正常。 當我使用mvn package對該項目進行打包時,問題就出現了,因為requiresUnpack不會解壓球衣依賴。 這對於這個問題是必要的: https : //github.com ...

將參數從REST API應用程序屬性傳遞到已注冊的ApplicationEventListener

[英]Passing arguments from REST API application properties to registered ApplicationEventListener

在我的一個用例中,我想從Spring boot Rest API的應用程序資源屬性中傳遞多個參數,並且此參數應由注冊的ApplicationEventListener或Jersey的ApplicationEvent偵聽。 可以請一些身體建議我如何實現這一目標。 下面是我的代碼庫 這是 ...

MessageBodyProviderNotFoundException:找不到針對媒體type = application / json,type = class java.lang.Long的MessageBodyWriter

[英]MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class java.lang.Long

從Jackson功能配置Moxy Json Feature到Springboot + Jersey Application時遇到問題。 所做的更改- 在ResourceConfig擴展類中- 在Pom.xml文件中添加了以下內容- API api面臨的異常- ...

json rootelement在JSON響應中顯示ArrayList而不是@JsonRootName(“ TestClass”)作為根元素

[英]json rootelement is showing ArrayList instead of @JsonRootName(“TestClass”) as root element in JSON response

我正在Maven SpringBoot微服務應用程序上工作,我希望我已經提到了帶有根元素I的json字符串,但是它給了我ArrayList作為rootelement的json字符串。 報告了很多類似的問題,但是沒有一個解決方案對我有用。 預期是 實際的json響應看起來像 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM