Java之路
Java学习
关云chnag
learn
展开
-
springboot配置文件 server.context-path 路径不起作用
springboot配置文件 server.context-path 路径不起作用server.port=8081server.context-path=/boot02修改:server.port=8081server.servelt.context-path=/boot02原因:springboot版本问题原创 2020-07-03 11:06:45 · 796 阅读 · 1 评论 -
Quartz
quartz在这里插入代码片<bean id="job1" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="task"></property> <property name="targetMethod" value="show"></pro原创 2020-06-19 21:00:08 · 89 阅读 · 0 评论 -
Excel 读取,POI
读取excel数据package com.zy.poi;import org.apache.poi.hssf.usermodel.*;import java.io.FileInputStream;public class Test03 { //读取 public static void main(String[] args) throws Exception { //获取流 FileInputStream fileInputStream =原创 2020-06-18 14:20:15 · 87 阅读 · 0 评论 -
图片上传功能实现
图片上传功能实现java后端实现代码: @ResponseBody @RequestMapping("/home/updateInfoForm") public Map<String, Object> update(MultipartFile imgFile, @RequestParam Map<String, Object> map, HttpServletRequest request) { if (imgFile != null) {//原创 2020-06-16 13:36:06 · 1233 阅读 · 0 评论 -
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled
今天,安装docker后使用命令:docker pull mongo 拉取mongoDB镜像时遇到问题:Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)-------------------------...原创 2020-05-18 14:35:18 · 2866 阅读 · 0 评论 -
Mybatis中ResultMap映射
Mapper中的代码<resultMap id="BlogMap" type="com.zy.entity.Blog"> <!-- id代表resultMap的主键,而result代表其属性--> <id property="id" column="id"></id> <result property="insertTime" column="insertTime"></result>...原创 2020-06-11 20:39:54 · 214 阅读 · 0 评论 -
Mybatis逆向工程理解
一、mapper接口中的方法解析mapper接口中的函数及方法方法 功能说明 int countByExample(UserExample example) thorws SQLException 按条件计数 int deleteByPrimaryKey(Integer id) thorws SQLException 按主键删除 int deleteByExa...翻译 2020-04-10 08:42:23 · 207 阅读 · 1 评论