12 2017 档案

摘要:VisualVM下载地址:http://visualvm.github.io/download.html 解压后打开bin目录下的visualvm.exe 选择Tool-->Plugins,选择插件安装 测试代码 运行测试代码,在visualVM中右键选择应用-->Trace Application 阅读全文
posted @ 2017-12-24 20:32 uptothesky 阅读(260) 评论(0) 推荐(0) 编辑
摘要:启动redis redis自带客户端,启动客户端 也可以使用桌面工具Redis Desktop Manager测试 下载地址:https://redisdesktop.com/download 下载完后安装,打开程序 连接服务器 可以看到上面存进去的name 新建一个Spring Boot项目,po 阅读全文
posted @ 2017-12-22 23:04 uptothesky 阅读(1577) 评论(0) 推荐(0) 编辑
摘要:搭建服务注册中心 创建eureka-center,pom.xml如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3 阅读全文
posted @ 2017-12-22 15:58 uptothesky 阅读(776) 评论(0) 推荐(0) 编辑
摘要:首先在pom中添加依赖 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSch 阅读全文
posted @ 2017-12-19 09:13 uptothesky 阅读(256) 评论(0) 推荐(0) 编辑
摘要:Employee package com.example.demo.domain; import java.io.Serializable; public class Employee implements Serializable { private Integer id; private Str 阅读全文
posted @ 2017-12-18 23:54 uptothesky 阅读(223) 评论(0) 推荐(0) 编辑
摘要:一级缓存--SqlSession级别 数据库表tb_user User package com.example.demo.domain; public class User { private Integer id; private String name; private String sex; 阅读全文
posted @ 2017-12-17 17:20 uptothesky 阅读(774) 评论(0) 推荐(0) 编辑
摘要:if 新建表employee Employee package com.example.demo.domain; import java.io.Serializable; public class Employee implements Serializable { private Integer 阅读全文
posted @ 2017-12-16 19:25 uptothesky 阅读(225) 评论(0) 推荐(0) 编辑
摘要:一对一 创建数据表 CREATE TABLE `tb_card` ( `id` int NOT NULL AUTO_INCREMENT , `code` varchar(18) NULL , PRIMARY KEY (`id`) ); insert into tb_card(code) values 阅读全文
posted @ 2017-12-14 23:17 uptothesky 阅读(157) 评论(0) 推荐(0) 编辑
摘要:整体结构 pom.xml <?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-ins 阅读全文
posted @ 2017-12-09 20:59 uptothesky 阅读(189) 评论(0) 推荐(0) 编辑
摘要:SpringMvc Interceptor拦截器的配置与使用 参考 loginForm.jsp <%-- Created by IntelliJ IDEA. User: mythsky Date: 2017/12/5 Time: 21:57 To change this template use F 阅读全文
posted @ 2017-12-05 22:13 uptothesky 阅读(130) 评论(0) 推荐(0) 编辑
摘要:pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.1.RELEASE</version> </ 阅读全文
posted @ 2017-12-05 17:59 uptothesky 阅读(161) 评论(0) 推荐(0) 编辑
摘要:pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.1.RELEASE</version> </ 阅读全文
posted @ 2017-12-05 16:15 uptothesky 阅读(168) 评论(0) 推荐(0) 编辑
摘要:在http://mvnrepository.com/中搜索需要的包 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// 阅读全文
posted @ 2017-12-04 23:33 uptothesky 阅读(166) 评论(0) 推荐(0) 编辑
摘要:pom.xml <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.8.13</version> </dependency> <dependency> <groupId>o 阅读全文
posted @ 2017-12-04 17:59 uptothesky 阅读(133) 评论(0) 推荐(0) 编辑
摘要:Bean后处理器 新建maven项目并添加spring依赖,目录结构如下 Axe Person SteelAxe public class SteelAxe implements Axe { public SteelAxe() { System.out.println("Spring实例化依赖bea 阅读全文
posted @ 2017-12-04 11:22 uptothesky 阅读(408) 评论(0) 推荐(0) 编辑

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