自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 springboot打包跳过单元测试

在springboot项目中的pom文件中添加<skipTests>true</skipTests>springboot打包插件<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId></plugin>对于spring项目<pl

2021-04-25 13:55:00 366

原创 网站浏览器图标设置方法

方法一<head> <link rel="shortcut icon" href="/public/favicon.ico" type="image/x-icon"> <link rel="icon" href="/public/favicon.ico" type="image/x-icon"></head>这里的shortcut icon和icon是为了实现不同的浏览器。并且图标位置最好放到项目的根目录,因为有的浏览器只会在项目的根

2021-04-22 15:03:18 382

原创 解决端口号占用

1.查看端口号和pidnetstat -ano2.根据pid查询进程tasklist | findstr "4048"3.杀死进程taskkill /f /t /im Tomcat7.exe

2021-03-16 15:08:38 118

原创 六位、八位邀请码生成

六位邀请码public class InviteCodeUtils { private static String source = "MWX8YZE9FCDG3J2RS1TU5V6KL7HQA4BNP"; public static String Create(Integer length,Long phoneNo) { String code = ""; while (phoneNo > 0 && code.length

2021-03-13 14:44:17 3185 1

原创 Linux CentOS7安装crul

1 yum -y install curl2 curl --version

2020-12-09 14:20:59 272

原创 java.lang.String cannot be cast to java.lang.Integer map里string转integer错误

java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer map里string转integer错误map里放了string的数字,转型integer会报错。java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer梳理调查了一下,终于搞清楚了。先来3个放进map里的变量 I

2020-11-24 10:05:34 8605

原创 城市行政编码工具类

public class CityAndCodeUtil { private static Map<String,String> cityKeyMap = new HashMap(); private static Map<String,String> codeKeyMap = new HashMap(); static{ cityKeyMap.put("珠海市","4404"); codeKeyMap.put("4404"

2020-11-12 20:09:07 234

原创 SpringBoot上传图片

@RestController@RequestMapping("upload")public class UserController extends BaseController { @Autowired private IUserService userService; /** * 存储上传的文件的文件夹名称 */ public static final String UPLOAD_DIR = "upload"; /** * 上传文件时允许上传的最大大小 */

2020-11-12 20:08:16 125

原创 SpringBoot表单提交

@RequestMapping("/targetAdd")public String targetAdd(@RequestParam(value = "username",required = false) String username,@RequestParam(value = "passeord",required = false) String password) throws IOException{ if(null!=username){ return "ok

2020-11-12 16:50:38 338

原创 BigDecimal比较大小

BigDecimal a = new BigDecimal(0.1);BigDecimal b = new BigDecimal(1.1);//前提为a、b均不能为nullif(a.compareTo(b) == -1){ System.out.println("a小于b");} if(a.compareTo(b) == 0){ System.out.println("a等于b");} if(a.compareTo(b) == 1){ System.out.pri

2020-11-09 09:53:23 98

原创 No qualifying bean of type“xxx“ expected at least 1 bean which qualifies as autowire candidate.

No qualifying bean of type ‘com.mashi.worker.dao.CashoutLogsDao’available: expected at least 1 bean which qualifies as autowirecandidate. Dependency annotations:{@org.springframework.beans.factory.annotation.Autowired(required=true)}在启动类上加入@MapperSca.

2020-11-09 09:33:35 309

原创 Springboot Controller 接收参数的方式

第一类:请求路径参数1、@PathVariable获取路径参数。即url/{id}这种形式。2、@RequestParam获取查询参数。即url?name=这种形式例子GEThttp://localhost:8080/demo/123?name=suki_rong对应的java代码:@GetMapping("/demo/{id}")public void demo(@PathVariable(name = "id") String id, @RequestParam(name = "na

2020-11-08 17:34:18 922

原创 docker安装nacos

官方中文文档https://nacos.io/zh-cn/docs/quick-start-docker.html1)拉取镜像docker pull nacos/nacos-server:1.1.32)查看nacos镜像docker images3)启动镜像docker run --env MODE=standalone --name nacos -d -p 8848:8848 nacos/nacos-server:1.0.0...

2020-10-22 10:33:11 143

原创 阿里云服务器安装maven

1)创建安装目录mkdir /opt/software2)进入安装目录cd /opt/software3)wget方式下载maven包wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz4)解压tar -xzvf apache-maven-3.6.3-bin.tar.gz5)进入conf文件夹配置setting.xml阿里云镜像<mirro

2020-10-22 10:24:14 476

原创 Cors跨域问题中文官方文档

https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Access_control_CORS

2020-10-21 15:30:13 296

原创 sourcetree安装

1.在下面路径下创建一个accounts.json文件(把"你的电脑用户名"部分替代成你自己的信息)C:\Users\"你的电脑用户名"\AppData\Local\Atlassian\SourceTree2 在json文件中输入下面的内容 (不需要做任何的更改)[ { "$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",

2020-10-18 16:16:03 221

原创 2020-10-17

git ignore写法1.语法(1) "/"开头表示目录(2) "*"通配多个字符,可以匹配文件名或者路径(3) “?“通配单个字符,可以匹配字符或”/”(4) "[]"包含单个字符的匹配列表(5) "!"表示不忽略(6) "**"通配1或多层目录2.示例(1) log/,表示忽略当前目录下的log目录中的全部内容(2) /log/,同上(3) log/*.log,表示忽略当前目录下log目录中所有.log后缀的文件或目录(目录可以包含.)(4) *.log,表示忽略当前目录下所有

2020-10-17 16:08:42 54

原创 dede织梦自动识别手机端

首页:<meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/index.php"><script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.

2020-09-07 15:33:57 386

原创 DedeCMS模板文件不存在,无法解析文档!

如果是在生成文档文件时:去Include文件夹arc.archives.class.php文件,搜索“模板文件不存在,无法解析文档!”把echo "模板文件不存在,无法解析文档!";修改为echo "模板文件不存在,无法解析文档!{$this->ArcID}";返回错误的文章ID如果是生成栏目列表时去Include文件夹arc.listview.class.php文件,搜索“模板文件不存在,无法解析文档!”把echo "模板文件不存在,无法解析文档!";修改为echo "模板

2020-08-18 09:21:13 89

转载 https协议使用百度地图api

https的网站使用百度地图,如果你引用的地址没写对的话,加载不出来百度地图,被认为是不安全的JS内容。引用的地址:http://api.map.baidu.com/api?v=2.0&ak=qWmCfqDAdPBzy3YoHxGnimKT。后来看了一下,少了一个s=1字段,加一下s=1这个特殊字段后即可解决,格式:https://api.map.baidu.com/api?v=2.0&ak=你的密钥&s=1。修改后为:不加上s=1和加上s=1区别就在于引用的是http的还是

2020-07-06 17:54:27 989

原创 微擎路由

1、http://weiqin.com/web/index.php?c=profile&a=passport&对应的控制器目录为:web\source\profile\passport.ctrl.php对应的视图目录为:web\themes\default\profile\passport.html2、http://weiqin.com/web/index.php?c=site&a=entry&m=ewei_shopv2&do=web&r=order当

2020-06-18 15:22:11 328

原创 PHP学习笔记(二)

mktime(hour,minute,second,month,day,year):将日期转换为时间戳time():返回当前时间戳date(Y-m-d H:i:s):格式时间戳得到时间array getdate(时间戳):获得日期信息bool checkdate(month,day,year):检查日期有效性strotime(time1)−strotime(time1)- strotime(time1)−strotime(time2) >0:比较两个时间的大小Cookiesetcoo

2020-06-17 15:25:32 118

原创 PHP学习笔记(一)

一、常量定义define(string name,mixed value,case_sensitive=true);true:大小写不敏感使用mixed constant(string name)预定义常量FILE:PHP程序文件名LINE:PHP程序行数PHP_OS:操作系统二、变量使用前不需声明,直接赋值,区分大小写。在自定义函数内部使用全局变量要使用global关键字声明。预定义变量三、运算符“.”:拼接字符串@:在错误表达式前加上屏蔽错误信息四、函数默认参数:放到非

2020-06-16 15:34:16 110

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除