This chapter is to explain the foundation of the following, mainly introduced under the international configuration and Usercache configuration and useInternationalization configuration[HTML]View PlainCopy
Bean id="Messagesource"
class="Org.springframework.context.support.ReloadableResourceBundleMessageSource">
property name="basename"
value="classpath:config/messages_zh_cn"/>
Bean>
The path to the message file is configured in the basenameInternational files can be fou
The Entry-point-ref property , in English, means an entry point reference. Why do you need this entry point? This entry point is actually simply quoted by Exceptiontranslationfilter. The Exceptiontranslationfilter filter has been introduced in the previous role is abnormal translation, in the event of authentication anomalies, access anomalies, through the entry point to determine the operation of redirect, forward. For example, now is the Form-login
FileUpload plugin GitHub URLFileUpload Plugin jquery SiteSpring Mvc+fileupload Example
Well, from the beginning of the introduction of JS file into the pit:
Put the jquery.fileupload.js on the last side, so that you can refer to other JS files inside.
Then in the security to post data, must have CSRF token, otherwise there must be 403 access to the wall to touch ...There are three different ways:1
nature of the URL, which is equivalent to the sequential interception URL configured in HTTP. SS URL sequence is a special priority, that is, those who need to set permissions alone or have special permissions to put in front, because not to do so, it is possible to be intercepted in the previous URL, the underlying access is not , so we generally in the HTTP configuration, The login and other non-privileged pages will be placed at the top of the page to prevent access to the login page. The se
integrated into the web environment;Caching: caching, such as user login, the user information, the role/permissions do not have to check every time, this can improve efficiency;(6) Shiro supports concurrent verification of multi-threaded applications, such as opening another thread in one thread, which automatically propagates the past;(7) Provide test support;(8) Allow a user to pretend to be visited by another user (if they allow);(9) Remember me, this is a very common function, that is, onc
, to use spring MVCand use it on the action class:@Controller@RequestMapping ("/user")Ix. Interceptors in spring:Spring provides us with:Org.springframework.web.servlet.HandlerInterceptor interface,Org.springframework.web.servlet.handler.HandlerInterceptorAdapter Adapter,Implement this interface or inherit this class, it is very convenient to implement their own interceptors.There are three ways to do this:Action before executing:public boolean prehan
be accessed in the notification body in the following sections.
ImplementedAccountserviceAny connection point of the target object of the interface (only method execution in Spring AOP ):Target (COM. XYZ. Service. accountservice)'Target' is used in binding form:-see the following section on how to make the target object accessible in the notification body.
Each parameter accepts only one parameter and is passed in at runtime.SerializableInterfac
Spring provides its own implementation of remoting service known as Httpinvoker. It can be used-HTTP request than RMI and works well across the firewall.By the httpinvokerserviceexporter and Httpinvokerproxyfactorybean classes, we can implement the Remoting service provided by Spring ' s Http invokers.
Http Invoker and other Remoting techniquesYou can use the many Remoting techniques, let's see which
A long time ago, I wanted to systematically learn and master the Spring framework, but I did not take any action for a long time. Now, there are not many things to do on a business trip, so I will spend some time studying the Spring framework from a simple perspective. Over the past few years, the Spring framework has developed into a powerful product. From the b
()); */}}Execution Result:Entry Method ---Surround notifications>>>>>>>> ready to search users ..........---------------" FindAll ": {smith=smith00, tom=tom00, xiaoming = Xiao Ming xx, lucy=lucy00,hello=hello00}------------------Exit Method ---Surround notifications>>>>>>>> Search User Complete ..........Note: @Before is to execute a piece of logic before the intercepted method executes. @After is to execute a piece of logic after the intercepted method executes. @Around is a logic that can be
configuration to [email protected] started 6 plugins.
Copy CodeOpen the browser and access: http://localhost:15672/, and use the default user guest login, the password is also guest. We can see the administration page as follows:, we can see some of the basic concepts mentioned in the previous chapters, such as Connections, Channels, exchanges, queue, and so on. The first use of the reader, can be opened to see what the content, familiar with the RABBITMQ Server service side.Click the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.