随笔分类 -  Spring MVC

摘要:package test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; imp... 阅读全文
posted @ 2019-07-11 10:30 我没K~ 阅读(988) 评论(0) 推荐(0) 编辑
摘要:MyBatis接口的简单实现原理 用过MyBatis3的人可能会觉得为什么MyBatis的Mapper接口没有实现类,但是可以直接用? 那是因为MyBatis使用Java动态代理实现的接口。 这里仅仅举个简单例子来说明原理,不是完全针对MyBatis的,这种思想我们也可以应用在其他地方。 定义一个接 阅读全文
posted @ 2017-07-09 13:29 我没K~ 阅读(753) 评论(0) 推荐(0) 编辑
摘要:web.xml配置如下: 阅读全文
posted @ 2016-12-23 11:16 我没K~ 阅读(1146) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示