`
文章列表
这个程序非web项目,所以不需要修改pom.xml文件。 1. 首先编写一个java类SayHelloTask继承TimerTask,java.util包提供: package com.helloworld.common; import java.util.TimerTask; public class SayHelloTask extends TimerTask { @Override public void run() { System.out.println("HelloWorld"); } ...
HelloWorld开发环境的搭建: 使用eclipse进行代码的编写,使用maven做jar包的管理,使用tomcat来做服务器。 1. 首先在eclipse上安装maven插件,具体插件地址在google搜下吧。 2. 将HelloWorld程序导入到我们的eclipse当中,HelloWorld程序后面会给出。 3. 配置maven项目中的pom.xml配置文件。在配置文件中需要加一个plugin用它来将项目部署到tomcat上: <plugin> <groupId>org.codehaus.mojo</group ...

spring能做的

给单例的对象提供可以返回prototype对象的功能 方法的替换 用一个类的方法替换另一个类的 http://stackoverflow.com/questions/7750166/mongo-db-and-spring http://stackoverflow.com/questions/2604655/any-open-source-spring-sample-project-thats-bigger-than-petclinic java的例子 http://www.java2s.com/ 虚拟主机 http://www.8isp.cn/index.htm NBA: http ...
2012-2-18
从今天开始打算利用业余时间学习英语,并且尝试翻译Spring doc。spring才开始学习,肯定会有翻译错误,坚持吧!!!                                                                                                               2012年2月16日

执行main方法

Whether you use the java goal or the special support of Java for the exec goal, you might want to change the scope of the plugin execution. This can be achieved using the classpathScope configuration element, e.g. for a test scope:         <configuration>           ...           <classpathS ...
Remember me Implementing the remember me option <http auto-config="true" use-expressions="true" access-decisionmanager- ref="affirmativeBased"> … <remember-me key="jbcpPetStore"/> <logout invalidate-session="true" logout-success-u ...
Understanding logout functionality Adding a Log Out link to the site header The signature URL for logging the user out is /j_spring_security_logout. Adding a logout link is really as simple as putting an anchor tag with the appropriate href in the header.jsp file: <c:url value="/j_spring_s ...
Implementing a custom login page Implementing the login controller @Controller public class LoginLogoutController extends BaseController { @RequestMapping(method = RequestMethod.GET, value = "/login.do") public void home() { } } Adding the login JSP there are 2 im ...
Access configuration using spring expression language An alternative method to the standard role-based voting mechanism implemented by RoleVoter is the use of Spring Expression Language (SpEL) expressions to define arbitrarily complex rules for voting. The straightforward way to implement this featu ...
How requests are authorized? The final servlet filter in the default Spring Security filter chain, FilterSecurityInterceptor, is the filter responsible for coming up with a decision on whether or not a particular request will be accepted or denied. At this point the FilterSecurityInterceptor filter ...
What is spring_security_login and how did we get here? You may have noticed that when you attempted to hit the home page of our JBCP Pets store, you were redirected to the URL http://localhost:8080/JBCPPets/ spring_security_login The spring_security_login portion of the URL represents a default ...
What does auto-config do behind the scenes? In Spring Security 3, auto-config is used solely for automatic provisioning of following three authentication-related functions: HTTP basic authentication Form login authentication Logout The important interfaces related to authentication interact as sh ...
用户发出订单修改页面的请求,Access Decision Manager进行拦截,然后对比用户的授权和次页面需要的授权是不是有重合的部分,如果有重合的部分,那面页面就授权成功,如果失败就通知用户。 We can see that a component called the access decision manager is responsible for determining whether a principal has the appropriate level of access, based on the match between the authority posses ...

DDD cargo事例

    博客分类:
  • DDD
货物运输系统概述 我们要为一个货运公司开发新软件。最初有3个基本功能 1. 跟踪顾客货物的关键装卸事件 2. 对货物进行事先预约 3. 当货物在装卸中抵达某个点时,自动向顾客发送发票 这个模型组织了领域知识,并为开发 ...
Global site tag (gtag.js) - Google Analytics