1,创建module,pom引入依赖:spring-boot-configuration-processor 2,创建entity,类上加注解:@ConfigurationProperties(prefix="sms"),这样可以读取application.yml文件,把文件的属性映射到class的 ...
分类:
编程语言 时间:
2020-11-07 15:49:12
阅读次数:
18
前置知识 ajax形式post提交数据的content-type有主要常用三种 application/x-www-form-urlencoded multipart/form-data(上传文件) application/json 原生的django对于content-type为applicati ...
分类:
移动开发 时间:
2020-11-06 01:26:29
阅读次数:
24
this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出; Application.ExitThread ...
分类:
编程语言 时间:
2020-11-04 18:44:34
阅读次数:
18
[app] # (str) Title of your application title = My Camera # (str) Package name package.name = myapp # (str) Package domain (needed for android/ios pac ...
分类:
其他好文 时间:
2020-11-04 18:36:40
阅读次数:
20
常用配置 spring.profiles.active=@spring.profiles.active@ pom文件中定义的配置文件 server.port=8080 web默认访问端口 server.context-path=/demo 上下文路径 server.session.timeout=1 ...
分类:
移动开发 时间:
2020-11-01 09:19:30
阅读次数:
26
1、介绍enctype enctype 属性规定发送到服务器之前应该如何对表单数据进行编码。 enctype作用是告知服务器请求正文的MIME类型(请求消息头content-type的作用一样) 1、1 enctype的取值有三种 值 描述 application/x-www-form-urlenc ...
分类:
Web程序 时间:
2020-10-31 01:23:03
阅读次数:
33
本帖最后由 ibq00 于 2018-12-22 18:54 编辑虚拟机里面不能开游戏!提示这个对话框!Sorry, this application cannot run under a Virtual Machine之前的办法早就用不成了,所以我找来了这个办法!供给大家学习打开注册表regedi ...
分类:
系统相关 时间:
2020-10-30 12:45:51
阅读次数:
48
#uwsgi 常用参数 #项目目录 chdir=/var/www/orange_web/ #指定项目application module=orange_web.wsgi:application #指定sock的文件路径(nginx使用) socket=/var/www/script/uwsgi.so ...
分类:
其他好文 时间:
2020-10-30 12:34:12
阅读次数:
19
import re # 下方引号内添加替换掉请求头内容 headers_str = """ Accept: application/json, text/javascript, */*; q=0.01 Accept-Encoding: gzip, deflate, br Accept-Languag ...
分类:
编程语言 时间:
2020-10-26 11:20:04
阅读次数:
29
1 worker_processes 2; 2 events { 3 worker_connections 1024; 4 } 5 http { 6 include mime.types; 7 default_type application/octet-stream; 8 #upstream配置被 ...
分类:
其他好文 时间:
2020-10-22 23:03:13
阅读次数:
20