爷的眼睛闪亮
insideDotNet En_summerGarden
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 67 下一页
摘要: 配置文件 #h2 数据库配置#配置数据库连接地址spring.datasource.url=jdbc:h2:sunniwell:sos#配置数据库驱动spring.datasource.driver-class-name=org.h2.Driver#配置数据库用户名spring.datasource 阅读全文
posted @ 2017-12-19 15:32 爷的眼睛闪亮 阅读(8381) 评论(0) 推荐(0)
摘要: 文主要解答一个问题,即如果bean没有setter,而且属性不是public的,mybatis的自动组装是否可以赋值成功的问题。 查询调用过程 DefaultSqlSession.selectList -->SimpleExecutor.doQuery --> SimpleStatementHand 阅读全文
posted @ 2017-12-19 14:13 爷的眼睛闪亮 阅读(434) 评论(0) 推荐(0)
摘要: 通过MapKey指定map的key值 map的value为java类 map的value为map 阅读全文
posted @ 2017-12-19 14:12 爷的眼睛闪亮 阅读(8841) 评论(0) 推荐(0)
摘要: 序 mybatis里头给sqlSession指定执行哪条sql的时候,有两种方式,一种是写mapper的xml的namespace+statementId,如下: 另外一种方法是指定mapper的接口: 一般的话,比较推荐第二种方法,因为手工写namespace和statementId极大增加了犯错 阅读全文
posted @ 2017-12-19 14:11 爷的眼睛闪亮 阅读(5166) 评论(0) 推荐(1)
摘要: 问题 mybatis的xml中的sql语句是启动时生成JDK代理类的时候就生成一次么 调用顺序链 解析xml配置 Reader reader = Resources.getResourceAsReader("mybatis-config.xml"); sqlSessionFactory = new 阅读全文
posted @ 2017-12-19 14:10 爷的眼睛闪亮 阅读(535) 评论(0) 推荐(0)
摘要: 一、使用mybatis-spring-boot-starter 1、添加依赖 2、启动时导入指定的sql(application.properties) 3、annotation形式 4、xml方式 mybatis-config.xml application.properties mapper 二 阅读全文
posted @ 2017-12-19 14:09 爷的眼睛闪亮 阅读(331) 评论(0) 推荐(0)
摘要: SpringBoot的starter主要用来简化依赖用的。本文主要分两部分,一部分是列出一些starter的依赖,另一部分是教你自己写一个starter。 部分starters的依赖 Reference 来自<<Spring Boot in Action>>的附录B SpringBoot Start 阅读全文
posted @ 2017-12-19 14:08 爷的眼睛闪亮 阅读(580) 评论(0) 推荐(0)
摘要: Spring Boot有四大神器,分别是auto-configuration、starters、cli、actuator,本文主要讲actuator。actuator是spring boot提供的对应用系统的自省和监控的集成功能,可以对应用系统进行配置查看、相关功能统计等。 使用actuator 添 阅读全文
posted @ 2017-12-19 14:06 爷的眼睛闪亮 阅读(9571) 评论(0) 推荐(1)
摘要: aop spring.aop.auto是否支持@EnableAspectJAutoProxy,默认为: true spring.aop.proxy-target-classtrue为使用CGLIB代理,false为JDK代理,默认为false spring.aop.auto是否支持@EnableAs 阅读全文
posted @ 2017-12-19 14:04 爷的眼睛闪亮 阅读(694) 评论(0) 推荐(0)
摘要: 本文主要讲述spring boot的由来,即其它诞生的背景,初衷,现状,及对未来的展望。 背景 在很早的年代,J2EE还是java企业级应用的王者规范,EJB风行其道。后来有一个叫Rod Johnson的音乐学博士,写了本《Expert One on one J2EE without EJB》,发明 阅读全文
posted @ 2017-12-19 14:04 爷的眼睛闪亮 阅读(323) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 67 下一页