原创 Ajax中ContentType值的設置與HttpServletRequest的關係

一,對於Post請求,會有兩種數據請求格式,如下: FormData  ---普通表單格式數據   2. Request PayLoad   ----contentType爲application/json時 第一種數據格式,可以通過

原创 SpringBoot集成Solr啓動項目報錯Error creating bean with name 'solrClient' defined in class path resource

版權聲明:本文爲CSDN博主「紫仙空靈」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/lc1010078424/article/detail

原创 Solr集羣的連接,查詢及遊標的使用

ps:需要注意的點都用註釋標明瞭 一,連接 /** * 創建連接 * @return * @throws IOException * @throws SolrServerException

原创 spring.jpa.open-in-view,hibernate.enable_lazy_load_no_trans與no session的關係

1.spring.jpa.open-in-view 在使用spring boot web 時,會自動引入一個配置:spring.jpa.open-in-view=true,這個配置可以保證在controller層不會出現no sessio

原创 ajax和controller層的參數對應

ajax如下: var listInfo = { "c" : 10, "st" : _dataSources || "", "f

原创 設置在idea中編輯html,js不再需要重啓項目

1.在pom中添加依賴 <dependency>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-devtools</artifact

原创 eclipse配置git

https://www.cnblogs.com/xj-blog/p/9208660.html

原创 詳解@RequestBody,@RequestParam,@PathVariable的區別

一,@RequestBody 官方註釋爲: Annotation indicating a method parameter should be bound to the body of the web request. * The

原创 java使用POI根據word模板生成文檔,並且根據參數值實現換行

一,word模板如下 二,將word模板中的參數對應的值放到map中 /** * 將word模板中需要的參數值統一放到map中 * * @param resource * @param template * @pa

原创 SSH項目,failed to lazily initialize a collection of role

錯誤: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.zua.bos.domain.St

原创 安裝Node及gulp

一,整體安裝 1.先下載nvm安裝包       一路next安裝即可! 安裝成功之後,在安裝的根目錄(安裝時設置的第一個路徑)找到settings.txt文件,複製下面的內容到文件裏: arch: 64         proxy:

原创 sftp的一些基本操作

類結構: @Component public class BaseOperation { private static final Logger LOG = LoggerFactory.getLogger(BaseOperat

原创 java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=searchXmlDataFromSolr]

報錯信息: java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=searchXmlDataFromSolr], {ExactMatcher:fD

原创 @Autowired注入爲null的問題

問題: RunLoad類中:使用@Autowired爲analyzeSourceData,dao,sysDicDao注入值但均爲null @Component public class RunLoad { private static

原创 java.lang.IllegalStateException: getOutputStream() has already been called for this response

問題: 使用springboot完成項目的時候,邏輯代碼全部正確,在最後一步return返回值的時候報錯,錯誤如下:   at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.s