![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
tanzongbiao
这个作者很懒,什么都没留下…
展开
-
SpringBoot Jpa多数据源(MySQL+Oracle不同数据库) 双数据源
注意:@Transactional非默认数据库时需放在Repo层 否则会报错:默认数据库无此问题TransactionRequiredException: Executing an update/delete query解决方法:@Transactional从Impl移到Repoimport javax.transaction.Transactional;//删除ById(JPQL)@Transactional@Modifying@Query(value = "update Me原创 2022-03-22 12:02:01 · 4266 阅读 · 0 评论 -
jpa拦截dbms_random wall会拦截dbms_random,使得无法随机排序 order by dbms_random.value()
报错现象:deny object : dbms_random解决方法:修改application-dev.yml#like12 modified,jpa拦截dbms_random wall会拦截dbms_random,使得无法随机排序#filters: stat,wall,slf4j #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙filters: stat,slf4j #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防原创 2022-03-08 14:59:52 · 458 阅读 · 0 评论 -
IDEA jpa Repo.save()保存返回实体含主键 获取主键
//保存ConfigProductBrands entity = configProductBrandsRepo.save(configProductBrands);原创 2022-03-02 11:27:45 · 1231 阅读 · 0 评论 -
bootstrap-table-export.js的bug,当exportTypes: [‘excel‘]只有一项时导不出xls 永远是csv bootstrap-table-export.js
bootstrap-table-export.js bug方式一:修改tableExport.js默认导出格式为xls非min中搜索type: 'csv'min中搜索type:"csv"改csv为excel方式二:修改自己jsexportOptions中强制增加参数 type: "excel",//导出showExport: true,//是否显示导出exportDataType: "basic",//'basic', 'all', 'selected'...原创 2021-12-18 21:41:23 · 655 阅读 · 0 评论 -
jQuery.upload.min.js文件上传 普通上传 想办法隐藏原上传框(通过设置高度为0实现) 通过额外的普通按钮关联触发原上传控件 隐藏原控件上传框 实现简单上传
Html<div class="row" style="margin-left: 5px"> <h2><strong>home>公司列表</strong></h2> <!--普通上传(upload为jQuery.upload.min.js添加的id)--> <button id="btn_JqueryUpload" type="button" class="btn btn-...原创 2021-12-18 00:08:18 · 1147 阅读 · 0 评论 -
GarageInfo后端模板 普通上传 本地上传模式 jqueryUpload 非云上传 非七牛云 兼容七牛云上传
GarageInfoCtl.java核心区别@Resource(name="dictionService")private DictionService dictionSvc;//上传文件处理if(!StringUtils.isEmpty(garageInfo.getUpload())){ //获取“文件上传路径”配置 String uploadDir = dictionSvc.getUploadDirConfig(); //无有效配置 if(!Stri.原创 2021-11-27 20:39:15 · 210 阅读 · 0 评论 -
Spring Security页面获取用户名(当前登录用户名) sec:authentication=“name“
前部引入thymeleaf<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">用到的地方直接引用sec:authentication="name"<!--Spring Security页面获取用户名--><div sec:authorize="isAut原创 2021-10-14 16:19:32 · 1086 阅读 · 0 评论 -
Maven安装本地jar yml文件报红 driver-class-name: oracle.jdbc.driver.OracleDriver中jdbc.driver.OracleDriver报红
解决办法:工程右键 手动引入ojdbc6-11.2.0.1.0.jar即可原创 2021-07-31 13:34:17 · 1673 阅读 · 0 评论 -
Maven安装本地jar 自定义仓库 多个仓库 Maven安装Oracle驱动ojdbc6.jar IDEA SpringBoot Could not find artifact com.oracle
-Dmaven.repo.local:指定仓库目录根位置,如果本机上包含多个仓库将非常有用。-DgroupId:指定Jar包的开发团队,一般为公司域名倒写去掉www开头。例如百度就是com.baidu等-DartifactId:开发的项目名称。-Dversion:文件版本。-Dpackaging:文件格式,jar或则war等。-Dfile:文件位置。默认仓库mvn install:install-file -Dfile=D:\ojdbc6.jar -DgroupId=com.oracle -原创 2021-07-31 12:17:48 · 883 阅读 · 0 评论 -
IDEA自定义Maven仓库路径 apache-maven-3.6.3 快捷键修改 Keymap IDEA安装 改键 Ctrl+F Ctrl+R 快捷键 Services窗口 Debug VSCode
File-->Settings-->Build...-->Maven原创 2021-07-31 12:07:52 · 396 阅读 · 0 评论 -
IDEA Tomcat中文乱码 Help-Edit Custom VM Options... -Dfile.encoding=UTF-8 System.out.println中文乱码
Help--->Edit Custom VM Options...-Dfile.encoding=UTF-8原创 2021-07-31 10:17:02 · 1099 阅读 · 0 评论 -
IDEA jar改为war模式 外部Tomcat 自己的tomcat SpringBoot jar转war
新增ServletInitializer.java文件package com.qyj.common;import org.springframework.boot.builder.SpringApplicationBuilder;import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;public class ServletInitializer extends SpringBootSe原创 2021-07-28 23:28:34 · 154 阅读 · 0 评论 -
IDEA2020.3设置Hightlighting Level Syntax ctrl+alt+shift+h
ctrl+alt+shift+h选择Syntax即可说明:只能每个文件都设置一次,没有全局设置的功能原创 2021-07-17 18:33:59 · 3500 阅读 · 1 评论 -
SpringBoot Mysql数据库与Java时间差8小时 UTC是全球标准时间 GMT%2B8是东八区,不能用UTC 否则Java时间与数据库时间会有8h时差 时区
UTC是全球标准时间 GMT%2B8是东八区,不能用UTC 否则Java时间与数据库时间会有8h时差#like12 find,bug,UTC是全球标准时间 GMT%2B8是东八区,不能用UTC 否则Java时间与数据库时间会有8h时差#url: jdbc:mysql://118.000.000.000:3306/car?serverTimezone=UTC&useSSL=falseurl: jdbc:mysql://118.000.000.000:3306/car?serverTim.原创 2021-07-03 20:52:53 · 2352 阅读 · 2 评论 -
IDEA修改背景颜色 调成白色 修改字体颜色
原创 2021-07-03 10:00:14 · 1597 阅读 · 0 评论 -
IReport Jasper报错Unknown property ‘‘ on class解决方案 SpringBoot BootStrap
IReport Jasper报错Unknown property '' on class解决方案 SpringBoot BootStrapbug:自己搞的jasper就是不行java.lang.NoSuchMethodException: Unknown property '' on class 'class com.qyj.mydemo.domain.Company'关于Unknown property ' ' on class 的解决https://blog.csdn.net/weixin_3原创 2021-05-19 13:22:51 · 1284 阅读 · 0 评论 -
html input 文本框设置焦点 初始化默认焦点 dorado7设置焦点
dorado7为:view.get('#username').setFocus();html为:document.getElementById("username").focus();原创 2021-04-18 00:28:37 · 913 阅读 · 0 评论 -
IDEA EnableAutoConfiguration 报红
IDEA EnableAutoConfiguration 报红原创 2021-04-17 17:45:38 · 4066 阅读 · 1 评论