12 2020 档案
Mockito junit springboot
摘要:@RunWith(MockitoJUnitRunner.class) @TestPropertySource("classpath:application-test.properties") public class DemoTest{ @InjectMocks private Service se
阅读全文
Spring multi thread transaction tools
摘要:1.import MultiThreadTransactionManager.java2.DI PlatformTransactionManager3.new MultiThreadTransactionManager<>(transactionManager)4.addTask()5.execut
阅读全文
Mybatis boolean automatic convert
摘要:dbType=bit dbValue=null|0|1 javaType=boolean javaValue=false|false|true javaType=Boolean javaValue=null|false|true dbType=tinyint dbValue=null|0|not 0
阅读全文
Sqlserver 常用 SQL
摘要:1.Batch update top 10 2.Backup table 3.Add/Alter column and PK 4.Create/Replace Index 5.Dynamic Create/Replace sequence 6.Create/Replace Stored Proced
阅读全文
23 Design Pattern
摘要:5 7 11 1.Creativeness 1.1 Singleton private static class InnerClass{ new Singleton()} 1.2 Prototype 实现Cloneable 使用ObjectxxxputStream ByteArrayxxxputSt
阅读全文
浙公网安备 33010602011771号