我的名片

网名:轻舞肥羊

职业:Java Python 架构 PM

现居:武汉

企鹅号:43131588

  • Field Matching Bean Validation Annotation Example

    Field Matching Bean Validation Annotation Example

    This tutorial demonstrates a Field Matching Bean Validation Annotation Example. When you are building forms you may come across a requirement to validate/compare if different fields inside a form are equal to another field in the same form like password and/or email fields. In this example we build a simple form where we have a password and a confirmPassword field. We need to make sure the user has entered the correct password twice before submitting the request.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring Security In Memory Authentication Example

    Spring Security In Memory Authentication Example

    This tutorial demonstrates how to configure Spring Security to use In Memory Authentication. We can easily customize the Spring Security AuthenticationManager to use Spring Security in memory authentication and add multiple users with different attributes, authorities and roles. In this example we used HTTP Basic Authentication with stateless configuration for securing rest full web services. We also demonstrate how to create some Integration Tests using MockMvc.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring Security Remember Me Hashing Authentication Example

    Spring Security Remember Me Hashing Authentication Example

    In this tutorial we demonstrate how to create a Spring Security Remember Me Hashing Authentication application. Remember me authentication is a feature that allows web sites to remember the identity of a user between sessions. Spring security provides two remember-me implementation. One uses hashing to preserve the security of cookie-based tokens which we’ll tackle in this tutorial. The second uses a database or other persistent storage mechanism to store the generated tokens.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Java Configuration Example

    Spring MVC Java Configuration Example

    This tutorial shows how to build a basic Spring MVC Web Application. We start by defining the project structure. Next, we add the project’s dependencies via Apache Maven. Then we create a simple controller using the @Controller annotation which we configure with Spring MVC Java Configuration. Afterwards, we configure the servlet environment using java configuration. This means that we are completely removing the web.xml file. Finally, we build a simple view, topped of with a simple demo.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC XML Configuration Example

    Spring MVC XML Configuration Example

    This tutorial shows how to build a basic web application using Spring MVC XML Configuration. We create a simple controller that’ll handle incomming requests and forwards the response to a simple view that’ll display a request attribute. We configure the DispatcherServlet in the web.xml deployment descriptor and configure spring mvc web application context using XML configuration.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Static Resources + WebJars + Caching

    Spring MVC Static Resources + WebJars + Caching

    In this tutorial we build a simple web application that serves static content from org.webjars and from the resources folder, add caching rules to these static resources and remove the version number from the org.webjars libraries.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC slf4j + Logback Logging Example

    Spring MVC slf4j + Logback Logging Example

    Almost all web application need some sort of logging. Either for an audit trail, legal aspects or for debugging purposes during development. In this tutorial we integrate logging in a web application configured with Spring MVC slf4j and logback.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Internationalization i18n Example

    Spring MVC Internationalization i18n Example

    Internationalization is the process of designing your application for the international market; that is, make it able to support virtually any language, timezone or local setting. This tutorial shows how you can build Internationalized i18n web application using Spring MVC.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Theme Switcher Example

    In this tutorial we build a Spring MVC theme. You can apply a Spring MVC theme to set the overall look-and-feel of your web application. A theme is a collection of static resources like images, stylesheets etc.., that affect the look and feel of an application.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC File Upload Example + Validator

    In this tutorial we show how to upload a file using Spring MVC and apache commons-fileupload. The uploaded file is validated against a custom Spring Validator. When the file exceeds the maximum allowed upload size, we correctly handle the exception by catching the exception and adding an appropriate message to the response. We’ll show how to upload a single file and also how to upload multiple files.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Download File Examples

    In this tutorial we show you how to use Spring MVC to download a file. You can either download a file as an attachment or directly view the file inside the browser. To show the file directly in the browser, the browser needs to support the specified file type. We demonstrate the file download using multiple methods: via HttpServletResponse, via HttpEntity and via FileSystemResource. We also show you how to handle exceptions while downloading.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Exception Handling

    In this tutorial we take a look at how to use Spring MVC Exception Handling. We can design our application to deal with exceptions in various ways. We could handle the exceptions in the methods where they occur, but most of the time this leads to cluttered and duplicated exception handling code, so we are not showing you this. The following is an overview of what we’ll see in this article:

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Content Negotiation XML JSON

    This tutorial shows you how to use Spring MVC Content Negotiation XML JSON features. According to wikipedia, “content negotiation is a mechanism defined in the HTTP specification that makes it possible to serve different versions of a document at the same URI, so that user agents/users can specify which version fit their capabilities the best.”

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC RSS ATOM Content Negotiation Example

    In this tutorial we show a Spring MVC RSS ATOM Content Negotiation example. Using Content Negotiation we can serve different versions of a document (or resource) at the same URI. Depending on the HTTP Accept header, a path file extension in the URL, a specific request parameter we return a view accordingly or if none of the previous are presented, we fall back on a default view.

    轻舞肥羊2019-08-10[Java]

    阅读更多
  • Spring MVC Excel View Example

    In this tutorial we demonstrate how to create an Excel view using Spring MVC. By utilizing Spring MVC Content negotiation we can have multiple views of the same resource. This example shows how to create an excel view, either in .xls and .xlsx format. When working with large excel documents it is profitable to use the streaming xlsx view. The streaming view uses less memory and can improve performance of large excel documents.

    轻舞肥羊2019-08-10[Java]

    阅读更多

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号