摘要: 1.线程的创建和启动方式: 1.自定义类,让其继承Thread并重写run()方法,创建此类的对象。调用start()方法启动 public class MyThread extends Thread { //自定义线程类 @Override public void run() { 。。... 阅读全文
posted @ 2019-07-07 18:15 foreast 阅读(175) 评论(0) 推荐(0)
摘要: 单元测试,在开发中用于测试我们方法或服务的正确性,一般写在工程test包下。 @RunWith(SpringRunner.class) @SpringBootTest(classes = Application.class) //表示为spring boot测试 public class AtrributeDataMapperTest { private static fin... 阅读全文
posted @ 2019-03-21 20:36 foreast 阅读(220) 评论(0) 推荐(0)
摘要: 忘记登录密码或密码不可用: 1.进入mysql安装目录的bin文件夹下: cd mysql-5.7.25-winx64/bin 2.执行下面命令跳过验证: mysqld --skip-grant-tables 3.登录mysql: mysql -u root 4.修改密码(这里设置密码为“12345 阅读全文
posted @ 2019-03-17 11:48 foreast 阅读(267) 评论(0) 推荐(0)
摘要: @ConfigurationProperties注解和@EnableConfigurationProperties配合使用 1.配置文件: smartodn: debug: debug: ${smartodn.debug.debug} isSkipBak: ${smartodn.debug.isSkipBak} 2.获取配... 阅读全文
posted @ 2018-12-27 11:20 foreast 阅读(765) 评论(0) 推荐(0)
摘要: springboot过滤器配置 /** * 基本信息过滤器 * * @author jWX562483 */ @EnableConfigurationProperties(DebugProperties.class) @WebFilter(filterName = "InstanceFilter", urlPatterns = "/*") //配置过滤器名称和拦截的路径 @Com... 阅读全文
posted @ 2018-12-27 11:18 foreast 阅读(1309) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/dolphin0520/p/3920407.html 阅读全文
posted @ 2018-12-26 10:14 foreast 阅读(107) 评论(0) 推荐(0)
摘要: 1.xml(可扩展标记语言)的概述 与html的区别: xml: 描述数据,用于存储和传输数据。标签都是自定义的 html:显示数据,标签都是预定义的 注意事项: 文档声明必须在第一行 只有一个根标签 元素只能包裹嵌套,不能交叉嵌套 注释不能嵌套 标签命名规则:字母、数字、下划线、减号、英文... 阅读全文
posted @ 2018-12-18 22:52 foreast 阅读(1900) 评论(0) 推荐(0)
摘要: 生成结果: 阅读全文
posted @ 2018-12-18 22:50 foreast 阅读(545) 评论(0) 推荐(0)
摘要: 1.定义实体类Student: 2.创建Student集合 3.采用Stream流过滤得到分数大于60的学生并按年龄 分组,分组结果封装到Map集合 运行结果: {17=[com.liuxuelin.Student@7b23ec81, com.liuxuelin.Student@6acbcfc0], 阅读全文
posted @ 2018-12-16 21:03 foreast 阅读(264) 评论(0) 推荐(0)
摘要: 注意,上面操作的集合中如果有null,在执行 list.removeIf(s -> s.contains("1")); 时将会报错 阅读全文
posted @ 2018-12-16 16:45 foreast 阅读(18320) 评论(0) 推荐(0)