摘要: 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 阅读(404) 评论(0) 推荐(0) 编辑
摘要: web.xml <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp 阅读全文
posted @ 2017-11-23 06:49 uptothesky 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 项目目录结构 User.java package org.mythsky.springmvcdemo.model; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; im 阅读全文
posted @ 2017-11-22 00:06 uptothesky 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 使用maven新建项目,添加srpingmvc依赖 <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.1.RE 阅读全文
posted @ 2017-11-18 14:58 uptothesky 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 静态工厂创建Bean 定义接口 接口实现 静态工厂 Spring配置services.xml 测试 结果 实例工厂创建Bean spring默认是单例模式,如果每次需要新建的话,需要设置scope 再次运行 阅读全文
posted @ 2017-11-17 09:49 uptothesky 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 实体类News package org.mythsky.hibernatedemo; import javax.persistence.*; @Entity @Table(name="news_inf") public class News { @Id @GeneratedValue(strateg 阅读全文
posted @ 2017-11-15 17:48 uptothesky 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 之前发表过一篇Jenkins的文章 使用Jenkins部署.Net应用程序 里面是使用GIT做的版本管理 今天更新下使用TFS做版本管理 首先在插件管理中搜索tfs,我这里因为已经装了,所以在已安装列表里,没装的话在可选插件列表中搜索 怎么使用呢?直接在插件上点击链接会跳转到如下页面: 这里有个RE 阅读全文
posted @ 2017-08-10 09:48 uptothesky 阅读(5170) 评论(4) 推荐(1) 编辑
摘要: 更新CentOS安装源 1、备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 7 wget 阅读全文
posted @ 2017-08-09 22:34 uptothesky 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 这里MySQL是装在两台Windows上,一台Win10,一台Win7,Win10的作为主,Win7的为从。 Win10 IP:10.200.80.184 Win7 IP:10.200.151.28 首先要找到MySQL的my.ini文件位置,使用Windows安装包安装的会自动安装命令,打开 输入 阅读全文
posted @ 2017-08-01 09:51 uptothesky 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 首先需要在系统管理--系统设置中设置系统管理员邮件地址: 然后在邮件通知里设置用户名密码,可以发生测试邮件 这里需要注意的是上面的系统管理员邮件地址必须和用户名一致 还需要注意的是测试邮件可能被当做垃圾邮件了 如果需要配置更高级的邮件通知,需要使用Extended E-mail Notificati 阅读全文
posted @ 2017-06-22 10:15 uptothesky 阅读(336) 评论(0) 推荐(0) 编辑