04 2022 档案

摘要: 阅读全文
posted @ 2022-04-30 22:38 ascertain 阅读(185) 评论(0) 推荐(0) 编辑
摘要:@Mapper,最终 Mybatis 会有一个拦截器,会自动的把 @Mapper 注解的接口生成动态代理类。当然,前提是,映射器(Mapper.xml)必须满足动态代理的条件:1.namespace与接口的全限定类名相同2.id名与接口中方法名一致 <?xml version="1.0" encod 阅读全文
posted @ 2022-04-28 22:24 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:配置类: package us.transcode.thymeleaf.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configur 阅读全文
posted @ 2022-04-28 22:11 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:MVC: package us.transcode.thymeleaf.exception; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptio 阅读全文
posted @ 2022-04-28 21:44 ascertain 阅读(148) 评论(0) 推荐(0) 编辑
摘要:spring: datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://localhost:3306/thymeleaf?characterEncoding=UTF-8 driver-class-name: 阅读全文
posted @ 2022-04-28 21:39 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:<!-- https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter --> <dependency> <groupId>com.github.ulisesbocchio</groupI 阅读全文
posted @ 2022-04-28 18:04 ascertain 阅读(125) 评论(0) 推荐(0) 编辑
摘要:${AnsiColor.BRIGHT_GREEN} ${AnsiStyle.BOLD} _______ _______ _ __________________ _______ _______ _______ ( ____ \( ___ )( ( /|\__ __/\__ __/( ____ \|\ 阅读全文
posted @ 2022-04-28 17:17 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> <!--增加JVM参数-- 阅读全文
posted @ 2022-04-26 22:49 ascertain 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-26 17:08 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要:log4j2 + slf4j <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.36</version> </dependency> <dependency> <grou 阅读全文
posted @ 2022-04-25 20:14 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:Service Provider Interface: 阅读全文
posted @ 2022-04-25 17:11 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-25 13:25 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要:用来找出桌面上一个星期以上(大于或者等于8天)没有访问过的文件,因为是用于示例,这里使用相对容易理解的语法,并且添加了注释: function Get-OldFiles { # 获取桌面上所有的文件信息 $all_files = Get-ChildItem $env:USERPROFILE\Desk 阅读全文
posted @ 2022-04-23 18:25 ascertain 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-23 12:39 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/17866996/how-to-access-plain-json-body-in-spring-rest-controller 阅读全文
posted @ 2022-04-23 00:17 ascertain 阅读(81) 评论(0) 推荐(0) 编辑
摘要:Appearance & Behavior => System Settings: Keymap: Editor => General: Editor => Color Schema => General: Editor => Color Scheme => Console Colors: Edit 阅读全文
posted @ 2022-04-22 22:19 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-22 19:43 ascertain 阅读(33) 评论(0) 推荐(0) 编辑
摘要:1、在能够使用游标前,必须声明(定义)它。这个过程实际上没有检索数据,他只是使用select 语句。 2、一旦声明后,必须打开游标以供使用。这个过程用前面定义的select 语句把数据实际检索出来 3、对于填有数据游标,根据需要取出(检索)各行。 4、在结束游标使用时,必须关闭游标 在声明游标后,可 阅读全文
posted @ 2022-04-22 12:52 ascertain 阅读(174) 评论(0) 推荐(0) 编辑
摘要:package io.wig; import java.math.BigInteger; import java.security.SecureRandom; import java.util.Arrays; public class Fozy{ public static void main(St 阅读全文
posted @ 2022-04-22 12:02 ascertain 阅读(144) 评论(0) 推荐(0) 编辑
摘要:import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Ruzz{ public 阅读全文
posted @ 2022-04-21 22:10 ascertain 阅读(248) 评论(0) 推荐(0) 编辑
摘要:byte[] => hexString package io.oar; import java.util.Formatter; public class TestByteToHex{ public static void main(String[] args){ byte[] bytes = {-5 阅读全文
posted @ 2022-04-21 19:18 ascertain 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-21 14:03 ascertain 阅读(80) 评论(0) 推荐(0) 编辑
摘要:PS C:\Users\pretentious> mysqldump --add-drop-database --add-drop-table --add-drop-trigger --comments --compact --complete-insert --compress --create- 阅读全文
posted @ 2022-04-21 13:08 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:case分为: case operator & case statement case operator 用于 SQL case statement 用于function & procedure Operator: case statement: 阅读全文
posted @ 2022-04-20 23:22 ascertain 阅读(48) 评论(0) 推荐(0) 编辑
摘要:fuze表: mysqldump --add-drop-database --add-drop-table --add-drop-trigger --add-locks --compress --create-options --comments --compact --complete-inser 阅读全文
posted @ 2022-04-20 21:07 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要:排名: 阅读全文
posted @ 2022-04-20 19:03 ascertain 阅读(38) 评论(0) 推荐(0) 编辑
摘要:spring: mvc: view: prefix: /servlet/static/ # 不加context-path suffix: .html static-path-pattern: /static/** servlet: path: /servlet load-on-startup: 1 阅读全文
posted @ 2022-04-20 00:41 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要:行锁 变 表锁: Number 隐式转 String时, 索引所在列失效, 变表锁 String 隐式转 Number时, 索引所在列不失效, 仍为行锁 间隙锁 阅读全文
posted @ 2022-04-19 21:03 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-18 23:17 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要:<!--开启热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depend 阅读全文
posted @ 2022-04-18 11:45 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2 阅读全文
posted @ 2022-04-17 11:33 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-16 23:23 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-16 21:35 ascertain 阅读(376) 评论(0) 推荐(0) 编辑
摘要:跳转: 接收参数: 乱码: web.xml <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <w 阅读全文
posted @ 2022-04-14 23:59 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要:开启管理访问: conf/tomcat-users.xml : <role rolename="admin-gui" /> <role rolename="admin-script" /> <role rolename="manager-gui" /> <role rolename="manager 阅读全文
posted @ 2022-04-13 22:30 ascertain 阅读(42) 评论(0) 推荐(0) 编辑
摘要:public class B { public static final void main(String[] args) { System.out.println(System.getProperty("bb")); System.out.println(System.getProperty("f 阅读全文
posted @ 2022-04-13 18:17 ascertain 阅读(339) 评论(0) 推荐(0) 编辑
摘要:@Test public void d() throws IOException{ URL url = new URL("http://baidu.com"); InputStream inputStream; URLConnection urlConnection = url.openConnec 阅读全文
posted @ 2022-04-12 16:42 ascertain 阅读(33) 评论(0) 推荐(0) 编辑
摘要:classpath: import java.io.File; import java.util.Arrays; public class B { public static final void main(String[] args) { String property = System.getP 阅读全文
posted @ 2022-04-12 14:57 ascertain 阅读(64) 评论(0) 推荐(0) 编辑
摘要:package com.company; public class Wig{ public static void main(String[] args){ Object[] objects = new String[]{"a", "b", "c"}; if(objects instanceof S 阅读全文
posted @ 2022-04-12 13:36 ascertain 阅读(600) 评论(0) 推荐(0) 编辑
摘要:public class Zak { static ThreadLocal<Integer> threadLocal = new ThreadLocal<>(); public static void main(String[] args) throws InterruptedException{ 阅读全文
posted @ 2022-04-11 20:02 ascertain 阅读(17) 评论(0) 推荐(0) 编辑
摘要:https://developers.google.com/maps/url-encoding https://secure.n-able.com/webhelp/nc_9-1-0_so_en/content/sa_docs/api_level_integration/api_integration 阅读全文
posted @ 2022-04-11 19:37 ascertain 阅读(162) 评论(0) 推荐(0) 编辑
摘要:''.join([chr(random.randint(48,122)) for _ in range(55)]) 阅读全文
posted @ 2022-04-11 17:43 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Go to Start > Type in regedit and start it Navigate to HKEY_CURRENT_USER/Control Panel/Input Method/Hot Keys Select the key named: 00000070 for the Ch 阅读全文
posted @ 2022-04-11 11:48 ascertain 阅读(485) 评论(0) 推荐(0) 编辑
摘要:XML: bean.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2022-04-09 16:29 ascertain 阅读(71) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2022-04-07 13:48 ascertain 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-06 22:09 ascertain 阅读(13) 评论(0) 推荐(0) 编辑
摘要:select current_date() from dual; select current_time() from dual; select current_timestamp() from dual; select date_add(now,interval 10 minute) from d 阅读全文
posted @ 2022-04-05 15:03 ascertain 阅读(32) 评论(0) 推荐(0) 编辑
摘要:select abs(-5) from dual; select bin(10) from dual; # 转二进制 1010 select hex(100) from dual; select conv(number,from_base,to_base) select ceil(n) select 阅读全文
posted @ 2022-04-05 14:23 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:select charset(str); # 显示客户端字符集 select charset(field1) from table; # field1字符集 select charset(field2) from table; # field2字符集 concat(str1,str2,...); i 阅读全文
posted @ 2022-04-05 14:09 ascertain 阅读(31) 评论(0) 推荐(0) 编辑
摘要:java -cp ".;./mysql-connector-java-8.0.28.jar" zak.Zak https://stackoverflow.com/questions/2839321/connect-java-to-a-mysql-database package zak; impor 阅读全文
posted @ 2022-04-04 22:00 ascertain 阅读(223) 评论(0) 推荐(0) 编辑
摘要:Server & Client Utils.java package den; import java.io.*; import java.nio.charset.StandardCharsets; public class Utils{ public static byte[] streamToB 阅读全文
posted @ 2022-04-03 14:21 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-02 12:49 ascertain 阅读(48) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示