自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wonderful Code

入道弥深,所见弥大

  • 博客(46)
  • 资源 (1)
  • 收藏
  • 关注

原创 后台管理系统布局以及跳转,点击菜单局部刷新,右侧显示对应界面完整版

源码地址:https://gitee.com/nggLee/java-funny1.进入站长之家https://sc.chinaz.com/2.搜索后台管理模版,下载一个,本次使用的模版 https://sc.chinaz.com/moban/160629414430.htm3.下载后的模版直接打开index.html,模版目录结构如下4.新建一个springboot项目,项目目录如下,直接访问 http://localhost:8090/admin/5.进入正题点击左侧,刷新右侧,首先修

2021-06-07 22:36:05 2074

原创 踩过的坑-springboot实现自定义Interceptor拦截器

最近在踩一个项目是spring+jsp的,但是我准备改成spingboot+html的形式,其中有一个自定义拦截器的工具,改动过程中的坑 记录下来。首先是是MVCconfig的配置类@Configurationpublic class MVCconfig implements WebMvcConfigurer { /** * 第一种方式注入 * @return...

2019-03-30 00:29:20 1467

原创 redis基础学习

一.安装虚拟机 centerOs 7 获取ip地址 ip addr二.linux 下载命令 wget ,如果命令不存在需要先执行 yum -y install$ wget http://download.redis.io/releases/redis-5.0.3.tar.gz$ tar xzf redis-5.0.3.tar.gz$ cd redis-5.0.3$ make启动...

2019-02-27 12:01:52 224

原创 mybaties知识点整理与SSM

springboot整合mybatiesmybaties增删改查、批量mybaties面试一 、springboot整合mybaties新建工程,https://start.spring.io/ 新建工程,生成项目基础文件,使用idea导入pom.xml文件如下<?xml version="1.0" encoding="UTF-8"?><proje

2019-02-26 23:23:27 375

原创 Error starting ApplicationContext. To display the conditions report re-run your application with 'de

异常信息:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-02-26 19:52:08,386 -- Application run failedorg.springframework.beans.fact...

2019-02-26 20:03:06 441

转载 java使用POI导出excel表格

转载出处:https://blog.csdn.net/l1028386804/article/details/79659605一.首先导入poi工具所需的依赖包<!--POI操作excel--> <dependency> <groupId>org.apache.poi</groupId> <artifactId>p...

2019-02-25 19:38:00 1168 8

原创 javaweb面试(2)

maven私有仓库的好处?答:搭建Maven私有仓库的主要目的,是为了在团队多人开发时,只要内网的私有仓库有下载过依赖的jar包,就直接从私有仓库获取,不再通过外网的中央仓库,毕竟外网的下载速度实在是太慢了。如何在linux系统下更改mysql的数据库编码?例如一开始UTF-8,现在要求更改为GBK编码?答:在my.ini 文件中 可以配置。还可以配置用户名以及密码。linux 中启动my...

2019-02-20 22:03:48 181

原创 druid依赖包 与springboot集成 问题

报错信息:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource': Unsatisfied dependency expressed through field 'basicProperties'; nested exception...

2019-02-17 13:38:21 5792 2

原创 Linux 常见命令

软件操作命令(以vim编辑器为例)软件包管理器: yum安装软件:yum install vim卸载软件:yum remove vim搜索软件:yun search vim清理缓存:yum clean vim列出已安装的软件:yum list软件包信息:yum info vim服务器硬件查看内存:free -m硬盘:df -h负载:w 或者 top查 cpu :cat /...

2019-02-17 10:26:16 189

原创 实现一个方法(计算一个只有加减运算的表达式的值),方法的输入参数是一个字符串,例如 "9+9+2-3+2-1",该方法的返回值为int,结果为18.

实现一个方法(计算一个只有加减运算的表达式的值),方法的输入参数是一个字符串,例如 “9+9+2-3+2-1”,该方法的返回值为int,结果为18. public int getNum(String exp){ //String exp = "8+6-2-4-2+2"; String sign = exp.substring(0,1); St...

2019-02-15 08:50:26 1753

原创 java基础+web+框架 整理

1.spring开发模式的流程==| springmvc 将所有的请求都提交给DispatcherServlet ->DispactcherServlet将请求目标提交到目标ControllerDispatcherServlet查询一个或多个HandlerMapping,找到处理请求的Controller -&

2019-02-14 00:18:16 354

原创 java基础知识点拾遗 随机数的用法

随机数的运用,原文https://www.cnblogs.com/swiftma/p/5808954.html 原理与解析简单六位随机密码@Test public void sixRandomNum() { Random random = new Random(); char[] chars = new char[6]; int le...

2019-02-12 23:13:30 226

原创 Resolved exception caused by handler execution: org.springframework.http.converter.HttpMessageNotRea

【springboot】前端ajax 传递 json 对象出现的错误,后端使用@RequestBody 接收参数对 并绑定到对象上: 错误信息如下.w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.http.converter....

2019-01-26 19:05:16 23839

原创 后台管理系统布局以及跳转,点击菜单局部刷新,右侧显示对应界面

1.整体布局如下右侧菜单的html 代码,使用了Thymeleaf 模版,这是左测的菜单栏,左侧的所有菜单最外层是一个div; <li class="nav-item"> <a href="javascript:;"><i class="my-icon nav-icon icon_1"></i&

2019-01-26 17:21:14 12093 8

转载 Tomcat服务器原理详解

参考:http://docs.huihoo.com/apache/tomcat/heavyz/01-startup.html转自:https://www.cnblogs.com/crazylqy/p/4706223.html来自 : http://www.cnblogs.com/mo-wang/p/3705147.html【目录】本文主要讲解Tomcat启动和部署webapp时的原理和过程...

2019-01-10 15:52:48 712 1

原创 【springboot::】集成shiro 笔记+demo

一、1.Subject 是与程序进行交互的对象,可以是人也可以是服务或者其他,通常就理解为用户。所有Subject 实例都必须绑定到一个SecurityManager上。我们与一个 Subject 交互,运行时shiro会自动转化为与 SecurityManager交互的特定 subject的交互。2.SecurityManager 是 Shiro的核心,初始化时协调各个模块运行。然而,一旦 ...

2019-01-06 23:04:58 238

转载 centeros7 命令ip addr,出现 io ,ens33,无ip地址的问题

原文地址:https://blog.csdn.net/Constantdropping/article/details/82783982在虚拟机中安装centos7,输入ifconfig显示command not found。在sbin目录中发现没有ifconfig文件,这是因为centos7已经不使用 ifconfig命令了,已经用ip命令代替。同时,网卡名称也不是eth0了,而是改成ens3...

2019-01-06 13:45:39 3019

原创 springboot项目打成war包部署,tomcat修改配置

1.tomcat安装①下载apache-tomcat-8.5.37-windows-x64.zip,配置环境变量JAVA_HOME=tomcat安装路径/bin,再添加class_path =%TOMCAT_HOME%\BIN;②启动cmd.exe, 进入tomcat 安装文件下的 bin目录下,例如我这里的安装位置:D:\Program Files\tomcat8.5③进入命令行,输入 ...

2019-01-02 19:45:18 3181

原创 HashMap,HashSet原理解析

1.HashSet中的元素是如何保证不重复的?HashSet底部是封装的一个hashmap,具体的步骤是 先通过hashcode比较,如果不相同则认为不是同一个数据,如果Hashcode值 相同,再通过equals()方法进行比较,/**equlas()方法,string 类型的 比较instanceof :可以用来判断继承中的子类的实例是否为父类的实现,左边是子类,右边是父类如果是自...

2018-12-24 21:26:02 228

转载 jquery.ajax函数封装--通用

转载:写重复的方法 和代码,冗余太大, 也浪费时间,找了一个通用的ajax,只需要传参数就行/***************************************************************** jQuery Ajax封装通用类 (linjq) ***********************************...

2018-12-24 11:35:19 609

原创 解决百度地图位置标注不在中心的问题

Html代码<div class="media-map" > <div id="allmap" style="float: left; height: 245px; width: 490px;" ></div> </div> &am

2018-11-25 19:53:55 4032

原创 [springboot::]集成swagger2,构建RESTful api

1.本来以为会很容易集成的,结果一直报404,试了好久,心累…最后终于找到解决办法http://localhost:8080/swagger-ui.html 访问不到,原因是,是因为 MVC 没有找到 swagger-ui 包中的 swagger-ui.html 文件; 但是这个文件在jar包中是切实存在的.以下是具体代码首先是swagger的配置import org.springfram...

2018-11-23 00:16:22 224 1

原创 springboot 排除 默认的loggback 和slf4j的依赖

错误信息SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/Program%20Files/JavaEclipse/repo/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4...

2018-11-22 21:44:30 15619 2

原创 [springboot::]学习使用过滤器

1.首先新建UserFiler类,并且实现Filterpackage com.example.demo.filter;import javax.servlet.*;import javax.servlet.annotation.WebFilter;import javax.servlet.http.HttpServletRequest;import javax.servlet.http...

2018-11-19 21:28:51 143

原创 [springboot::]集成thymeleaf,常用标签练习

工程目录如下:1 引入依赖<!--集成Thymeleaf模版引擎2.1.0--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId>...

2018-11-17 16:40:27 345

原创 [springboot::]集成Spring data JPA

完整工程目录如下1.首先引入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> &amp

2018-11-16 23:27:21 329

原创 springboot集成springdataJPA 2.1.0 返回json数据异常

提示信息如下com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanS...

2018-11-16 22:30:07 639

转载 [好文收藏::]spring

1.spring面试题spring面试题2.springDataJPAspring data jpa 详解

2018-11-15 21:39:12 241

原创 [springboot]::集成druid

1,首先在pom.xml引入druid的使用版本号<!--集成druid--> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.4</version

2018-11-15 20:48:03 235

原创 [IDEA]::springboot框架搭建,集成mysql数据库

1.完整工程目录图如下2.打开idea,左上角 file–>new–>project–>选择spring Initializar,选择 jdk ,然后next3,出现下图,继续next,这里可以修改你想要的文件名4.只选中web,next5.可以工程名,和工程存放的文件夹,点击next之后,等待6.打开pom.xml 添加如下依赖<!--连接数据库驱动--...

2018-11-15 19:02:17 596

原创 springboot测试连接mysql 数据库

使用junit测试的时候,一直报错,错误信息如下:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (v...

2018-11-15 17:41:21 10191

原创 springmvc 集成 kaptcha验证码

1.首先引入jar包,<dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2

2018-11-08 23:52:42 544

原创 springMVC使用modelAndView返回界面与数据,jstl循环list

1.必要的maven依赖<!-- JSP相关 --> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> &am

2018-10-30 00:27:18 2962 1

原创 springboot与WebSocket技术Demo

public class ParentStatic { private int x=3; private String y ="3"; public ParentStatic() { System.out.println("这是父类的空参构造函数"); } public ParentStatic(int x,String y) { ...

2018-10-28 23:03:17 163

原创 springMVC 实现图片上传

1.导入需要的jar包,或者在maven中引入依赖<dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> &am

2018-10-28 23:01:25 1563

原创 省市县三级联动获取地址

1.jsp代码前端传参格式:(type,codeId)type:三种类型(“province” || “city” || “area”)codeId:为选择省的时后自动传入.后台返回JSON数据格式:<%@ page contentType="text/html;charset=UTF-8" language="java" %><html&g

2018-10-25 00:18:32 731

原创 js获取当前系统是不是win7,兼容ie,火狐,谷歌浏览器 的阻止事件冒泡

<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script src="http://code.jquery.com/jquery-

2018-10-20 21:26:48 247

原创 Themeleaf 循环遍历list

List list = new ArrayList<>();list.add("三国演义");list.add("红楼梦");list.add("西游记");list.add("水浒传");list.add(&quot

2018-08-18 13:08:22 1611

原创 Could not find setter for ID on class com.iflytek.civilAffairs.pojo.MzywShswcYtwy

异常:Could not find setter for ID on class com.iflytek.civilAffairs.pojo.MzywShswcYtwy at org.hibernate.property.ChainedPropertyAccessor.getSetter(ChainedPropertyAccessor.java:66) at org.hiber...

2018-06-22 09:45:28 2334 1

原创 Faild to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)

maven构建异常问题Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project myhibernate3首先检查jdk版本问题,没问题的话 再 右键点击 项目–>Properties–>查看libraries ...

2018-06-12 11:38:59 316 1

springboot集成shiro

springboot集成shiro权限控制demo练习,集成mybatiesPlus

2019-01-06

空空如也

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

TA关注的人

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