1.pom.xml文件中引入热部署依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </de ...
分类:
编程语言 时间:
2020-07-08 01:14:20
阅读次数:
137
1 包对象 基本介绍:包可以包含类、对象和特质trait,但不能包含函数/方法或变量的定义。这是Java虚拟机的局限。为了弥补这一点不足,scala提供了包对象的概念来解决这个问题。 package com.atguigu { //每个包都可以有一个包对象。你需要在父包(com.atguigu)中定 ...
分类:
其他好文 时间:
2020-07-07 17:44:36
阅读次数:
61
引用NuGet包 OpenHtmlToPdf 1 protected void btnExportPDF_Click(object sender, EventArgs e) 2 { 3 using (WebClient wc = new WebClient()) 4 { 5 wc.Encoding ...
分类:
Web程序 时间:
2020-07-07 15:32:59
阅读次数:
93
接着AbstractApplicationContext.refresh方法:initApplicationEventMulticaster,该方法用来初始化事件广播器,流程如下: protected void initApplicationEventMulticaster() { // 获取Bea ...
分类:
编程语言 时间:
2020-07-07 15:27:54
阅读次数:
80
修饰符 当前类 同一包内 子孙包内(同一包) 子孙包类(不同包) 其他包 public Y Y Y Y Y protected Y Y Y Y/N N default Y Y Y N N private Y N N N N private修饰的只可在本类中被访问。 默认访问修饰符 - 不适用任何关键 ...
分类:
编程语言 时间:
2020-07-07 13:13:21
阅读次数:
58
( 1 )对于外部类而言,它也可以使用访问控制符修饰,但外部类只能有两种访问控制级别: public 和默认。因为外部类没有处于任何类的内部,也就没有其所在类的内部、所在类的子类两个范围,因此 private 和 protected 访问控制符对外部类没有意义。 ( 2 )内部类的上一级程序单元是外 ...
分类:
其他好文 时间:
2020-07-07 13:11:21
阅读次数:
58
原文网址:https://www.jianshu.com/p/06153fabcad3 一、插件说明 JavaDoc 添加注释,可自定义模板。 插件下载地址:https://plugins.jetbrains.com/plugin/?idea_ce&pluginId=7157 插件源码地址:http ...
分类:
移动开发 时间:
2020-07-06 18:02:18
阅读次数:
80
<template> <div class="hello"> <div class="specs" v-for="(item,index) in arrList" :key="index"> <div>{{item.name}}:</div> <div class="spec" v-for="(it ...
分类:
其他好文 时间:
2020-07-06 10:54:38
阅读次数:
118
单例模式 单个实例,实例就是对象。限制类只能有一个对象。 class Danli{ // 私有化构造方法,禁止外部实例化对象 private function __construct(){} // 私有化属性 private static $_instance; // 禁止外部克隆 private ...
分类:
Web程序 时间:
2020-07-05 23:25:47
阅读次数:
148
应用场景:父组件对子组件的内容进行加工处理 我们先来看2.6版本之前的写法: // 父组件 <template> <div id="app"> <child> <template slot-scope="a"> <p v-text="a.item"></p> </template> </child> ...
分类:
其他好文 时间:
2020-07-05 21:21:07
阅读次数:
66