- 博客(12)
- 收藏
- 关注
原创 JAVA使用MongoDB的Query,添加排序
之前搜索的方法是,使用:query.with(new Sort(Sort.Direction.DESC,"version"));但是,报错:'Sort(org.springframework.data.domain.Sort.Direction, java.util.List<java.lang.String>)' has private access in 'org.springframework.data.domain.Sort'Sort的使用应修改为:que
2022-01-13 10:05:22
2641
原创 html中引入css文件的问题
会受到顺序的影响拿按钮举例<input id="local" type="button" value="确定" onclick="add()" /> <link href="/mail/libs/skins/style.css" rel="stylesheet" type="text/css" />,其中定义#local{ color:blue;//蓝色}<link href...
2021-08-13 15:15:47
150
原创 html设置背景图片的问题
<div id="bc"><div id="left"><IFRAME id="bg" this.src="@{/main/bg}"></IFRAME> <div id="bottom"></div></div><div id="right"> </div&...
2021-08-10 10:30:00
340
原创 使用Springboot commandlinerunner 导致项目无法启动
现象:在项目中,我的使用了commandlinerunner ,重写的run方法用来实现接口对接。但是,在接口对接失败的时候,会导致主程序卡死,进不到登录门户,然后,经过三分钟,中间件Tomcat会重启,继而报错。这种现象很蠢···解决:那么项目是在CommandLineRunner执行完成之后才启动完成的,所以它和接口对接不成功会影响主程序启动。借鉴https://blog.youkuaiyun.com/zwq_zwq_zwq/article/details/81059017,可以单开一.
2020-05-29 15:30:45
2819
原创 HTML页面定义的方法无法调用:ReferenceError:XX is not defined
页面的js函数,放到引入的css和js之前,不要放到最后
2020-05-18 09:41:51
828
原创 Tomcat启动服务报错:Unknown version string [3.1]. Default version will be used.
使用的tomcat7,版本太低了,替换成tomcat8就好了
2020-05-14 13:40:45
477
原创 STSWorkspace打包
因为打包方式不对,导致项目部署不成功正确的打包方式:项目右键Run As->Maven Install 这样就会在本项目的target目录生成相应的war包啦
2020-05-14 13:29:57
289
原创 JAVA项目查询数据库区分大小写
由于在账号登录出现了不区分大小写都可以登录的问题,需要在查询时区分输入大小写:在查询语句添加“BINARY”,如:select * from user where binary name='likui'...
2019-11-20 15:06:56
1057
1
原创 SpringBoot和Shiro结合,创建ShiriFilterFactoryBean报错 空指针,@Configuration导致@AutoWired无法注入
代码:@Bean(name="shiroFilter")publicShiroFilterFactoryBeanshiroFilterFactoryBean(@Qualifier("securityManager")DefaultWebSecurityManagersecurityManager){ShiroFilterFactoryBeans...
2019-11-18 15:44:26
903
原创 js设置变形select选项(thymeleaf)
function operateIpList(oper){ if(oper == "add"){ var swords = $.trim($("#allowIPs").val()); if(swords == ""){ showInfo("请输入IP。", function(){$("#allowIPs").focus();}); return false; ...
2018-03-08 16:54:46
1461
原创 JS验证
验证input类型的邮箱地址格式: //验证邮箱地址 $("#sys_system_adminEmail").on("input propertychange",function(){ var patrn = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/; ...
2018-03-08 16:03:18
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人