1. dubbo本地调用:http://www.javashuo.com/article/p-cjhpcemj-gz.htmlhtml
2. MySQL高可用架构之MHA:MHA(Master High Availability)目前在MySQL高可用方面是一个相对成熟的解决方案,它由日本DeNA公司youshimaton(现就任于Facebook公司)开发,java
是一套优秀的做为MySQL高可用性环境下故障切换和主从提高的高可用软件。在MySQL故障切换过程当中,MHA能作到在0~30秒以内自动完成数据库的故障切换操做,而且在进行故障切换mysql
的过程当中,MHA能在最大程度上保证数据的一致性,以达到真正意义上的高可用。spring
3. 使用IntelliJ IDEA 配置JDK: 点击File -->Project Structure --> SDKssql
4. Spring缓存注解@Cacheable、@CacheEvict、@CachePut使用数据库
Spring Cache扩展:注解失效时间+主动刷新缓存缓存
5. 相似 eclipse 下鼠标移动到字段、方法、类、注释等上悬浮提示文档信息:勾选 Editor > General 下 Other 区域中的 show quick documentation on mouse move 能够根据我的习惯设置出现的时间,单位为毫秒。架构
6. Spring Boot使用单元测试:app
在pom.xml中添加测试依赖:eclipse
<!-- SpringBootText注解依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- Junit依赖 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency>
测试类:
@RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest public class SearchTest { @Autowired private AccountDao mapper; @Test public void test2() { Account a = new Account(); a.setName("李四"); a.setPassword("123"); a.setLevel(1); mapper.save(a); }
Spring Boot中单元测试类写在在src/test/java目录下,你能够手动建立具体测试类,若是是IDEA,则能够经过IDEA自动建立测试类,以下图,也能够经过快捷键⇧⌘T
(MAC)或者Ctrl+Shift+T
(Window)来建立。或者选中要测试的类,而后:navigate - test
7. Maven学习(四) - 插件maven-resources-plugin:http://www.javashuo.com/article/p-rzmshqic-mb.html
8. 页面空白,能够debug模式,看看哪些文件没有加载成功