最近我在求职面试时被问到这个问题,我无法回答.那么,java.io中最常用的模式是什么?它是如何使用的?常见的Java库中使用的其他模式有哪些?
我正在尝试集成Spring Security和GWT.我也在使用gwt-incubator-security.我按照wiki页面上的描述配置了所有内容.我设法通过使用intercept-url来获得安全性,但我无法使用注释使其工作.关于问题是什么的任何想法?
PS我使用的是Spring 2.5.6,Spring Security 2.0.5和gwt-incubator-security 1.0.1.欢迎任何有用的链接和评论.
这是我的配置文件
applicationContext.xml中
<?xml version="1.0" encoding="UTF-8"?>
<global-method-security secured-annotations="enabled"
jsr250-annotations="disabled" />
<http auto-config="true">
<!-- <intercept-url pattern="/**/*.rpc" access="ROLE_USER" /> -->
<intercept-url pattern="/gwt/**" access="ROLE_USER" />
<intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
</http>
<authentication-provider>
<user-service>
<user name="rod" password="koala"
authorities="ROLE_SUPERVISOR, ROLE_USER, ROLE_TELLER" />
<user name="dianne" password="emu" authorities="ROLE_USER,ROLE_TELLER" />
<user name="scott" password="wombat" authorities="ROLE_USER" />
<user name="peter" password="opal" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
<beans:bean id="greetService" class="com.ct.test.server.GreetingServiceImpl" />
Run Code Online (Sandbox Code Playgroud)
web.xml中
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>Spring_test.html</welcome-file>
</welcome-file-list>
<!-- Spring related …Run Code Online (Sandbox Code Playgroud) 进行GAE/J数据存储备份的最简单方法是什么?
看起来有python bulkloader.py工具为Python应用程序做备份,但是我该如何备份Java应用程序呢?有没有办法使用python工具?