1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# update code
git pull
# package
mvn clean
mvn package -Dmaven.
test
.skip=
true
# deploy
WAR=`
ls
target |
grep
war`
TOMCAT=
/home/test/apache-tomcat-6
.0.41
mv
target/$WAR $TOMCAT
cd
$TOMCAT
# invoke another deploy script
sh deploy-war.sh $WAR webapps
|
1
|
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): xxx
|
1
2
3
4
5
6
7
8
9
10
|
<
bean
class
=
"org.mybatis.spring.mapper.MapperScannerConfigurer"
>
<
property
name
=
"basePackage"
value
=
"com.gzxitao.demo.*.dao"
/>
</
bean
>
<
bean
id
=
"sqlSessionFactory"
class
=
"org.mybatis.spring.SqlSessionFactoryBean"
>
<
property
name
=
"dataSource"
ref
=
"dataSource"
/>
<
property
name
=
"configLocation"
value
=
"classpath:configuration.xml"
/>
<!-- 这里是要扫描多个目录下的文件,必须声明成“classpath*”,否则在某些情况下会报错 -->
<
property
name
=
"mapperLocations"
value
=
"classpath*:com/gzxitao/demo/*/dao/*.xml"
/>
</
bean
>
|