乃们写Spring配置,都是一个个字符敲进去的么?
是否有模板?用模板会简单点:)
求模板:)
敲开头的东西会累死的鸟:(
肿么办?
--------------------编程问答-------------------- 骚年你想多了! --------------------编程问答-------------------- LZ,你威武,这个都是直接copy的xml格式的定义! --------------------编程问答-------------------- 牛人,这个都手敲,
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd" >
我一般ctrl+c,ctrl+v --------------------编程问答-------------------- 累死了哦,那些基本的都是不大变化的,用myeclipse自动生成或eclipse拷贝现成的 --------------------编程问答-------------------- copy 改 --------------------编程问答-------------------- 基本是copy --------------------编程问答--------------------
喵的,没有模板,肿么Ctrl + C呢 --------------------编程问答--------------------
spring 的源码里面的例子有 --------------------编程问答-------------------- 骚年你想多了! --------------------编程问答--------------------
傻子也这样。 --------------------编程问答--------------------
喵的,源码例子哪里找? --------------------编程问答--------------------
喵的,现成的在哪里?
快给偶:( --------------------编程问答--------------------
源码里有例子么?
喵的,肿么没找到:( --------------------编程问答-------------------- 这玩意一个一个的敲风险不小,写错一个字母就能把人搞死 --------------------编程问答--------------------
乃从哪里复制代码的? --------------------编程问答-------------------- 果断复制黏贴,spring下载下来里面的examples --------------------编程问答--------------------
小子:你很牛么!你纯手工作业!有本事用记事本手敲么!用啥工具呢...... --------------------编程问答--------------------
求链接:) --------------------编程问答-------------------- 除 --------------------编程问答-------------------- 怎么可能要一个个写,这样的话不累死,自己将写好的定义成为一个XML模板,然后创建的时候使用自定义模板就可以了。 --------------------编程问答-------------------- 自己学的时候是手敲的 内容敲 XML格式是直接copy 的
第一次写好一个 之后就无限 copy的 --------------------编程问答-------------------- 鄙视spring,排斥spring,也不会闲得蛋疼去敲这些! --------------------编程问答--------------------
将写好的定义成为一个XML模板?
肿么定义模板? --------------------编程问答-------------------- 哎,这是闲着没事干的程序员才干的事,,,任何框架,里面都有现成的DEMO,即使你没有写过项目,直接COPY就ok啦. --------------------编程问答-------------------- 表示都是直接CV的啦 --------------------编程问答-------------------- 手敲记不住,直接拷贝现成的。 --------------------编程问答--------------------
喵的,Spring里面有Demo么?
肿么没有找到? --------------------编程问答-------------------- 可以连上spring开源项目的svn去下载源码。自己百度一下怎么搞吧。
--------------------编程问答--------------------
哥们儿,当然去Spring官网啦 http://www.springsource.org/
Spring是开源框架,有很多文档和源码 --------------------编程问答--------------------
Demo在哪里?
喵的,说:) --------------------编程问答-------------------- http://www.springsource.org/download/community
下载最新的release,里面有文档,demo,源码
--------------------编程问答-------------------- 规范 你用手打? 楼主我很钦佩你的毅力
这种东西 随便百度一搜就出来了
怎么还会想到去手打呢 --------------------编程问答-------------------- --------------------编程问答-------------------- 真正的高手不是把这些东西背下来,而是懂得什么东西值得copy! --------------------编程问答-------------------- 你木有 度娘有 --------------------编程问答--------------------
怕搜到错误的文档,那就杯具鸟:( --------------------编程问答--------------------
喵的,骗纸:(
偶恨死乃鸟:(
找遍了,木有Demo呢:(
--------------------编程问答-------------------- Spring源码中有Demo么?Demo在哪里?
E:\spring-framework-3.2.0.RELEASE>tree
├─docs
│ ├─javadoc-api
│ │ ├─index-files
│ │ ├─org
│ │ │ └─springframework
│ │ │ ├─aop
│ │ │ │ ├─aspectj
│ │ │ │ │ ├─annotation
│ │ │ │ │ └─autoproxy
│ │ │ │ ├─config
│ │ │ │ ├─framework
│ │ │ │ │ ├─adapter
│ │ │ │ │ └─autoproxy
│ │ │ │ │ └─target
│ │ │ │ ├─interceptor
│ │ │ │ ├─scope
│ │ │ │ ├─support
│ │ │ │ │ └─annotation
│ │ │ │ └─target
│ │ │ │ └─dynamic
│ │ │ ├─asm
│ │ │ │ └─util
│ │ │ ├─beans
│ │ │ │ ├─annotation
│ │ │ │ ├─factory
│ │ │ │ │ ├─access
│ │ │ │ │ │ └─el
│ │ │ │ │ ├─annotation
│ │ │ │ │ ├─aspectj
│ │ │ │ │ ├─config
│ │ │ │ │ ├─parsing
│ │ │ │ │ ├─serviceloader
│ │ │ │ │ ├─support
│ │ │ │ │ ├─wiring
│ │ │ │ │ └─xml
│ │ │ │ ├─propertyeditors
│ │ │ │ └─support
│ │ │ ├─cache
│ │ │ │ ├─annotation
│ │ │ │ ├─aspectj
│ │ │ │ ├─concurrent
│ │ │ │ ├─config
│ │ │ │ ├─ehcache
│ │ │ │ ├─interceptor
│ │ │ │ ├─jcache
│ │ │ │ ├─support
│ │ │ │ └─transaction
│ │ │ ├─cglib
│ │ │ ├─context
│ │ │ │ ├─access
│ │ │ │ ├─annotation
│ │ │ │ │ └─aspectj
│ │ │ │ ├─config
│ │ │ │ ├─event
│ │ │ │ ├─expression
│ │ │ │ ├─i18n
│ │ │ │ ├─support
│ │ │ │ └─weaving
│ │ │ ├─core
│ │ │ │ ├─annotation
│ │ │ │ ├─convert
│ │ │ │ │ ├─converter
│ │ │ │ │ └─support
│ │ │ │ ├─enums
│ │ │ │ ├─env
│ │ │ │ ├─io
│ │ │ │ │ └─support
│ │ │ │ ├─serializer
│ │ │ │ │ └─support
│ │ │ │ ├─style
│ │ │ │ ├─task
│ │ │ │ │ └─support
│ │ │ │ └─type
│ │ │ │ ├─classreading
│ │ │ │ └─filter
│ │ │ ├─dao
│ │ │ │ ├─annotation
│ │ │ │ └─support
│ │ │ ├─ejb
│ │ │ │ ├─access
│ │ │ │ ├─config
│ │ │ │ ├─interceptor
│ │ │ │ └─support
│ │ │ ├─expression
│ │ │ │ ├─common
│ │ │ │ └─spel
│ │ │ │ ├─ast
│ │ │ │ ├─standard
│ │ │ │ └─support
│ │ │ ├─format
│ │ │ │ ├─annotation
│ │ │ │ ├─datetime
│ │ │ │ │ └─joda
│ │ │ │ ├─number
│ │ │ │ └─support
│ │ │ ├─http
│ │ │ │ ├─client
│ │ │ │ │ └─support
│ │ │ │ ├─converter
│ │ │ │ │ ├─feed
│ │ │ │ │ ├─json
│ │ │ │ │ ├─support
│ │ │ │ │ └─xml
│ │ │ │ └─server
│ │ │ ├─instrument
│ │ │ │ └─classloading
│ │ │ │ ├─glassfish
│ │ │ │ ├─jboss
│ │ │ │ ├─oc4j
│ │ │ │ ├─tomcat
│ │ │ │ ├─weblogic
│ │ │ │ └─websphere
│ │ │ ├─jca
│ │ │ │ ├─cci
│ │ │ │ │ ├─connection
│ │ │ │ │ ├─core
│ │ │ │ │ │ └─support
│ │ │ │ │ └─object
│ │ │ │ ├─context
│ │ │ │ ├─endpoint
│ │ │ │ ├─support
│ │ │ │ └─work
│ │ │ │ ├─glassfish
│ │ │ │ └─jboss
│ │ │ ├─jdbc
│ │ │ │ ├─config
│ │ │ │ ├─core
│ │ │ │ │ ├─metadata
│ │ │ │ │ ├─namedparam
│ │ │ │ │ ├─simple
│ │ │ │ │ └─support
│ │ │ │ ├─datasource
│ │ │ │ │ ├─embedded
│ │ │ │ │ ├─init
│ │ │ │ │ └─lookup
│ │ │ │ ├─object
│ │ │ │ └─support
│ │ │ │ ├─incrementer
│ │ │ │ ├─lob
│ │ │ │ ├─nativejdbc
│ │ │ │ ├─rowset
│ │ │ │ └─xml
│ │ │ ├─jms
│ │ │ │ ├─config
│ │ │ │ ├─connection
│ │ │ │ ├─core
│ │ │ │ │ └─support
│ │ │ │ ├─listener
│ │ │ │ │ ├─adapter
│ │ │ │ │ └─endpoint
│ │ │ │ ├─remoting
│ │ │ │ └─support
│ │ │ │ ├─converter
│ │ │ │ └─destination
│ │ │ ├─jmx
│ │ │ │ ├─access
│ │ │ │ ├─export
│ │ │ │ │ ├─annotation
│ │ │ │ │ ├─assembler
│ │ │ │ │ ├─metadata
│ │ │ │ │ ├─naming
│ │ │ │ │ └─notification
│ │ │ │ └─support
│ │ │ ├─jndi
│ │ │ │ └─support
│ │ │ │ └─javamail
│ │ │ ├─mock
│ │ │ │ ├─env
│ │ │ │ ├─http
│ │ │ │ │ └─client
│ │ │ │ ├─jndi
│ │ │ │ ├─staticmock
│ │ │ │ └─web
│ │ │ │ └─portlet
│ │ │ ├─orm
│ │ │ │ ├─hibernate3
│ │ │ │ │ ├─annotation
│ │ │ │ │ └─support
│ │ │ │ ├─hibernate4
│ │ │ │ │ └─support
│ │ │ │ ├─ibatis
│ │ │ │ │ └─support
│ │ │ │ ├─jdo
│ │ │ │ │ └─support
│ │ │ │ └─jpa
│ │ │ │ ├─persistenceunit
│ │ │ │ ├─support
│ │ │ │ └─vendor
│ │ │ ├─oxm
│ │ │ │ ├─castor
│ │ │ │ ├─config
│ │ │ │ ├─jaxb
│ │ │ │ ├─jibx
│ │ │ │ ├─mime
│ │ │ │ ├─support
│ │ │ │ ├─xmlbeans
│ │ │ │ └─xstream
│ │ │ ├─remoting
│ │ │ │ ├─caucho
│ │ │ │ ├─httpinvoker
│ │ │ │ ├─jaxrpc
│ │ │ │ ├─jaxws
│ │ │ │ ├─rmi
│ │ │ │ ├─soap
│ │ │ │ └─support
│ │ │ ├─scheduling
│ │ │ │ ├─annotation
│ │ │ │ ├─aspectj
│ │ │ │ ├─backportconcurrent
│ │ │ │ ├─commonj
│ │ │ │ ├─concurrent
│ │ │ │ ├─config
│ │ │ │ ├─quartz
│ │ │ │ ├─support
│ │ │ │ └─timer
│ │ │ ├─scripting
│ │ │ │ ├─bsh
│ │ │ │ ├─config
│ │ │ │ ├─groovy
│ │ │ │ ├─jruby
│ │ │ │ └─support
│ │ │ ├─stereotype
│ │ │ ├─test
│ │ │ │ ├─annotation
│ │ │ │ ├─context
│ │ │ │ │ ├─junit38
│ │ │ │ │ ├─junit4
│ │ │ │ │ │ └─statements
│ │ │ │ │ ├─support
│ │ │ │ │ ├─testng
│ │ │ │ │ ├─transaction
│ │ │ │ │ └─web
│ │ │ │ ├─jdbc
│ │ │ │ ├─jpa
│ │ │ │ ├─util
│ │ │ │ └─web
│ │ │ │ ├─client
│ │ │ │ │ ├─match
│ │ │ │ │ └─response
│ │ │ │ └─servlet
│ │ │ │ ├─request
│ │ │ │ ├─result
│ │ │ │ └─setup
│ │ │ ├─transaction
│ │ │ │ ├─annotation
│ │ │ │ ├─aspectj
│ │ │ │ ├─config
│ │ │ │ ├─interceptor
│ │ │ │ ├─jta
│ │ │ │ └─support
│ │ │ ├─ui
│ │ │ │ ├─context
│ │ │ │ │ └─support
│ │ │ │ ├─freemarker
│ │ │ │ ├─jasperreports
│ │ │ │ └─velocity
│ │ │ ├─util
│ │ │ │ ├─comparator
│ │ │ │ └─xml
│ │ │ ├─validation
│ │ │ │ ├─annotation
│ │ │ │ ├─beanvalidation
│ │ │ │ └─support
│ │ │ └─web
│ │ │ ├─accept
│ │ │ ├─bind
│ │ │ │ ├─annotation
│ │ │ │ │ └─support
│ │ │ │ └─support
│ │ │ ├─client
│ │ │ │ └─support
│ │ │ ├─context
│ │ │ │ ├─request
│ │ │ │ │ └─async
│ │ │ │ └─support
│ │ │ ├─filter
│ │ │ ├─jsf
│ │ │ │ └─el
│ │ │ ├─method
│ │ │ │ ├─annotation
│ │ │ │ └─support
│ │ │ ├─multipart
│ │ │ │ ├─commons
│ │ │ │ └─support
│ │ │ ├─portlet
│ │ │ │ ├─bind
│ │ │ │ │ └─annotation
│ │ │ │ ├─context
│ │ │ │ ├─handler
│ │ │ │ ├─multipart
│ │ │ │ ├─mvc
│ │ │ │ │ └─annotation
│ │ │ │ └─util
│ │ │ ├─servlet
│ │ │ │ ├─config
│ │ │ │ │ └─annotation
│ │ │ │ ├─handler
│ │ │ │ ├─i18n
│ │ │ │ ├─mvc
│ │ │ │ │ ├─annotation
│ │ │ │ │ ├─condition
│ │ │ │ │ ├─method
│ │ │ │ │ │ └─annotation
│ │ │ │ │ ├─multiaction
│ │ │ │ │ └─support
│ │ │ │ ├─resource
│ │ │ │ ├─support
│ │ │ │ ├─tags
│ │ │ │ │ └─form
│ │ │ │ ├─theme
│ │ │ │ └─view
│ │ │ │ ├─document
│ │ │ │ ├─feed
│ │ │ │ ├─freemarker
│ │ │ │ ├─jasperreports
│ │ │ │ ├─json
│ │ │ │ ├─tiles
│ │ │ │ ├─tiles2
│ │ │ │ ├─tiles3
│ │ │ │ ├─velocity
│ │ │ │ ├─xml
│ │ │ │ └─xslt
│ │ │ ├─struts
│ │ │ └─util
│ │ └─resources
│ └─spring-framework-reference
│ ├─html
│ │ ├─css
│ │ └─images
│ │ ├─callouts
│ │ └─colorsvg
│ ├─htmlsingle
│ │ ├─css
│ │ └─images
│ │ ├─callouts
│ │ └─colorsvg
├─libs
└─schema
├─aop
├─beans
├─cache
├─context
├─jdbc
├─jee
├─jms
├─lang
├─mvc
├─oxm
├─task
├─tool
├─tx
└─util
求知道? --------------------编程问答-------------------- 到官网去下载吧。。。 一般在官网下载一个全的,demo和源都有 --------------------编程问答--------------------
喵的,只有源码,没有Demo呢:( --------------------编程问答-------------------- 真正开发时,傻逼才去一个个敲。。。 --------------------编程问答-------------------- ctrl+c /v /s 避免了很多不必要的错误。建议不要用手敲!! --------------------编程问答-------------------- 我都是直接copy配置文件,然后根据需要改内容。这种做法只需要配置一次,后面的直接copy改。
copy的时候,尽量copy可以正常运行的文件,而非文件内容。
--------------------编程问答-------------------- 一、打开浏览器
二、在地址栏输入这个地址:www.baidu.com
三、搜索
四、ctrl+c、ctrl+v
--------------------编程问答-------------------- 手动敲,肯定是脑袋坏了。。:) --------------------编程问答-------------------- 百度一下你就知道了 --------------------编程问答--------------------
找spring的dtd文件 里面有模板 --------------------编程问答-------------------- spring文档里找,然后复制粘贴 --------------------编程问答-------------------- 去官网或者百度 找Demo, ctrl+c ctrl+v . 没自己写过 。 --------------------编程问答-------------------- 用的是idea
录好后会有错误提示,直接alt+enter自动引入。 --------------------编程问答--------------------
大实话 --------------------编程问答-------------------- 你下载的包的ref之中的文档,到处都是配置文件的讲解
建议楼主读文档,不仅学框架,也学了英语。
补充:Java , Web 开发