09 2020 档案
摘要:1、静态赋值 <img class="imgs-coat" v-for="(item,index) in coatImgs" :key="item.coatImg" :src="item.coatImg" alt="" data-item="123" @click="chooseCoat($even
阅读全文
摘要:Tomcat配置SSL安全证书 完全按照 aliyun的教程即可: https://help.aliyun.com/document_detail/98576.html https://help.aliyun.com/document_detail/102939.html 我的服务器是centos7
阅读全文
摘要:1、以实体类方式接收 @Controller @RequestMapping("/user") public class UserAction { @RequestMapping(value = "/add") @ResponseBody public String add(@RequestBody
阅读全文
摘要:public static void main(String[] args) { Map<String, String> map = new HashMap<String, String>(); map.put("1", "value1"); map.put("2", "value2"); map.
阅读全文
摘要:方法一: <div id="app"> <button @click="getData($event,'100')">点我</button> </div> methods : { getData(e,num) { console.log(num); // 输出 100 } } 方法二: <div i
阅读全文
摘要:let arr = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], ]; function cartesianProductOf() { return Array.prototype.reduce.call(arguments, function(a
阅读全文
摘要:在日常开发中,查询数据返回类型为map,数据库中有些自动值为空,则返回的结果中没有值为空的字段,则如何显示值为空的字段呢? 1.xml文件: <resultMap id="userLoginInfo" type="map" > <result column="uuid" property="id"
阅读全文
摘要:/** * 分割回车: * 在不同的操作系统中,对换号符的定义是不同的,比如: * 1. \n unix,linux系统,好像新的mac也是这样的。 * 2. \r 有的mac系统 * 3. \r\n window系统。 * 自己观察,你会发现规律,其实用一个正则表达式就可以满足: \r?\n 或根
阅读全文
摘要:1.先贴上具体报的异常: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.web.servlet.mvc.method.a
阅读全文
摘要:1.自定义注解 @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Component public @interface PermissionOperati
阅读全文
摘要:1、自定义注解Car_color package com.dist.annotation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.ann
阅读全文
摘要:今天碰到一个问题:mybatis 更新时。虽然数据更新成功了,但是返回值是负数(-2147482646),影响了到了程序里面业务的进行,经过分析查阅测试,做如下总结: Mybatis 内置的 ExecutorType 有3种 SIMPLE [默认], BATCH REUSE SimpleExecut
阅读全文
摘要:Idea-每次修改JS文件都需要重启Idea才能生效解决方法 转: https://www.cnblogs.com/kingxiaozi/p/6344432.html
阅读全文
摘要:可以再了解下pajax中修改浏览器地址栏! $(document).ready(function(){ pushHistory("/index/store/index?keywords={$keywords}","","主页"); }); /* 监听返回事件 */ function pushHist
阅读全文