??xml version="1.0" encoding="utf-8" standalone="yes"?>BlogJava-cuiyi's blogQ崔?crazycyQ?/title><link>http://www.qpkxbc.shop/crazycy/</link><description>记录Ҏ 鉴往事之得失 以资于发?</description><language>zh-cn</language><lastBuildDate>Fri, 23 Aug 2019 23:55:29 GMT</lastBuildDate><pubDate>Fri, 23 Aug 2019 23:55:29 GMT</pubDate><ttl>60</ttl><item><title>SpringMVC+MyBatis - 17 The method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryhttp://www.qpkxbc.shop/crazycy/archive/2014/11/24/420481.htmlcrazycycrazycySun, 23 Nov 2014 16:49:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/11/24/420481.htmlhttp://www.qpkxbc.shop/crazycy/comments/420481.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/11/24/420481.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/420481.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/420481.html在Eclipse-Tomcat?以及 Tomact?遇到错误
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

单的Q到WEB-INF/lib下搞?nbsp;jsp-api-2.0.jar, javax.servlet-api-3.0.1.jar
Done

crazycy 2014-11-24 00:49 发表评论
]]>
JBoss5 cannot start on Java8: JBOSS Deployment "AttachmentStore" is in errorhttp://www.qpkxbc.shop/crazycy/archive/2014/10/15/418725.htmlcrazycycrazycyWed, 15 Oct 2014 01:00:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/10/15/418725.htmlhttp://www.qpkxbc.shop/crazycy/comments/418725.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/10/15/418725.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/418725.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/418725.html08:56:58,713 INFO  [JMXKernel] Legacy JMX core initialized
08:56:59,300 ERROR [AbstractKernelController] Error installing to Instantiated:name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
        at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
        at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
        at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
        at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
        at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
        at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
        at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
        at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
        at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
        at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
        at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
        at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
        at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
        at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
        at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
        at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
        at org.jboss.Main.boot(Main.java:221)
        at org.jboss.Main$1.run(Main.java:556)
        at java.lang.Thread.run(Thread.java:745)
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:

DEPLOYMENTS IN ERROR:
  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentExce
ption: Wrong arguments. new for target java.lang.reflect.Constructor expected=[j
ava.net.URI] actual=[java.io.File]

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "ProfileService" is missing the following dependencies:
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
  Deployment "ProfileServiceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")

        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
        at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
        at org.jboss.Main.boot(Main.java:221)
        at org.jboss.Main$1.run(Main.java:556)
        at java.lang.Thread.run(Thread.java:745)
08:56:59,519 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true
08:56:59,521 INFO  [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
Press any key to continue . . .
解决Ҏ

change the content of conf/bootstrap/profile.xml.
Look for the definition of the AttachmentStore, and change the constructor line so that it starts:

<constructor><parameter class="java.io.File">

The original version doesn't have the class="java.io.File" attribute.



crazycy 2014-10-15 09:00 发表评论
]]>
五种开源协议的比较(BSD,Apache,GPL,LGPL,MIT) ?更友好的格式http://www.qpkxbc.shop/crazycy/archive/2014/10/04/418463.htmlcrazycycrazycySat, 04 Oct 2014 02:42:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/10/04/418463.htmlhttp://www.qpkxbc.shop/crazycy/comments/418463.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/10/04/418463.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/418463.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/418463.htmlC存在的开源协议很多,而经qOpen Source Initiativel织通过批准的开源协议目前有58U(http://www.opensource.org/licenses/alphabeticalQ。我们在常见的开源协议如BSD, GPL, LGPL,MIT{都是OSI批准的协议。如果要开源自q代码Q最好也是选择q些被批准的开源协议?/p>


q里我们来看四种最常用的开源协议及它们的适用范围Q供那些准备开源或者用开源品的开发h?厂家参考?/p>

BSD开源协议(original BSD license?/strong>FreeBSD license?/strong>Original BSD licenseQ?/strong>

BSD开源协议是一个给于用者很大自q协议。基本上使用者可?#8221;为所Ʋؓ”,可以自由的用,修改源代码,也可以将修改后的代码作ؓ开源或者专有Y件再发布?/p>

?#8221;为所Ʋؓ”的前提当你发布用了BSD协议的代码,或则以BSD协议代码为基做二ơ开发自q产品Ӟ需要满三个条Ӟ

  1. 如果再发布的产品中包含源代码Q则在源代码中必d有原来代码中的BSD协议?/li>
  2. 如果再发布的只是二进制类?软gQ则需要在cd/软g的文档和版权声明中包含原来代码中的BSD协议?/li>
  3. 不可以用开源代码的作?机构名字和原来品的名字做市场推qѝ?/li>

BSD 代码鼓励代码׃nQ但需要尊重代码作者的著作权。BSD׃允许使用者修改和重新发布代码Q也允许使用或在BSD代码上开发商业Y件发布和销售,因此是对商业集成很友好的协议。而很多的公司企业在选用开源品的时候都首选BSD协议Q因为可以完全控制这些第三方的代码,在必要的时候可以修Ҏ者二ơ开发?/p>

Apache Licence 2.0Q?/strong>Apache License, Version 2.0?a href="http://www.apache.org/LICENSE-1.1" style="padding: 0px; margin: 0px; color: #477725; text-decoration: none; border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #006600;">Apache License, Version 1.1?a href="http://www.apache.org/LICENSE-1.0" style="padding: 0px; margin: 0px; color: #477725; text-decoration: none; border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #006600;">Apache License, Version 1.0Q?/strong>

Apache Licence是著名的非盈利开源组lApache采用的协议。该协议和BSDcMQ同样鼓׃码共享和重原作者的著作权,同样允许代码修改Q再发布Q作为开源或商业软gQ。需要满的条g也和BSDcMQ?/p>

  1. 需要给代码的用户一份Apache Licence
  2. 如果你修改了代码Q需要再被修改的文g中说明?/li>
  3. 在g伸的代码中(修改和有源代码衍生的代码中)需要带有原来代码中的协议,商标Q专利声明和其他原来作者规定需要包含的说明?/li>
  4. 如果再发布的产品中包含一个Notice文gQ则在Notice文g中需要带有Apache Licence。你可以在Notice中增加自q许可Q但不可以表Cؓ对Apache Licence构成更改?/li>

Apache Licence也是对商业应用友好的许可。用者也可以在需要的时候修改代码来满需要ƈ作ؓ开源或商业产品发布/销售?/p>

GPLQ?/strong>GNU General Public LicenseQ?/strong>

我们很熟悉的Linux是采用了GPL。GPL协议和BSD, Apache Licence{鼓׃码重用的许可很不一栗GPL的出发点是代码的开?免费使用和引?修改/衍生代码的开?免费使用Q但不允怿改后和衍生的代码做ؓ闭源的商业Y件发布和销售。这也就是ؓ什么我们能用免费的各种linuxQ包括商业公司的linux和linux上各U各L׃人,l织Q以及商业Y件公司开发的免费软g了?/p>

GPL协议的主要内Ҏ只要在一个Y件中使用(“使用”指类库引用,修改后的代码或者衍生代?GPL 协议的品,则该软g产品必须也采用GPL协议Q既必须也是开源和免费?strong style="padding: 0px; margin: 0px;">q就是所谓的”传染?#8221;。GPL协议的品作Z个单独的产品使用没有M问题Q还可以享受免费的优ѝ?/p>

׃GPL严格要求使用了GPLcd的Y件品必M用GPL协议Q对于用GPL协议的开源代码,商业软g或者对代码有保密要求的部门׃适合集成/采用作ؓcd和二ơ开发的基础?/p>

其它l节如再发布的时候需要伴随GPL协议{和BSD/Apache{类伹{?/p>

LGPLQ?/strong>GNU Lesser General Public LicenseQ?/strong>

LGPL是GPL的一个ؓ主要为类库用设计的开源协议。和GPL要求M使用/修改/衍生之GPLcd的的软g必须采用GPL协议不同。LGPL允许商业软g通过cd引用(link)方式使用LGPLcd而不需要开源商业Y件的代码。这使得采用LGPL协议的开源代码可以被商业软g作ؓcd引用q发布和销售?/p>

但是如果修改LGPL协议的代码或者衍生,则所有修改的代码Q涉及修攚w分的额外代码和衍生的代码都必采用LGPL协议。因此LGPL协议的开源代码很适合作ؓW三方类库被商业软g引用Q但不适合希望以LGPL协议代码为基Q通过修改和衍生的方式做二ơ开发的商业软g采用?/p>

GPL/LGPL都保障原作者的知识产权Q避免有人利用开源代码复制ƈ开发类似的产品

MITQ?a href="http://www.opensource.org/licenses/mit-license.php" style="padding: 0px; margin: 0px; color: #477725; text-decoration: none; border-bottom-width: 1px; border-bottom-style: dashed; border-bottom-color: #006600;">MITQ?/strong>

MIT是和BSD一样宽范的许可协议,作者只想保留版?而无M其他了限?也就是说,你必d你的发行版里包含原许可协议的声明,无论你是以二q制发布的还是以源代码发布的.

crazycy注:在商业应用中Q如果只停留在引用libq个层面Q推荐用BSDQLGPLQMITQAPACHEQ?PUBLIC DOMAINq几个licence?/strong>



crazycy 2014-10-04 10:42 发表评论
]]>
SpringMVC+MyBatis - 16 Maven部vWeb目报错webxml attribute is requiredhttp://www.qpkxbc.shop/crazycy/archive/2014/10/02/418449.htmlcrazycycrazycyThu, 02 Oct 2014 09:56:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/10/02/418449.htmlhttp://www.qpkxbc.shop/crazycy/comments/418449.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/10/02/418449.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/418449.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/418449.html
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.4:war (default-war) on project TradingLink: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)

Cause:
maven的web目默认的webroot是在src\main\webapp。如果在此目录下找不到web.xml抛Z上的异常?/div>
Solution:
需要在pom.xml中增?lt;webResources>配置Q如下:

 <build>  
<plugins>  
    <plugin>  
        <groupId>org.apache.maven.plugins</groupId>  
        <artifactId>maven-war-plugin</artifactId>  
        <version>2.4</version>  
        <configuration>  
            <webResources>  
                <resource>                      
                    <directory>WebContent</directory>  
                </resource>  
            </webResources>  
        </configuration>  
    </plugin>  
</plugins>  
</build>  


或者增?lt;webXml>配置Q如下:

<build>  
<plugins>  
    <plugin>  
        <groupId>org.apache.maven.plugins</groupId>  
        <artifactId>maven-war-plugin</artifactId>  
        <version>2.4</version>  
        <configuration>  
               <webXml>WebContent\WEB-INF\web.xml</webXml>            
        </configuration>  
    </plugin>  
</plugins>  
</build>  


crazycy 2014-10-02 17:56 发表评论
]]>SpringMVC+MyBatis - 15 换电脑后eclipse一直报 javax.servlet.jsp.JspException cannot be resolved to a typehttp://www.qpkxbc.shop/crazycy/archive/2014/08/21/417167.htmlcrazycycrazycyWed, 20 Aug 2014 17:41:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/08/21/417167.htmlhttp://www.qpkxbc.shop/crazycy/comments/417167.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/08/21/417167.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/417167.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/417167.htmlProject -> Properties -> Targeted Runtimes
选中一个服务器
而且要选对哈,因ؓ有时候不止一个?/div>

以下基本是扯淡的ҎQ?/strong>
有h说要加什么servlet-api.jar 
q有pom里增加什么javax.servlet.jsp
q有?span style="font-size: 14px;">Project->Properties->ValidationLJSP Validation


crazycy 2014-08-21 01:41 发表评论
]]>SpringMVC+MyBatis - 14 必须面对?Ҏ一QSpringMVC Jason Date的问题The request sent by the client was syntactically incorrect.http://www.qpkxbc.shop/crazycy/archive/2014/08/14/416950.htmlcrazycycrazycyThu, 14 Aug 2014 06:20:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/08/14/416950.htmlhttp://www.qpkxbc.shop/crazycy/comments/416950.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/08/14/416950.html#Feedback0http://www.qpkxbc.shop/crazycy/comments/commentRss/416950.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/416950.html
面我们获取的时间不?yyyy-MM-dd 是 MM/dd/yyyy 或?dd MMM yyyy之类的,面传jason (model bean属性对应体Q必d错?br />错的让hU结Q?nbsp;The request sent by the client was syntactically incorrect.

CQ这个错误不是有多余的字D,是字段cd不对应?br />因ؓSpringMVC期望的是Long旉cdQ我们给它个字符串时间类型,咔嚓Q砍了再?br />
q样吧解军_Q?br />
//get form json string (不是jason object啊,如果是jason object我们得JSON.parse?br />
var formdataString = $(cakForm).serializeJSON();
//得到的数据结构这? {cak: {cakdate: '2014-08-14', cakref:""}, grade: 'SMR5'};

//pass in cakdateDp JQuery DomID, use Javascript: new Data(date).getTime()
 var cakdateVal = dateConvertObj.convertDateInLong(cakdateDp)

//replace cakdate using Long
formdataString.cak.cakdate = cakdateVal;

//Serialize Json String to Json Object
 var formdata = JSON.stringify(formdataString);


crazycy 2014-08-14 14:20 发表评论
]]>
SpringMVC+MyBatis - 13 回头看spring mvc:annotation-driven对应的消息{换(包含日期处理Q?pd12的强?/title><link>http://www.qpkxbc.shop/crazycy/archive/2014/07/16/415864.html</link><dc:creator>crazycy</dc:creator><author>crazycy</author><pubDate>Tue, 15 Jul 2014 18:04:00 GMT</pubDate><guid>http://www.qpkxbc.shop/crazycy/archive/2014/07/16/415864.html</guid><wfw:comment>http://www.qpkxbc.shop/crazycy/comments/415864.html</wfw:comment><comments>http://www.qpkxbc.shop/crazycy/archive/2014/07/16/415864.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/crazycy/comments/commentRss/415864.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/crazycy/services/trackbacks/415864.html</trackback:ping><description><![CDATA[     摘要: 当初配置springmvc的时候,因ؓ是第一ơ用springmvcQؓ囑ֿP因而大量从|上查找入门信息。遗憄是,|上的配|真是五花八门,让我d凌ؕ。至今阅L章不于300余篇Q回头适当整理下这个。spring mvc的mvc:annotation-driven以及日期的处理摘自http://blog.csdn.net/xiejx618/article/details/24745207 &...  <a href='http://www.qpkxbc.shop/crazycy/archive/2014/07/16/415864.html'>阅读全文</a><img src ="http://www.qpkxbc.shop/crazycy/aggbug/415864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/crazycy/" target="_blank">crazycy</a> 2014-07-16 02:04 <a href="http://www.qpkxbc.shop/crazycy/archive/2014/07/16/415864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SpringMVC+MyBatis - 12 spring mvc4q回的json日期为Long的解x?/title><link>http://www.qpkxbc.shop/crazycy/archive/2014/07/15/415839.html</link><dc:creator>crazycy</dc:creator><author>crazycy</author><pubDate>Tue, 15 Jul 2014 06:30:00 GMT</pubDate><guid>http://www.qpkxbc.shop/crazycy/archive/2014/07/15/415839.html</guid><wfw:comment>http://www.qpkxbc.shop/crazycy/comments/415839.html</wfw:comment><comments>http://www.qpkxbc.shop/crazycy/archive/2014/07/15/415839.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/crazycy/comments/commentRss/415839.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/crazycy/services/trackbacks/415839.html</trackback:ping><description><![CDATA[     摘要: Spring MVC 4.X ResponseBody 日期cdJson 处理摘自http://tramp-zzy.iteye.com/blog/2090330  2014-07-10Ҏ一Q全局处理Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/...  <a href='http://www.qpkxbc.shop/crazycy/archive/2014/07/15/415839.html'>阅读全文</a><img src ="http://www.qpkxbc.shop/crazycy/aggbug/415839.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/crazycy/" target="_blank">crazycy</a> 2014-07-15 14:30 <a href="http://www.qpkxbc.shop/crazycy/archive/2014/07/15/415839.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SpringMVC+MyBatis - 11 SiteMash的一个小陷阱http://www.qpkxbc.shop/crazycy/archive/2014/07/14/415775.htmlcrazycycrazycyMon, 14 Jul 2014 06:39:00 GMThttp://www.qpkxbc.shop/crazycy/archive/2014/07/14/415775.htmlhttp://www.qpkxbc.shop/crazycy/comments/415775.htmlhttp://www.qpkxbc.shop/crazycy/archive/2014/07/14/415775.html#Feedback3http://www.qpkxbc.shop/crazycy/comments/commentRss/415775.htmlhttp://www.qpkxbc.shop/crazycy/services/trackbacks/415775.html
调试到凌?点多Q今天恍然发?br />
<script type="text/javascript" src="${ctx}/javascript/jquery.min.js"/>
的最?#8220;/"是红色的?br />
然后用能通过的页面比较,唯一的差异是Q?br />能显C的面
<script type="text/javascript" src="${ctx}/javascript/jquery.min.js"></script>
不能昄的页?/span>
<script type="text/javascript" src="${ctx}/javascript/jquery.min.js"/>

所以问题解决了


crazycy 2014-07-14 14:39 发表评论
]]>
SpringMVC+MyBatis - 10 I18N标签的?/title><link>http://www.qpkxbc.shop/crazycy/archive/2014/07/13/415745.html</link><dc:creator>crazycy</dc:creator><author>crazycy</author><pubDate>Sun, 13 Jul 2014 08:35:00 GMT</pubDate><guid>http://www.qpkxbc.shop/crazycy/archive/2014/07/13/415745.html</guid><wfw:comment>http://www.qpkxbc.shop/crazycy/comments/415745.html</wfw:comment><comments>http://www.qpkxbc.shop/crazycy/archive/2014/07/13/415745.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.qpkxbc.shop/crazycy/comments/commentRss/415745.html</wfw:commentRss><trackback:ping>http://www.qpkxbc.shop/crazycy/services/trackbacks/415745.html</trackback:ping><description><![CDATA[SpringMVC可以使用如下两个标签<br />Spring TLD: <spring:message code="{message.key}"/><br />JSTL TLD:   <fmt:message key="{message.key"}/><br /><br />但是我们会遇C后的问题Q?nbsp;<br />JSTL的标{没有解析成?br /><br />解决办法有二Q?br /><br />其一Q?nbsp;<br /><div><fmt:setBundle basename="{classpath of .propertity file}" var="lang"/></div><div><span style="font-size: 14px;"><fmt:message key="{message.key"} bundle="lang"/></span><br /><br /><span style="font-size: 14px;">其二Q?/span><br /><span style="font-size: 14px;">Z么Spring:message可以</span><br /><span style="font-size: 14px;">因ؓ我们定义了:</span><br /><div><bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">  </div><div><span style="font-size: 14px; white-space: pre;"> </span><span style="font-size: 14px;"><property name="basenames"></span></div><div><span style="white-space:pre"> </span><list></div><div><span style="white-space:pre"> </span><value>classpath:org/i18n/message</value></div><div><span style="white-space:pre"> </span><value>classpath:org/i18n/pagelabel</value></div><div><span style="white-space:pre"> </span></list></div><div><span style="white-space:pre"> </span></property>   </div><div>     <span style="white-space:pre"> </span><property name="defaultEncoding" value="UTF-8"/> </div><div>        <property name="cacheSeconds" value="0" />  </div><div>     <span style="white-space:pre"> </span><property name="useCodeAsDefaultMessage" value="true" /> </div><div></bean> <br />所以我们有理由用同L方式Mؓfmt定义<br />  <span style="font-size: 14px;"><context-param></span></div><div><span style="white-space:pre"> </span>    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name></div><div><div style="display: inline-block;"><span style="white-space: pre;"> </span>    <param-value>org.i18n.message</param-value></div></div><span style="white-space: pre;"> </span>    <param-value>org.i18n.pagelabel</param-value><br /><div></div><div><span style="white-space:pre"> </span></context-param><br />应该问题不大?br /><br />参考:<span style="font-size: 14px;">http://stackoverflow.com/questions/12470928/jstl-resource-bundle-for-internationalization-and-localization</span><br /></div></div><img src ="http://www.qpkxbc.shop/crazycy/aggbug/415745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.qpkxbc.shop/crazycy/" target="_blank">crazycy</a> 2014-07-13 16:35 <a href="http://www.qpkxbc.shop/crazycy/archive/2014/07/13/415745.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <a href="http://www.qpkxbc.shop/"><span class="STYLE1">1һ152ͼ</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <a href="http://0649686.cn">ֲʻͼ</a> <a href="http://www.cgidxf.icu">ʱʺ׬</a> <a href="http://www.poztdj.icu">ʱʱ96</a> <a href="http://www.cjwrsb.icu">11ѡ5Ʊƻ</a> <a href="http://www.ddvyif.icu"> pk10ƻ </a> <a href="http://6248327.com.cn">pk10345678ƻ</a> <a href="http://www.vnaqyv.icu">ӡֲַʼƻapp</a> <a href="http://www.djbjrs.icu">Ҽƻ</a> <a href="http://www.jrfmlv.icu">͸϶ҽ</a> <a href="http://www.fjxglh.icu">pk10ͼο</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>