springboot jpa 审计
摘要:@SpringBootApplication @EnableJpaAuditing public class Application {...} @Component public class AuditorAwareImpl implements AuditorAware<String> { pu
阅读全文
springboot 缓存
摘要:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId></dependency>@Cacheable(value = "value1", k
阅读全文
sqlserver 事务嵌套
摘要:参考 https://www.cnblogs.com/JentleWang/p/3654603.html https://blog.csdn.net/tuzhen007/article/details/11183961 if @exist_trancount > 0 begin rollback t
阅读全文
angularjs directive scope 与父scope双向绑定
摘要:参考 http://www.jb51.net/article/83051.htm angluar.module("aaa").directive("testDirective", function() { return { scope : { param1 : "=", param2 : "=" }
阅读全文
angularjs $watch
摘要:参考 https://blog.csdn.net/u010451286/article/details/50635839
阅读全文
jpa orderby
摘要:return criteriaQuery.where(in).orderBy(new OrderImpl(root.get("field1"))).getRestriction();
阅读全文
oracle授予调用存储过程权限
摘要:参考 https://blog.csdn.net/h254532693/article/details/45364317 grant execute on PROCEDURENAME to USERNAME;
阅读全文
sqlserver存储过程中调用存储过程
摘要:declare @value1 varchar(100)declare @value2 int exec xx.dbo.xxxxx 'param1', 'param2', 'param3', @value1 out, @value2 out
阅读全文
tomcat启动时引用非JAVA_HOME的指定路径
摘要:参考 https://jingyan.baidu.com/article/066074d62d371cc3c21cb0ec.html 先查看bin/catalina.bat 再查看bin/setclasspath.bat _RUNJAVA _RUNJDB
阅读全文
tomcat指向外部项目
摘要:参考 https://www.cnblogs.com/ysocean/p/6893446.html conf/server.xml中增加 <Context path="/myweb" reloadable="false" docBase="E:\xxxxx_sqlserver"></Context>
阅读全文
LocalDateTime TypeMismatch
摘要:@DateTimeFormat(pattern = "yyyy-MM-dd")@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")@Column(name="CREATETIME")private LocalDateTime createti
阅读全文
springboot 取消post数据大小限制
摘要:参考 https://blog.csdn.net/kkgbn/article/details/52088068 application.properties 添加 spring.servlet.multipart.max-file-size = 10Mb spring.http.multipart.
阅读全文
poi excel 加粗
摘要:参考 https://blog.csdn.net/wellto/article/details/52293202XSSFWorkbook xwb = new XSSFWorkbook(); ... XSSFCell cell... XSSFFont font1 = xwb.createFont();
阅读全文
springboot引入springSecurity无法post提交表单
摘要:参考https://blog.csdn.net/shawearn1027/article/details/71119587 表单中添加<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/> 隐
阅读全文
angluarjs ng-repeat 行号
摘要:参考 https://zhidao.baidu.com/question/1882914672116911828.html $index
阅读全文
css字体加粗
摘要:参考 https://zhidao.baidu.com/question/2138403197991538308.html
阅读全文
jquery 不选择第一个
摘要:参考 https://zhidao.baidu.com/question/174343639.html
阅读全文
jquery 显示 隐藏
摘要:参考 http://www.w3school.com.cn/jquery/jquery_hide_show.asp $("#a").hide(); $("#a").show();
阅读全文
js获取地址栏信息
摘要:参考: http://www.w3school.com.cn/jsref/dom_obj_location.asp http://www.xxx.com:8081/ location.host = www.xxx.com:8081
阅读全文
springboot 面向切面
摘要:@Aspect @Configuration public class AspectTest { @Pointcut("execution(public String xxx.xxx.xxx.Controller+.method1(..))") public void xxxxx() {} @Around("xxxxx()") public Object executeBefo...
阅读全文
获取RequestMapping注解中的属性
摘要:参考:https://www.cnblogs.com/2013jiutian/p/7294053.html @RequestMapping("/value1") @Controller public Class A { @RequestMapping("/value2") public String
阅读全文
thymeleaf 拼接字符串与变量
摘要:参考https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html<span th:text="'The name of the user is ' + ${user.name}">
阅读全文
spring jpa exists
摘要:Subquery<A> subquery = criteriaQuery.subquery(A.class);Root<A> root1 = subquery.from(A.class);subquery = subquery.select(root1.get("attrx"));subquery
阅读全文