自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 使用IDEA将SpringBoot项目打包成Jar包并部署到Linux服务器步骤及注意事项

一、将SpringBoot项目打成Jar包:1、首先要保证SpringBoot项目能正常启动2、在项目的pom.xml文件中增加配置信息<bulid></build>,具体配置如下:<groupId>com.bonc</groupId><artifactId>energy</artifactId><ve...

2018-12-21 15:51:49 12414

原创 总结:MyBatis参数传递的方式

一、单参数传递:二、多参数传递:1、固定参数传递List&lt;String&gt; getInfo(@Param("params") params)  params 为 XX,XX,XX形式参数Mybatis中传入IN中,要用${params}接受2、List参数传递3、Map参数传递...

2018-12-29 11:12:10 123

原创 List集合使用 Collections.sort 排序

public static void main(String[] args) { List&lt;Integer&gt; sortList = new ArrayList&lt;&gt;(); sortList.add(3); sortList.add(9); sortList.add(6); sortList.ad...

2018-12-28 11:13:08 232

原创 异常处理-IDEA启动SpringBoot出现java.lang.NoClassDefFoundError: javax/.../...之类的错误

IDEA启动SpringBoot出现 java.lang.NoClassDefFoundError: javax/socket/ContainerProvider.一、原因:JVM在编译的时候能找到调用方法或静态变量所在的类(Jar),但在运行的时候找不到此类而引发的错误。&lt;dependency&gt; &lt;groupId&gt;org.springframework.b...

2018-12-28 11:10:35 4054

原创 异常处理-SpringBoot中thymeleaf对应前台页面大于号\小于号使用问题

浏览器报错信息:There was an unexpected error (type=Internal Server Error, status=500).Exception parsing document: template="index", line 58 - column 28后台报错信息:ERROR 72788 --- [nio-8086-exec-1] o.thymelea...

2018-12-27 18:13:58 3623 2

原创 异常处理-SpringBoot-WebSocket使用MessagingTemplate向前台推送数据

错误信息:ERROR 105284 --- [nboundChannel-4] .WebSocketAnnotationMethodMessageHandler : Unhandled exception from message handler method.org.springframework.messaging.converter.MessageConversionExcept...

2018-12-25 16:19:15 4508 1

原创 SpringBoot WebSocket 跨域问题

Problem:浏览器:GET http://172.20.XX.XX:8080/energy/info 403 () 后台:org.springframework.web.socket.sockjs.transport.handler.DefaultSockJsService [482] -| Origin header value 'http://127.0.0.1:8080' n...

2018-12-25 11:21:59 5896

原创 SpringBoot中html引用JS/CSS文件路径问题

html 文件放在resources/templates下,在Controller请求处理方法返回时会自动到这个目录下查找:js/css 等静态资源放在resources/static下,在html中引入时,会自动到这个目录下查找: @RequestMapping("/helloSocket") public String index(){ //返回一个指定页面 index....

2018-12-20 11:45:22 29040 3

原创 SpringBoot中前台界面带参数请求WebSocket请求报错MethodArgumentNotValidException

ERROR 15708 --- [nboundChannel-4] .WebSocketAnnotationMethodMessageHandler : Unhandled exception from message handler method.org.springframework.messaging.handler.annotation.support.MethodArgumentNo...

2018-12-19 20:54:51 4394 3

原创 SpringBoot定时任务-Only no-arg methods may be annotated with @Scheduled

启动SpringBoot项目时,出现错误:Only no-arg methods may be annotated with @Scheduled说明你使用@Scheduled注解的方法有参数。@Scheduled注解的方法要求不能有参数。

2018-12-04 20:59:29 3124 2

原创 超实用IDEA快捷键使用(持续更新)

IDEA 编辑器的快捷键在FIle..Setting..keymap...中实现自定义设置。Edit:1、返回最后编辑的位置 ——》 Ctrl+Shift+Backspace2、不选中复制上一行代码 ——》 Ctrl+D3、try/catch块 for块 if块等 ——》Ctrl+Alt+T4、删除一行代码 ——》Ctrl+X5、上下移动代码 ——...

2018-12-04 11:03:58 164

空空如也

空空如也

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

TA关注的人

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