上一页 1 2 3 4 5 6 ··· 8 下一页

2018年3月24日

springboot 项目引用项目外的图片配置类

摘要: package com.example.papa.Util;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.Res 阅读全文

posted @ 2018-03-24 18:19 superficial。 阅读(552) 评论(0) 推荐(0) 编辑

2018年3月18日

拦截与cros跨域问题

摘要: 拦截器 跨域解决: 阅读全文

posted @ 2018-03-18 23:55 superficial。 阅读(194) 评论(0) 推荐(0) 编辑

springboot 项目部署到服务器

摘要: 将springboot项目打成jar包(我用的idea 双击install后应该会安装这个插件,然后再右击install,选择run maven build 就会自动把项目打成jar包了 ),然后将jar包放到服务器的一个地址,然后在命令行中运行这个jar文件就可以了(命令:java -jar ja 阅读全文

posted @ 2018-03-18 22:10 superficial。 阅读(210) 评论(0) 推荐(0) 编辑

2018年3月16日

Thymeleaf的注意项

摘要: Thymeleaf 相对于上下文的url:/itemdetails?id=3 相对于服务器的url: ~/billing/processInvoic 相对于协议类的url://code.jquery.com/jquery-2.0.3.min.js 含有请求参数的url:@{/order/{order 阅读全文

posted @ 2018-03-16 15:35 superficial。 阅读(100) 评论(0) 推荐(0) 编辑

2018年3月14日

springboot定时器

摘要: @EnableScheduling //放在cheduler方法所在的类上 @Scheduled(cron = "0/20 * * * * ?") // 每20秒执行一次public void scheduler() {//执行的方法、内容在这里添加 logger.info(">>>>>>>>>>> 阅读全文

posted @ 2018-03-14 17:16 superficial。 阅读(221) 评论(0) 推荐(0) 编辑

springboot

摘要: Spring -boot 的默认端口为8080 ,要修改端口号可以修改src/main/resources下的properties文件 server.context-path=/helloboot (修改默认路径为http:locahost:8081/helloboot) server.port=8 阅读全文

posted @ 2018-03-14 12:30 superficial。 阅读(154) 评论(0) 推荐(0) 编辑

2018年1月31日

随笔

摘要: var ab=$("#sheng").find("option:selected").attr("aa");//获取option值对应的id值 String realname = new String(request.getParameter("realname").getBytes("iso885 阅读全文

posted @ 2018-01-31 14:59 superficial。 阅读(123) 评论(0) 推荐(0) 编辑

2017年12月7日

mysql数据库连接超过8小时失效的解决方案(springboot)

摘要: 最近由于业务需要,开发了一个定时程序,每天执行一次,从mysql库里取出数据处理。这是前提。 结果今天早上查看错误日志,发现了如下的日志: 1 2 3 4 经查发现原来是mysql默认会将8个小时内没有操作过的数据库连接断开。 项目是springboot。 找到一个解决办法,在application 阅读全文

posted @ 2017-12-07 10:33 superficial。 阅读(1499) 评论(0) 推荐(0) 编辑

2017年11月29日

Druid连接池与spring配置

摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文

posted @ 2017-11-29 22:23 superficial。 阅读(368) 评论(0) 推荐(0) 编辑

IDEA快捷键

摘要: 1. 自动代码 常用的有fori/sout/psvm+Tab即可生成循环、System.out、main方法等boilerplate样板代码 例如要输入for(User user : users)只需输入user.for+Tab 再比如,要输入Date birthday = user.getBirt 阅读全文

posted @ 2017-11-29 15:05 superficial。 阅读(217) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航