摘要: hibernate是面向对象查询 多 student 一 teacher 实体类 student,teacher t_teacher表:t_id,name,age主键 t_id t_student表:s_id,name,age主键 s_id 通过一的一方查询多的一方 student实体类中有teac 阅读全文
posted @ 2018-05-09 15:49 遨游边际 阅读(83) 评论(1) 推荐(0) 编辑
摘要: 错误报告:No plugin found for prefix 'tomcat' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from 阅读全文
posted @ 2018-05-07 16:27 遨游边际 阅读(755) 评论(0) 推荐(1) 编辑
摘要: xml 一 目的:通过ApplicationContext对象的getBean方法获取所需类的对象. 编写一个service类 编写applicationContext.xml文件 编写测试类 测试类运行结果 二 目的基于目的一进行简单属性注入 属性注入有两种形式:构造器注入和set方法注入 构造器 阅读全文
posted @ 2018-04-29 16:06 遨游边际 阅读(287) 评论(0) 推荐(0) 编辑