spring MVC 3.1.1 + Mybatis 3.1.1 WebSphere 7.0 发布
来源:互联网 发布:sql 修改字段属性 编辑:程序博客网 时间:2024/05/17 07:33
终于搞出来了,不容易啊
首先ApplicationContext.xml中的Mybatis扫描mapper生成不能用通配符,可以写多个,别相信网上所谓的逗号、分号分隔了,老老实实列出来吧!
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.xxxxxx.mapper"/>
</bean>
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.xxxxxx.mapper"/>
</bean>
.........
其次,mvc的扫描也不能使用通配符,老老实实列出来吧!
<context:component-scan base-package="com.xxxxxxx.controller"/>
<context:component-scan base-package="com.xxxxxxx.controller"/>
<context:component-scan base-package="com.xxxxxxx.controller"/>
......... .........
......... .........
websphere 控制台--》服务器类型--》WebSphere Application Server --》server1--》Web 容器 > 定制属性 添加
应用程序服务器 >server1 > 进程定义 > Java 虚拟机
添加
-Djava.awt.headless=true
然后发布应用,重启服务,页面出来了。
主要针对mapper无法注入,controller无法跳转,页面404错误提示,算个笔记,错误类型就不贴出来了
- spring MVC 3.1.1 + Mybatis 3.1.1 WebSphere 7.0 发布
- Spring Spring mvc mybatis 经验小结(1)
- Mybatis分页插件3.1.1版本发布
- Mybatis分页插件3.1.1版本发布
- spring mvc+mybatis 构建cms内容发布系统ios android
- spring+mybatis+spring-mvc
- Spring +Spring MVC+Mybatis
- mybatis搭建spring mvc
- Spring MVC Mybatis 整合
- spring mvc mybatis 整合
- spring mvc + MyBatis + Easyui
- Spring MVC整合MyBatis
- 初识spring mvc + mybatis
- spring mvc mybatis 整合
- spring mvc mybatis 整合
- SSM_Spring mvc+Spring+Mybatis
- Spring MVC+MyBatis
- spring mvc mybatis
- 享受寂寞
- awk 获取ip地址的学习
- perl对于utf8编码文件的substr
- C#二分法
- Linux内核--网络协议栈深入分析(三)--BSD socket和传输层sock
- spring MVC 3.1.1 + Mybatis 3.1.1 WebSphere 7.0 发布
- Migrating Queries from One User To Another
- HDU 1253 3维bfs 一直wa,原来是小错误。
- hdu 3008 Warcraft(基础dp题)
- C#基本知识的一点感悟(2)——从源代码到中间语言
- iOS框架图
- 域用户登录过程
- Linux使用笔记: 使用Samba访问windows的共享目录
- 【山东】关于2012年下半年计算机技术与软件专业技术资格(水平)考试有关问题的通知