錯誤TypeMismatchException: Failed to convert property value of type [java.lang解決與原因?
阿新 • • 發佈:2018-12-11
當你在開發時遇到這樣的問題時,說明你的配置檔案並沒有被spring容器載入到,所以導致這樣的錯誤,如圖:這時先檢查一下你的配置檔案是否被載入
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [int] for property 'maxIdle'; nested exception is java.lang.NumberFormatException: For input string: "${redis.maxIdle}"