摘要: User实体类: public class User { private String uid;//id主键 private String loginname;//登录名 private String loginpass;//登录密码 private String email;//邮箱 privat 阅读全文
posted @ 2020-06-10 20:29 64Byte 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 去除applicationContext.xml实现简单的spring,把bean交给spring容器管理,获取属性的注入 定义一个配置类: @Configuration 用于指定当前类是一个 spring 配置类,当创建容器时会从该类上加载注解。获取容器时需要使用AnnotationApplica 阅读全文
posted @ 2020-06-10 20:21 64Byte 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 半注解半xml配置的开发方式 把<bean> 属性注入<property>,使用注解方式的替换 替换bean的注解: @Component, 标记在类上, 表示把这个类,交给Spring管理, 除dao,service,web层之外的类 @Repository 用于注册DAO(持久层 ) @Serv 阅读全文
posted @ 2020-06-10 20:08 64Byte 阅读(163) 评论(0) 推荐(0) 编辑
摘要: SpringToolSuite.exe介绍 spring Tool Suite是一个基于Eclipse IDE开发环境中的用于开发Spring应用程序的工具,提供了开箱即用的环境用于实现、调试和部署你的Spring应用,包括为关键的服务器和云计算、Git、Maven、AspectJ和最新的Eclip 阅读全文
posted @ 2020-06-10 19:42 64Byte 阅读(263) 评论(0) 推荐(0) 编辑