码迷,mamicode.com
首页 > 2019年04月24日 > 全部分享
Spring Boot 启动:No active profile set, falling back to default profiles: default
启动 Spring Boot 失败,但是没有出现多余的异常信息: 检查之后发现是依赖的问题(之前依赖的是 spring boot starter),修改即可:   方法二: pom.xml加上下面两个依赖 <dependency> <groupId>org.spri ...
分类:编程语言   时间:2019-04-24 23:32:44    阅读次数:6045
SpringMVC初写(四)上传和下载功能的实现
一.文件上传 流程: 启动SpringMVC注解支持 配置上传解释器 导入需要的的包 配置SpringMVC配置文件 注:因为在SpringMVC核心控制器DispacherServlet源码中,multipartResolver是一个固定加载属性,因此配置的上传解释器名字必须是multipartR ...
分类:编程语言   时间:2019-04-24 23:32:27    阅读次数:189
python——jieba分词过程
1 import jieba 2 """函数2:分词函数""" 3 def fenci(training_data): 4 """------------------------------------------------------- 5 seg_list = jieba.cut("他来到上海... ...
分类:编程语言   时间:2019-04-24 23:32:13    阅读次数:175
java中的getStackTrace和printStackTrace的区别
getStackTrace()返回的是通过getOurStackTrace方法获取的StackTraceElement[]数组,而这个StackTraceElement是ERROR的每一个cause by的信息。 printStackTrace()返回的是一个void值,但是可以看到其方法内部将当前 ...
分类:编程语言   时间:2019-04-24 23:31:57    阅读次数:189
Java并发包1--线程的状态及常用方法
一、线程主要有以下几种状态: new(新建):线程刚刚被创建 runnable(就绪):新建的线程执行start方法进入就绪状态等待系统调度分配CPU,被分配了之后就进入运行中状态 blocked(阻塞):当线程执行被锁的代码块或方法时,等待其他线程释放锁而处于阻塞状态 waiting(等待):线程 ...
分类:编程语言   时间:2019-04-24 23:31:40    阅读次数:182
Codeforces Round #350 (Div. 2) C. Cinema
Moscow is hosting a major international conference, which is attended by n scientists from different countries. Each of the scientists knows exactly o ...
分类:其他好文   时间:2019-04-24 23:31:05    阅读次数:115
Linux 常用命令
1 常用简单命令 echo date reboot poweroff wget ps top pidof kill killall 2 系统状态检测命令 ifconfig uname -a uptime free -h who history sosreport 3 工作目录切换 pwd cd - ...
分类:系统相关   时间:2019-04-24 23:30:49    阅读次数:191
【leetcode】1029. Two City Scheduling
题目如下: There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the  ...
分类:其他好文   时间:2019-04-24 23:30:32    阅读次数:179
LCA
Tarjan c++ include include include include include include include include include include include include using namespace std; typedef long long ll; ...
分类:其他好文   时间:2019-04-24 23:30:11    阅读次数:144
npm安装模块依赖时一个常见的报错的解决办法(“Please try running this command again as root/Administrator”)
前端开发中经常会用到npm安装一些框架所需要的模块,比如我在使用vue-resource这个vue依赖时,执行命令npm install vue-resouce --save-dev 这个命令的时候,试了好几次都是报 没有管理员权限,百度的办法大体有两种,第一种是清理缓存,如npm cache cl ...
分类:其他好文   时间:2019-04-24 23:30:01    阅读次数:490
Java中的内部类
内部类:顾名思义,定义在内部的类,所以,在Java中,可以将一个类定义在另一个类里面或者一个方法里面,这样的类称为内部类。广泛意义上的内部类一般来说包括这四种:成员内部类、局部内部类、匿名内部类和静态内部类。 为什么要用内部类,普通的创建一个新类,创建一个新对象,也能完成相同的作用,下面举例来说明一 ...
分类:编程语言   时间:2019-04-24 23:29:08    阅读次数:192
xshell编程小结
初步学完shell脚本编程,通过这篇博客对其小结一下 shell定义:shell其实是一个命令解释器,它的作用是解释用户输入的命令和程序 shell脚本:我们可以在文本中输入一系列的命令、控制语句和变量,这一切有机的结合起来就形成了功能强大的shell脚本。 一.基础语法 查看系统脚本解释器 常用的 ...
分类:系统相关   时间:2019-04-24 23:28:28    阅读次数:226
给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。
public String longestPalindrome(String s) { if(s == null||s.length()==0){ return s; } String res = ""; int max=0; boolean[][] dp = new boolean[s.l... ...
分类:其他好文   时间:2019-04-24 23:28:12    阅读次数:583
FastDfs 分布式文件系统 (实测成功)
最近公司需要搭建一台FastDfs分布式文件系统,查询和参考了网络很多资料,但是从头到尾按他们的配置,中间都会或多或少的出错,可能是版本的问题,也可能是其他问题,经过自己不断的研究,终于成功配置完成,而且已经应用线上。现在把经验分享出来供大家参考,也作为自己的一个记录,以便今后用到能回顾一下。1、下载软件网上先下载需要安装的软件2、前期准备所需的工具下载完毕后,开始搭建准备,首先下载所需全部工具运
分类:其他好文   时间:2019-04-24 23:27:59    阅读次数:176
数据库代码注释
use 学生课程;drop database 学生课程; show databases; create database 学生课程;use 学生课程;//使用数据库 create table 学生 ( 学号 CHAR(4) NOT NULL, 姓名 CHAR(10) NOT NULL, 性别 ENU ...
分类:数据库   时间:2019-04-24 23:27:43    阅读次数:262
Wordpress 设置后台自定义post 排序
创建新的 Post type时,文章在后台默认使用 Titile 列进行升序排序,但是通常情况下我们需要按日期 Date 进行降序排序, 参考链接: https://wordpress.stackexchange.com/questions/81939/how-to-order-posts-of-a ...
分类:编程语言   时间:2019-04-24 23:27:08    阅读次数:243
10. Halloween 万圣节
10. Halloween 万圣节 (1) On October the 31st,across Britain and the USA,thousands of children are dressing up as monsters,ghosts and witches and going to ...
分类:其他好文   时间:2019-04-24 23:26:50    阅读次数:147
661条   上一页 1 2 3 4 5 6 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!