自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 pd虚拟机共享网络给mac

通过mac外部网络设置,使网络路由到pd内的网络上。pd虚拟机(win10)网络设置添加一个网络2,网络1 设置已断开网络2打开mac 网络偏好设置配置一下网络的服务顺序,将wifi调到最顶端,同时将usb网卡和parallels Host-only#2 调到最后,见图二设置dns配置虚拟机网络共享回到虚拟机–更改网络适配器,找到可以连接外网的网卡,右键点击选择属性选择共享,共享给上面的网络2.同时设置网络2的ip信息大功告成回到mac 通过ping 192.168.1

2021-01-08 16:01:29 2188

原创 解决项目配置了maven 阿里云,还是用中央仓库下载依赖问题

pom文件添加<repositories> <repository> <id>nexus-aliyun</id> <name>nexus-aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <

2020-11-30 22:38:21 1232

原创 centos7如何固定ip

一编辑 /etc/sysconfig/network-script/ifcfg-enss33添加BOOTPROTO=static #开机协议,有dhcp及static;ONBOOT=yes #设置为开机启动;DNS1=192.168.8.2 # 下面的网关一致IPADDR=192.168.8.3 #你想要设置的固定IPNETMA...

2020-04-22 18:49:50 242

原创 git 清除远程仓库地址等信息

git config --global credential.helper wincredgit credential-manager uninstall

2020-04-17 10:11:49 792

原创 BeanCurrentlyInCreationException解决方案

解决方法在Bean上添加@Lazy注解 ,Spring的懒加载是在需要用到bean的时候去加载

2020-04-17 00:43:32 815

原创 org.springframework.core.annotation.MergedAnnotations$SearchStrategy

在使用@SpringBootTest注解时,报这个错。我使用的springboot版本是2.1.1的我使用的spring-test是5+版本的。应该是版本不匹配造成的,降低spring-test的版本到4.+ 就解决了。...

2020-01-22 15:29:43 5538 1

原创 Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

启动报错:Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource: Property: driverclassname Value: com.mysql.cj.jdbc.Driver Origin: "driverClassName" from property source "s...

2019-10-21 13:45:22 3074

原创 springcloud 提供者或消费者的配置文件失效

原因:只是父项目为pom类型,子项目均为jar,弄混了,就导致配置文件无法编译。

2019-09-24 21:55:30 214

原创 mavne打包时,报程序包com.sun.deploy.net不存在

我尝试重新rebuild project 后重新打包,就好了。

2019-09-24 13:55:08 3181

原创 springBoot DAO接口could not be found

接口代码@Mapper@Repositorypublic interface UserDao {已经添加了@mapper注解。后来发现pom中添加的依赖不对错误的: <dependency> <groupId>org.mybatis</groupId> <artifactId>mybat...

2019-09-16 17:12:05 2097

原创 Result Maps collection does not contain value for com.

可能是resultType 写成了resultMap(-)。

2019-09-16 16:36:51 1360 3

原创 解决非@controller注入Service为 null

@Componentpublic class CollRainfallWarnQuartz { public static CollRainfallWarnQuartz collRainfallWarnQuartz; // 添加 @Autowired private RainfallWarnService rainfallWarnService; // 添加 ...

2019-09-07 11:16:56 185

原创 com.microsoft.sqlserver.jdbc.SQLServerException: 将截断字符串或二进制数据。

情况一向数据库插入字符串的长度,超过了定义的长度。例如:定义varchar(10) , 插入字符串长度是20。

2019-08-29 10:28:34 287

原创 依赖版本问题导致springboot启动报错

spring boot启动报错***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call the method org.springframework.data.repository.config.Rep...

2019-07-30 20:57:40 923

原创 springBoot-Swagger的使用

介绍了java中使用Swagger工具生成API的具体方法和实际项目开发中使用的方式1 Swagger是什么?2 整合springboot1 导入依赖2 创建SwaggerConfig.java类3 启动项目功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列...

2019-06-30 10:31:33 175

原创 Centos7连接网络失败

解决办法systemctl stop NetworkManagersystemctl disable NetworkManager (设置设置NetworkManager服务开机不启动)service network restart

2019-06-05 00:00:22 4620 5

原创 SpringBoot整合thymeleaf

SpringBoot整合thymeleaf1 首先加入依赖2 在properties或yml中添加配置3 将html页面写在4 html页面5 controller结果1 首先加入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifac...

2019-05-27 23:27:06 119

转载 mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one

https://blog.csdn.net/lovequanquqn/article/details/84105311

2019-05-10 19:51:10 122

原创 面试总结之谈谈你对面向对象的理解

面向对象是一种编程思想,实现生活中任务物体都可以归结为某一类的事务,每一个个体物体可以看做是该类事务的具体实例。代码也一样,将具有相同功能的代码可以看做是一种类型,将共有的功能进行抽取。为了达到简化代码冗余的目的。...

2019-04-13 09:42:26 866

原创 Dubbo消费者启动时:Failed to configure a DataSource: 'url' attribute is not specified and no em

***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could...

2019-03-30 17:05:15 5167 2

原创 template might not exist or might not be accessible by any of the configured

这是springBoot找不到视图,我用的是shymeleaf所以在pom.xml中加入<build> <resources> <resource> <directory>src/main/java</directory> <includes> ...

2019-03-27 20:50:07 303

原创 ibatis.reflection.ReflectionException: There is no getter for property named xxx

mapper中传入的参数类型可能有问题。

2019-03-18 23:21:18 339

原创 UnsatisfiedDependencyException: Error creating bean with name xxx'

问题多出现在配置文件中有问题。我的controller层,service层,dao层都不能创建bean。最后发现是我使用resultmap映射,但sql结果用resultTypejie接收的。

2019-03-13 19:56:25 12592

原创 解决idea建包时创建在同一级的问题

将默认的勾选去掉。

2019-03-03 13:10:04 1747

原创 C(M,N)与A(M,N)

A(M,N)是从M个不同元素中选N个元素的排列数(区分元素排列先后顺序)C(M,N)是从M个不同元素中选N个元素的组合数(不区分元素排列先后顺序)C(n,m)=n!/m!(n-m)!故C(4,1)=4!/3!=4C(4,2)=4!/2!2!=6C(4,3)=4!/3!=4C(4,4)=4!/4!=1 ...

2019-02-21 15:42:56 7437

原创 java正则表达式

@Testpublic void Number6() { String str = "abc 78,.;';lkhj"; String regEn = "[a-zA-Z]"; //匹配字母 String regNum = "[0-9]"; //匹配数字 String regKongGe = "\\s"; //匹配空格 String other = "\...

2019-02-20 22:47:36 93

原创 java取一个数字的各个位上的数字

int n=1234;System.out.println("个位 "+ (n % 10));System.out.println("十位 "+ (n % 100)/10);System.out.println("百位 "+ (n % 1000)/100);System.out.println("千位 "+ (n /1000));

2019-02-20 20:25:55 6379 1

原创 map集合根据value找key

private static String getKey(Map&lt;String, Integer&gt; map, Object value) { String key = ""; for (Map.Entry&lt;String, Integer&gt; entry : map.entrySet()) { if (value.equals(entry.ge...

2019-02-20 20:07:00 4617

原创 请求地址没问题,但报400

总结:前端参数与后台参数数据类型不一致导致。详见下:实体类中:private Integer gameId;controller:gameId又作为参数 为了将前端传过来的参数直接封装进实体类,前端参数名需要与参数命名保持一致,但前端传过来的参数都是String类型。故报400,解决可以将pojo中属性命名为String即可。...

2019-02-18 22:40:11 846

原创 org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案

tomcat版本的问题,升级tomcat版本。

2019-02-16 19:03:05 1269

原创 idea debug快捷键

2019-02-15 21:28:11 594

原创 使用支付宝demo时,非法字符"\ufeff"

解决办法: 先将代码编码由utf-8----&gt;gbk-----&gt;utf-8就好了。 

2019-02-14 11:20:51 621

原创 数据类型转换

public static void main(String[] args) {        Float pay=100F;        System.out.println(pay);        System.out.println("=======================");        System.out.println(pay.intValue());  //...

2019-02-14 09:06:53 75

原创 SyntaxError: missing ; after for-loop initializer

$.ajax({ url: "&lt;%=request.getContextPath()%&gt;/student/timeByDate.html", method: "post", data: "date=" + $(obj).text().trim(), success: function (json) { console.log(json)...

2019-02-12 21:25:45 1686 1

原创 将字符串转化为日期类型

@Testpublic void testDate() throws ParseException { String date="2018-08-08"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date parse = simpleDateFormat.parse(d...

2019-02-12 20:16:51 2671

原创 将List集合逆序排序

java自带的Collections类型,用来操作集合的,有时用来操作集合十分方便 逆序操作有时简便jsp页面的&lt;c:foreach&gt;操作

2019-02-12 17:47:58 704

原创 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name "xx"

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountController': Unsatisfied dependency expressed through field 'accountServiceImpl'; nested excepti...

2019-02-02 13:38:57 1718 1

原创 FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]

在搭建ssm框架时,报如下错误:FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]springmvc的配置文件中修改为:&lt;context:property-placeholder location="classpath:/jdbc.properties"/&gt;...

2019-02-02 13:20:08 468

原创 idea查看一个类下的所有方法

比如想看String类那么ctrl+鼠标点进String类,然后alt+7 即可查看。

2019-01-24 21:41:27 2787

原创 IDEA启动Tomcat报错Address localhost:xxx is already in use

进入dos窗口输入netstat -aon | findstr +端口号,找到占用端口的进程ID:PID输入taskkill -f -pid PID例重启tomcat

2019-01-23 15:56:45 366

空空如也

空空如也

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

TA关注的人

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