[25.2.以编程方式设置profiles在应用运行前,你可以通过调用SpringApplication.setAdditionalProfiles(…)方法,以编程的方式设置激活的配置,也可以使用Spring的ConfigurableEnvironment接口激活配置(profiles)。25.3... ...
分类:
编程语言 时间:
2020-07-05 13:30:09
阅读次数:
56
ninx是一个HTTP和反向代理服务器,目前很多网站都在使用nginx作为反向代理服务器。 njs是JavaScript语言的一个子集,它允许扩展nginx的功能,这点跟lua有点类似,不过采用的语言是javascript。 1. 安装nginx 要使用njs,需要安装一个nginx,这里的我使用的 ...
分类:
编程语言 时间:
2020-07-05 12:02:07
阅读次数:
78
打开Project/Structure 点击Moudle,选中自己的Moudle,点击+,选择Library 选中自己的Tomcat,点击Add Selected,点击OK完成操作 ...
分类:
编程语言 时间:
2020-07-05 10:45:39
阅读次数:
76
引入 Element 时,可以传入一个全局配置对象。该对象目前支持 size 与 zIndex 字段 Vue.use(ElementUI, { size: 'small', zIndex: 3000 }) import Vue from 'vue' import ElementUI from 'el ...
分类:
其他好文 时间:
2020-07-05 09:14:27
阅读次数:
165
JS数据类型判断 JavaScript 中常见数据类型有Number、String、Boolean、Object、Array、Json、Function、Date、RegExp、Error、undefined、Null等十几种。ES6还有新增的数据类型有Symbol、Set、Map等。在实际应用中, ...
分类:
Web程序 时间:
2020-07-05 00:32:31
阅读次数:
89
Introduction In LTE the Downlink Shared Channel (DL-SCH) is a transport channel used for the transmission of user data, dedicated control and user-spe ...
分类:
其他好文 时间:
2020-07-05 00:30:22
阅读次数:
93
sudo rosdep init报错如下: ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/2 ...
分类:
其他好文 时间:
2020-07-05 00:22:56
阅读次数:
643
一、异常 程序在运行的过程中,不可避免出现一些错误,这些错误成为异常 异常以后的代码都不会被执行 try 语句 代码块(可能出现错误的语句) except 异常类型 as 异常名: 代码块(出错以后执行的语句) except 异常类型 as 异常名: 代码块(出错以后执行的语句) except 异常 ...
分类:
编程语言 时间:
2020-07-04 22:35:26
阅读次数:
82
import xlrdclass ReadExcel: def __init__(self,filename,sheetname): self.workbook = xlrd.open_workbook(filename) self.sheetname = self.workbook.sheet_b ...
分类:
编程语言 时间:
2020-07-04 22:31:00
阅读次数:
73
解决方法: 将visual c++ 升级到2019版本。 下载地址:https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads 安装完之后,即可解决该问题。 ...
分类:
其他好文 时间:
2020-07-04 21:07:43
阅读次数:
104