上一页 1 ··· 3 4 5 6 7
摘要: 之前是,直接在Mapper类上面添加注解@Mapper,这种方式要求每一个mapper类都需要添加此注解,麻烦。通过使用@MapperScan可以指定要扫描的Mapper类的包的路径,比如:@SpringBootApplication@MapperScan("com.lz.water.monitor... 阅读全文
posted @ 2018-07-27 10:54 zohy 阅读(363) 评论(0) 推荐(0) 编辑
摘要: https://docs.spring.io/spring-data/data-mongodb/docs/current/reference/html/在pom文件引入spring-boot-starter-data-mongodb依赖: org.springframework.boot ... 阅读全文
posted @ 2018-07-26 18:36 zohy 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 在持久层、控制层、业务层的注解分别使用@Repository、@Controller、@Service对各层面进行凝视,@Component对那些比较中立的类进行凝视Spring注解中@Component就是说把这个类交给Spring管理,因为不清楚这个类是属于哪个层面,所以就用@Component... 阅读全文
posted @ 2018-07-26 16:28 zohy 阅读(246) 评论(0) 推荐(0) 编辑
摘要: (?:[今明后](?:\s* * *)天)?(?:\s* * *)(?<![A-Za-z0-9])(?:\s* * *)[\((]?(?:\s* * *)(?:([0-9]+)?(?:\s* * *)[\.年])?(?:\s* * *)([0-9]+)(?:\s* * *)[\.月](?:\s* *... 阅读全文
posted @ 2018-07-25 18:26 zohy 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Given a binary matrixA, we want to flip the image horizontally, then invert it, and return the resulting image.To flip an image horizontally means th... 阅读全文
posted @ 2018-07-25 16:50 zohy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 静态代码块:用staitc声明,jvm加载类时执行,仅执行一次构造代码块:类中直接用{}定义,每一次创建对象时执行。执行顺序优先级:静态块,main(),构造块,构造方法。 阅读全文
posted @ 2018-07-24 10:47 zohy 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/sxwgf/archive/2011/11/17/2252076.html也许你是初学者,那以防万一,我先来讲讲什么是正则表达式吧:正则表达式可以帮助我们更好的描述复杂的文本格式。一旦你描述清楚了这些格式,那你就可以利用它们对文本数据进行检索、替... 阅读全文
posted @ 2018-07-24 10:15 zohy 阅读(189) 评论(0) 推荐(0) 编辑
摘要: You're given stringsJrepresenting the types of stones that are jewels, andSrepresenting the stones you have. Each character inSis a type of ston... 阅读全文
posted @ 2018-07-24 10:04 zohy 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 栈、 常量池、 堆各自存放什么样的数据类型?栈:存放基本类型的变量数据和对象的引用。像int a = 1; String str = "hello" ; String str1 = new String("OK") ; 栈中存放的是 a, 1, str, str1。常量池:存放基本类型常量和字符... 阅读全文
posted @ 2018-07-23 15:32 zohy 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.墨菲定律如果有两种或两种以上的方式去做某件事情,而其中一种选择方式将导致灾难,则必定有人会做出这种选择。2.波克定理只有在争辩中,才可能诞生最好的主意和最好的决定。3.奥格尔维法则如果我们每个人都雇用比我们自己都更强的人,我们就能成为巨人公司。4.美既好效应对一个外表英俊漂亮的人,人们很容易误认... 阅读全文
posted @ 2018-07-21 14:54 zohy 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7