小编Jon*_*Jon的帖子

Spring MVC插件架构

我是JavaEE的新手,但对ASP.NET MVC有一定的经验.在ASP.NET MVC中,我知道我们可以在ASP.NET MVC Web应用程序插件架构,使你可以用MVC结构的DLL,并把它放入现有的ASP.NET MVC的Web应用程序,使其工作不编译网页应用程序.http://www.wynia.org/wordpress/2008/12/05/aspnet-mvc-plugins/

我想知道Spring MVC是否可以使用这种架构.例如,当我使用MVC结构创建一个jar(或war)文件并将其放入现有的Spring MVC Web应用程序时,它应该可以在不重新编译Web应用程序的情况下工作.如果可以,我该怎么做?任何参考将不胜感激.

java asp.net-mvc plugins spring spring-mvc

6
推荐指数
1
解决办法
1342
查看次数

如何下载Android的谷歌源代码

如您所知,https://android.googlesource.com/中列出了数百个项目.我想在windows机器上全部下载它们.根据谷歌的文件,

To install, initialize, and configure Repo:

$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo


To clone the entire platform, install repo, and run:

mkdir mydroid
cd mydroid
repo init -u https://android.googlesource.com/platform/manifest
repo sync
Run Code Online (Sandbox Code Playgroud)

但是,在我的机器中,我无法在Git Bash中"repo init",因为它说它没有python.我安装了python,但git bash无法识别它.请注意,我也将python目录设置为系统路径.如果有人能给出小费,我将不胜感激.谢谢

更新:我认为新版本的Git Bash for Windows存在问题.系统路径根本不适用于Git Bash - 我可以轻松测试系统路径是否与命令提示符一起使用.无论如何,我尝试了这个,当然它实际上运行错误.

  /c/python27/python.exe  ../bin/repo init -u https://android.googlesource.com/platform/manifest
Run Code Online (Sandbox Code Playgroud)

错误消息是

 $ /c/python27/python.exe ../bin/repo init -u https://android.googlesource.com/platform/manifest
 Traceback (most recent call last):
   File "../bin/repo", line 91, in <module>
    import readline
 ImportError: No module named readline …
Run Code Online (Sandbox Code Playgroud)

python windows git android android-source

6
推荐指数
1
解决办法
8050
查看次数

如何解决不同的签名错误

我从google的android.git.kernel.org获得了计算器源代码,并成功构建了该项目.但是当我在日食中发射它时,我得到了它

Re-installation failed due to different application signatures.
[2011-08-14 03:37:04 - JvCalculator] You must perform a full uninstall of the application.     WARNING: This will remove the application data! 
[2011-08-14 03:37:04 - JvCalculator] Please execute 'adb uninstall com.android.calculator2' in a shell.
[2011-08-14 03:37:04 - JvCalculator] Launch canceled!
Run Code Online (Sandbox Code Playgroud)

我不认为我的模拟器中有应用程序.所以这不是卸载/安装问题,我想.我怀疑谷歌的源代码有不同的签名.如果是这样我怎么能改变它?有没有人解决了这个问题?或者我是否必须使用复制和粘贴构建新项目?

请注意,当我在连接模拟器时尝试跟踪时,

adb uninstall com.android.calculator2 
Run Code Online (Sandbox Code Playgroud)

我得到一个简单的单字错误消息"失败".

android signature

1
推荐指数
1
解决办法
2472
查看次数