Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

spring-boot,mybatis,activemq,redis,email, freemarker,shiro,websocket,sitemesh

License

Notifications You must be signed in to change notification settings

lylwx/spring-boot-all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

422 Commits

Repository files navigation

spring-boot-all

说明

项目依赖于官方spring-boot, 在pom.xml文件里面配置,该文档是spring-boot-samples的描述,其他详见spring-boot-parent

<parent>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-parent</artifactId>
	<version>1.3.5</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

About

spring-boot,mybatis,activemq,redis,email, freemarker,shiro,websocket,sitemesh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.1%
  • Java 25.3%
  • CSS 20.7%
  • FreeMarker 0.9%

AltStyle によって変換されたページ (->オリジナル) /