{"id":17195660,"url":"https://github.com/bclozel/spring-resource-handling","last_synced_at":"2025-04-13T19:31:20.885Z","repository":{"id":16360823,"uuid":"19110901","full_name":"bclozel/spring-resource-handling","owner":"bclozel","description":"Spring Framework 4.1 Resource Handling example","archived":false,"fork":false,"pushed_at":"2017-01-16T17:20:48.000Z","size":278,"stargazers_count":132,"open_issues_count":3,"forks_count":36,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-10-31T22:42:22.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://spring.io/blog/2014/07/24/spring-framework-4-1-handling-static-web-resources","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bclozel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-24T14:13:01.000Z","updated_at":"2023-10-26T16:04:51.000Z","dependencies_parsed_at":"2022-08-28T05:12:08.996Z","dependency_job_id":null,"html_url":"https://github.com/bclozel/spring-resource-handling","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclozel%2Fspring-resource-handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclozel%2Fspring-resource-handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclozel%2Fspring-resource-handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bclozel%2Fspring-resource-handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bclozel","download_url":"https://codeload.github.com/bclozel/spring-resource-handling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223602673,"owners_count":17171952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:51:04.733Z","updated_at":"2024-11-07T23:04:09.474Z","avatar_url":"https://github.com/bclozel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Resource Handling\n========================\n\n[![Build Status](https://travis-ci.org/bclozel/spring-resource-handling.svg?branch=master)](https://travis-ci.org/bclozel/spring-resource-handling)\n\nThis application demonstrates new resource handling features in Spring Framework 4.1.\nIt was originally developed for the talk [Resource Handling in Spring MVC 4.1](https://2014.event.springone2gx.com/schedule/sessions/resource_handling_in_spring_mvc_4_1.html) talk at SpringOne2GX 2014.\n\n\nThis projects requires a local install of node+npm (see [nvm](https://github.com/creationix/nvm)).\n\nThe easiest way to get started - from the project root - development version:\n\n    SPRING_PROFILES_ACTIVE=development ./gradlew :server:bootRun\n     \nOr the production version (more optimizations):\n\n    SPRING_PROFILES_ACTIVE=production ./gradlew :server:bootRun\n    \nThen go to:\n\n* http://localhost:8080/ for an example with JMustache templating\n* http://localhost:8080/groovy for an example with Groovy Template Engine\n* http://localhost:8080/app for an example with an [HTML5 AppCache Manifest](http://www.html5rocks.com/en/tutorials/appcache/beginner/) \n(you can check this in Chrome with chrome://appcache-internals/ )\n* http://localhost:8080/less for an example with a LESS stylesheet; this page uses less files and the LESS JS transpiler\nin development mode, and a transpiled version in production\n* http://localhost:8080/jsp for a JSP example\n* http://localhost:8080/velocity for a Velocity example\n\nInteresting parts of the application:\n\n* [configuring resource handlers with resource resolvers and resource transformers](https://github.com/bclozel/spring-resource-handling/blob/master/server/src/main/resources/application-production.properties)\n* [a sample template file using JMustache](https://github.com/bclozel/spring-resource-handling/blob/master/server/src/main/resources/mustache/index.html)\nand a [custom Mustache lambdas](https://github.com/bclozel/spring-resource-handling/blob/master/server/src/main/java/org/springframework/samples/resources/support/MustacheViewResolverCustomizer.java) to resolve URLs to static resources\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbclozel%2Fspring-resource-handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbclozel%2Fspring-resource-handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbclozel%2Fspring-resource-handling/lists"}