自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 go oracle

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar

2021-09-21 16:40:03 179

原创 spring 中工具类使用@Autowired

@Autowired private MeterService meterService; @PostConstruct public void init() { nettyServerHandler = this; } /** * 读客户端数据 */ @Override protected void channelRead0(ChannelHandlerConte...

2019-08-29 11:38:33 869

原创 js var $this = this

<script> var user = function () { this.name; } user.prototype.init = function (name) { // $this 相当于 user var $this = this; $this.name = name; ...

2019-08-23 16:20:06 251

转载 thymeleaf使用@{/}进行跳转

<form th:action="@{/login}" method="post" onsubmit="return verify()">使用@{/} 获取上下文可以避免打包成war 跳转项目名丢失问题Jsp 的老方法${pageContext.request.contextPath}=Thymeleaf 的新方式 @{}...

2019-07-17 16:10:11 4252 1

转载 springboot使用websocket时,打成war包,发布到服务器,项目启动报错问题

如果用外置tomcat,要注释掉以下代码,否则启动项目会报错,用springboot内置tomcat就得放开以下代码@Beanpublic ServerEndpointExporter serverEndpointExporter() {return new ServerEndpointExporter();}作者:石小哥来源:CSDN原文:https://blog.csdn.n...

2019-07-17 15:32:20 749

转载 WebMvcConfigurerAdapter过时的替换方法

Spring 5.0后,WebMvcConfigurerAdapter被废弃,取代的方法有两种:①implements WebMvcConfigurer(官方推荐)②extends WebMvcConfigurationSupport使用第一种方法是实现了一个接口,可以任意实现里面的方法,不会影响到Spring Boot自身的@EnableAutoConfiguration,而使用第二种方法...

2019-07-17 10:41:13 208

转载 th:if 多条件

<!--遍历map集合--> <tr th:each="map,mapStat:${datamap}" **th:if="${mapStat.index < 10 and 4 < mapStat.index}"**> <td th:text="${map.key}"></td> <td th:text=...

2019-07-12 10:30:50 7028

转载 springboot jar 相对路径

// springboot 打包的jar 同目录String basePath = new ApplicationHome(this.getClass()).getSource().getParentFile().getPath() + "/";springboot文件路径问题

2019-07-10 17:34:09 1593

原创 thymeleaf select checkbbox选中

<select class="form-control"> <option th:each="datatype : ${datatypes}" th:value="${datatype.did}" th:text="${datatype.dname}" th:selected="${datatype.did eq mb?.datatype}"> </option...

2019-07-05 18:22:18 669

转载 springboot jar 配置外部资源映射成静态资源

import org.springframework.beans.factory.annotation.Value;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry...

2019-06-27 16:28:07 2094

转载 spring boot配置cors解决跨域访问

//跨域链接 origins = "*" 不做限制@CrossOrigin(origins = "*", maxAge=3600)@ControllerSpringBoot配置Cors解决跨域请求问题

2019-06-27 16:18:50 177

转载 GROUP BY除重

select * from (SELECT * FROM dzgxx WHERE xcbid = 1 ORDER BY shsj DESC)T GROUP BY yhdm请教 sql 查询怎样先排序再 group by ?

2019-06-21 11:50:59 327

转载 java相对路径与properties文件读取

// 打包jar同目录下的application.properties,未打包 bin/application.properties File file = new File(path + "application.properties"); Properties properties = new Properties(); InputStream in = new Buffe...

2019-06-10 16:54:49 1292

转载 mysql in 多个字段的用法

基本用法select * from user where user_id in (600,601,602);多个字段同时使用select * from user where (user_id,type) in ((568,6),(569,6),(600,8));多表同时多个字段使用select * from user where (legal_id,type) not in ...

2019-05-28 10:14:28 8284 3

转载 js删除table某tr

<tr><td onclick="del_tr(this)" >删除</td></tr> // 删除一行 function del_tr(obj){ var index = $(obj).parents("tr").index(); //这个可获取当前tr的下标 未使用 $(obj).parents("tr").remove(); /...

2019-05-16 11:58:12 3398

原创 java得到某时间前2小时的时间

SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);Calendar calendar = Calendar.getInstance();Date date = sdf.parse(“2019-05-14 02:56:24”);calendar.setTime(date);for (int i = 1; i ...

2019-05-15 09:25:31 4501

原创 mui ios滚动条无效

重新初始化muimui.init();(function($){ $(&quot;.mui-scroll-wrapper&quot;).scroll({ //bounce: false,//滚动条是否有弹力默认是true //indicators: false, //是否显示滚动条,默认是true }); })(mui);...

2019-02-25 10:06:47 407

转载 css背景图片自适应

background-size: cover;-webkit-background-size: cover;-o-background-size: cover;

2018-12-20 09:45:38 687

原创 Genymotion安装Genymotion-ARM-Translation.zip

把Genymotion-ARM-Translation.zip重命名为Genymotion-ARM.zip等较短的文件名然后直接拖入Genymotion中,安装成功重启

2018-12-05 10:35:14 2282 1

原创 poi导入日期为数字格式处理

Calendar calendar = new GregorianCalendar(1900,0,-1); Date d = calendar.getTime(); /*Date dd = DateUtils.addDays(d,Integer.valueOf(dealerName));*/ Date dd = ...

2018-09-30 11:13:06 1391

转载 meavn sqlserver使用

&lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt; &lt;artifactId&gt;sqljdbc4&lt;/artifactId&gt; &lt;version&gt;4.0&lt;/version&gt; &a

2018-09-29 09:05:26 249

空空如也

空空如也

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

TA关注的人

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