form

Spring Boot 2.x 实战--第一个Spring Boot程序

安稳与你 提交于 2020-03-11 00:23:04
Spring Boot 2.x 实战--第一个Spring Boot程序 《Spring Boot 2.X 实战》系列文章将分为如下几个模块,本小节将实战如何构建 RESTful API,并自定义返回数据和HTTP 返回码、以及给 API 接口传入数据,下一小节将实战 Spring Boot 整合 Log4j2 与 Slf4j 实现日志打印和输出到文件: 我是小先,一个专注大数据、分布式技术的非斜杠青年,爱Coding,爱阅读、爱摄影,更爱生活! 源代码仓库: https://github.com/zhshuixian/learn-spring-boot-2 上一章中主要介绍了 Spring Boot 和如何在 IDEA 中创建 Spring Boot 项目,本章将在上一章的基础上,介绍如何运行 Spring Boot 项目,并编写一些 RESTful API,本章主要包含如下内容: 运行 Spring Boot 项目 编写 RESTful API 接口 编写、运行单元测试 设置端口号和 HTTPS 打包成 Jar 1、运行 Spring Boot 程序 IDEA 在完成 Spring Boot 项目的依赖资源下载后,会自动配置 Spring Boot 的启动方式。可以通过快捷键 "Shift + F10" ,或者直接点击右上角的运行按钮。如果是社区版的 Idea,可以通过直接运行

vue+elementUI中el-radio设置默认值

假装没事ソ 提交于 2020-03-10 18:30:44
如果后台返回的单选框的值是number:单选框的lable需要设置成 :lable=‘0’;如下: < el - form - item label = "仿牌选项:" prop = "ifCod" size = "mini" class = 'form-label' > < div id = 'radio' > < el - radio class = 'm0' : disabled = "disable" v - model = "form.ifCod" : label = "0" > 普货 < / el - radio > < el - radio class = 'm0' : disabled = "disable" v - model = "form.ifCod" : label = "1" > 仿牌 < / el - radio > < / div > < / el - form - item > data ( ) { return { form : { ifCode : 0 } } } 后台返回的是字符串 则正常写; < el - form - item label = "仿牌选项:" prop = "ifCod" size = "mini" class = 'form-label' > < div id = 'radio' > < el - radio class

HTML学习笔记二20200310

你离开我真会死。 提交于 2020-03-10 15:45:56
接着昨天的写了 甩个链接 HTML学习笔记一 昨天的状态是这个样子的 < link href = "https://fonts.googleapis.com/css?family=Lobster" rel = "stylesheet" type = "text/css" > < style > . red - text { color : red ; } h2 { font - family : Lobster , Monospace ; } p { font - size : 16 px ; font - family : Monospace ; } . thick - green - border { border - color : green ; border - width : 10 px ; border - style : solid ; border - radius : 50 % ; } . smaller - image { width : 100 px ; } < / style > < h2 class = "red-text" > CatPhotoApp < / h2 > < p > Click here for < a href = "#" > cat photos < / a > . < / p > < a href = "#" > < img

关于js中\"window.location.href\"、\"location.href\"重定向

不想你离开。 提交于 2020-03-10 10:34:30
关于js中"window.location.href"、"location.href"、"parent.location.href"、"top.location.href"的用法 "window.location.href"、"location.href"是本页面跳转 "parent.location.href"是上一层页面跳转 "top.location.href"是最外层的页面跳转 举例说明: 如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的iframe,如果D中js这样写 "window.location.href"、"location.href":D页面跳转 "parent.location.href":C页面跳转 "top.location.href":A页面跳转 如果D页面中有form的话, <form>: form提交后D页面跳转 <form target="_blank">: form提交后弹出新页面 <form target="_parent">: form提交后C页面跳转 原文链接:https://blog.csdn.net/natian306/article/details/21527369 来源: https://www.cnblogs.com/lzghyh/p/12453853.html

前端如何利用form表单传数组

狂风中的少年 提交于 2020-03-10 03:32:04
在写前端的时候碰到了传数组的问题,于是我利用form表单测试了一下。 如何利用form表单传数组 form表单的常用形式如下: <form action="http://192.168.43.158:8082/uploadImage" method="post" enctype="multipart/form-data"> <input type="file" name="filename" size="45"><br> <input type="submit" name="submit" value="submit"> </form> 根据我目前的需求:传数组 <form action="http://192.168.43.158:8082/game/examination/addMul" method="post" enctype="multipart/form-data"> <form> <div class="form-control"> books1: <input type="text" name="books[]" /> </div> <br> <div class="form-control"> books2: <input type="text" name="books[]" /> </div> <input type="submit" value="Submit

Python WEB开发

最后都变了- 提交于 2020-03-10 03:12:50
1、Python语言 2、开发环境 Pycharm 2018.1.4永久版 导入jar包; pycharm.vmoptions and pycharm64.vmoptions分别插入: -javaagent:/opt/pycharm-2018.1.4/bin/JetbrainsCrack-3.1-release-enc.jar 3、开发框架 Django 查询 from functools import reduce lst = [ Q ( question_text__contains = 'you' ) , Q ( question_text__contains = 'who' ) ] # OR >> > Question . objects . filter ( reduce ( operator . or_ , lst ) ) [ < Question : what are you doing > , < Question : what is wrong with you > , < Question : who are you > , < Question : who am i > ] # AND >> > Question . objects . filter ( reduce ( operator . and_ , lst ) ) [ < Question : who

Vue:动态表单标签/校验提示

孤街浪徒 提交于 2020-03-09 13:49:37
场景介绍 对于表单项,存在前一个表单项填写控制后一个表单项展示问题。即动态表单项展示。 处理思路 定义表单项变量::label="nameLabel" < Form ref = "form" : model = "formModel" : rules = "formRulesList" label - width = "100px" size = "mini" > < FormItem label = "家长" required prop = "isFather" > < Select v - model = "formModel.isFather" clearable @change = "changeFamilyType" > < Option v - for = "(dataType, index) in familyList" : key = "index" : label = "dataType.type" : value = "dataType.isFather" / > < / Select > < / FormItem > < FormItem : label = "nameLabel" required prop = "nameId" v - if = "isVisible" > < Select v - model = "formModel.nameId"

预测海藻的数量

老子叫甜甜 提交于 2020-03-09 10:51:44
问题描述与目标 希望通过建立预测模型预测河流中有害海藻的数量。同时了解藻类的频率和水样的某些化学性质以及其他特征。 数据说明 本文采用R语言里面自带的海藻数据样本共200个,有以下几种因素影响海藻的生长,用summary对数据进行整合,如图所示。 图 每个记录有11个变量,其中3个变量是名义变量,它们分别描述水样收集的季节、收集河流的大小和河水速度。余下的8个变量是所观察水样的不同化学参数,即最大pH值、最小含氧量(O2)、平均氯化物含量(cl)、平均硝酸盐含量(NO3)、平均氨含量(NH4)、平均正磷酸含量(PO4)、平均磷酸盐含量(PO4)、平均叶绿素含量。与这些参数相关的是7种不同有害藻类在相应水样中的频率数目。并未提供所观察藻类的名称的有关信息。 数据处理 画出海藻mxPH的频数直方图、密度图。 图 我们可以从图中得到一些信息。左边的MxPH的直方图,同时显示了变量分布的核密度。右边是QQ图,绘制正态分布的散点图,虚线显示95%置信区间,可以看出上图符合正态分布。 为了了解不同河流区域PH值在不同水体中分布情况 图 但是我们从图一可以看出有许多没有用的数据,因此我们必须对数据进行清洗。剔除掉无效数据184组数据。因所以需要对数据进行填补。 填补缺失数据最简便和便捷的方法是使用一些代表中心趋势的值。代表中心趋势的值反映了变量分布的最常见值。有多个代表数据中心趋势的指标

UI5的Data binding

二次信任 提交于 2020-03-09 08:18:03
学习了解一下UI5的数据binding UI5作为一个成熟的企业级UI开发框架,其最大的特点就是遵循MVC的设计,也就是将代码逻辑清晰地区分为数据源(model) - UI(view) - 应用逻辑(controller)这三部分。数据binding就是model和view之间如何交互。 UI5的数据binding主要有三种方式: Property binding Aggregation binding Element binding binding有双向和单向。双向,也就是前端数据和数据模型都可以相互实时自动更新。 单向,就是从模型的更改会让视图自动显示变化。 Property binding UI组件的属性和数据模型可以绑定在一起,实现自动同步。 Code Example: Component.js: 初始化一个model init : function ( ) { // call the base component's init function UIComponent . prototype . init . apply ( this , arguments ) ; var oData = { recipient : { name : "World" } } ; var oModel = new JSONModel ( oData ) ; this . setModel

过滤Form数据源

不打扰是莪最后的温柔 提交于 2020-03-09 08:01:24
1、先在form的声明的地方声明变量。 public class FormRun extends ObjectRun {   QueryBuildRange criteriaPosted; } 2、数据源(datasource)对应的表的ini方法。 public void init() {   super();   criteriaPosted=this.query().dataSourceName('YouTable').addRange(fieldNum(YouTable,FieldName)); } 3、数据源的ExecuteQuery方法下。 public void executeQuery() {   criteriaPosted.value(queryValue(Noyes::No));   super();//注意,父类的方法要后执行. } 4、可以写一个checkbox,调用方法ExecuteQuery();这样就可以实现动态控制了。 5、数据源方法的区别。 (1)DS.Research(),保留现有条件,刷新数据,相当于F5的作用。 (2)DS.ExecuteQuery(),修改过渡条件后,必须重新执行查询。    DS.Reread(),重新从表读取。    DS.Refresh(),刷新数据。 6、也可以通过添加Filter过滤器方式添加查询。