尚硅谷大数据技术之电信客服

3.4 数据展示

令人兴奋的时刻马上到了,接下来我们需要将某人按照不同维度查询出来的结果,展示到web页面上。

数据展示模块流程如图7所示:

3.4.1 环境准备

1) 新建module或项目:ct_web

pom.xml配置文件:

<project xmlns=http://maven.apache.org/POM/4.0.0

 xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

         xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd”>

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.atguigu</groupId>

    <artifactId>ct_web</artifactId>

    <packaging>war</packaging>

    <version>1.0-SNAPSHOT</version>

    <name>ct_web Maven Webapp</name>

    <url>http://maven.apache.org</url>

 

    <repositories>

        <repository>

            <id>cloudera</id>

            <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>

        </repository>

 

        <repository>

            <id>centor</id>

            <url>http://repo.maven.apache.org/maven2/</url>

        </repository>

    </repositories>

 

    <dependencies>

        <!– https://mvnrepository.com/artifact/junit/junit –>

        <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>4.12</version>

            <scope>test</scope>

        </dependency>

 

        <dependency>

            <groupId>mysql</groupId>

            <artifactId>mysql-connector-java</artifactId>

            <version>5.1.27</version>

        </dependency>

 

        <dependency>

            <groupId>c3p0</groupId>

            <artifactId>c3p0</artifactId>

            <version>0.9.1.2</version>

        </dependency>

 

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis</artifactId>

            <version>3.2.1</version>

        </dependency>

 

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-context-support</artifactId>

            <version>4.3.3.RELEASE</version>

        </dependency>

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-jdbc</artifactId>

            <version>4.3.3.RELEASE</version>

        </dependency>

        <dependency>

            <groupId>org.springframework</groupId>

            <artifactId>spring-webmvc</artifactId>

            <version>4.3.3.RELEASE</version>

        </dependency>

        <dependency>

            <groupId>org.mybatis</groupId>

            <artifactId>mybatis-spring</artifactId>

            <version>1.3.0</version>

        </dependency>

        <dependency>

            <groupId>org.aspectj</groupId>

            <artifactId>aspectjweaver</artifactId>

            <version>1.8.10</version>

        </dependency>

        <dependency>

            <groupId>javax.servlet</groupId>

            <artifactId>servlet-api</artifactId>

            <version>2.5</version>

        </dependency>

        <dependency>

            <groupId>javax.servlet</groupId>

            <artifactId>jstl</artifactId>

            <version>1.2</version>

        </dependency>

 

        <dependency>

            <groupId>org.apache.hbase</groupId>

            <artifactId>hbase-client</artifactId>

            <version>0.98.6-cdh5.3.6</version>

            <exclusions>

                <exclusion>

                    <!– https://mvnrepository.com/artifact/org.xerial.snappy/snappy-java –>

                    <groupId>org.xerial.snappy</groupId>

                    <artifactId>snappy-java</artifactId>

                </exclusion>

            </exclusions>

        </dependency>

    </dependencies>

    <build>

        <finalName>ct_web</finalName>

        <plugins>

            <!–

            <plugin>

                <groupId>org.apache.tomcat.maven</groupId>

                <artifactId>tomcat7-maven-plugin</artifactId>

                <version>2.2</version>

                <configuration>

                    <path>/</path>

                    <port>8080</port>

                    <uriEncoding>UTF-8</uriEncoding>

                </configuration>

            </plugin>

            –>

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-surefire-plugin</artifactId>

                <version>2.12.4</version>

                <configuration>

                    <skipTests>true</skipTests>

                </configuration>

            </plugin>

        </plugins>

    </build>

</project>

 

 

 


上一篇:
下一篇: