2019年7月3日
摘要:
主要问题是spring配置中没有扫描到bean所在的目录
阅读全文
posted @ 2019-07-03 09:42
wanbao
阅读(6973)
推荐(0)
2019年4月19日
摘要:
一、POM文件引入的依赖如下: 1、此处hadoop-common和hive-jdbc都需要排除servlet-api,否则将出现springboot启动报错,例如:'unable to start embedded tomcat' 或者 'A child container failed duri
阅读全文
posted @ 2019-04-19 15:28
wanbao
阅读(3383)
推荐(0)
2019年3月6日
摘要:
使用git clone -b [url] 时,因目录名称太长,出现以下错误信息: fatal: cannot create directory at 'XXXXX': Filename too long 解决方法,在Git bash窗口中执行: git config --global core.lo
阅读全文
posted @ 2019-03-06 09:50
wanbao
阅读(1160)
推荐(1)
2019年3月5日
摘要:
1、菜单栏选择Run->Edit Configurations 2、选中配置的启动类,在“Spring Boot”项目中,将 On 'Update' action和On frame deactivation都选为‘Update classes and resources’ 注:properties文
阅读全文
posted @ 2019-03-05 16:40
wanbao
阅读(1627)
推荐(0)
2019年3月4日
摘要:
1、在工作空间下找到 .idea/workspace.xml 2、查找<component name="PropertiesComponent">,并在该元素中添加属性<property name="dynamic.classpath" value="true" />
阅读全文
posted @ 2019-03-04 15:00
wanbao
阅读(1078)
推荐(0)
2019年2月18日
摘要:
在bootstrap table实现行合并主要使用方法: $('#table_list').bootstrapTable('mergeCells', {index: 0, field: 'col_name', rowspan: 5}); 以下假设已经将需要进行行合并的列名保存在了页面上ID为tabl
阅读全文
posted @ 2019-02-18 11:35
wanbao
阅读(2968)
推荐(0)
2019年1月18日
摘要:
yum -y install gcc automake autoconf libtool make; yum install gcc gcc-c++
阅读全文
posted @ 2019-01-18 17:06
wanbao
阅读(128)
推荐(0)
摘要:
示例:见代码一,通过formatter可以控制显示字段的值,假设渲染bootstraptable时该值未被渲染,同时页面提交时该值也未被修改,在后台该值为null,而不是formatter中设置的'',要想达到设置默认值效果,需要加上row.name = ''; 见代码二。 代码一: 代码二:
阅读全文
posted @ 2019-01-18 15:20
wanbao
阅读(5818)
推荐(0)
摘要:
在JPA的代码中,如果使用自定义update、delete语句时,例如: @Query("delete from table t where t.id = ?1") 会碰到”Not supported for DML operations [delete “问题,解决方法,加上Modifying注解
阅读全文
posted @ 2019-01-18 15:13
wanbao
阅读(7290)
推荐(0)
2019年1月15日
摘要:
问题场景 当数据库中的Long字段值过大,并展示在前端时,有可能会出现精度丢失。 例如某某表的主键是bigint(20),且值为”49572448361881608623“,通过springboot controller返回到前端展示时,值变为”49572448361881609000“。 解决方案
阅读全文
posted @ 2019-01-15 08:30
wanbao
阅读(578)
推荐(0)