Spring指南(官网)

Spring安装配置教程 1.Spring简介 Spring是一个开放源代码的设计层面框架,他解决的是业务逻辑层和其他各层的松耦合问题,因此它将面向接口的编程思想贯穿整个系统应用。Spring是于2003 年兴起的一个轻量级的Java 开发框架,由Rod Johnson创建。简单来说,Spring是一个分层的JavaSE/EE full-stack(一站式) 轻量级开源框架。 2002 Rod Johnon <Ex... 阅读详情


Hibernate / Spring / Middlegen / XDoclet Tutorial v1.5

Part 1 in the Warfrog.com Hibernate tutorial series

Before we begin


What this tutorial covers

This tutorial is built to help java developers get Hibernate, Spring, Middlegen and XDoclet up an running in a timely fashion.  When I first began learning Hibernate, Spring, Middlegen, and XDoclet, I was overwhelmed by how large and involved each package was.  Literally, there are thousands of files to deal with, vast amounts of jars to wade through, and so many different xml files that it's hard to know where to start. There are several excellent tutorials available online and they all were useful in someway to me, but none of them pandered to my way of learning, by example.  In response, I've attempted to compile them into a single tutorial, allowing developers like myself to get up to speed on these great technologies faster.  In essence, this tutorial is a "shortest" path example to getting all of these wonderful technologies working. Once you've completed this tutorial you should have a development process for integrating Hibernate, Spring, Middlegen, and XDoclet into your future projects.

What this tutorial doesn't cover

This tutorial won't review how Hibernate, Spring, Middlegen, or XDoclet work.  Additionally, this tutorial won't review the files I provide in the hibernatetutorial.zip. This may seem odd at first, but the documentation I've provided in the files does a great job of explaining them. If you find the documentation lacking and you have any questions please feel free to email me using the email address I've provided in the resource section, I'm always glad to help. Additionally, I can be contact on the irc.freenode.net under the handle TdC_VgA.


Downloading / Installing optional software


Install Command Prompt Here

Download: CmdHere.reg.txt
URL:
http://www.tburke.net/info/win2k/regfiles/CmdHere.reg.txt
Install: Save CmdHere.reg.txt
          Rename CmdHere.reg.txt to cmdhere.reg
          Right click on cmdhere.reg -> Merge


Install Eclipse
Download: eclipse-platform-2.1.X-win32.zip 
URL: http://www.eclipse.org/downloads/index.php
Extract file to c:/java/eclipse (you can use any directory you like, I'll be assuming C:/java/eclipse though)


Install ANT
Get newest version
URL: http://ant.apache.org/manual/index.html
Install: Follow instructions at the URL above


Setting up the project


Launch Eclipse
File->New->Project
    Select Java Project
Click Ok
   
Project Name = "hibernatetutorial"
Click Next
   
Make sure the source tab is selected and click the Add Folder button
Click the "Create New Folder" button
    Type in "src"

 Click OK 


Click Yes to the "Do you want to..." message
Click Finish
Minimize Eclipse, we're done using it for now

Create the staging folder
Note: I picked C:/hibernatetutorial, you can use whatever you like, but I'll be assuming C:/hibernatetutorial for the rest of this document.

Extract the hibernatetutorial.zip to C:/hibernatetutorial.  After that you'll need to open a command prompt to c:/hibernatetutorial and type "ant setup-dirs"

OR if you've decided not to use ANT
Create the following directories:

  • C:/hibernatetutorial/apps
  • C:/hibernatetutorial/apps/hibernate
  • C:/hibernatetutorial/apps/hibernate-ext
  • C:/hibernatetutorial/apps/middlegen
  • C:/hibernatetutorial/apps/spring
  • C:/hibernatetutorial/apps/xdoclet
  • C:/hibernatetutorial/apps/hsqldb
  • C:/hibernatetutorial/lib
  • C:/hibernatetutorial/lib/hibernate
  • C:/hibernatetutorial/lib/spring
  • C:/hibernatetutorial/lib/xdoclet
  • C:/hibernatetutorial/lib/hsqldb
  • C:/hibernatetutorial/hsqldb
  • C:/hibernatetutorial/downloads (optional - used for storing the downloads)

Time to install some software


Note: Every "extract the zip file..." line below means extract the zip file directly to the folder.  Do not change the root dir and/or "extract to FILENAME directory."  There may be some repetitive folder names, just ignore them (ex. C:/hibernatetutorial/apps/hsqldb/hsqldb ). If you change the root directory you'll need to manually edit the build.xml, I've provided, to point to the correct application roots.  Additionally, if any of the versions of the software listed below change you'll need to update the build.xml.

Install HSQLDB

Download: hsqldb_1_7_X.zip
File used in this tutorial: hsqldb_1_7_1.zip
URL: http://sourceforge.net/project/showfiles.php?group_id=23316&release_id=117043
Install: Extract the zip file to the hsqldb directory within the apps directory

Install Hibernate

Download: hibernate-2.1.x.zip
File used in this tutorial: hibernate-2.1.3.zip
URL: http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc
Install: Extract to the hibernate directory inside the apps directory

Install Hibernate extensions

Download: hibernate-extensions-2.1.X.zip
File used in this tutorial: hibernate-extensions-2.1.2.zip
URL: http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc 
Install: Extract to the hibernate-ext directory inside the apps directory
Install Middlegen
Download: Middlegen-Hibernate-rX.zip
File used in this tutorial: Middlegen-Hibernate-r4.zip
URL: http://prdownloads.sourceforge.net/hibernate/?sort_by=date&sort=desc 
Install: Extract to the middlegen directory inside the apps directory

Open a command prompt to c:/hibernatetutorial and type "ant setup-middlegen"

OR if you've decided not to use ANT


Copy the following files:

  • C:/hibernatetutorial/apps/hibernate/lib/commons-lang-1.0.X.jar
  • C:/hibernatetutorial/apps/hibernate/hibernate2.jar
  • C:/hibernatetutorial/apps/hibernate-ext/tools/lib/jdom.jar
  • C:/hibernatetutorial/apps/hibernate-ext/tools/hibernate-tools.jar

to the C:/hibernatetutorial/apps/middlegen/lib directory

Delete the following directories / files:

  • C:/hibernatetutorial/apps/middlegen/build
  • C:/hibernatetutorial/apps/middlegen/src
  • C:/hibernatetutorial/apps/middlegen/build.xml
  • C:/hibernatetutorial/apps/middlegen/config/database/hsqldb.xml

Copy the build.xml, provided in the hibernatetutorial.zip, to C:/hibernatetutorial/apps/middlegen/.  Additionally, copy the hsqldb.xml to the C:/hibernatetutorial/apps/middlegen/config/database/hsqldb.xml.

Install XDoclet

Download: xdoclet-bin-1.X.zip
File used in this tutorial: xdoclet-bin-1.2.zip
URL: http://sourceforge.net/project/showfiles.php?group_id=31602
Install: Extract to the xdoclet directory

Install Spring Framework

Download: spring-framework-1.0.X-with-dependencies.zip
File used in this tutorial: spring-framework-1.0.1-with-dependencies.zip
URL: http://sourceforge.net/project/showfiles.php?group_id=73357
Install: Extract to the spring directory inside the apps directory
 


Gather up all the jars for our app


Open a command prompt to c:/hibernatetutorial and type "ant copy-jars-to-lib"

OR if you've decided not to use ANT

Hibernate Jars

Copy all the jars from the C:/hibernatetutorial/apps/hibernate/lib
Copy the hibernate2.jar from the C:/hibernatetutorial/apps/hibernate/
to C:/hibernatetutorial/lib/hibernate

Spring Jars

Copy all the jar and dtd files from C:/hibernatetutorial/apps/spring/dist
Copy aopalliance.jar from C:/hibernatetutorial/apps/spring/lib/aopalliance
to C:/hibernatetutorial/lib/spring

HSQLDB Jars

Copy the hsqldb.jar from C:/hibernatetutorial/apps/hsqldb/lib to C:/hibernatetutorial/lib/hsqldb


Setup the HSQLDB database


Launch the HSQLDB GUI
 


Launch a command prompt to c:/hibernatetutorial/lib/hsqldb directory.
Launch the HSQLDB GUI by typing "java -cp hsqldb.jar org.hsqldb.util.DatabaseManager"
    Set the type to: HSQL Database Engine Standalone
    Set the URL to: jdbc:hsqldb:../../hsqldb/hibernatetutorial
    Leave the rest of the settings alone
    Click Ok

Two files were just created that make up the hibernatetutorial database

  • C:/hibernatetutorial/hsqldb/hibernatetutorial.properties
  • C:/hibernatetutorial/hsqldb/hibernatetutorial.script

Create the GROUPS Table

Paste the following code into the text box next to the execute button

 
    
CREATE TABLE GROUPS (
    
group_id int NOT NULL IDENTITY,
    
name LONGVARCHAR(255) NOT NULL,
    
registration_date DATE NOT NULL,
    
annual_budget decimal(20,4) NOT NULL
    
)
    
 
   

Hit execute

Create the USERS Table

Paste the following code into the text box next to the execute button

 
    

CREATE TABLE USERS ( user_id int NOT NULL IDENTITY, group_id int, first_name LONGVARCHAR(255) NOT NULL, last_name LONGVARCHAR(255) NOT NULL, dob DATE NOT NULL, ssn LONGVARCHAR(20) NOT NULL,

phone LONGVARCHAR(20) NOT NULL,

salary decimal(20,4) NOT NULL,

active bit DEFAULT 'true' NOT NULL,

foreign key (group_id) references groups (group_id)

)  

Hit execute
Close the GUI but leave the console open, we'll be using it in a minute.
Launch the HSQLDB Server
You've just created the groups and users tables we'll be using in our tutorial.  Now all we have to do is launch the HSQLDB Server so we can access the database easily from our application.

Open another command prompt to the C:/hibernatetutorial/hsqldb directory.  Make sure you don't use the command prompt we launched the HSQLDB GUI from, create another command prompt, because we'll be using it in a minute to test our database. Launch the HSQLDB server by typing "java -cp ../lib/hsqldb/hsqldb.jar org.hsqldb.Server -database hibernatetutorial" at the command prompt.  If all went as planned you should see something similar to "Wed Apr 28 17:45:44 EDT 2004 Listening for connections ..." at the bottom of the command prompt.  However, if you see "java.sql.SQLException: The database is already in use by another process", make sure you've closed the HSQLDB GUI.

Test the HIBERNATETUTORIAL Database
Relaunch the HSQLDB GUI. 
    Set the type to: HSQL Database Engine Server
    Leave the rest of the settings alone
    Click Ok

Assuming everything has gone smoothly you should see the GROUPS and USERS tables in the lefthand tree.  Congratulations, you're HSQLDB is now fully operation and you're ready to move on to generating you first Hibernate Mapping files. Once again, leave the HSQLDB GUI open.


Using Middlegen



Launching Middlegen

Open a command prompt to C:/hibernatetutorial/apps/middlegen/Middlegen-Hibernate-r4 and type "ant middlegen." You should now see a screen containing your GROUPS and USERS tables. Click on the title bar of the GROUPS table and change the Key Generator type to "Native." Repeat the same process for USERS table. Click the Generate button and wait for it to turn back to light grey. Close the Middlegen GUI.

In the C:/hibernatetutorial/apps/middlegen/Middlegen-Hibernate-r4 directory there should be two new directories, src and build. Navigate to C:/hibernatetutorial/apps/middlegen/build/gen-src/com/warfrog/hibernatetutorial/hibernate; there should be two files Group.hbm.xml and User.hbm.xml. Open the Group.hbm.xml for editing, we need to make a slight modification. Once you've opened the Group.hbm.xml, scroll down till you see the <set> tag (near the bottom) and add the line:

 
    
cascade="save-update"
    
 
   

below 'inverse="true". The <set> tag should now look like this:

 
    
<set
    
    name="users"
    
    lazy="true"
    
    inverse="true"
    
    cascade="save-update"
    
>
    
 
   

Additionally, add

 
    
cascade="save-update"
    
 
   

below the "inverse="true"" within the <meta> tag. These modifications inform hibernate that when a Group object is saved it should also save and/or update all the User objects associated to the Group. Save the Group.hbm.xml and exit your editor.

At the middlegen command prompt type "ant hbm2java". Assuming that all went well you should see two new .java files (Group.java and User.java) inside the C:/hibernatetutorial/apps/middlegen/Middlegen-Hibernate-r4/build/gen-src/com/warfrog/tutorial/hibernate directory. Both java files should contain all the Hibernate XDoclet information required to generate the Group and User hbm.xml files and from the hbm.xml files you can generate the Database schema using the hbm2ddl tool, gotta love full circle development.


Using Hibernate


Setup the Eclipse Project

Open a command prompt to c:/hibernatetutorial and type "ant setup-eclipse-project"

OR if you've decided not to use ANT

Move to C:/java/eclipse/workspace/hibernatetutorial. Copy the "com" directory from the C:/hibernatetutorial/apps/middlegen/build/gen-src/ directory to C:/java/eclipse/workspace/hibernatetutorial/src.  Additionally, copy C:/hibernatetutorial/lib directory to C:/java/eclipse/workspace/hibernatetutorial. Finally, copy all the files from the hibernatetutorial.zip/project files into C:/java/eclipse/workspace/hibernatetutorial.


Add the JARs to your eclipse classpath

First, right click on the "hibernatetutorial" folder icon and select "Refresh". Now, right click on the "hibernatetutorial" folder icon and select Properties. Click on the Java Build path, then the "Libraries" tab and hit the "Add JARs" button.  Navigate to your hibernatetutorial/lib directory and add all the jars from each folder (hibernate, hsqldb, spring, etc.).  Once you've selected all of the jars, click the Ok button.

Note: use SHIFT+ LEFT_CLICK to select a "block" of jars.



Testing your Hibernate project

Double click on the HibernateTutorial.java (found under default package inside eclipse), then click the arrow on the right hand side of the "running man" icon, then select Run As->Java Application. Click Ok to any prompts. If you've setup everything correctly, you should see a bunch of data scroll and some insert statements executing. Execute "SELECT * FROM GROUPS" inside the HSQLDB GUI and "SELECT * FROM USERS" to verify that the data is in the database. One record should be returned from the GROUPS table and 5 records from the USERS table.  Congratulations, you now have a working Hibernate program.


Adding in Spring


Adding Spring into the mix

I've provided the required files to integrate Spring into the project (UserDAO.java, UserDAOImpl.java, applicationContext.xml, ApplicationContextFactory.java, and HibernateSpringTutorial.java).  The UserDAO object provides a few sample "find" methods to simply retrieval of User objects.  Additionally, the applicationContext.xml provides information to the Spring framework about sessions, transactions, etc.

Named Queries

A nice feature of Hibernate is the ability to place queries outside of code and in the .hbm.xml files, called named queries.  In this section we'll modify the User.hbm.xml and insert a named query.  Open the User.hbm.xml inside Eclipse for editing.  Depending on your settings you may have to right click on the User.hbm.xml and select Open With -> Text Editor.  Scroll down to the bottom of the file and modify

 
    
</class>
    
</hibernate-mapping>
    
 
   

to this:

 
    
</class>
    
    <query name="UsersByDobRange">
    
       <![CDATA[from User user where user.dob between ? AND ?]]>
    
    </query>
    
</hibernate-mapping>
    
 
   

Testing your Hibernate Spring project

Double click on the HibernateSpringTutorial.java (found under the default package inside eclipse), then click the arrow on the right hand side of the "running man" icon, then select Run As->Java Application. Click Ok to any prompts. If you've setup everything correctly, you should see a bunch of data scroll and SQL statements and then two exceptions being thrown.  The first exception was caught inside a transaction and rolled back when the exception was throw, because we instructed Spring, inside the applicationContext.xml, to "wrap" a transaction around the "addGroupSafe" method of the UserDAOImpl class. The second exception thrown wasn't rolled back, resulting in a "MALFORMED_GROUP_2" group entry being added to our database. You can tell the "addSafe" method call was rolled back by executing "SELECT * FROM GROUPS" in the HSQLDB GUI.  You should see an entry for MALFORMED_GROUP_2, but not MALFORMED_GROUP_1. In the next section we'll make a slight modification to the applicaionContext.xml and wrap both methods in transactions.

Modifying the Transactions

Spring allows you to remove all of the messy session.beginTransaction, commit(), rollback(), etc. code from you method calls.  With Spring you can define what methods utilize transactions and which methods don't using the Application Context.  In this section we'll modify the applicationContext.xml to allow Spring to handle the transaction management for the "malformed" addGroup calls. 

Open the applicationContext.xml inside Eclipse for editing. Once you have the file opened, scroll down to the bottom of the file where you see these lines:

 
    

<prop key="addGroupSafe">PROPAGATION_REQUIRED</prop>

<!--<prop key="addGroup*">PROPAGATION_REQUIRED</prop>-->  

modify them so they look like this

 
    
<!--<prop key="addGroupSafe">PROPAGATION_REQUIRED</prop>-->
    
<prop key="addGroup*">PROPAGATION_REQUIRED</prop>
    
 
   

What you've done is told spring to lookout for any method starting with the signature "addGroup" and wrap it in a transaction. Save the modified applicationContext.xml and re-run HibernateSpringTutorial.java.  Once the program has finished executing, you should notice that both "malformed" save calls where rolled back by Spring.  If you, once again, execute "SELECT * FROM GROUPS" inside the HSQLDB GUI, you'll noticed that no new groups have been inserted into the table.


XDoclet


Launching XDoclet

I've included a build.xml that will allow you to generate hbm.xml files from the Java source files we generated in the MiddleGen section.  Select "Run Ant", making sure the "generate-hbm-from-xdoclet" task is checked and press Ok. You should see some output similar to the lines below:

Buildfile: C:/java/eclipse/workspace/hibernatetutorial/build.xml

generate-hbm-from-xdoclet:
[hibernatedoclet] (XDocletMain.start 47 ) Running <hibernate/>
[hibernatedoclet] Generating mapping file for com.warfrog.hibernatetutorial.hibernate.Group.
[hibernatedoclet]     com.warfrog.hibernatetutorial.hibernate.Group
[hibernatedoclet] Generating mapping file for com.warfrog.hibernatetutorial.hibernate.User.
[hibernatedoclet]     com.warfrog.hibernatetutorial.hibernate.User
BUILD SUCCESSFUL
Total time: 3 seconds


Now, right click on the hibernatetutorial icon and select Refresh. This should cause a new folder, xdoclet.com.warfrog.hibernatetutorial.hibernate, to appear under your src folder. Inside the xdoclet folder you'll find the Group.hbm.xml and User.hbm.xml files that were generated by XDoclet. If you compare the hbm.xmls generated by Middlegen and hbm.xmls generated by XDoclet you'll notice that Date fields have been converted from type "java.sql.Date" to "java.util.Date." Additionally, you'll notice that XDoclet has inserted some default values that we didn't supply in our Java XDoclet metadata, fortunately neither of these modification should cause any problems.


Conclusion


Conclusion

Hopefully, this tutorial has allowed you to get Hibernate, Spring, Middlegen, and XDoclet working and given you a good basis for building future projects using these great tools.  Additionally, you should now have a development process that allows you to start with a Database, generate the Mappings, generate the Java objects, and start using them quickly.  From theret you can modify the Java objects, regenerate the mappings and using hdm2ddl update the database, if you'd like. As I stated previously, if you have any questions or comments please contact me at either the IRC Handle or the email address listed in the resource section.  If you enjoyed part 1 of this tutorial you should move on to part 2 where I provide additional information on creating Many 2 Many and Inheritance mappings using Hibernate and Middlegen.

Cheers,
  Tyler Pitchford
  Senior Developer - Warfrog.com


Resources


Other tutorials

Warfrog Hibernate tutorial series part 2 - Hibernate / Middlegen: http://www.warfrog.com/hibernatetutorial2
Introduction to Hibernate: http://www.systemmobile.com/articles/IntroductionToHibernate.html
MiddleGen-Hibernate Example: http://www.systemmobile.com/articles/IntroductionToHibernate.html
Object-relation mapping without the container: http://www-106.ibm.com/developerworks/library/j-hibern/?ca=dnt-515
Object to Relational Mapping and Relationships with Hibernate: www.meagle.com:8080/hibernate.jsp

Links

Ant: http://ant.apache.org/
Ant Documentation: http://ant.apache.org/manual/index.html
Eclipse: http://www.eclipse.org/
Eclipse Documentation: http://www.eclipse.org/
Hibernate: http://www.hibernate.org
Hibernate Documentation: http://www.hibernate.org/hib_docs/reference/en/html/
Spring: http://www.springframework.org/
Spring Documentation: http://www.springframework.org/documentation.html
Middlegen: http://boss.bekk.no/boss/middlegen/
Middlegen Documenation: http://boss.bekk.no/boss/middlegen/project-info.html
XDoclet: http://xdoclet.sourceforge.net/
XDoclet Documenation: http://xdoclet.sourceforge.net/project-info.html
Hibernate - Xdoclet: http://www.hibernate.org/72.html
Hibernate - Spring: http://hibernate.bluemars.net/110.html

IRC Help

#hibernate on irc.freenode.org
#spring on irc.freenode.org
#java on irc.freenode.org

Contact Info

IRC Handle: TdC_VgA
tyler_pitchford <remove>at<remove> yahoo.com

Downloads

Tutorial Files: hibernatetutorial.zip


 

Spring 生态 - spring 体系部分组件相关文档 文章目录Spring 生态 - spring 体系部分组件相关文档1、官网2、JPA3、spring boot admin4、spring框架文档5、spring参考指南6、spring cloud7、springboot8、官方文档中心 Spring 生态 - spring 体系部分组件相关文档 1、官网 https://spring.io/ 2、JPA https://docs.spring.io/spring-data/jpa/docs/2.1.0.M2/reference/html/#reposi 阅读详情

相关推荐

XCP_Basic 移植步骤

XCP_Basic 移植步骤

ggzzc的博客 2315

Spring 官网阅读指南

一、概述 Spring官网:https://spring.io/,界面如下: 二、各模块介绍 进入首页如上图,在首页官网会展示一些当前Spring比较流行的技术。可以看见导航栏有几个模块,信息如下: 1、PROJECTS:罗列了Spring各个项目的信息(如Spring Boot、Spring、Spring Cloud等),想要浏览项目信息,如帮助文档,可以在这里进去。 ...

Yu_JHong的博客 2566

火山引擎实时对话AI实战:5分钟搞定WebRTC+大模型+ASR/TTS全链路集成

本文详细介绍了如何利用火山引擎的实时对话AI解决方案,快速集成WebRTC、大模型、ASR和TTS服务,构建低延迟、高保真的实时语音对话应用。通过实战代码示例,从环境准备、音频流管理到全链路串联与性能优化,为开发者提供了一套端到端的集成指南,适用于智能客服、在线教育等互动场景。

weixin_29051245的博客 1126

java学习之springcloud之服务注册与发现篇

尚硅谷的springcloud学习笔记,第一部分

qq_28356977的博客 1376

uniapp 使用摄像头 live-pusher (APP)

uniapp 中开发 app 时使用live-pusher踩过的坑

随身笔记 1万+

U8采购入库单CO接口开发实战:加载、新增与删除操作详解

本文详细解析了用友U8采购入库单CO接口的开发实战,重点介绍了加载、新增与删除三大核心操作的实现方法。通过C#代码示例和实际项目经验,帮助开发者高效处理采购入库单,提升企业供应链管理效率。文章还涵盖了环境配置、异常处理、性能优化等关键技巧,适合U8二次开发人员参考。

weixin_33462927的博客 373

Spring安装和使用(Eclipse环境)

一、Spring框架概述        1、 什么是Spring             Spring是一个开源框架,Spring是于2003 年兴起的一个轻量级的Java 开发框架,由Rod Johnson 在其著作Expert One-On-One J2EE Development and Design中阐述的部分理念和原型衍生而来。它是为了解决企业应用开发的复杂性而创建的。框架的主要优势之...

汤庆 5万+

【win10+RAGFlow+Ollama】搭建本地大模型助手(教程+源码)

在当今科技飞速发展的时代,人工智能(AI)已经成为各行各业不可或缺的一部分。特别是在文档处理和数据分析领域,AI的应用更是无处不在。今天,我要向大家介绍一个开源的AI框架引擎——RAGflow。它能够在深度文档理解方面执行检索增强生成(Retrieval-Augmented Generation,简称RAG),并且被认为是目前最优秀的RAG框架之一。本文将详细探讨RAGflow的创新功能、技术特点以及如何在实际应用中发挥其最大潜力。

Yooao的博客 9618

手把手教你安装Spring+搭建Spring开发环境

为了让新手安装Spring时少走弯路,小编写下详细步骤(以win8,64位为例)。 请系好安全带,坐好扶稳。 一:安装eclipse 如果已经安装请忽略此步。 官网下载地址(64位):https://www.eclipse.org/downloads/download.php?file=/oomph/epp/oxygen/R2/eclipse-inst-win64.exe 点开...

csdnsjg的博客 6万+

# ubuntu 系统使用 yum命令报错 There are no enabled repos.Run “yum repolist all“ to see the repos you have...

# ubuntu 系统使用 yum命令报错 There are no enabled repos.Run "yum repolist all" to see the repos you have.You can enable repos with yum-config-manager --enable

段子手168的博客 6680

3D 韩系风格漫剧人设 | GPT-Image2 人设生成【附完整提示词】

宁姚同款清冷剑系美人,极致小巧鹅蛋脸,下颌线紧致纤细流畅,下巴小巧精致收窄,小脸衬得五官格外舒展,韩式水光肌,面部精细水光高光,鼻梁高光、鼻尖高光、面中苹果肌高光、唇珠高光,红棕色长卷发偏分大波浪,垂在一侧肩前,发量蓬松。发量丰厚蓬松有体积感,不贴头皮,几缕碎发自然垂落脸侧修饰脸型,长度过胸及背,发丝柔顺丝滑卷度自然,发尾自然垂落,身穿香槟色缎面挂脖长裙,挂脖设计无袖露肩露背,上半身围裹式荡领胸口垂褶,腰部堆褶收腰,修身直筒包臀裙长度到脚踝,缎面光泽感强垂坠感好,极简剪裁。纯白色背景,3D漫剧写实厚涂风。

欢迎来到鸾姝淡月博客,专为程序员和编程爱好者打造的技术博客。我们分享编程语言趋势、开发工具、编程哲学、职业发展等,助你掌握新技术,优化技能,激发编程热情。 123

关于 Spring 官网快速入门指南(https://spring.io/quickstart)

该指南旨在帮助开发者快速搭建一个简单的 Spring Boot 应用,实现一个可通过浏览器访问的 “Hello World” 端点,并支持动态参数(如姓名)。如需进一步帮助,可提供具体问题或需求。

m0_68935893的博客 1063

01-系统技术架构师必备——软件架构设计基础与核心概念

摘要 本文系统阐述了软件架构设计的核心概念与方法论,重点涵盖以下内容:1)软件架构的四大要素(构件、连接件、约束、配置)及其边界划分;2)Garlan & Shaw五大架构风格(数据流、调用/返回、独立构件、虚拟机、仓库)的典型应用场景;3)基于电商库存系统的架构选型实战案例,展示如何根据业务需求(高并发、最终一致性)选择事件驱动架构配合Saga模式;4)介绍ABSD、DSSA等主流架构方法论及ISO/IEEE标准体系。文章融合金融与互联网领域的架构实践经验,为技术架构师提供系统性的知识框架和决策参考。

模界 | AI工程化实践者 181

跟着官网学spring—快速入门指南

跟着官网学Spring—快速入门指南 这是跟着官网学习Spring的第一篇博客,后续会继续更新。喜欢的话就多多点赞评论关注! 开始一个新的Spring Boot项目 使用 快速开始创建一个”web“项目,如下图所示: 需要注意的是需要在依赖关系中添加web依赖关系 完成属于自己的个性化配置后,点击生成 解压后,用idea打开,就完成了Spring boot的创建。 idea打开后效果...

冢狐的私人空间 1136

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

用快马平台将IDEA官网指南秒变可运行Spring Boot原型

更棒的是,平台提供了“一键部署”功能,能将这个临时运行的应用,发布成一个公开可访问的临时网址。这个快速生成的原型,成了一个完美的“实验沙盒”,让我能聚焦于技术点本身的验证,而不是浪费在繁琐的项目初始化与环境搭建上。这个原型需要满足几个基本点:一个标准的Spring Boot主类、一个能响应HTTP GET请求的控制器、一个简单的JSON返回体,以及最基础的配置文件。我直接在快马平台的AI对话区,用自然语言描述了我的需求:“基于Spring Boot 3.x,创建一个简单的Web应用。依赖,没有多余的包袱。

OnyxPanther23的博客 177

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

官网下载最新版本Spring

目录官网下载步骤官网下载地址 官网下载步骤 官网地址:https://spring.io/projects/spring-framework 1.点击右上角 Git 图标 2. 进入Spring的Git仓库 3. 进入Spring Framework Artifacts后点击"https://repo.spring.io" 4.进入Spring repository,并如下图操作: 5.打开springframework -> spring,并找到对应的版本进行下载。 – 后缀dist:该文

anndy_的专栏 4080

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

spring boot入门指南(来自官网入门指南)

1. spring boot 可以使你通过很小的前期配置尽可能快的启动和运行项目,spring boot用自己的观点来创建产品已有的应用 2. 启动:     使用spring boot创建一个应用:         本指南提供了spring boot如何帮助你加快和促进应用的开发。和你看过的其他启动指南一样,在本指南中你会看到更多spring boot的使用案例。         意味着给你一个...

我的博客 556

Spring官网学习(一)概述

文章目录1、Spring官网简介2、Spring总览2.1、什么是Spring2.2、Spring的发展历程3、Spring的设计理念4、Getting Started 1、Spring官网简介 进入Spring的官网介绍,可以看到,Spring官网将整个Spring框架分成如下8个部分: Overview:该模块主要介绍Spring的历史、设计理念、并且可以快速构建一个Spring的Demo等...

qq_36526036的博客 6212

Spring官网改版后如何进行各个版本的jar包下载

原文地址: http://blog.youkuaiyun.com/saszyl/article/details/70148303 开始学习SSH框架是,我个人遇到的最尴尬的事竟然不知道Spring在哪里下载,百度之后找到了下载办法,但是已经不适合最新的Spring官网。特此写一篇简单的教程,供大家分享。 1. 首先打开Spring官网  https://spring.io/

zhenqian52的博客 1644

01-1-SpringMVC-怎么从官网下载Spring的jar包

无论学习编程语言还是框架,个人认为与其花大量的时间搜资料,不如静心好好学习官网,官网是最好的学习资料。现在带着大家一起来看看Spring的官网1、spring的官网地址 http://spring.io/ 看到这个简洁清新的界面,导航很明确。2、进入projects spring的涵盖面是很宽广的,你需要什么可以在上图所示的页面中查找,本页很清晰,很容...

angshou7239的博客 404

spring jar包 官网下载方法

分类: Struts+Spring+Hibernate学习2013-12-08 22:14 2544人阅读 评论(0) 收藏 举报 原文地址:http://blog.youkuaiyun.com/jiangw1235/article/details/10003403 1、进入官网http://www.springsource.org/ ,找到最下面的Spring Famework链接:

ccecwg的专栏 543

Spring Boot 核心组件与实战配置指南(官网文档深度解析)

本文深度解析Spring Boot官网文档,聚焦其三大核心组件:Starters、Actuator与DevTools。通过剖析Starters的自动配置契约、Actuator的生产监控能力以及DevTools的开发效率提升,并结合实战配置案例,指导开发者从理解原理到驾驭配置,构建健壮、可观测的生产级应用。

redis7keeper的博客 420

【译】Spring官方教程:使用STS的入门指南

原文:Working a Getting Started guide with STS 译者:hanbin 校对:Mr.lzc 这个指南引导您使用 Spring Tool Suite (STS) 去构建入门程序。 你将构建什么 您将选择一个Spring入门程序并将其导入到Spring Tool Suite中。 接下来,您可以阅读指南,然后编写代码并运行项目。

程序猿DD 1万+

新版spring官网下载jar包

1.打开官网,地址:https://spring.io/ 2.点击:项目projects 3.点击spring框架 4.点击这个链接。 5.找到Distribution Zip Files,点击连接; 6.点击你所需要的版本 7.点击xx-dist.zip; 8.完成!

zq33312757的博客 437

认真学spring官网,很容易找到spring4的jar包下载位置

无论学习编程语言还是框架,个人认为与其花大量的时间搜资料,不如静心好好学习官网,官网是最好的学习资料(权威、准确的第一手材料)。 一、spring的官方网址:http://spring.io/ 二、看到这个简洁清新的界面,导航很明确,进入projects whatever the infrastructure needs of your application m

u010523770的专栏 936
上一篇: 定制自己的xDoclet标签
下一篇: JDBC Driver写法!
phoenixup
博客等级 码龄23年 2粉丝 16原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值