- 博客(21)
- 收藏
- 关注
转载 mybatisplus动态表名
注意:entity不能是entity结尾这样的,就要原样写表名,不然会有问题。五、然后我们新建一个测试类就可以测试动态表名查询了。三、接下来新建一个配置类。一、首先添加pom依赖。四、然后是mapper。二、添加entity。
2023-04-18 12:13:16
1397
转载 MybatisX干货哦~
ignore table prefix:数据库表名为mybatis_db,若ignore tableprefix框里敲上my,则生成的实体类的名字变为batis_db(当然,要是你设置了extra class suffix,那么生成的实体类后面会加上指定内容)。还在繁琐的找和mapper.xml对应的接口、方法吗?ignore field prefix(前缀):数据库中有字段名为name的,若ignore field prefix框里敲上na,则生成的实体类中对应的属性名为me,省略了na。
2023-04-17 14:29:01
425
原创 template might not exist or might not be accessible by any of the configured Template Resolvers
看配置,模板应该是在resource目录下。这个报错是找不到模板的存放路径。
2023-04-02 09:27:51
79
原创 java.lang.IllegalThreadStateException异常原因解析
要 implements Runnable,通过使用匿名对象:如new Thread(new MyThread())).start()。
2023-04-01 17:25:43
387
转载 java,debug太慢,提示:Method breakpoints may dramatically slow down debugging 解决
到此为止,事件的起因、经过、结果都大致介绍完毕,在以后的搬砖中,还是少用方法断点,也尽量不要在项目里打过多的断点,调试哪里就在哪里打上,调试完把断点去掉就好。原文链接:https://blog.youkuaiyun.com/weixin_38084097/article/details/111310067。到此,果断打开自己IDEA 的所有断点瞅瞅,果然,发现了一次Method breakpoint。去除断点,重新debug,不到一分钟,启动成功,完美解决。
2023-03-24 12:41:12
364
转载 InvalidDefinitionException: Joda date/time type `org.joda.time.DateTime` not supported by default
原文链接:https://blog.youkuaiyun.com/u010227042/article/details/120542835。缺少jackson-datatype-joda依赖包,增加如下依赖解决。JSONObject直接设置jira的date会报错。
2023-03-23 15:24:02
454
原创 使用jiraRestClient报错java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
问题是swagger需要guava依赖,导入依赖解决。
2023-03-23 10:11:08
227
原创 vue2-ace-editor做代码编辑器展示服务器日志的使用基本步骤
五、代码编辑器样式editorOptions,在data里面设置。三、在页面上设置<editor></editor>四、设置editorInit方法。
2023-03-19 08:34:20
952
原创 SpringBoot如何使用WebSocket+jsch实现前后端交互获取服务器log并返回前端?
注意springContextHolder的作用是websocket的特殊属性导致Autowired用不了,直接Autowired会拉入一个null对象。三、新建WebSocket服务端,在其中处理websocket逻辑。二、配置工具类,并在工具类中拉入websocket进行消息发送。在JschUtil中的发送方法中使用websocket发送消息。二、新建WebSocket配置类。
2023-03-18 15:27:15
1921
1
转载 Springboot+Websocket中@Autowired注入service为null的解决方法
null, "applicaitonContext属性未注入, 请在applicationContext.xml中定义SpringContextHolder.");session.getBasicRemote().sendText("收到 "+this.userId+" 的消息 ");参考:https://blog.youkuaiyun.com/weixin_45698637/article/details/118684875。* 取得存储在静态变量中的ApplicationContext.//略去其他代码...
2023-03-17 16:58:57
597
原创 多数据源dynamic.datasource,SpringBoot+MybatisPlus+PostgreSQL连接数据库
多数据源dynamic.datasource,SpringBoot+MybatisPlus+PostgreSQL连接数据库
2023-03-15 10:10:57
295
原创 Vue:上传标签el-upload标签官网样式拿下来后到本地样式变了的问题
Vue:上传标签el-upload标签官网样式拿下来后到本地样式变了的问题
2023-03-02 16:37:10
216
原创 Springboot中使用ModelMapper对outputdto转entity的坑
Springboot中使用ModelMapper对outputdto转entity的坑
2023-02-24 16:33:40
169
原创 SSHUtil填写入参报错Too many characters in character literal
SSHUtil填写入参报错Too many characters in character literal
2023-02-21 10:02:47
422
原创 HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException
做青橙电商项目的时候,发布项目后登录发现直接报空指针异常,仔细检查代码后发现是dubbo远程框架中service远程调用失败,问题是导包倒错了报错如下:HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerExceptiontypeException reportmessageRequest processing failed; nested exception is j..
2021-08-04 19:44:33
2536
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人