随笔分类 - 日常小bug
摘要:select RAWTOHEX(sys_guid()) from dual
阅读全文
摘要:CREATE DEFINER=`root`@`localhost` FUNCTION `getHRids`(projectid VARCHAR(32),userid VARCHAR(32)) RETURNS varchar(2000) CHARSET utf8BEGINDECLARE projman
阅读全文
摘要:update project pp set extdatefield3=(select a.finisheddate from (select p.id,w.finisheddate from project p INNER JOIN pw_proposal pw on pw.projectid=p
阅读全文
摘要:select * from humres where station like CONCAT('%',(select o.mstationid from orgunit o inner join humres h on h.orgid=o.id where h.id='297edff87111d03
阅读全文
摘要:<%! public String dou(double d) { DecimalFormat df = new DecimalFormat(); df.setMaximumFractionDigits(2);//这里是小数位 String format = df.format(d); String
阅读全文
摘要:问题:nested exception is java.sql.SQLException: ORA-00932: 数据类型不一致: 应为 -, 但却获得 CLOB 原因是条件查询时,我的库中的类型是clob类型就报错了, 解决方法: 改成 to_char(a.progressAndPlan), 如:
阅读全文
摘要:<script type=text/javascript>document.getElementById('tbody_2c923daf6c462275016c4c63dde01400').onclick=function(){var projectid=document.getElementByI
阅读全文
摘要:ajax的页面渲染 //查询数据 function search(curr, name) { var name = $("#scenery-name").val(); // 分页的条数和页数 var str = ""; var pageSize = 5; if (curr == 0) { var c
阅读全文
摘要:配置加载资源 @Configurationpublic class WebMvcConfigure implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry regi
阅读全文
摘要:1.报错信息: org.apache.ibatis.binding.BindingException: Mapper method 'com.jack.all.mapper.TUserMapper.deleteById attempted to return null from a method w
阅读全文
摘要:idea加载springMVC项目+Jboss服务+jdk 1.7 1.project Structure 配置项目 2.modules 3.Libraries 4.Facets 5.Artifacts :重中之中:webapp要是在输出包中没有看到jsp文件就在Artifacts下加载direct
阅读全文
摘要:问题:点击页数无效,问题在总条数 1.前端分页传的是page,limit. 2.前端jq layui.use(['form', 'table'], function () { var $ = layui.jquery, form = layui.form, table = layui.table;
阅读全文
摘要:1.报错信息 org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/user/user
阅读全文
摘要:1.在th:href和th:src标签中()就相当于?
阅读全文
摘要:1.引用错了会报Uncaught ReferenceError: layui is not defined at toLogin:71 href 表示超文本引用(hypertext reference),在 link和a 等元素上使用。src 表示来源地址,在 img、script、iframe 等
阅读全文
摘要:要使用StringUtils类,首先要导入:import org.apache.commons.lang.StringUtils这个包 在Maven项目中添加下面的依赖 <dependency> <groupId>commons-lang</groupId> <artifactId>commons-
阅读全文
摘要:一、jar包方式打包 1.添加maven打包插件 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </pl
阅读全文
摘要:1.buildPageQueryResult报错,是controller少了继承baseController 2. 错误org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
阅读全文
摘要:网站mybatis.plus/guide/ 3.0文档 加载maven:spring boot devtools,Lombok,spring web,mysql Driver 加dao包的扫描 配置文件 数据库 Entity 在dao层中添加一个接口 Test 查看日志 常用注解 @TableNam
阅读全文
摘要:1.在idea测试方法中保证代码没有写错显示空指针异常 解决的方法 在测试类上添加注解@RunWith(SpringRunner.class)
阅读全文