- 浏览: 71852 次
- 性别:
- 来自: 东京
最新评论
-
JavaStudyEye:
讲解的很详细,呵呵
Ruby on Rails入门例子 -
greatwqs:
提供一个下载的例子岂不是更好?
Struts2.1+Spring3.0+JPA1.0(Hibernate3.3实现)例子 -
einsteinm:
老套路!
Struts+Spring+Hibernate添加用户例子 -
processlife:
个人感觉有些陈旧...
现在比较流行 appfuse 的ss ...
Struts+Spring+Hibernate添加用户例子 -
dhxyu:
看看你是怎么使用hibernate的
Struts+Spring+Hibernate添加用户例子
init:
initdb
dropdb BookStore createdb -U okada BookStore
init-table
drop sequence hibernate_sequence; drop table t_order_detail; drop table t_order; drop table t_book; drop table t_customer; create sequence hibernate_sequence; create table t_customer( id integer default nextval( 'hibernate_sequence' ) primary key unique not null, uid text not null unique, passwordmd5 text not null, name text not null, email text not null ); create table t_book( id integer default nextval( 'hibernate_sequence' ) primary key unique not null, isbn text not null unique, title text not null, author text not null, publisher text not null, price integer not null ); create table t_order( id integer default nextval( 'hibernate_sequence' ) primary key unique not null, customer_id_fk integer not null constraint order_customer_id_constraint references t_customer(id), orderday timestamp with time zone not null ); create table t_order_detail( id integer default nextval( 'hibernate_sequence' ) primary key unique not null, order_id_fk integer not null constraint detail_order_id_constraint references t_order(id), book_id_fk integer not null constraint defail_book_id_constraint references t_book(id) );
init-data
delete from t_book; insert into t_book ( isbn, title, author, publisher, price ) values( '4-1234-5678-1', '坊ちゃん', '夏目漱石','A出版社', 450 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1234-5679-2', '三四郎', '夏目漱石','A出版社', 480 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1234-5670-1', '走れメロス', '太宰治','A出版社', 580 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1234-5670-2', '富嶽百景', '太宰治','A出版社', 430 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1230-1234-1', '銀河鉄道の夜', '宮沢賢治','B出版社', 650 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1230-1234-2', 'セロ弾きのゴーシュ', '宮沢賢治','B出版社', 380 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1230-2345-1', '伊豆の踊り子', '川端康成','B出版社', 780 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-1230-2345-2', '雪国', '川端康成','B出版社', 700 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-3456-1111-1', '羅生門', '芥川龍之介','C出版社', 580 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-3456-1111-2', '蜘蛛の糸', '芥川龍之介','C出版社', 880 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-3456-2222-1', '大つごもり', '樋口一葉','C出版社', 550 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-3456-2222-2', 'たけくらべ', '樋口一葉','C出版社', 660 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-1256-4', 'Javaフレームワーク入門', '掌田津耶乃','秀和システム', 2940 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-1225-4', 'Eclipse3.1によるJavaアプリケーション開発', '水島和憲','秀和システム', 2940 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-1209-2', 'はじめてのJSP&サーブレットプログラミング', 'アイティーブースト','秀和システム', 2835 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-1187-8', 'Eclipse3+VisualEditorによるJavaプログラミング', 'プロジェクトウィルカ','秀和システム', 2625 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-1086-3', 'UNIXコマンドリファレンス', '松本光春','秀和システム', 1365 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-7980-0680-7', '世界でいちばん簡単なUNIXのe本', '堀江幸生、山内敏昭','秀和システム', 1365 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-6543-1289-1', '世界の中心でUNIXを叫ぶ', '木村次郎','Z出版社', 2280 ); insert into t_book ( isbn, title, author, publisher, price ) values( '4-6543-2367-1', '今UNIXにゆきます', '鈴木三郎','Z出版社', 3800 );
hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> <property name="hibernate.connection.password">okada</property> <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/BookStore</property> <property name="hibernate.connection.username">okada</property> <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> </session-factory> </hibernate-configuration>
src\bookstore\action:
AddToCartItems.java
package bookstore.action; import java.util.List; import org.apache.struts.action.ActionForm; import bookstore.db.BookDB; import bookstore.pbean.TBook; public class AddToCartItems extends ActionForm{ private List<TBook> items = null; private String[] selecteditems = null; public AddToCartItems(){ items = BookDB.getBookListAll(); } public List<TBook> getItems(){ return( this.items ); } public void setItems( List<TBook> inItems ){ this.items = inItems; } public String[] getSelecteditems(){ return( this.selecteditems ); } public void setSelecteditems( String[] inSelecteditems ){ this.selecteditems = inSelecteditems; } }
CartAction.java
package bookstore.action; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts.actions.DispatchAction; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.hibernate.Query; import org.hibernate.Session; import bookstore.db.BookDB; public class CartAction extends DispatchAction{ public ActionForward addToCart( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res ){ HttpSession session = req.getSession(); session.removeAttribute( "CART" ); AddToCartItems atci = (AddToCartItems)form; List<String> cart = Arrays.asList( atci.getSelecteditems() ); session.setAttribute( "CART", cart ); return( mapping.findForward( "continue" ) ); } public ActionForward checkout(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) { HttpSession httpsession = req.getSession(false); List<String> cart = (List<String>) httpsession.getAttribute("CART"); Session session = BookDB.getHibernateSession(); Query priceQuery = session .createQuery("select sum( book.price ) from TBook book where book.isbn in ( :SELECTED_ITEMS )"); priceQuery.setParameterList("SELECTED_ITEMS", cart.toArray()); Long total = (Long)priceQuery.uniqueResult(); req.setAttribute("TOTAL", total); return (mapping.findForward("tocheck")); } }
src\bookstore\db:
BookDB.java
package bookstore.db; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.AnnotationConfiguration; import bookstore.pbean.TBook; public class BookDB{ private static SessionFactory sf = null; public static List<TBook> getBookListAll(){ Session session = BookDB.getHibernateSession(); List<TBook> booklist = (List<TBook>)session.createQuery( "from TBook" ).list(); return( booklist ); } public static TBook findBookByISBN( String inISBN ){ Session session = getHibernateSession(); if( session == null || session.isOpen() == false ){ session = getHibernateSession(); } Query findquery = session.createQuery( "from TBook book where book.isbn like :ISBN" ); findquery.setString( "ISBN", inISBN ); TBook returnValue = (TBook)findquery.uniqueResult(); return( returnValue ); } public static Session getHibernateSession(){ if( sf == null ){ sf = (new AnnotationConfiguration()) .configure( "../hibernate.cfg.xml" ) .buildSessionFactory(); } return( sf.openSession() ); } }
src\bookstore\pbean:
TBook.java
package bookstore.pbean; // Generated 2009/01/30 0:28:39 by Hibernate Tools 3.2.1.GA import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import javax.persistence.GeneratedValue; import org.hibernate.annotations.GenericGenerator; /** * TBook generated by hbm2java */ @Entity @Table(name = "t_book", schema = "public", uniqueConstraints = @UniqueConstraint(columnNames = "isbn")) public class TBook implements java.io.Serializable { private int id; private String isbn; private String title; private String author; private String publisher; private int price; private Set<TOrderDetail> TOrderDetails = new HashSet<TOrderDetail>(0); public TBook() { } public TBook(int id, String isbn, String title, String author, String publisher, int price) { this.id = id; this.isbn = isbn; this.title = title; this.author = author; this.publisher = publisher; this.price = price; } public TBook(int id, String isbn, String title, String author, String publisher, int price, Set<TOrderDetail> TOrderDetails) { this.id = id; this.isbn = isbn; this.title = title; this.author = author; this.publisher = publisher; this.price = price; this.TOrderDetails = TOrderDetails; } @Id @GeneratedValue(generator="hibernate_sequence") @GenericGenerator(name="hibernate_sequence", strategy="native") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; } public void setId(int id) { this.id = id; } @Column(name = "isbn", unique = true, nullable = false) public String getIsbn() { return this.isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } @Column(name = "title", nullable = false) public String getTitle() { return this.title; } public void setTitle(String title) { this.title = title; } @Column(name = "author", nullable = false) public String getAuthor() { return this.author; } public void setAuthor(String author) { this.author = author; } @Column(name = "publisher", nullable = false) public String getPublisher() { return this.publisher; } public void setPublisher(String publisher) { this.publisher = publisher; } @Column(name = "price", nullable = false) public int getPrice() { return this.price; } public void setPrice(int price) { this.price = price; } @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "TBook") public Set<TOrderDetail> getTOrderDetails() { return this.TOrderDetails; } public void setTOrderDetails(Set<TOrderDetail> TOrderDetails) { this.TOrderDetails = TOrderDetails; } }
TCustomer.java
package bookstore.pbean; // Generated 2009/01/30 0:28:39 by Hibernate Tools 3.2.1.GA import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import javax.persistence.GeneratedValue; import org.hibernate.annotations.GenericGenerator; /** * TCustomer generated by hbm2java */ @Entity @Table(name = "t_customer", schema = "public", uniqueConstraints = @UniqueConstraint(columnNames = "uid")) public class TCustomer implements java.io.Serializable { private int id; private String uid; private String passwordmd5; private String name; private String email; private Set<TOrder> TOrders = new HashSet<TOrder>(0); public TCustomer() { } public TCustomer(int id, String uid, String passwordmd5, String name, String email) { this.id = id; this.uid = uid; this.passwordmd5 = passwordmd5; this.name = name; this.email = email; } public TCustomer(int id, String uid, String passwordmd5, String name, String email, Set<TOrder> TOrders) { this.id = id; this.uid = uid; this.passwordmd5 = passwordmd5; this.name = name; this.email = email; this.TOrders = TOrders; } @Id @GeneratedValue(generator="hibernate_sequence") @GenericGenerator(name="hibernate_sequence", strategy="native") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; } public void setId(int id) { this.id = id; } @Column(name = "uid", unique = true, nullable = false) public String getUid() { return this.uid; } public void setUid(String uid) { this.uid = uid; } @Column(name = "passwordmd5", nullable = false) public String getPasswordmd5() { return this.passwordmd5; } public void setPasswordmd5(String passwordmd5) { this.passwordmd5 = passwordmd5; } @Column(name = "name", nullable = false) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "email", nullable = false) public String getEmail() { return this.email; } public void setEmail(String email) { this.email = email; } @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "TCustomer") public Set<TOrder> getTOrders() { return this.TOrders; } public void setTOrders(Set<TOrder> TOrders) { this.TOrders = TOrders; } }
TOrder.java
package bookstore.pbean; // Generated 2009/01/30 0:28:39 by Hibernate Tools 3.2.1.GA import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.GeneratedValue; import org.hibernate.annotations.GenericGenerator; /** * TOrder generated by hbm2java */ @Entity @Table(name = "t_order", schema = "public") public class TOrder implements java.io.Serializable { private int id; private TCustomer TCustomer; private Date orderday; private Set<TOrderDetail> TOrderDetails = new HashSet<TOrderDetail>(0); public TOrder() { } public TOrder(int id, TCustomer TCustomer, Date orderday) { this.id = id; this.TCustomer = TCustomer; this.orderday = orderday; } public TOrder(int id, TCustomer TCustomer, Date orderday, Set<TOrderDetail> TOrderDetails) { this.id = id; this.TCustomer = TCustomer; this.orderday = orderday; this.TOrderDetails = TOrderDetails; } @Id @GeneratedValue(generator="hibernate_sequence") @GenericGenerator(name="hibernate_sequence", strategy="native") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; } public void setId(int id) { this.id = id; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "customer_id_fk", nullable = false) public TCustomer getTCustomer() { return this.TCustomer; } public void setTCustomer(TCustomer TCustomer) { this.TCustomer = TCustomer; } @Temporal(TemporalType.TIMESTAMP) @Column(name = "orderday", nullable = false, length = 35) public Date getOrderday() { return this.orderday; } public void setOrderday(Date orderday) { this.orderday = orderday; } @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "TOrder") public Set<TOrderDetail> getTOrderDetails() { return this.TOrderDetails; } public void setTOrderDetails(Set<TOrderDetail> TOrderDetails) { this.TOrderDetails = TOrderDetails; } }
TOrderDetail.java
package bookstore.pbean; // Generated 2009/01/30 0:28:39 by Hibernate Tools 3.2.1.GA import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.GeneratedValue; import org.hibernate.annotations.GenericGenerator; /** * TOrderDetail generated by hbm2java */ @Entity @Table(name = "t_order_detail", schema = "public") public class TOrderDetail implements java.io.Serializable { private int id; private TOrder TOrder; private TBook TBook; public TOrderDetail() { } public TOrderDetail(int id, TOrder TOrder, TBook TBook) { this.id = id; this.TOrder = TOrder; this.TBook = TBook; } @Id @GeneratedValue(generator="hibernate_sequence") @GenericGenerator(name="hibernate_sequence", strategy="native") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; } public void setId(int id) { this.id = id; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "order_id_fk", nullable = false) public TOrder getTOrder() { return this.TOrder; } public void setTOrder(TOrder TOrder) { this.TOrder = TOrder; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "book_id_fk", nullable = false) public TBook getTBook() { return this.TBook; } public void setTBook(TBook TBook) { this.TBook = TBook; } }
WebContent:
BookStore.jsp
<%@ page language="java" contentType="text/html;charset=Windows-31J" %> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> <html:html> <head> </head> <body> <html:form action="/cartAction"> <table border="1"> <logic:iterate id="item" name="AddToCartActionName" property="items"> <tr> <th rowspan="2"> <html:multibox property="selecteditems"> <bean:write name="item" property="isbn"/> </html:multibox> </th> <td colspan="3"> <bean:write name="item" property="title"/> </td> </tr> <tr> <td> <bean:write name="item" property="author" /> </td> <td> <bean:write name="item" property="publisher" /> </td> <td> <bean:write name="item" property="price" /> 円 </td> </tr> </logic:iterate> </table> <br> <html:submit property="cartaction" value="addToCart" /> <html:submit property="cartaction" value="checkout" /> </html:form> </body> </html:html>
Check.jsp
<%@ page language="java" import="java.util.Iterator" %> <%@ page import="java.util.List" %> <%@ page import="bookstore.pbean.TBook" %> <%@ page import="bookstore.db.BookDB" %> <%@ page contentType="text/html;charset=Windows-31J" %> <html> <head> </head> <body> <center> <h2>購入商品</h2> </center> <br><br> 以下が購入する商品と合計です。 <br> <table border="1"> <% List<String> listCheckedBook = (List<String>)session.getAttribute( "CART" ); if( listCheckedBook != null ){ for( String iterBookISBN : listCheckedBook ){ TBook book = (TBook)BookDB.findBookByISBN( iterBookISBN ); %> <tr> <td> <%= book.getTitle() %> </td> <td> <%= book.getAuthor() %> </td> </tr> <tr> <td> <%= book.getPublisher() %> </td> <td> <%= book.getPrice() %> </td> </tr> <% } } %> </table> <br> <br> 合計: <%= request.getAttribute( "TOTAL" ) %> 円 </body> </html>
WebContent\WEB-INF:
hibernate.cfg.xml
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.bytecode.use_reflection_optimizer">false</property> <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> <property name="hibernate.connection.password">okada</property> <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/BookStore</property> <property name="hibernate.connection.username">okada</property> <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> <mapping class="bookstore.pbean.TOrderDetail" /> <mapping class="bookstore.pbean.TCustomer" /> <mapping class="bookstore.pbean.TOrder" /> <mapping class="bookstore.pbean.TBook" /> </session-factory> </hibernate-configuration>
struts-config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <form-beans> <form-bean name="AddToCartActionName" type="bookstore.action.AddToCartItems" /> </form-beans> <action-mappings> <action path="/cartAction" type="bookstore.action.CartAction" name="AddToCartActionName" parameter="cartaction" scope="request"> <forward name="continue" path="/BookStore.jsp" /> <forward name="tocheck" path="/Check.jsp" /> </action> </action-mappings> <message-resources parameter="resources.application"/> </struts-config>
web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>Chap10</display-name> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Welcome File List --> <welcome-file-list> <welcome-file>BookStore.jsp</welcome-file> </welcome-file-list> </web-app>
WebContent\WEB-INF\lib:
antlr-2.7.6.jar
commons-beanutils-1.7.0.jar
commons-chain-1.1.jar
commons-collections-3.1.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
dom4j-1.6.1.jar
ejb3-persistence.jar
hibernate3.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
javassist-3.4.GA.jar
jta-1.1.jar
postgresql-8.3-603.jdbc3.jar
slf4j-api-1.5.2.jar
slf4j-jdk14-1.5.2.jar
struts-core-1.3.8.jar
struts-extras-1.3.8.jar
struts-taglib-1.3.8.jar
代码来自日本的技术图书 :http://www.shuwasystem.co.jp/products/7980html/2197.html
发表评论
-
Struts2.1+Spring3.0+JPA1.0(Hibernate3.3实现)例子
2010-01-28 14:03 7659本文代码是传智播客黎活明老师所讲的《Spring2.5视频教程 ... -
Struts+Spring+iBATIS做的XML文件操作例子
2010-01-21 10:08 1068去年圣诞节前的一个例子,初版,给别人说明用的。 Str ... -
Struts1的版本差异——Action!
2009-12-25 13:44 887近来的项目要用Struts1.0.2框架,真够老的! 昨天模 ... -
中规模应用的开发(二)
2009-07-20 22:13 1000BookStore\src\main\webapp\WEB-I ... -
中规模应用的开发(一)
2009-07-20 21:50 1211BookStore pom.xml <proje ... -
导入Velocity
2009-07-20 19:24 2352src\main\java\bookstore\action: ... -
导入Spring
2009-07-20 17:38 1228src\main\java\chap12app: Mai ... -
导入Maven
2009-07-20 17:27 1012一.Maven的展开 1.在 ... -
导入Struts2
2009-07-20 15:54 887src: struts.xml <?xml ver ... -
导入Hibernate
2009-07-20 15:44 1179src\chap06app: Main.java pa ... -
JDBC登录
2009-07-20 15:31 1244LoginCheckServlet.java package ... -
JDBC
2009-07-20 15:18 706Main.java package chap05app; ... -
JSP/Servlet编程
2009-07-20 15:06 576PersonalInfoCheckServlet.java ... -
Spring Live-Spring Quick Start Tutorial
2007-03-02 11:35 1357http://sourcebeat.com/downloads ... -
Sysdeo Eclipse Tomcat Launcher plugin备份
2007-02-26 09:48 3059http://www.sysdeo.com/eclipse/t ... -
Struts+Spring+Hibernate添加用户例子
2007-02-02 12:41 4140由于jar太大,抓成图片以供下载. 图片在lib目录下. 数据 ... -
关于Struts+Hibernate分页的例子
2007-01-08 08:37 3021这个程序很久了,当时就查询分页这没有成功,一点遗憾:( ... -
测试 Enterprise Beans
2006-12-29 11:45 1717这个测试企业Beans的教程内容不多,却花费我很长时间。主要是 ... -
创建 J2EE 应用程序客户端
2006-12-29 10:24 1774确切地说,这个例子很失败! 从http://www.netbe ... -
J2EE 应用程序快速入门指南
2006-12-29 08:28 2251近来想系统地学习一下Java,NetBeas有较丰富的在线教程 ...
相关推荐
这减少了编写和维护大量代码的需求,特别适合快速原型设计和小规模应用开发。例如,Zapier和Microsoft Power Automate这样的工具,允许用户轻松创建自动化工作流,连接不同的服务和系统。 2. **业务流程自动化** ...
这可能意味着应用规模较小,专注于某一特定功能,同时可能具有更直接的用户反馈和更新机制。 2. **版本控制**: 开发者通过版本号来跟踪应用的改进和修复,这对于软件开发来说是标准做法,有助于管理和发布新功能,...
2. **数据库系统**:在Java Web应用中,常见的数据库管理系统如MySQL,它是一个开源、轻量级的关系型数据库,适合中小规模应用。连接MySQL通常使用JDBC(Java Database Connectivity),它是Java平台的标准接口,...
- **特点**:轻量级的数据库管理系统,适合存储中小规模的数据。 - **操作**:通过SQLiteOpenHelper创建数据库,使用SQL语句进行增删改查操作。 #### 3. SharedPreferences - **用途**:用于保存简单的键值对数据,...
7. 微服务架构:作为服务计算的一种现代实现,微服务强调小规模、独立的可部署服务,便于敏捷开发和持续集成。 服务计算不仅改变了传统的软件开发方式,也对企业的IT策略产生了深远影响。通过服务化,企业可以快速...
云计算与大数据应用开发第六章:云计算应用开发(一) 云计算与大数据应用开发第六章:云计算应用开发(一)主要介绍了云计算应用开发的基本概念和技术架构,着重于REST应用程序架构和JSON数据交换语言的应用。 ...
CPLD的优势在于其快速的配置时间、低功耗以及相对较小的引脚数,适合于小规模到中等规模的逻辑设计。在手册中,可能会详细讲解CPLD的工作原理、内部结构、编程方法以及如何使用它们来构建嵌入式系统。 FPGA(Field-...
在大规模iOS开发中,Buck构建工具的应用实践逐渐成为行业内的一个热点话题。随着iOS应用项目的增长,无论是从代码量、团队规模、还是构建速度和效率等方面,都对现有的构建系统提出了更高的要求。在这篇关于《BUCK在...
通过将统计学习理论与半监督学习方法相结合,可以更好地理解在小规模标注数据下的学习过程,并有望开发出更为有效的学习算法,打破当前的瓶颈。 总的来说,这篇论文对机器学习在小规模标注语料上的应用进行了深入...
以下将深入解析大规模互联网开发的关键技术点,包括但不限于微服务架构、容器化技术、持续集成/持续部署(CI/CD)、大数据处理以及云原生应用等。 ### 微服务架构 微服务架构是现代大规模互联网应用的核心。它通过...
很抱歉,但根据您给出的信息,"使煤与小规模气化系统应用相关共20页.pdf.zip" 和 "赚钱项目" 这些内容似乎与IT行业专业知识并不直接相关。它们可能涉及的是能源工程或者商业计划,而不是信息技术的某个特定领域。...
在信息时代,本体语言和应用系统的开发成为了数据管理和知识表示的重要领域。本体语言是构建语义网络和知识图谱的基础,而应用系统则将这些理论转化为实用工具,为智能决策、信息检索和跨域协作提供强大支持。以下是...
《ArcGIS Engine组件式开发及应用》是一本深入探讨地理信息系统(GIS)开发的专业书籍,由兰小机撰写。本书的重点在于如何利用ArcGIS Engine进行高效、灵活的组件式开发,为读者提供了一套完整的GIS应用程序构建方法...
- **MySQL**:最流行的开源关系型数据库管理系统之一,适用于各种规模的应用程序。 - **PostgreSQL**:强大的开源对象关系数据库系统,支持复杂查询和事务处理。 - **SQLite**:轻量级的文件型数据库,适用于小型...
大规模基于构件的软件开发是一种现代软件工程方法,它利用预构建的、可重用的软件组件来构建复杂的应用程序。这种方法旨在提高效率、减少开发时间并确保代码质量,因为构件通常经过预先测试和验证,符合一定的标准和...