spring-mvc

    0熱度

    1回答

    我在spring引導應用程序的資源目錄中有一個文件。我可以在eclipse中正確加載它。但是當我構建這個項目並在服務器上運行時,它會拋出java.nio.file.NoSuchFileException。 哪些錯誤 我有下面的類 class TestDataLoader{ @Value("${service.filename}") private String filename; @Inj

    0熱度

    1回答

    在Spring引導應用程序中給出我有一個WebMvc配置,它擴展了WebMvcConfigurationSupport。 當我添加一個依賴於: org.springframework.cloud:spring-cloud-starter-consul-discovery:1.2.1.RELEASE 然後我得到: 工廠方法'defaultServletHandlerMapping'拋出異常;嵌套0​

    2熱度

    1回答

    我的請求映射在Spring MVC中不起作用。首頁index.jsp加載。 當它重定向到一個動作時,控制器不會被調用。 這裏是我的神器: 這裏是我的web.xml: <web-app> <display-name>Archetype Created Web Application</display-name> <context-param> <para

    0熱度

    3回答

    JavaScript代碼 function deleteMarks(list){ $http.post('/api/marks/delete/all',list).then( function(response){ refresh(); },function(response){ error(response.data.error) }

    1熱度

    1回答

    首先,我沒有使用Maven,因爲Maven插件沒有被安裝到我的Eclipse中。它會拋出502異常代碼。然後我嘗試創建一個動態Web項目,並在lib下添加彈簧罐(Context,Core,Webmvc)並配置爲構建路徑。 然後我創建了一個配置類,但它拋出 The type org.springframework.beans.factory.support.BeanNameGenerator can

    1熱度

    2回答

    我只有兩個類目前在我的春季啓動應用程序。首先是主要的Boot應用程序類另一個是服務類。我宣佈在應用類屬性的源文件如下: @SpringBootApplication @PropertySource("classpath:ftp.properties") public class Application { public static void main(String[] args

    2熱度

    2回答

    我有一個html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form name="AppE" method=

    0熱度

    1回答

    我正在嘗試開發我的第一個spring mvc應用程序並獲得上述錯誤。 我搜索了同樣例外的解決方案,但找不到任何解決方案。 ,這裏是我的web.xml <servlet-name>mvc-dispatcher</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet

    0熱度

    1回答

    我有處理「下載」按鈕的控制器方法,單擊我的頁面。這個方法打電話給我們的服務,在那裏查詢。 我的問題是,服務需要大約20-30秒才能執行查詢,然後將其返回給控制器並將其放回outputStream以返回給用戶。因此,在實際下載開始之前,用戶被阻止,並且在這30秒內無法做任何事情。 我該如何解決這個問題?我不希望我的用戶等待。我是春季mvc和異步編程的新手。所以,請解釋我怎樣才能異步做到這一點? @R

    1熱度

    1回答

    的已定義org.springframework.web.bind.annotation甚至不存在 所以我有這樣的代碼 import org.springframework.web.bind.annotation.GetMapping; 而且我已經在我的POM文件中的以下 <packaging>war</packaging> <properties> <spring.ver