启动search maven项目时的BUG

来源:互联网 发布:单片机的作用 编辑:程序博客网 时间:2024/06/03 20:00

1、HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: 
Invalid bound statement (not found): com.zhiyou100.search.mapper.ItemMapper.itemInfo

这是因为被web.xml拦截了,修改web.xml或者在pom.xml加入

<resources>           <resource>  <directory>src/main/java</directory>  <includes>  <include>**/*.xml</include>  </includes>  <filtering>false</filtering>    </resource>

不让其拦截就可以了。
2、org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; 
nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
是因为properties被拦截了,在pom.xml中加入
<resource>  <directory>src/main/resources</directory>  <includes>  <include>**/*.properties</include>  </includes>  <filtering>false</filtering>  </resource>
同样是不让其拦截
3、HTTP Status 500 - Request processing failed; nested exception is org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
 ERROR: [doc=605616] Error adding field 'item_price'='30900.0' msg=For input string: "30900.0"