Giter Club home page Giter Club logo

spring-boot-all's Introduction

spring-boot-all

说明

项目依赖于官方spring-boot, 在pom.xml文件里面配置

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>1.1.0.RC1</version>
</parent>

spring boot location static js/css, 默认路径如下, 详见项目jsp文件

  • /META-INF/resources/

  • /resources/

  • /static/

  • /public/

spring boot 增加InterceptorRegistry拦截器, 拦截路径user/下所有路径

public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new UserSecurityInterceptor()).addPathPatterns("/user/**");
}

增加加密EncryptUtils操作, 处理MD5加密, 盐值加密, SHA加密, PBKDF2加密

添加CurrentUserUtils对当前session的管理, 方便在servie里面引用

/**
 * 获取当前Request
 * @return
 */
private HttpServletRequest getRequest() {
   ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
   return requestAttributes.getRequest();
}

Holder一个可以生成简单图像的前端JavaScript库

<img src="holder.js/200x300/sky">

demo: http://localhost:8080/user/home/holder

jQuery.tmpl模板方法的应用

基本语法: jQuery.tmpl( template [, data] [, options] )

demo: http://localhost:8080/user/home/tmpl

spring-boot-all's People

Contributors

leelance avatar

Watchers

James Cloos avatar Fei Hu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.