Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc 基于Jawr弹簧注释的示例配置_Spring Mvc_Annotations_Jawr - Fatal编程技术网

Spring mvc 基于Jawr弹簧注释的示例配置

Spring mvc 基于Jawr弹簧注释的示例配置,spring-mvc,annotations,jawr,Spring Mvc,Annotations,Jawr,我想实现Jawr来缩小和混淆CSS和JS资源。我使用的是SpringMVC项目,其中的配置是使用Java代码完成的,使用的是注释,而不使用XML。现在可以找到相同的文档。有人可以向我推荐配置或参考链接。jawr对pom的依赖关系: <dependency> <groupId>net.jawr</groupId> <artifactId>jawr-core</artifactId>

我想实现Jawr来缩小和混淆CSS和JS资源。我使用的是SpringMVC项目,其中的配置是使用Java代码完成的,使用的是注释,而不使用XML。现在可以找到相同的文档。有人可以向我推荐配置或参考链接。

jawr对pom的依赖关系:

    <dependency>
        <groupId>net.jawr</groupId>
        <artifactId>jawr-core</artifactId>
        <version>3.6</version>
    </dependency>
    <dependency>
        <groupId>net.jawr.extensions</groupId>
        <artifactId>jawr-spring-extension</artifactId>
        <version>3.6</version>
    </dependency>
@Controller
public class JsController extends JawrSpringController
{
    public JsController ()
    {
        setType("js");
        setConfigLocation("/jawr.properties");
    }

    @RequestMapping("/js/**")
    public void javascript ( HttpServletRequest request, HttpServletResponse response ) throws Exception
    {
        handleRequest(request, response);
    }
}