11 2017 档案

摘要: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 阅读(117) 评论(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 阅读(126) 评论(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 阅读(205) 评论(0) 推荐(0) 编辑
摘要:静态工厂创建Bean 定义接口 接口实现 静态工厂 Spring配置services.xml 测试 结果 实例工厂创建Bean spring默认是单例模式,如果每次需要新建的话,需要设置scope 再次运行 阅读全文
posted @ 2017-11-17 09:49 uptothesky 阅读(277) 评论(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 阅读(608) 评论(0) 推荐(0) 编辑

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