上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 129 下一页
摘要: 区别 今天在撸SpringBoot的时候,突然对注解产生了混淆,@MapperScan和@ComponentScan都是扫描包,二者之间有什么区别呢? 首先,@ComponentScan是组件扫描注解,用来扫描@Controller @Service @Repository这类,主要就是定义扫描的路 阅读全文
posted @ 2019-07-27 15:30 ThisCall 阅读(2059) 评论(0) 推荐(0)
摘要: 1、@controller 控制器(注入服务) 2、@service 服务(注入dao) 3、@repository dao(实现dao访问) 4、@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>) @Component 阅读全文
posted @ 2019-07-26 16:25 ThisCall 阅读(292) 评论(0) 推荐(0)
摘要: http://www.imooc.com/learn/1141 阅读全文
posted @ 2019-07-26 13:34 ThisCall 阅读(134) 评论(0) 推荐(0)
摘要: long lNum = 1234L; float fNum = 1.23f; double dNum = 1.23d; 阅读全文
posted @ 2019-07-26 11:52 ThisCall 阅读(704) 评论(0) 推荐(0)
摘要: (1)删除注册表中以proxy开头的项目再次重启 regedit进入[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings] ,删除注册表中以proxy开头的项目 阅读全文
posted @ 2019-07-26 09:04 ThisCall 阅读(694) 评论(0) 推荐(0)
摘要: 通常有两种原因,配置原因,或者是mapper相关文件,mapper.java或 mapper.xml内部错误 如果是配置原因 解决方式1 统一配置mapper 解决方式2 每个mapper文件配置@Mapper 两者可以结合使用 阅读全文
posted @ 2019-07-25 18:08 ThisCall 阅读(3401) 评论(0) 推荐(0)
摘要: UserBaseInfo selectByMobile(@Param("mobile")String mobile,@Param("isDeleted")Integer isDeleted,@Param("isEnable")Integer isEnable); List getTwoLevels(@Param("ids") List ids); UserBaseInfo getByMo... 阅读全文
posted @ 2019-07-25 17:55 ThisCall 阅读(1246) 评论(0) 推荐(0)
摘要: /** * 账单金额 */ private BigDecimal money; public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone == null ? n 阅读全文
posted @ 2019-07-25 16:25 ThisCall 阅读(713) 评论(0) 推荐(0)
摘要: 复杂参数,实体类参数 springMVC中的注解@RequestParam与@PathVariable的区别 在SpringMVC后台控制层获取参数的方式主要有两种: 一种是request.getParameter("name"),另外一种是用注解@RequestParam直接获取 这里主要讲这个注 阅读全文
posted @ 2019-07-25 15:11 ThisCall 阅读(723) 评论(0) 推荐(0)
摘要: 复杂参数,自定义实体类 阅读全文
posted @ 2019-07-25 14:45 ThisCall 阅读(598) 评论(0) 推荐(0)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 129 下一页