param

idea中 参数没有描述报错 @param XX tag description is missing错误,去除黄色警告

雨燕双飞 提交于 2020-02-14 11:37:12
最近在使用idea开发工具,在方法备注中参数没有描述报错就会报一些黄色警告: @param XX tag description is missing,下面展示去除黄色警告的方法 File--setting--inspections--搜索javadoc 找到Declaration has Javadoc problems 去除勾 来源: CSDN 作者: 独步秋风 链接: https://blog.csdn.net/qq_33326449/article/details/104307301

Java - 图像处理工具类

巧了我就是萌 提交于 2020-02-14 08:24:51
package com . boob . common . utils ; import javax . imageio . ImageIO ; import javax . imageio . stream . ImageOutputStream ; import java . awt . * ; import java . awt . geom . AffineTransform ; import java . awt . image . AffineTransformOp ; import java . awt . image . BufferedImage ; import java . io . * ; import java . text . DecimalFormat ; /** * @description:图像处理工具类(本类完全可以使用,但是更加推荐ImageMagick +Jmagick,采用C++实现的一个类库,提供了Java的Api,非常强大和高效) * 而且要为JVM分配较大的堆内存,否则内存溢出 * @author:boob * @since:2020/2/7 */ public class ImageUtils { public ImageUtils ( ) { } /** * 缩放图片 * @param src 源文件 * @param dest

SparkRESTApi使用JAVA封装

和自甴很熟 提交于 2020-02-14 07:21:06
项目功能就是封装SparkRestApi,用到了httpclient以及yarnclient,pom如下 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.wisetv</groupId> <artifactId>sparkprojectmanager<

ESP8266 SDK开发: 外设篇-定时器,延时

假如想象 提交于 2020-02-14 01:14:49
延时 /** * @brief Delay function, maximum value: 65535 us. * * @param uint16 us : delay time, uint: us, maximum value: 65535 us * * @return null */ void os_delay_us(uint16 us); 软件定时器 代码 #include "esp_timer.h" /** * @brief 定时器回调函数 * @param parg:传入的配置os_timer_setfn函数最后的参数 * @param None * @param None * @param None * @retval None * @warning None * @example **/ void os_timer_one_function(void *parg) { printf("parg:%s\n", parg);//打印一下传过来的参数 } //配置定时器 os_timer_setfn(&os_timer_one,os_timer_one_function,"yang");//os_timer_one:定时器结构体变量 os_timer_one_function:回调函数 yang:传给回调函数的参数 //使能定时器 os_timer_arm(&os

Java - BigDecimal精确运算工具类

妖精的绣舞 提交于 2020-02-13 21:10:02
package com . boob . common . utils ; import java . math . BigDecimal ; /** * @description:精确运算工具类 * @author:boob * @since:2020/2/9 */ public class MathUtils { public MathUtils ( ) { } /** * 提供精确的加法运算。 * * @param v1 被加数 * @param v2 加数 * @return 两个参数的和 */ public static double add ( String v1 , String v2 , int precision ) { BigDecimal b1 = new BigDecimal ( v1 ) ; BigDecimal b2 = new BigDecimal ( v2 ) ; return b1 . add ( b2 ) . setScale ( precision , BigDecimal . ROUND_HALF_UP ) . doubleValue ( ) ; } /** * 提供精确的减法运算。 * * @param v1 被减数 * @param v2 减数 * @return 两个参数的差 */ public static double sub (

python

断了今生、忘了曾经 提交于 2020-02-13 10:29:25
交换值 x = 1 y = 2 x, y = y, x + y # x = 2, y = 3 条件判断 x = 1 y = 2 flag = Ture z =x if flag else y # z = 1 第几天 def is_leap_year(year): """ 判断指定的年份是不是闰年 :param year: 年份 :return: 闰年返回True平年返回False """ return year % 4 == 0 and year % 100 != 0 or year % 400 == 0 def which_day(year, month, date): """ 计算传入的日期是这一年的第几天 :param year: 年 :param month: 月 :param date: 日 :return: 第几天 """ days_of_month = [ [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] ][is_leap_year(year)] total = 0 for index in range(month - 1): total += days_of_month[index] return total +

java+sql+物流快递管理系统

喜你入骨 提交于 2020-02-12 03:50:13
经过对系统实现功能的要求,进行集中、分块,同时也按照结构化程序设计的要求,根据分析得到如下的系统功能模块图: 代码已经上传github,下载地址:https://github.com/21503882/Physical-manage 图4-1物流快递管理系统管理员子系统功能模块图 图4-2物流快递管理系统客户子系统功能模块图 5.3管理员子系统详细设计 图5-3 系统登录模块页面 图5-4 系统主界面 图5-5管理员管理主页面 图5-6添加管理员页面 图5-7业务员管理主页面 图5-8添加业务员页面 图5-9快件信息管理主页面 图5-10叫件分配页面 图5-11 叫件信息收录人主页面 图5-12 叫件信息页面 图5-13途中信息维护主页面 图5-14途径信息页面 图5-15客户管理主页面 图5-16添加会员信息页面 图5-17信息反馈管理主页面 图5-18信息反馈页面 图5-19查询服务页面 5.4客户子系统详细设计 5.4.1 客户注册页面 在使用系统时必须注册成为系统的客户,并输入详细的客户信息。对应的磁盘文件为servlet/CustomServlet?method=regeditPage,会员注册页面设计如图5-20所示: 图5-20会员注册页面 图5-21我的订单信息管理页面 图5-22叫件管理页面 图5-23个人信息修改页面 package com.nuist.faxe

一、vuex的使用

本秂侑毒 提交于 2020-02-12 01:53:08
一、Vuex演示(mutations同步方法) 通过const state定义变量方式,在new Vuex.Store是引用的写法 1、main.js //sotre中的变量为所有组件共享变量,即全局变量 import Vue from 'vue';//引用vue import Vuex from 'vuex';//引用vuex Vue.use(Vuex);//使用vuex //一、格式 /*const store = new Vuex.Store(); export default store;*/ //////////////////////////////////////////////////////////////////////////////////// //2、示例 // 定义数据 // state在vuex中是用于储存数据的 const state={ name : 100 } // 定义方法 mutation同步,因为能改变state的方法是mutations // mutations 里面方的是方法,主要用于改变state中的数据源 const mutations ={ addNumber(){ state.name+=100 }, reduceNumber(){ state.name+=100 }, }, //定义方法 actions异步 使用场景

MyBatisPlus--Mapper的CRUD接口

假装没事ソ 提交于 2020-02-11 22:00:50
Insert // 插入一条记录 int insert ( T entity ) ; 类型 参数名 描述 T entity 实体对象 Delete // 根据 entity 条件,删除记录 int delete ( @Param ( Constants . WRAPPER ) Wrapper < T > wrapper ) ; // 删除(根据ID 批量删除) int deleteBatchIds ( @Param ( Constants . COLLECTION ) Collection < ? extends Serializable > idList ) ; // 根据 ID 删除 int deleteById ( Serializable id ) ; // 根据 columnMap 条件,删除记录 int deleteByMap ( @Param ( Constants . COLUMN_MAP ) Map < String , Object > columnMap ) ; 类型 参数名 描述 Wrapper<T> wrapper 实体对象封装操作类(可以为 null) Collection<? extends Serializable> idList 主键ID列表(不能为 null 以及 empty) Serializable id 主键ID Map<String,

非常实用的33个PHP代码实例

喜欢而已 提交于 2020-02-11 16:58:54
对于WEB开发人员来说PHP基本是标配,其他的程序员也可能会编上几句PHP代码。今天给大家总结了33个实用的PHP代码片段,在用到时可以直接进行复制粘贴,非常方便。也可以用来丰富自己的代码库。 <?php /** * 时间:0000-00-00 * 作者:xx * 超级有用、必须收藏的PHP代码样例 */class Helper { /** * 友好显示var_dump */ static public function dump($var, $echo = true, $label = null, $strict = true) { $label = ( $label === null ) ? '' : rtrim($label) . ' '; if (!$strict) { if (ini_get('html_errors')) { $output = print_r($var, true); $output = "<pre>" . $label . htmlspecialchars($output, ENT_QUOTES) . "</pre>"; } else { $output = $label . print_r($var, true); } } else { ob_start(); var_dump($var); $output = ob_get_clean(); if