java开发托盘图标弹出菜单MenuItem中文乱码 框框
我用java开发程序在托盘区任务栏显示图标,并添加弹出菜单,代码如下:MenuItem itmExit = new MenuItem("退出");itmExit.addActionListener(new ActionListener(){ public void actionPerformed(ActionEve……
解决mybatis在查询不到数据时返回null的问题
SpringBoot使用配置类的形式设置callSettersOnNulls!如果在yaml配置文件中已经写好了数据源,可以使用下面这种方式import org.mybatis.spring.SqlSessionFactoryBean;import org.springframework.context.annotation.Bean;imp……
values\values.xml:442:error: - inner element must either be a resource reference or empty.
翻译为:内部元素必须是资源引用或空引发原因:标签中存在内容错误的:<item name="webviewload_monitor_cancel_point" type="id">webviewload_monitor_cancel_point</item>有两种情况下……
idea导入项目编译时,java: 非法字符: \65279
在用idea导入myeclipse导过的项目时,报错Error:(1, 1) java: 非法字符: \65279Error:(1, 10) java: 需要class, interface或enum网上找的的产生原因:使用其他开发工具编写代码时,默认使用的是非utf-8字符集,导致在导入idea后编译会报此错误。IntelliJ IDEA对设置为……
发送请求时params和data的区别
在使用axios时,注意到配置选项中包含params和data两者,以为他们是相同的,实则不然。 因为params是添加到url的请求字符串中的,用于get请求。 而data是添加到请求体(body)中的, 用于post请求。 比如对于下面的get请求:axios({ method: "get", ……
Oracle中的instr()函数 详解及应用
1、instr()函数的格式 (俗称:字符查找函数)格式一:instr( string1, string2 ) // instr(源字符串, 目标字符串)格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) // instr(源字符串, 目标字符串, 起始位……
eureka报错解决:Request execution error. endpoint=DefaultEndpoint{ serviceUrl=’http://localhost:8761/eureka/}
SpringCloud中注册Eureka报错报错主要信息:Request execution error. endpoint=DefaultEndpoint{ serviceUrl=’http://localhost:8761/eureka/}com.sun.jersey.api.client.ClientHandlerException:……
IDEA无法访问https://start.spring.io/
当使用idea开发工具new一个springboot项目时,会访问https://start.spring.io/进行部署。可有时会因为网络超时提示无法访问解决办法:将访问地址修改为阿里云的https://start.aliyun.com/……
springboot整合mybatis-plus逆向工程
Mybatis-Plus(简称 MP)是一个 MyBatis 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。官方文档代码生成器AutoGenerator 是 MyBatis-Plus 的代码生成器,通过 AutoGenerator 可以快速生成 Entity、Mapper、Mapper XML、Service、Con……