mirror of
https://github.com/JasonsGong/JasonsGong.github.io.git
synced 2024-11-24 11:29:36 +08:00
8388 lines
5.8 MiB
8388 lines
5.8 MiB
<?xml version="1.0" encoding="utf-8"?>
|
||
<search>
|
||
<entry>
|
||
<title>Docker容器化技术</title>
|
||
<url>/posts/19306.html</url>
|
||
<content><![CDATA[<p><img src="/pictures/docker01.png" alt="img"></p>
|
||
<h2 id="1-Docker概念"><a href="#1-Docker概念" class="headerlink" title="1.Docker概念"></a>1.Docker概念</h2><p>• Docker 是一个开源的应用容器引擎 </p>
|
||
<p>• 诞生于 2013 年初,基于 Go 语言实现, dotCloud 公司出品(后改名为Docker Inc) </p>
|
||
<p>• Docker 可以让开发者打包他们的应用以及依赖包到一个轻量级、可移植的容器中,然后发布到任何流行的 Linux 机器上。</p>
|
||
<p>• 容器是完全使用沙箱机制,相互隔离 </p>
|
||
<p>• 容器性能开销极低。</p>
|
||
<p>• Docker 从 17.03 版本之后分为 CE(Community Edition: 社区版) 和 EE(Enterprise Edition: 企业版)</p>
|
||
<h2 id="2-安装Docker"><a href="#2-安装Docker" class="headerlink" title="2.安装Docker"></a>2.安装Docker</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">1、yum 包更新到最新</span> </span><br><span class="line">yum update</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">2、安装需要的软件包, yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的</span> </span><br><span class="line">yum install -y yum-utils device-mapper-persistent-data lvm2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">3、 设置yum源</span></span><br><span class="line">yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">4、 安装docker,出现输入的界面都按 y</span> </span><br><span class="line">yum install -y docker-ce</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">5、 查看docker版本,验证是否验证成功</span></span><br><span class="line">docker -v</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-配置Docker镜像加速器"><a href="#3-配置Docker镜像加速器" class="headerlink" title="3.配置Docker镜像加速器"></a>3.配置Docker镜像加速器</h2><p>提升下载速度</p>
|
||
<h3 id="第一步:登录阿里云获取镜像加速地址"><a href="#第一步:登录阿里云获取镜像加速地址" class="headerlink" title="第一步:登录阿里云获取镜像加速地址"></a>第一步:登录阿里云获取镜像加速地址</h3><p>每个人的加速器地址不一样</p>
|
||
<p><img src="/pictures/image-20230421103035776.png" alt="image-20230421103035776"></p>
|
||
<h3 id="第二步:Linux命令行执行如下命令"><a href="#第二步:Linux命令行执行如下命令" class="headerlink" title="第二步:Linux命令行执行如下命令"></a>第二步:Linux命令行执行如下命令</h3><p>直接将阿里云上提供的命令直接粘贴到命令行即可</p>
|
||
<p><img src="/pictures/image-20230421103610184.png" alt="image-20230421103610184"></p>
|
||
<p><img src="/pictures/image-20230421103755984.png" alt="image-20230421103755984"></p>
|
||
<h3 id="第三步:查看是否配置成功"><a href="#第三步:查看是否配置成功" class="headerlink" title="第三步:查看是否配置成功"></a>第三步:查看是否配置成功</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看刚才配置的文件是否存在</span></span><br><span class="line">cat /etc/docker/daemon.json</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>出现下图所示的内容表示配置成功</p>
|
||
<p><img src="/pictures/image-20230421104103726.png" alt="image-20230421104103726"></p>
|
||
<h2 id="4-Docker相关命令"><a href="#4-Docker相关命令" class="headerlink" title="4.Docker相关命令"></a>4.Docker相关命令</h2><h3 id="4-1-Docker进程相关的命令"><a href="#4-1-Docker进程相关的命令" class="headerlink" title="4.1 Docker进程相关的命令"></a>4.1 Docker进程相关的命令</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">启动docker服务:</span></span><br><span class="line">systemctl start docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">停止docker服务:</span></span><br><span class="line">systemctl stop docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启docker服务:</span></span><br><span class="line">systemctl restart docker</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看docker服务状态:</span></span><br><span class="line">systemctl status docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动docker服务:</span></span><br><span class="line">systemctl enable docker</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="4-2-Docker镜像相关的命令"><a href="#4-2-Docker镜像相关的命令" class="headerlink" title="4.2 Docker镜像相关的命令"></a>4.2 Docker镜像相关的命令</h3><p>查看镜像对应版本号的网站: <a href="https://hub.docker.com/">https://hub.docker.com/</a></p>
|
||
<p><img src="/pictures/image-20230421110034731.png" alt="image-20230421110034731"></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看镜像: 查看本地所有的镜像</span></span><br><span class="line">docker images</span><br><span class="line">docker images –q # 查看所用镜像的id</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">搜索镜像:从网络中查找需要的镜像</span></span><br><span class="line">docker search 镜像名称</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">拉取镜像:从Docker仓库下载镜像到本地,镜像名称格式为 名称:版本号,如果版本号不指定则是最新的版本。</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">如果不知道镜像版本,可以去docker hub 搜索对应镜像查看。</span></span><br><span class="line">docker pull 镜像名称 # 默认下载的是latest版本的镜像</span><br><span class="line">docker pull 镜像名称:版本号 #下载指定版本的镜像</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">删除镜像: 删除本地镜像</span></span><br><span class="line">docker rmi 镜像id # 删除指定本地镜像</span><br><span class="line">docker rmi 镜像名称:版本号 #删除指定版本的镜像</span><br><span class="line">docker rmi `docker images -q` # 删除所有本地镜像</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="4-3-容器相关的命令"><a href="#4-3-容器相关的命令" class="headerlink" title="4.3 容器相关的命令"></a>4.3 容器相关的命令</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看容器</span></span><br><span class="line">docker ps # 查看正在运行的容器</span><br><span class="line">docker ps –a # 查看所有容器</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">创建并启动容器</span></span><br><span class="line">docker run 参数</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">删除所有的容器</span></span><br><span class="line">docker rm $(docker ps -a -q)</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>参数说明:<br>• -i:保持容器运行。通常与 -t 同时使用。加入it这两个参数后,容器创建后自动进入容器中,退出容器后,容器自动关闭。<br>• -t:为容器重新分配一个伪输入终端,通常与 -i 同时使用。<br>• -d:以守护(后台)模式运行容器。创建一个容器在后台运行,需要使用docker exec 进入容器。退出后,容器不会关闭。<br>• -it 创建的容器一般称为交互式容器,-id 创建的容器一般称为守护式容器<br>• –name:为创建的容器命名。</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">进入容器</span></span><br><span class="line">docker exec 参数 # 退出容器,容器不会关闭</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">停止容器</span></span><br><span class="line">docker stop 容器名称</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">启动容器</span></span><br><span class="line">docker start 容器名称</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">删除容器:如果容器是运行状态则删除失败,需要停止容器才能删除</span></span><br><span class="line">docker rm 容器名称</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看容器信息</span></span><br><span class="line">docker inspect 容器名称</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看容器的日志信息</span></span><br><span class="line">docker logs 容器名称</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="5-Docker-应用部署"><a href="#5-Docker-应用部署" class="headerlink" title="5.Docker 应用部署"></a>5.Docker 应用部署</h2><div class="note danger flat"><p>Docker中常见的应用安装部署,详细内容请参考下面文章</p>
|
||
<p><a href="https://jasonsgong.gitee.io/posts/20683.html">Linux中开发环境的搭建 | The Blog (gitee.io)</a></p>
|
||
</div>
|
||
|
||
<p><a href="https://jasonsgong.gitee.io/posts/63333.html">开发环境的搭建 | The Blog (gitee.io)</a></p>
|
||
<p><strong>5.1、部署MySQL</strong></p>
|
||
<ol>
|
||
<li>搜索mysql镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker search mysql</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="2">
|
||
<li>拉取mysql镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker pull mysql:5.6</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="3">
|
||
<li>创建容器,设置端口映射、目录映射</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">在/root目录下创建mysql目录用于存储mysql数据信息</span></span><br><span class="line">mkdir ~/mysql</span><br><span class="line">cd ~/mysql</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker run -id \</span><br><span class="line">-p 3307:3306 \</span><br><span class="line">--name=c_mysql \</span><br><span class="line">-v $PWD/conf:/etc/mysql/conf.d \</span><br><span class="line">-v $PWD/logs:/logs \</span><br><span class="line">-v $PWD/data:/var/lib/mysql \</span><br><span class="line">-e MYSQL_ROOT_PASSWORD=123456 \</span><br><span class="line">mysql:5.6</span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>参数说明:<ul>
|
||
<li><strong>-p 3307:3306</strong>:将容器的 3306 端口映射到宿主机的 3307 端口。</li>
|
||
<li><strong>-v $PWD/conf:/etc/mysql/conf.d</strong>:将主机当前目录下的 conf/my.cnf 挂载到容器的 /etc/mysql/my.cnf。配置目录</li>
|
||
<li><strong>-v $PWD/logs:/logs</strong>:将主机当前目录下的 logs 目录挂载到容器的 /logs。日志目录</li>
|
||
<li><strong>-v $PWD/data:/var/lib/mysql</strong> :将主机当前目录下的data目录挂载到容器的 /var/lib/mysql 。数据目录</li>
|
||
<li><strong>-e MYSQL_ROOT_PASSWORD=123456:</strong>初始化 root 用户的密码。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<ol start="4">
|
||
<li>进入容器,操作mysql</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker exec –it c_mysql /bin/bash</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="5">
|
||
<li>使用外部机器连接容器中的mysql</li>
|
||
</ol>
|
||
<p><img src="/pictures/1573636765632.png" alt="1573636765632"></p>
|
||
<p><strong>5.2、部署Tomcat</strong></p>
|
||
<ol>
|
||
<li>搜索tomcat镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker search tomcat</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="2">
|
||
<li>拉取tomcat镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker pull tomcat</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="3">
|
||
<li>创建容器,设置端口映射、目录映射</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">在/root目录下创建tomcat目录用于存储tomcat数据信息</span></span><br><span class="line">mkdir ~/tomcat</span><br><span class="line">cd ~/tomcat</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker run -id --name=c_tomcat \</span><br><span class="line">-p 8080:8080 \</span><br><span class="line">-v $PWD:/usr/local/tomcat/webapps \</span><br><span class="line">tomcat </span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li><p>参数说明:</p>
|
||
<ul>
|
||
<li><p><strong>-p 8080:8080:</strong>将容器的8080端口映射到主机的8080端口</p>
|
||
<p><strong>-v $PWD:/usr/local/tomcat/webapps:</strong>将主机中当前目录挂载到容器的webapps</p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<ol start="4">
|
||
<li>使用外部机器访问tomcat</li>
|
||
</ol>
|
||
<p><img src="/pictures/1573649804623.png" alt="1573649804623"></p>
|
||
<p><strong>5.3 部署Nginx</strong></p>
|
||
<ol>
|
||
<li>搜索nginx镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker search nginx</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="2">
|
||
<li>拉取nginx镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker pull nginx</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="3">
|
||
<li>创建容器,设置端口映射、目录映射</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">在/root目录下创建nginx目录用于存储nginx数据信息</span></span><br><span class="line">mkdir ~/nginx</span><br><span class="line">cd ~/nginx</span><br><span class="line">mkdir conf</span><br><span class="line">cd conf</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">在~/nginx/conf/下创建nginx.conf文件,粘贴下面内容</span></span><br><span class="line">vim nginx.conf</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">user nginx;</span><br><span class="line">worker_processes 1;</span><br><span class="line"></span><br><span class="line">error_log /var/log/nginx/error.log warn;</span><br><span class="line">pid /var/run/nginx.pid;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">events {</span><br><span class="line"> worker_connections 1024;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">http {</span><br><span class="line"> include /etc/nginx/mime.types;</span><br><span class="line"> default_type application/octet-stream;</span><br><span class="line"></span><br><span class="line"> log_format main '$remote_addr - $remote_user [$time_local] "$request" '</span><br><span class="line"> '$status $body_bytes_sent "$http_referer" '</span><br><span class="line"> '"$http_user_agent" "$http_x_forwarded_for"';</span><br><span class="line"></span><br><span class="line"> access_log /var/log/nginx/access.log main;</span><br><span class="line"></span><br><span class="line"> sendfile on;</span><br><span class="line"> #tcp_nopush on;</span><br><span class="line"></span><br><span class="line"> keepalive_timeout 65;</span><br><span class="line"></span><br><span class="line"> #gzip on;</span><br><span class="line"></span><br><span class="line"> include /etc/nginx/conf.d/*.conf;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker run -id --name=c_nginx \</span><br><span class="line">-p 80:80 \</span><br><span class="line">-v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf \</span><br><span class="line">-v $PWD/logs:/var/log/nginx \</span><br><span class="line">-v $PWD/html:/usr/share/nginx/html \</span><br><span class="line">nginx</span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>参数说明:<ul>
|
||
<li><strong>-p 80:80</strong>:将容器的 80端口映射到宿主机的 80 端口。</li>
|
||
<li><strong>-v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf</strong>:将主机当前目录下的 /conf/nginx.conf 挂载到容器的 :/etc/nginx/nginx.conf。配置目录</li>
|
||
<li><strong>-v $PWD/logs:/var/log/nginx</strong>:将主机当前目录下的 logs 目录挂载到容器的/var/log/nginx。日志目录</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<ol start="4">
|
||
<li>使用外部机器访问nginx</li>
|
||
</ol>
|
||
<p><img src="/pictures/1573652396669.png" alt="1573652396669"></p>
|
||
<p><strong>5.4 部署Redis</strong></p>
|
||
<ol>
|
||
<li>搜索redis镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker search redis</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="2">
|
||
<li>拉取redis镜像</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker pull redis:5.0</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="3">
|
||
<li>创建容器,设置端口映射</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker run -id --name=c_redis -p 6379:6379 redis:5.0</span><br></pre></td></tr></table></figure>
|
||
|
||
<ol start="4">
|
||
<li>使用外部机器连接redis</li>
|
||
</ol>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">./redis-cli.exe -h 192.168.149.135 -p 6379</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>运维</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Docker</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>IDEA常用快捷键</title>
|
||
<url>/posts/63724.html</url>
|
||
<content><![CDATA[<h3 id="1-常用快捷键"><a href="#1-常用快捷键" class="headerlink" title="1.常用快捷键"></a>1.常用快捷键</h3><ol>
|
||
<li><p><strong>在写一个main主函数的时候可以直接在键盘上敲main ,然后根据提示补全全部(模板快捷键)</strong></p>
|
||
</li>
|
||
<li><p><strong>在写System.out.println();输出函数代码的时候可以直接在键盘上面敲sout,然后根据提示补全(模板快捷键)</strong></p>
|
||
</li>
|
||
<li><p><strong>在写for循环的时候,我们可以直接在键盘上面打出 fori 然后根据提示补全代码(模板快捷键)</strong></p>
|
||
</li>
|
||
<li><p><strong>删除当前行 Ctrl+D (并非默认Ctrl + D,默认为Ctrl + Y),需要我们自己设置</strong></p>
|
||
</li>
|
||
<li><p><strong>复制当前行,快速向下复制一行 Ctrl + Alt + 向下箭头(并非默认,需要我们自己设置)</strong></p>
|
||
</li>
|
||
<li><p><strong>代码补全 Alt + /</strong></p>
|
||
</li>
|
||
<li><p><strong>添加注释和取消注释 Ctrl + /</strong></p>
|
||
</li>
|
||
<li><p><strong>自动导入import java.util.Scanner;我们在键盘上敲Scanner in = new Scanner(System,in);的时候按快捷键Alt + Enter 可以自动导入import java.util.Scanner;</strong></p>
|
||
</li>
|
||
<li><p><strong>代码格式化(格式调整为正常格式,,让代码变整洁,并非删除代码) Ctrl + Alt +L</strong></p>
|
||
</li>
|
||
<li><p><strong>快速运行程序(并非默认,需要我们自己设置)Alt + R,如果要使用这个快捷键,我们要切换到当前的主类,否则运行的还是之前运行的程序</strong></p>
|
||
</li>
|
||
<li><p><strong>构造器快捷键 Alt + insert ,按住Ctrl可以选择任意个参数的构造器,也可以点击Select None选择无参构造器; 我们在写一个私有类的getXxx()和setXxx()方法的时候,我们可以使用这个快捷键,光标移动到”Getter and Setter“的位置并选择。</strong></p>
|
||
</li>
|
||
<li><p><strong>查看一个类的层级关系 Ctrl + H</strong></p>
|
||
</li>
|
||
<li><p><strong>将光标放在一个方法上,使用快捷键 Ctrl + B 可以快速定位到这个方法的代码</strong></p>
|
||
</li>
|
||
<li><p><strong>我们在键盘上面敲Scanner in = new Scanner(System.in);的时候,我们先敲new Scanner(System.in),再在后面加上new Scanner(System.in).var,按Enter,就会自动补全前面的代码;定义一个Person类对象的时候我们也可以使用这种方法,如new Person().var,按Enter,就会自动补全前面的代码,变成 Person person = new Person();</strong></p>
|
||
</li>
|
||
<li><p><strong>重写某个方法的时候我们可以直接打出这个方法名,然后根据提示,移动光标选择。</strong></p>
|
||
</li>
|
||
<li><p><strong>Alt+insert移动光标选择toString,可以重写toString方法,并输出对象的属性。</strong></p>
|
||
</li>
|
||
<li><p><strong>断点调试的快捷键:F7(跳入),F8(跳过),shift+F8(跳出),F9(resume,执行到下一个断点)</strong></p>
|
||
<p> <strong>F7:跳入方法内</strong></p>
|
||
<p> <strong>F8:逐行执行代码</strong></p>
|
||
<p> <strong>shift+F8:跳出方法</strong></p>
|
||
</li>
|
||
<li><p><strong>一个普通类实现接口,就必须将该接口的所有方法都实现,我们在实现这些接口的时候可以使用快捷键Alt+Enter</strong></p>
|
||
</li>
|
||
<li><p><strong>Ctrl+Alt+t 可以快捷的使用try-catch</strong></p>
|
||
</li>
|
||
<li><p><strong>遍历一个数组,生成while循环,可以快捷生成,快捷键是 itit + 回车 ,增强的for循环的迭代器的快捷输入 是大写的 I + enter</strong></p>
|
||
</li>
|
||
<li><p><strong>Ctrl + J 可以显示所有的快捷模板</strong></p>
|
||
</li>
|
||
<li><p><strong>Ctrl + R 查找替换</strong></p>
|
||
</li>
|
||
<li><p><strong>Shift+Enter 快速向下换一行</strong></p>
|
||
</li>
|
||
<li><p><strong>Shift+Home 快速选中一行</strong></p>
|
||
</li>
|
||
<li><p><strong>Ctrl + F 全局查找</strong></p>
|
||
</li>
|
||
</ol>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>快捷键</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Java爬虫</title>
|
||
<url>/posts/60685.html</url>
|
||
<content><![CDATA[<p>视频教程1: 狂神说Java Jsoup爬虫入门实战 <a href="https://www.bilibili.com/video/BV1La4y1x7Wm?vd_source=aee5e475191b69e6c781059ab6662584">https://www.bilibili.com/video/BV1La4y1x7Wm?vd_source=aee5e475191b69e6c781059ab6662584</a></p>
|
||
<p>视频教程2:<a href="https://www.bilibili.com/video/BV1RU4y147eZ?vd_source=aee5e475191b69e6c781059ab6662584">https://www.bilibili.com/video/BV1RU4y147eZ?vd_source=aee5e475191b69e6c781059ab6662584</a></p>
|
||
<p>具体的看视频 急速入门</p>
|
||
<h2 id="入门实战教程"><a href="#入门实战教程" class="headerlink" title="入门实战教程"></a>入门实战教程</h2><h3 id="1-引入依赖"><a href="#1-引入依赖" class="headerlink" title="1.引入依赖"></a>1.引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- 爬取视频或者音频需要使用别的依赖 --></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.jsoup<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jsoup<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.14.3<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-编写测试代码"><a href="#2-编写测试代码" class="headerlink" title="2.编写测试代码"></a>2.编写测试代码</h3><p>下面我们以爬取京东上的商品的图片和价格为例</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.jason;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.jsoup.Jsoup;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Document;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Element;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.select.Elements;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.net.URL;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/9</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">HtmlParseUtil</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> HtmlParseUtil.parseJd(<span class="string">"联想电脑"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 爬取京东上的商品数据</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> keywords 商品的品牌或者关键字 例如 联想电脑、华为手机、java书籍</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">parseJd</span><span class="params">(String keywords)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//获取请求</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">url</span> <span class="operator">=</span> <span class="string">"https://search.jd.com/Search?keyword="</span> + keywords;<span class="comment">//页面上的地址信息</span></span><br><span class="line"> <span class="comment">//解析网页</span></span><br><span class="line"> <span class="comment">//第一个参数是url地址</span></span><br><span class="line"> <span class="comment">//第二个参数是响应时间,超过30秒就报错</span></span><br><span class="line"> <span class="comment">//返回的document就是浏览器的Document对象</span></span><br><span class="line"> <span class="type">Document</span> <span class="variable">document</span> <span class="operator">=</span> Jsoup.parse(<span class="keyword">new</span> <span class="title class_">URL</span>(url), <span class="number">30000</span>);</span><br><span class="line"> <span class="comment">//所有在js中可以使用的方法,这里都可以使用</span></span><br><span class="line"> <span class="type">Element</span> <span class="variable">element</span> <span class="operator">=</span> document.getElementById(<span class="string">"J_goodsList"</span>);<span class="comment">//通过id获取元素</span></span><br><span class="line"> <span class="comment">//获取所有的li元素</span></span><br><span class="line"> <span class="type">Elements</span> <span class="variable">elements</span> <span class="operator">=</span> element.getElementsByTag(<span class="string">"li"</span>);</span><br><span class="line"> <span class="comment">//遍历li元素的集合 获取每一个li元素</span></span><br><span class="line"> <span class="keyword">for</span> (Element el : elements) {</span><br><span class="line"> <span class="comment">//这种图片特别多的图片 会有一个懒加载</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">attr</span> <span class="operator">=</span> el.getElementsByTag(<span class="string">"img"</span>).eq(<span class="number">0</span>).attr(<span class="string">"data-lazy-img"</span>);<span class="comment">//通过标签获取元素</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">title</span> <span class="operator">=</span> el.getElementsByClass(<span class="string">"p-name"</span>).eq(<span class="number">0</span>).text();<span class="comment">//通过class获取元素</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">price</span> <span class="operator">=</span> el.getElementsByClass(<span class="string">"p-price"</span>).eq(<span class="number">0</span>).text();</span><br><span class="line"> System.out.println(<span class="string">"图片地址:https:"</span> + attr);</span><br><span class="line"> System.out.println(<span class="string">"商品名称:"</span> + title);</span><br><span class="line"> System.out.println(<span class="string">"商品价格:"</span> + price);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-运行测试"><a href="#3-运行测试" class="headerlink" title="3.运行测试"></a>3.运行测试</h3><p><img src="/pictures/image-20230509161845558.png" alt="image-20230509161845558"></p>
|
||
<p><img src="/pictures/image-20230509161907139.png" alt="image-20230509161907139"></p>
|
||
<h2 id="示例"><a href="#示例" class="headerlink" title="示例"></a>示例</h2><h3 id="爬取房天下上面的房价信息"><a href="#爬取房天下上面的房价信息" class="headerlink" title="爬取房天下上面的房价信息"></a>爬取房天下上面的房价信息</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.jason;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.jsoup.Jsoup;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Document;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Element;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.select.Elements;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.net.URL;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/9</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ParseHouse</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//爬起房天下上面的房源数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">91</span>;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>){<span class="comment">//换页读取 页面有分页条的情况</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">url</span> <span class="operator">=</span> <span class="string">"https://newhouse.fang.com/house/s/b"</span>+i;</span><br><span class="line"> System.out.println(<span class="string">"正在爬取第"</span>+i+<span class="string">"页的数据....."</span>);</span><br><span class="line"> ParseHouse.selectHouses(url);</span><br><span class="line"> i++;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">selectHouses</span><span class="params">(String url)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">Document</span> <span class="variable">document</span> <span class="operator">=</span> Jsoup.parse(<span class="keyword">new</span> <span class="title class_">URL</span>(url), <span class="number">30000</span>);</span><br><span class="line"> <span class="type">Element</span> <span class="variable">element</span> <span class="operator">=</span> document.getElementById(<span class="string">"newhouse_loupan_list"</span>);</span><br><span class="line"> <span class="type">Elements</span> <span class="variable">elements</span> <span class="operator">=</span> element.getElementsByTag(<span class="string">"li"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Element el : elements) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">images</span> <span class="operator">=</span> el.getElementsByTag(<span class="string">"img"</span>).eq(<span class="number">1</span>).attr(<span class="string">"src"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">alt</span> <span class="operator">=</span> el.getElementsByTag(<span class="string">"img"</span>).eq(<span class="number">1</span>).attr(<span class="string">"alt"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">price</span> <span class="operator">=</span> el.getElementsByClass(<span class="string">"nhouse_price"</span>).text();</span><br><span class="line"> System.out.println(<span class="string">"图片:https:"</span>+images);</span><br><span class="line"> System.out.println(<span class="string">"名称:"</span>+alt);</span><br><span class="line"> System.out.println(<span class="string">"房价:"</span>+price);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230509180334969.png" alt="image-20230509180334969"></p>
|
||
<p><img src="/pictures/image-20230509180435467.png" alt="image-20230509180435467"></p>
|
||
<h3 id="爬取豆瓣电影排行榜的信息"><a href="#爬取豆瓣电影排行榜的信息" class="headerlink" title="爬取豆瓣电影排行榜的信息"></a>爬取豆瓣电影排行榜的信息</h3><p><img src="/pictures/image-20230509180547905.png" alt="image-20230509180547905"></p>
|
||
<h3 id="爬取全国各地房价的信息到excel表格中"><a href="#爬取全国各地房价的信息到excel表格中" class="headerlink" title="爬取全国各地房价的信息到excel表格中"></a>爬取全国各地房价的信息到excel表格中</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.jason;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.EasyExcel;</span><br><span class="line"><span class="keyword">import</span> com.jason.entity.HorseInfo;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.Jsoup;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Document;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.nodes.Element;</span><br><span class="line"><span class="keyword">import</span> org.jsoup.select.Elements;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.File;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.net.URL;</span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/9</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 爬取全国各地房价的信息到excel表格中</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">HousePriseList</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//爬取全国房价排行榜</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">fileName</span> <span class="operator">=</span> <span class="string">"C:\\AlYun\\work\\housePriceList.xlsx"</span>;</span><br><span class="line"> <span class="comment">//通过下面的中间表,我们可以实现向excel中追加数据 不是每次删除之前的数据再写入 或者追加的时候有多个表头信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="string">"C:\\AlYun\\work\\temp.xlsx"</span>; <span class="comment">//中间表 会自动被删除</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">url</span> <span class="operator">=</span> <span class="string">"https://fangjia.gotohui.com/top/"</span> + i + <span class="string">".html"</span>;</span><br><span class="line"> List<HorseInfo> horseInfos = HousePriseList.selectHorse(url);</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(fileName);</span><br><span class="line"> <span class="type">File</span> <span class="variable">tempFile</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(temp);</span><br><span class="line"> <span class="keyword">if</span> (file.exists()) { <span class="comment">//判断excel表中是否写入过数据 写入过数据就追加数据</span></span><br><span class="line"> <span class="comment">// 第二次按照原有格式,不需要表头,追加写入</span></span><br><span class="line"> EasyExcel.write(file, HorseInfo.class).needHead(<span class="literal">false</span>).</span><br><span class="line"> withTemplate(file).file(tempFile).sheet().doWrite(horseInfos);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// 第一次写入需要表头</span></span><br><span class="line"> EasyExcel.write(file, HorseInfo.class).sheet().doWrite(horseInfos);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (tempFile.exists()) {</span><br><span class="line"> file.delete();</span><br><span class="line"> tempFile.renameTo(file);</span><br><span class="line"> }</span><br><span class="line"> i++;</span><br><span class="line"> Thread.sleep(<span class="number">2000</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<HorseInfo> <span class="title function_">selectHorse</span><span class="params">(String url)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">Document</span> <span class="variable">document</span> <span class="operator">=</span> Jsoup.parse(<span class="keyword">new</span> <span class="title class_">URL</span>(url), <span class="number">30000</span>);</span><br><span class="line"> <span class="type">Elements</span> <span class="variable">elements</span> <span class="operator">=</span> document.getElementsByClass(<span class="string">"ntable table-striped table-hover"</span>);</span><br><span class="line"> ArrayList<HorseInfo> horseInfos = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (Element element : elements) {</span><br><span class="line"> <span class="type">Elements</span> <span class="variable">tr</span> <span class="operator">=</span> element.getElementsByTag(<span class="string">"tr"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Element el : tr) {</span><br><span class="line"> <span class="type">Elements</span> <span class="variable">td</span> <span class="operator">=</span> el.getElementsByTag(<span class="string">"td"</span>);</span><br><span class="line"> System.out.println(<span class="string">"-----------------------------------------"</span>);</span><br><span class="line"> System.out.println(<span class="string">"编号:"</span> + td.eq(<span class="number">0</span>).text());</span><br><span class="line"> System.out.println(<span class="string">"城市:"</span> + td.eq(<span class="number">1</span>).text());</span><br><span class="line"> System.out.println(<span class="string">"单价(元/㎡):"</span> + td.eq(<span class="number">2</span>).text());</span><br><span class="line"> System.out.println(<span class="string">"同比(去年):"</span> + td.eq(<span class="number">3</span>).text());</span><br><span class="line"> System.out.println(<span class="string">"环比(上月):"</span> + td.eq(<span class="number">4</span>).text());</span><br><span class="line"> System.out.println(<span class="string">"收入比:"</span> + td.eq(<span class="number">5</span>).text());</span><br><span class="line"> <span class="keyword">if</span> (!td.eq(<span class="number">0</span>).text().equals(<span class="string">""</span>)) {</span><br><span class="line"> horseInfos.add(<span class="keyword">new</span> <span class="title class_">HorseInfo</span>(</span><br><span class="line"> td.eq(<span class="number">0</span>).text(),</span><br><span class="line"> td.eq(<span class="number">1</span>).text(),</span><br><span class="line"> td.eq(<span class="number">2</span>).text(),</span><br><span class="line"> td.eq(<span class="number">3</span>).text(),</span><br><span class="line"> td.eq(<span class="number">4</span>).text(),</span><br><span class="line"> td.eq(<span class="number">5</span>).text()</span><br><span class="line"> ));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> horseInfos;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230509233922789.png" alt="image-20230509233922789"></p>
|
||
<p><img src="/pictures/image-20230509234019249.png" alt="image-20230509234019249"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>爬虫</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Git命令速查</title>
|
||
<url>/posts/18459.html</url>
|
||
<content><![CDATA[<p><strong>常用命令</strong></p>
|
||
<p><img src="/pictures/image-20230520173824247.png" alt="image-20230520173824247"></p>
|
||
<hr>
|
||
<p><strong>安装教程</strong></p>
|
||
<p>官网下载:<a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">以下的操作在下载安装完毕之后进行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">1.鼠标在桌面右键 选择Git Bash Here 打开控制台</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">2.配置用户名和邮箱</span></span><br><span class="line">git config --global user.name "用户名" #随意</span><br><span class="line">git config --global user.email "邮箱" #自己的邮箱</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">3.配置SSH免密连接</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">生成密钥</span></span><br><span class="line">ssh-keygen -t rsa -C "在码云上注册的邮箱地址" #连续三次回车</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看密钥并复制公钥的内容</span></span><br><span class="line">cat ~/.ssh/id_rsa.pub</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.将密钥的复制到码云的SSH公钥中</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.1添加公钥 公钥名随意 公钥内容就是上面复制的内容</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">5.测试</span></span><br><span class="line">ssh -T git@gitee.com</span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Git</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>JWT-token生成工具</title>
|
||
<url>/posts/28118.html</url>
|
||
<content><![CDATA[<h2 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h2><p> JWT(Json Web Token)是为了在网络应用环境间传递声明而执行的一种基于JSON的开放标准。JWT的声明一般被用来在身份提供者和服务提供者间传递被认证的用户身份信息,以便于从资源服务器获取资源。比如用在用户登录上。JWT最重要的作用就是对 token信息的<strong>防伪</strong>作用。 </p>
|
||
<p> JWT的原理: </p>
|
||
<p> 一个JWT由三个部分组成:公共部分、私有部分、签名部分。最后由这三者组合进行base64编码得到JWT。</p>
|
||
<p><img src="/pictures/image-20230420102523288.png" alt="image-20230420102523288"></p>
|
||
<p><img src="/pictures/image-20230420103234232.png" alt="image-20230420103234232"></p>
|
||
<p>1、 公共部分</p>
|
||
<p> 主要是该JWT的相关配置参数,比如签名的加密算法、格式类型、过期时间等等。</p>
|
||
<p> Key=ATGUIGU</p>
|
||
<p>2、 私有部分</p>
|
||
<p> 用户自定义的内容,根据实际需要真正要封装的信息。</p>
|
||
<p> userInfo{用户的Id,用户的昵称nickName}</p>
|
||
<p>3、 签名部分</p>
|
||
<p> SaltiP: 当前服务器的Ip地址!{linux 中配置代理服务器的ip}</p>
|
||
<p> 主要用户对JWT生成字符串的时候,进行加密{盐值}</p>
|
||
<p>最终组成 key+salt+userInfo -> token!</p>
|
||
<p>base64编码,并不是加密,只是把明文信息变成了不可见的字符串。但是其实只要用一些工具就可以把base64编码解成明文,所以不要在JWT中放入涉及私密的信息。</p>
|
||
<h2 id="2-使用"><a href="#2-使用" class="headerlink" title="2.使用"></a>2.使用</h2><h3 id="1-导入依赖"><a href="#1-导入依赖" class="headerlink" title="1.导入依赖"></a>1.导入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.jsonwebtoken<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jjwt<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>0.7.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-引入工具类"><a href="#2-引入工具类" class="headerlink" title="2.引入工具类"></a>2.引入工具类</h3><p>以下工具类根据情况任选一种即可</p>
|
||
<p>一种是在请求头中获取token,然后再获取用户的信息,另一种直接传入token,然后获取用户信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.yygh.common.helper;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.*;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/20</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">JwtHelper</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">long</span> <span class="variable">tokenExpiration</span> <span class="operator">=</span> <span class="number">24</span>*<span class="number">60</span>*<span class="number">60</span>*<span class="number">1000</span>; <span class="comment">//token的过期时间</span></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">String</span> <span class="variable">tokenSignKey</span> <span class="operator">=</span> <span class="string">"123456"</span>; <span class="comment">//token 签名的密钥</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据参数生成token</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> userId 用户的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> userName 用户名</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> token字符串</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">createToken</span><span class="params">(Long userId, String userName)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">token</span> <span class="operator">=</span> Jwts.builder()</span><br><span class="line"> .setSubject(<span class="string">"YYGH-USER"</span>) <span class="comment">//分类,自定义</span></span><br><span class="line"> .setExpiration(<span class="keyword">new</span> <span class="title class_">Date</span>(System.currentTimeMillis() + tokenExpiration))<span class="comment">//设置过期时间</span></span><br><span class="line"> .claim(<span class="string">"userId"</span>, userId)<span class="comment">//设置主体信息</span></span><br><span class="line"> .claim(<span class="string">"userName"</span>, userName)</span><br><span class="line"> .signWith(SignatureAlgorithm.HS512, tokenSignKey)<span class="comment">//签名hash</span></span><br><span class="line"> .compressWith(CompressionCodecs.GZIP)</span><br><span class="line"> .compact();</span><br><span class="line"> <span class="keyword">return</span> token;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据token字符串得到用户的id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> Long <span class="title function_">getUserId</span><span class="params">(String token)</span> {</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(token)) <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> Jws<Claims> claimsJws = Jwts.parser().setSigningKey(tokenSignKey).parseClaimsJws(token);</span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claims</span> <span class="operator">=</span> claimsJws.getBody();</span><br><span class="line"> <span class="type">Integer</span> <span class="variable">userId</span> <span class="operator">=</span> (Integer)claims.get(<span class="string">"userId"</span>);</span><br><span class="line"> <span class="keyword">return</span> userId.longValue();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据token字符串得到用户名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">getUserName</span><span class="params">(String token)</span> {</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(token)) <span class="keyword">return</span> <span class="string">""</span>;</span><br><span class="line"> Jws<Claims> claimsJws</span><br><span class="line"> = Jwts.parser().setSigningKey(tokenSignKey).parseClaimsJws(token);</span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claims</span> <span class="operator">=</span> claimsJws.getBody();</span><br><span class="line"> <span class="keyword">return</span> (String)claims.get(<span class="string">"userName"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.commonutils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Claims;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Jws;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Jwts;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.SignatureAlgorithm;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.server.reactive.ServerHttpRequest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> helen</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@since</span> 2019/10/16</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">JwtUtils</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 设置token的过期时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">EXPIRE</span> <span class="operator">=</span> <span class="number">1000</span> * <span class="number">60</span> * <span class="number">60</span> * <span class="number">24</span>;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 密钥</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">APP_SECRET</span> <span class="operator">=</span> <span class="string">"ukc8BDbRigUDaY6pZFfWus2jZWLPHO"</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 生成token字符串</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">getJwtToken</span><span class="params">(String id, String nickname)</span>{</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">JwtToken</span> <span class="operator">=</span> Jwts.builder()</span><br><span class="line"> .setHeaderParam(<span class="string">"typ"</span>, <span class="string">"JWT"</span>)</span><br><span class="line"> .setHeaderParam(<span class="string">"alg"</span>, <span class="string">"HS256"</span>)</span><br><span class="line"> .setSubject(<span class="string">"guli-user"</span>)</span><br><span class="line"> .setIssuedAt(<span class="keyword">new</span> <span class="title class_">Date</span>())</span><br><span class="line"> .setExpiration(<span class="keyword">new</span> <span class="title class_">Date</span>(System.currentTimeMillis() + EXPIRE))</span><br><span class="line"> .claim(<span class="string">"id"</span>, id)</span><br><span class="line"> .claim(<span class="string">"nickname"</span>, nickname)</span><br><span class="line"> .signWith(SignatureAlgorithm.HS256, APP_SECRET)</span><br><span class="line"> .compact();</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> JwtToken;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断token是否存在与有效</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">checkToken</span><span class="params">(String jwtToken)</span> {</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断token是否存在与有效</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">checkToken</span><span class="params">(HttpServletRequest request)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">jwtToken</span> <span class="operator">=</span> request.getHeader(<span class="string">"token"</span>);</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据token获取会员id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">getMemberIdByJwtToken</span><span class="params">(HttpServletRequest request)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">jwtToken</span> <span class="operator">=</span> request.getHeader(<span class="string">"token"</span>);</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="string">""</span>;</span><br><span class="line"> Jws<Claims> claimsJws = Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claims</span> <span class="operator">=</span> claimsJws.getBody();</span><br><span class="line"> <span class="keyword">return</span> (String)claims.get(<span class="string">"id"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-在登录中使用Jwt工具"><a href="#3-在登录中使用Jwt工具" class="headerlink" title="3.在登录中使用Jwt工具"></a>3.在登录中使用Jwt工具</h3><p>1.登录成功之后返回token字符串</p>
|
||
<p><img src="/pictures/image-20230420110340570.png" alt="image-20230420110340570"></p>
|
||
<p>2.前端处理的思路</p>
|
||
<p>获取token字符串 <strong>-></strong> 将token字符串和用户信息存放在cokkie中 <strong>-></strong> 页面在cokkie中获取用户信息显示在页面上</p>
|
||
<p>前端登录与否的校验、后端网关登录与否的校验…….</p>
|
||
<p>之后补充完整的代码示例 这里没有遇到好的登录示例 ……….</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Java学习路线</title>
|
||
<url>/posts/63587.html</url>
|
||
<content><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="Error" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
|
||
<script id="hbeData" type="hbeData" data-hmacdigest="1a7d7384f7131b151f3c0a867853e369add6cce560e39eb3a51b560e766c3a3e">4630436162ade97ba2718b7d0c4b3b6351ade09e539dfebeb5402828e29e64b04e687c55db1c80dd2d9880785af2c647e76e20eab5aa8bcc88a4414a128507c0dc0dd74ec01fa6aa610e11639b43a870aa6fc88a6df0c253ac1bbf87f542f92a54e6a585f3c1f1e1530c1ef33a1039d03d8f129e3714c9aa8e80ac7872b2a91b18830b25d81e6a7452ae4b0c7baf7f877797b821b7a71f3afcdb6666172ad092d091aaed8f82c0ce07387277ae0e6ff6ee5a3d1e8165a8b9f699df4c1681c7b35c73ea0f4da3faea7eaf7442e280ec762bf4a6a1316dbade151cc5b3e85b89a499cc58bb11450f39120abcb6006d009756c0c344170277d68769b451f870618117fe8c9179a45a42c6f7c32716f0664f690d522efcb4d005b7d99a21dd6e5bc0488bedf6e897f787d6d9776cf3ff3b2521dfd4b1d0842fc793cf575e4e7c0b8e8c72ada484ed768dca15b94aea70c2c0ed15d0c6092f5ca3e18b6d4b728621983ff570aec3d50ca138b4217c98a1abf1728e65b4a98ff53b4b41daebb18e9b490e8ebb0746d9bb2f16449261510e8c5c8eebca3fba80f69cd877fcd6598adda2391c01cb5772566aed2ad9ce917e280a</script>
|
||
<div class="hbe hbe-content">
|
||
<div class="hbe hbe-input hbe-input-wave">
|
||
<input class="hbe hbe-input-field hbe-input-field-wave" type="password" id="hbePass">
|
||
<label class="hbe hbe-input-label hbe-input-label-wave" for="hbePass">
|
||
<span class="hbe hbe-input-label-content hbe-input-label-content-wave"></span>
|
||
</label>
|
||
<svg class="hbe hbe-graphic hbe-graphic-wave" width="300%" height="100%" viewBox="0 0 1200 60" preserveAspectRatio="none">
|
||
<path d="M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0"></path>
|
||
</svg>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script data-pjax src="/lib/hbe.js"></script><link href="/css/hbe.style.css" rel="stylesheet" type="text/css">]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>学习路线</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Linux中开发环境的搭建</title>
|
||
<url>/posts/20683.html</url>
|
||
<content><![CDATA[<h2 id="一-Linux操作系统的安装与配置"><a href="#一-Linux操作系统的安装与配置" class="headerlink" title="一.Linux操作系统的安装与配置"></a>一.Linux操作系统的安装与配置</h2><p><strong>软件:VMware 、Linux镜像文件</strong><br><a href="https://jasonsgong.gitee.io/47407.html"><a href="https://jasonsgong.gitee.io/posts/47407.html">VMWare虚拟机安装Linux教程 | The Blog (gitee.io)</a></a></p>
|
||
<h2 id="二-配置Java环境"><a href="#二-配置Java环境" class="headerlink" title="二.配置Java环境"></a>二.配置Java环境</h2><p><strong>2.1.删除自带的JDK</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看系统是否有java环境</span></span><br><span class="line">java -version</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查找Linux中已有的java环境的相关文件</span></span><br><span class="line">rpm -qa |grep java</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">执行命令 删除上面的java文件</span></span><br><span class="line">rpm -e --nodeps +上面查找出来的文件</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.2.安装JDK</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建一个文件夹,将JDK8上传到这个文件夹中去</span></span><br><span class="line">mkdir /opt/jdk</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">解压上传的压缩包 解压后得到一个名为jdk1.8.0_261的文件夹</span></span><br><span class="line">tar -zvxf jdk-8u261-linux-x64.tar.gz</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">创建一个目录,作为java的安装目录</span></span><br><span class="line">mkdir /usr/local/java</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">将解压后的文件移动到这个安装目录中去</span></span><br><span class="line">mv jdk1.8.0_261/ /usr/local/java/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">配置环境变量</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入环境变量的配置文件中</span></span><br><span class="line">vim /etc/profile</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在文件的最后添加如下的配置</span></span><br><span class="line">export JAVA_HOME=/usr/local/java/jdk1.8.0_261</span><br><span class="line">export PATH=$JAVA_HOME/bin:$PATH</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">刷新配置文件,让新的环境变量生效</span></span><br><span class="line">source /etc/profile</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="三-使用Docker安装常用软件"><a href="#三-使用Docker安装常用软件" class="headerlink" title="三.使用Docker安装常用软件"></a>三.使用Docker安装常用软件</h2><p><strong><a href="https://jasonsgong.gitee.io/19306.html">Docker容器化技术 | The Blog (gitee.io)</a></strong></p>
|
||
<h3 id="3-1-Docker的安装"><a href="#3-1-Docker的安装" class="headerlink" title="3.1 Docker的安装"></a><strong>3.1 Docker的安装</strong></h3><p><strong>3.1.1 安装Docker</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">1、yum 包更新到最新</span> </span><br><span class="line">yum update</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">2、安装需要的软件包, yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的</span> </span><br><span class="line">yum install -y yum-utils device-mapper-persistent-data lvm2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">3、 设置yum源</span></span><br><span class="line">yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">4、 安装docker,出现输入的界面都按 y</span> </span><br><span class="line">yum install -y docker-ce</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">5、 查看docker版本,验证是否验证成功</span></span><br><span class="line">docker -v</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.1.2 配置镜像加速服务</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">1.创建相关的目录</span></span><br><span class="line">sudo mkdir -p /etc/docker</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">2,加入配置</span></span><br><span class="line">sudo tee /etc/docker/daemon.json <<-'EOF'</span><br><span class="line">{</span><br><span class="line"> "registry-mirrors": ["https://cagfgua5.mirror.aliyuncs.com"]</span><br><span class="line">}</span><br><span class="line">EOF</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">3.重新加载,让配置文件生效</span></span><br><span class="line">sudo systemctl daemon-reload</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">4.重新启动Docker服务</span></span><br><span class="line">sudo systemctl restart docker</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.1.3 启动Docker服务</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">启动docker服务:</span></span><br><span class="line">systemctl start docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">停止docker服务:</span></span><br><span class="line">systemctl stop docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启docker服务:</span></span><br><span class="line">systemctl restart docker</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查看docker服务状态:</span></span><br><span class="line">systemctl status docker </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动docker服务:</span></span><br><span class="line">systemctl enable docker</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-2-使用Docker安装Mysql"><a href="#3-2-使用Docker安装Mysql" class="headerlink" title="3.2 使用Docker安装Mysql"></a>3.2 使用Docker安装Mysql</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载mysql的镜像文件 这里以下载mysql5.7为例</span></span><br><span class="line">docker pull mysql:5.7</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看是否下载成功</span></span><br><span class="line">docker images</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">使用MySQL的镜像启动一个容器</span></span><br><span class="line"> docker run -p 3306:3306 --name mysql \</span><br><span class="line">-v /mydata/mysql/log:/var/log/mysql \</span><br><span class="line">-v /mydata/mysql/data:/var/lib/mysql \</span><br><span class="line">-v /mydata/mysql/conf:/etc/mysql \</span><br><span class="line">-e MYSQL_ROOT_PASSWORD=root \</span><br><span class="line">-d mysql:5.7</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">参数说明</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">-p 3306:3306:将容器的 3306 端口映射到主机的 3306 端口</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/conf:/etc/mysql:将配置文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/log:/var/log/mysql:将日志文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/data:/var/lib/mysql/:将配置文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-e MYSQL_ROOT_PASSWORD=root:初始化 root 用户的密码</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看是否运行成功 这时使用Navicat就可以连接上了 连接不上 关闭防火墙</span></span><br><span class="line">docker ps #查看正在运行的容器</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入容器的内部</span></span><br><span class="line">docker exec -it mysql /bin/bash</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看容器内部的目录结构 我们可以看到容器的内部是一个小小的linux系统</span></span><br><span class="line">ls / #注意中间有一个空格</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看与mysql相关的目录</span></span><br><span class="line">whereis mysql</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器</span></span><br><span class="line">exit;</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在容器外部查看mysql挂载在本地的三个文件</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">容器内部文件的变化会同步在这三个文件中 conf data <span class="built_in">log</span></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">外部修改 也会同步到内部</span></span><br><span class="line">cd /mydata/mysql</span><br><span class="line">ls</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建一个mysql的配置文件设置字符编码 将下面的内容粘贴到配置文件中</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">1.创建配置文件</span></span><br><span class="line">vi /mydata/mysql/conf/my.cnf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">2.将以下的内容粘贴到配置文件配置文件内容</span></span><br><span class="line">[client]</span><br><span class="line">default-character-set=utf8</span><br><span class="line">[mysql]</span><br><span class="line">default-character-set=utf8</span><br><span class="line">[mysqld]</span><br><span class="line">init_connect='SET collation_connection = utf8_unicode_ci'</span><br><span class="line">init_connect='SET NAMES utf8'</span><br><span class="line">character-set-server=utf8</span><br><span class="line">collation-server=utf8_unicode_ci</span><br><span class="line">skip-character-set-client-handshake</span><br><span class="line">skip-name-resolve</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">3.重启MySQl的服务 让配置文件生效 这个配置文件也会同步到容器内部</span></span><br><span class="line">docker restart mysql</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置开机自启动</span></span><br><span class="line">docker update mysql --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-3-使用Docker安装Redis"><a href="#3-3-使用Docker安装Redis" class="headerlink" title="3.3 使用Docker安装Redis"></a>3.3 使用Docker安装Redis</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载redis的镜像文件 直接下载最新的</span></span><br><span class="line">docker pull redis</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建redis挂载在宿主机的配置文件和目录</span></span><br><span class="line">mkdir -p /mydata/redis/conf #创建目录</span><br><span class="line">touch /mydata/redis/conf/redis.conf #创建配置文件</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建并启动容器 这是以配置文件的方式启动 \前面有一个空格</span></span><br><span class="line">docker run -p 6379:6379 --name redis \</span><br><span class="line">-v /mydata/redis/data:/data \</span><br><span class="line">-v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf \</span><br><span class="line">-d redis redis-server /etc/redis/redis.conf</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">检查容器的运行情况</span></span><br><span class="line">docker ps</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">测试客户端的使用</span></span><br><span class="line">docker exec -it redis redis-cli</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">可以在redis客户端中使用如下命令</span></span><br><span class="line">127.0.0.1:6379> set name tom #存值</span><br><span class="line">OK</span><br><span class="line">127.0.0.1:6379> get name #取值</span><br><span class="line">"tom"</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">redis中的数据不能持久化 关机重启之后数据会丢失</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">通过以下的配置 实现redis的持久化操作 AOF的持久化</span></span><br><span class="line">vi /mydata/redis/conf/redis.conf #修改之前创建的配置文件</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">添加如下配置</span></span><br><span class="line">appendonly yes</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启redis 让配置生效</span></span><br><span class="line">docker restart redis</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置开机自启动</span></span><br><span class="line">docker update redis --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-4-使用Docker安装ElasticSearch"><a href="#3-4-使用Docker安装ElasticSearch" class="headerlink" title="3.4 使用Docker安装ElasticSearch"></a>3.4 使用Docker安装ElasticSearch</h3><p><strong>3.4.1 安装ElasticSearch</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">拉取ElasticSearch</span></span><br><span class="line">docker pull elasticsearch:7.4.2</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">ES的配置文件存放的位置</span></span><br><span class="line">mkdir -p /mydata/elasticsearch/config</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">ES相关的数据</span></span><br><span class="line">mkdir -p /mydata/elasticsearch/data</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">将<span class="string">"http.host: 0.0.0.0"</span>(可以被任何的机器访问)的配置写入elasticsearch.yml中(注意冒号后面的空格)</span></span><br><span class="line">echo "http.host: 0.0.0.0" >> /mydata/elasticsearch/config/elasticsearch.yml</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置文件的权限</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">递归更改权限,es需要访问</span></span><br><span class="line">chmod -R 777 /mydata/elasticsearch/</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">运行容器的命令 9200端口用于发送请求使用 9300端口用于集群中节点中的通信使用</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">单节点运行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">初始占用64m,最大占用5m(不指定,ES会占用所有的内存)</span></span><br><span class="line">docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \</span><br><span class="line">-e "discovery.type=single-node" \</span><br><span class="line">-e ES_JAVA_OPTS="-Xms64m -Xmx512m" \</span><br><span class="line">-v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \</span><br><span class="line">-v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \</span><br><span class="line">-v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \</span><br><span class="line">-d elasticsearch:7.4.2 </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动elasticsearch</span></span><br><span class="line">docker update elasticsearch --restart=always</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">访问端口 测试是否安装成功</span></span><br><span class="line">http://虚拟机的ip:9200/</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>安装成功之后:</p>
|
||
<p><img src="/pictures/image-20230628191936254.png" alt="image-20230628191936254"></p>
|
||
<p><strong>3.4.2 安装Kibana(可视化界面)</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取Kibana</span></span><br><span class="line">docker pull kibana:7.4.2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">这里-e是自己的elasticsearch服务地址(这里的地址一定要改为自己虚拟机的地址)</span></span><br><span class="line">docker run --name kibana -e ELASTICSEARCH_HOSTS=http://192.168.195.100:9200 -p 5601:5601 -d kibana:7.4.2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动kibana</span></span><br><span class="line">docker update kibana --restart=always</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">访问对应的网址查看服务</span></span><br><span class="line">http://虚拟机的ip:5601</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>安装成功之后</p>
|
||
<p><img src="/pictures/image-20230701104616032.png" alt="image-20230701104616032"></p>
|
||
<p><strong>3.4.3 安装IK分词器</strong></p>
|
||
<p>安装地址: <a href="https://github.com/medcl/elasticsearch-analysis-ik">https://github.com/medcl/elasticsearch-analysis-ik</a></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到es挂载在注解的plugins目录</span></span><br><span class="line">cd /mydata/elasticsearch/plugins/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装wget</span></span><br><span class="line">yum install wget </span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载ik分词器的压缩包(下载的速度不是很快(5分钟左右),建议本地下载好了之后,上传上去)</span></span><br><span class="line">wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入容器内部查看一下文件是否同步到了容器的内部</span></span><br><span class="line">docker exec -it 容器Id /bin/bash</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到plugins目录中去,这时目录中也存在elasticsearch-analysis-ik-7.4.2.zip这个压缩包</span></span><br><span class="line">cd plugins/ #使用ls查看一下</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器</span></span><br><span class="line">exit</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在主机下解压elasticsearch-analysis-ik-7.4.2.zip这个压缩包</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">zip的解压需要使用unzip解压命令 这里我们可以直接在本地解压一下 上传到plugins目录(解压的文件名为ik)</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装unzip</span></span><br><span class="line">yum install -y unzip</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看ik分词器是否安装成功</span></span><br><span class="line">docker exec -it 容器Id /bin/bash</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到bin目录</span></span><br><span class="line">cd bin/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">执行下面的命令,有ik显示即为安装成功</span></span><br><span class="line">elasticsearch-plugin list</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器,重启一下</span></span><br><span class="line">docker restart elasticsearch</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-5-使用Docker安装nginx"><a href="#3-5-使用Docker安装nginx" class="headerlink" title="3.5 使用Docker安装nginx"></a>3.5 使用Docker安装nginx</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建nginx容器挂载的目录</span></span><br><span class="line">mkdir /mydata/nginx/conf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取nginx的镜像</span></span><br><span class="line">docker pull nginx:1.10</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">随便启动一个nginx实例,为了复制其配置</span></span><br><span class="line">docker run -p 80:80 --name nginx -d nginx:1.10</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">将容器内的配置文件拷贝到conf目录(注意这里有个点和空格)</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">注意在nginx的目录下操作,(成功之后/mydata/nginx/conf目录下会有相应的配置文件和目录)</span></span><br><span class="line">docker container cp nginx:/etc/nginx /mydata/nginx/conf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">停掉并删除之前的启动的nginx</span></span><br><span class="line">docker stop nginx</span><br><span class="line">docker rm nginx</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">正式的启动容器</span></span><br><span class="line">docker run -p 80:80 --name nginx \</span><br><span class="line">-v /mydata/nginx/html:/usr/share/nginx/html \</span><br><span class="line">-v /mydata/nginx/logs:/var/log/nginx \</span><br><span class="line">-v /mydata/nginx/conf:/etc/nginx \</span><br><span class="line">-d nginx:1.10</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动nginx</span></span><br><span class="line">docker update nginx --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-6-使用Docker安装RabbitMQ"><a href="#3-6-使用Docker安装RabbitMQ" class="headerlink" title="3.6 使用Docker安装RabbitMQ"></a>3.6 使用Docker安装RabbitMQ</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">直接执行运行rabbitMQ容器的命令,没有镜像会自动下载</span></span><br><span class="line">docker run -d --name rabbitmq \</span><br><span class="line">-p 5671:5671 \</span><br><span class="line">-p 5672:5672 \</span><br><span class="line">-p 4369:4369 \</span><br><span class="line">-p 25672:25672 \</span><br><span class="line">-p 15671:15671 \</span><br><span class="line">-p 15672:15672 \</span><br><span class="line">rabbitmq:management</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动rabbitmq</span></span><br><span class="line">docker update rabbitmq --restart=always</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">测试访问</span></span><br><span class="line">虚拟机的ip:15672</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>账号:guest</p>
|
||
<p>密码:guest</p>
|
||
<p><img src="/pictures/image-20230717123217404.png" alt="image-20230717123217404"></p>
|
||
<h3 id="3-7-使用docker安装nacos"><a href="#3-7-使用docker安装nacos" class="headerlink" title="3.7 使用docker安装nacos"></a>3.7 使用docker安装nacos</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取镜像</span></span><br><span class="line">docker pull nacos/nacos-server:1.2.0</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建容器并运行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">MODE=standalone 单机版</span></span><br><span class="line">docker run --env MODE=standalone --name nacos --restart=always -d -p 8848:8848 nacos/nacos-server:1.2.0</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试访问:http://虚拟机ip:8848/nacos </p>
|
||
<p><img src="/pictures/image-20230811105925843.png" alt="image-20230811105925843"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>运维</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>环境搭建</tag>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Java程序设计基础</title>
|
||
<url>/posts/48020.html</url>
|
||
<content><![CDATA[<h3 id="韩顺平零基础学java完整版笔记"><a href="#韩顺平零基础学java完整版笔记" class="headerlink" title="韩顺平零基础学java完整版笔记"></a>韩顺平零基础学java完整版笔记</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/韩顺平_循序渐进学Java零基础【完整笔记】.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Linux从入门到进阶</title>
|
||
<url>/posts/8957.html</url>
|
||
<content><![CDATA[<div class="note success flat"><p>本篇博客转载于传智播客黑马程序员,只作在线笔记使用,详细的课程资料请关注黑马程序员!</p>
|
||
</div>
|
||
|
||
<p>Linux相关的书籍: <a href="https://jasonsgong.gitee.io/posts/3661.html">技术书籍-Linux指令大全 | The Blog (gitee.io)</a></p>
|
||
<h1 id="一-初识Linux"><a href="#一-初识Linux" class="headerlink" title="一.初识Linux"></a>一.初识Linux</h1><p> Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。</p>
|
||
<p><img src="/pictures/image-20230919214601245.png" alt="image-20230919214601245"></p>
|
||
<p>视频链接: <a href="https://www.bilibili.com/video/BV1n84y1i7td/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584">https://www.bilibili.com/video/BV1n84y1i7td/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584</a></p>
|
||
<h1 id="二-Linux的安装和配置教程"><a href="#二-Linux的安装和配置教程" class="headerlink" title="二.Linux的安装和配置教程"></a>二.Linux的安装和配置教程</h1><h2 id="1-通过虚拟机安装Linux"><a href="#1-通过虚拟机安装Linux" class="headerlink" title="1.通过虚拟机安装Linux"></a>1.通过虚拟机安装Linux</h2><p>Linux安装教程: <a href="https://jasonsgong.gitee.io/posts/47407.html">VMWare虚拟机安装Linux教程 | The Blog (gitee.io)</a></p>
|
||
<p>Linux设置静态IP:<a href="https://jasonsgong.gitee.io/posts/21883.html">Linux设置静态IP | The Blog (gitee.io)</a></p>
|
||
<h2 id="2-通过WSL获取Linux环境"><a href="#2-通过WSL获取Linux环境" class="headerlink" title="2.通过WSL获取Linux环境"></a>2.通过WSL获取Linux环境</h2><p><strong>安装教程:</strong> <a href="https://jasonsgong.gitee.io/posts/25154.html">Windows10的Linux子系统WSL的安装和使用 | The Blog (gitee.io)</a></p>
|
||
<h1 id="三-Linux的目录结构"><a href="#三-Linux的目录结构" class="headerlink" title="三.Linux的目录结构"></a>三.Linux的目录结构</h1><p><img src="/pictures/image-20230919230906304.png" alt="image-20230919230906304"></p>
|
||
<p><img src="/pictures/image-20230919231127383.png" alt="image-20230919231127383"></p>
|
||
<h1 id="四-LInux基础命令"><a href="#四-LInux基础命令" class="headerlink" title="四.LInux基础命令"></a>四.LInux基础命令</h1><h2 id="ls命令"><a href="#ls命令" class="headerlink" title="ls命令"></a>ls命令</h2><p>功能:列出文件夹信息</p>
|
||
<p>语法:<code>ls [-l -h -a] [参数]</code></p>
|
||
<ul>
|
||
<li>参数:被查看的文件夹,不提供参数,表示查看当前工作目录</li>
|
||
<li>-l,以列表形式查看</li>
|
||
<li>-h,配合-l,以更加人性化的方式显示文件大小</li>
|
||
<li>-a,显示隐藏文件</li>
|
||
</ul>
|
||
<h3 id="隐藏文件、文件夹"><a href="#隐藏文件、文件夹" class="headerlink" title="隐藏文件、文件夹"></a>隐藏文件、文件夹</h3><p>在Linux中以 <code>.</code>开头的,均是隐藏的。</p>
|
||
<p>默认不显示出来,需要 <code>-a</code>选项才可查看到。</p>
|
||
<h2 id="pwd命令"><a href="#pwd命令" class="headerlink" title="pwd命令"></a>pwd命令</h2><p>功能:展示当前工作目录</p>
|
||
<p>语法:<code>pwd</code></p>
|
||
<h2 id="cd命令"><a href="#cd命令" class="headerlink" title="cd命令"></a>cd命令</h2><p>功能:切换工作目录</p>
|
||
<p>语法:<code>cd [目标目录]</code></p>
|
||
<p>参数:目标目录,要切换去的地方,不提供默认切换到 <code>当前登录用户HOME目录</code></p>
|
||
<h2 id="HOME目录"><a href="#HOME目录" class="headerlink" title="HOME目录"></a>HOME目录</h2><p>每一个用户在Linux系统中都有自己的专属工作目录,称之为HOME目录。</p>
|
||
<ul>
|
||
<li>普通用户的HOME目录,默认在:<code>/home/用户名</code></li>
|
||
<li>root用户的HOME目录,在:<code>/root</code></li>
|
||
</ul>
|
||
<p>FinalShell登陆终端后,默认的工作目录就是用户的HOME目录</p>
|
||
<h2 id="相对路径、绝对路径"><a href="#相对路径、绝对路径" class="headerlink" title="相对路径、绝对路径"></a>相对路径、绝对路径</h2><ul>
|
||
<li><p>相对路径,==非==<code>/</code>开头的称之为相对路径</p>
|
||
<p>相对路径表示以 <code>当前目录</code>作为起点,去描述路径,如 <code>test/a.txt</code>,表示当前工作目录内的test文件夹内的a.txt文件</p>
|
||
</li>
|
||
<li><p>绝对路径,==以==<code>/</code>开头的称之为绝对路径</p>
|
||
<p>绝对路径从 <code>根</code>开始描述路径</p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="特殊路径符"><a href="#特殊路径符" class="headerlink" title="特殊路径符"></a>特殊路径符</h2><ul>
|
||
<li><code>.</code>,表示当前,比如./a.txt,表示当前文件夹内的 <code>a.txt</code>文件</li>
|
||
<li><code>..</code>,表示上级目录,比如 <code>../</code>表示上级目录,<code>../../</code>表示上级的上级目录</li>
|
||
<li><code>~</code>,表示用户的HOME目录,比如 <code>cd ~</code>,即可切回用户HOME目录</li>
|
||
</ul>
|
||
<h2 id="mkdir命令"><a href="#mkdir命令" class="headerlink" title="mkdir命令"></a>mkdir命令</h2><p>功能:创建文件夹</p>
|
||
<p>语法:<code>mkdir [-p] 参数</code></p>
|
||
<ul>
|
||
<li>参数:被创建文件夹的路径</li>
|
||
<li>选项:-p,可选,表示创建前置路径</li>
|
||
</ul>
|
||
<h2 id="touch命令"><a href="#touch命令" class="headerlink" title="touch命令"></a>touch命令</h2><p>功能:创建文件</p>
|
||
<p>语法:<code>touch 参数</code></p>
|
||
<ul>
|
||
<li>参数:被创建的文件路径</li>
|
||
</ul>
|
||
<h2 id="cat命令"><a href="#cat命令" class="headerlink" title="cat命令"></a>cat命令</h2><p>功能:查看文件内容</p>
|
||
<p>语法:<code>cat 参数</code></p>
|
||
<ul>
|
||
<li>参数:被查看的文件路径</li>
|
||
</ul>
|
||
<h2 id="more命令"><a href="#more命令" class="headerlink" title="more命令"></a>more命令</h2><p>功能:查看文件,可以支持翻页查看</p>
|
||
<p>语法:<code>more 参数</code></p>
|
||
<ul>
|
||
<li>参数:被查看的文件路径</li>
|
||
<li>在查看过程中:<ul>
|
||
<li><code>空格</code>键翻页</li>
|
||
<li><code>q</code>退出查看</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="cp命令"><a href="#cp命令" class="headerlink" title="cp命令"></a>cp命令</h2><p>功能:复制文件、文件夹</p>
|
||
<p>语法:<code>cp [-r] 参数1 参数2</code></p>
|
||
<ul>
|
||
<li>参数1,被复制的</li>
|
||
<li>参数2,要复制去的地方</li>
|
||
<li>选项:-r,可选,复制文件夹使用</li>
|
||
</ul>
|
||
<p>示例:</p>
|
||
<ul>
|
||
<li>cp a.txt b.txt,复制当前目录下a.txt为b.txt</li>
|
||
<li>cp a.txt test/,复制当前目录a.txt到test文件夹内</li>
|
||
<li>cp -r test test2,复制文件夹test到当前文件夹内为test2存在</li>
|
||
</ul>
|
||
<h2 id="mv命令"><a href="#mv命令" class="headerlink" title="mv命令"></a>mv命令</h2><p>功能:移动文件、文件夹</p>
|
||
<p>语法:<code>mv 参数1 参数2</code></p>
|
||
<ul>
|
||
<li>参数1:被移动的</li>
|
||
<li>参数2:要移动去的地方,参数2如果不存在,则会进行改名</li>
|
||
</ul>
|
||
<h2 id="rm命令"><a href="#rm命令" class="headerlink" title="rm命令"></a>rm命令</h2><p>功能:删除文件、文件夹</p>
|
||
<p>语法:<code>rm [-r -f] 参数...参数</code></p>
|
||
<ul>
|
||
<li>参数:支持多个,每一个表示被删除的,空格进行分隔</li>
|
||
<li>选项:-r,删除文件夹使用</li>
|
||
<li>选项:-f,强制删除,不会给出确认提示,一般root用户会用到</li>
|
||
</ul>
|
||
<blockquote>
|
||
<p>rm命令很危险,一定要注意,特别是切换到root用户的时候。</p>
|
||
</blockquote>
|
||
<p><img src="/pictures/image-20230920231224351.png" alt="image-20230920231224351"></p>
|
||
<h2 id="which命令"><a href="#which命令" class="headerlink" title="which命令"></a>which命令</h2><p>功能:查看命令的程序本体文件路径</p>
|
||
<p>语法:<code>which 参数</code></p>
|
||
<ul>
|
||
<li>参数:被查看的命令</li>
|
||
</ul>
|
||
<h2 id="find命令"><a href="#find命令" class="headerlink" title="find命令"></a>find命令</h2><p>功能:搜索文件</p>
|
||
<p>语法1按文件名搜索:<code>find 路径 -name 参数</code></p>
|
||
<ul>
|
||
<li>路径,搜索的起始路径</li>
|
||
<li>参数,搜索的关键字,支持通配符*, 比如:<code>*</code>test表示搜索任意以test结尾的文件</li>
|
||
</ul>
|
||
<h2 id="grep命令"><a href="#grep命令" class="headerlink" title="grep命令"></a>grep命令</h2><p>功能:过滤关键字</p>
|
||
<p>语法:<code>grep [-n] 关键字 文件路径</code></p>
|
||
<ul>
|
||
<li>选项-n,可选,表示在结果中显示匹配的行的行号。</li>
|
||
<li>参数,关键字,必填,表示过滤的关键字,带有空格或其它特殊符号,建议使用””将关键字包围起来</li>
|
||
<li>参数,文件路径,必填,表示要过滤内容的文件路径,可作为内容输入端口</li>
|
||
</ul>
|
||
<blockquote>
|
||
<p>参数文件路径,可以作为管道符的输入</p>
|
||
</blockquote>
|
||
<h2 id="wc命令"><a href="#wc命令" class="headerlink" title="wc命令"></a>wc命令</h2><p>功能:统计</p>
|
||
<p>语法:<code>wc [-c -m -l -w] 文件路径</code></p>
|
||
<ul>
|
||
<li>选项,-c,统计bytes数量</li>
|
||
<li>选项,-m,统计字符数量</li>
|
||
<li>选项,-l,统计行数</li>
|
||
<li>选项,-w,统计单词数量</li>
|
||
<li>参数,文件路径,被统计的文件,可作为内容输入端口</li>
|
||
</ul>
|
||
<blockquote>
|
||
<p>参数文件路径,可作为管道符的输入</p>
|
||
</blockquote>
|
||
<h2 id="管道符"><a href="#管道符" class="headerlink" title="管道符|"></a>管道符|</h2><p>写法:<code>|</code></p>
|
||
<p>功能:将符号左边的结果,作为符号右边的输入</p>
|
||
<p>示例:</p>
|
||
<p><code>cat a.txt | grep itheima</code>,将cat a.txt的结果,作为grep命令的输入,用来过滤 <code>itheima</code>关键字</p>
|
||
<p>可以支持嵌套:</p>
|
||
<p><code>cat a.txt | grep itheima | grep itcast</code></p>
|
||
<h2 id="echo命令"><a href="#echo命令" class="headerlink" title="echo命令"></a>echo命令</h2><p>功能:输出内容</p>
|
||
<p>语法:<code>echo 参数</code></p>
|
||
<ul>
|
||
<li>参数:被输出的内容</li>
|
||
</ul>
|
||
<h2 id="反引号"><a href="#反引号" class="headerlink" title="`反引号"></a>`反引号</h2><p>功能:被两个反引号包围的内容,会作为命令执行</p>
|
||
<p>示例:</p>
|
||
<ul>
|
||
<li>echo `pwd`,会输出当前工作目录</li>
|
||
</ul>
|
||
<h2 id="tail命令"><a href="#tail命令" class="headerlink" title="tail命令"></a>tail命令</h2><p>功能:查看文件尾部内容</p>
|
||
<p>语法:<code>tail [-f] 参数</code></p>
|
||
<ul>
|
||
<li>参数:被查看的文件</li>
|
||
<li>选项:-f,持续跟踪文件修改</li>
|
||
</ul>
|
||
<h2 id="head命令"><a href="#head命令" class="headerlink" title="head命令"></a>head命令</h2><p>功能:查看文件头部内容</p>
|
||
<p>语法:<code>head [-n] 参数</code></p>
|
||
<ul>
|
||
<li>参数:被查看的文件</li>
|
||
<li>选项:-n,查看的行数</li>
|
||
</ul>
|
||
<h2 id="重定向符"><a href="#重定向符" class="headerlink" title="重定向符"></a>重定向符</h2><p>功能:将符号左边的结果,输出到右边指定的文件中去</p>
|
||
<ul>
|
||
<li><code>></code>,表示覆盖输出</li>
|
||
<li><code>>></code>,表示追加输出</li>
|
||
</ul>
|
||
<h2 id="vi编辑器"><a href="#vi编辑器" class="headerlink" title="vi编辑器"></a>vi编辑器</h2><h3 id="命令模式快捷键"><a href="#命令模式快捷键" class="headerlink" title="命令模式快捷键"></a>命令模式快捷键</h3><p><img src="/pictures/20221027215841.png" alt="image-20221027215841573"></p>
|
||
<p><img src="/pictures/20221027215846.png" alt="image-20221027215846581"></p>
|
||
<p><img src="/pictures/20221027215849.png" alt="image-20221027215849668"></p>
|
||
<h3 id="底线命令快捷键"><a href="#底线命令快捷键" class="headerlink" title="底线命令快捷键"></a>底线命令快捷键</h3><p><img src="/pictures/20221027215858.png" alt="image-20221027215858967"></p>
|
||
<h2 id="命令的选项"><a href="#命令的选项" class="headerlink" title="命令的选项"></a>命令的选项</h2><p>我们学习的一系列Linux命令,它们所拥有的选项都是非常多的。</p>
|
||
<p>比如,简单的ls命令就有:-a -A -b -c -C -d -D -f -F -g -G -h -H -i -I -k -l -L -m -n -N -o -p -q -Q -r-R -s -S -t -T -u -U -v -w -x -X -1等选项,可以发现选项是极其多的。</p>
|
||
<p>课程中, 并不会将全部的选项都进行讲解,否则,一个ls命令就可能讲解2小时之久。</p>
|
||
<p>课程中,会对常见的选项进行讲解, 足够满足绝大多数的学习、工作场景。</p>
|
||
<h3 id="查看命令的帮助"><a href="#查看命令的帮助" class="headerlink" title="查看命令的帮助"></a>查看命令的帮助</h3><p>可以通过:<code>命令 --help</code>查看命令的帮助手册</p>
|
||
<p><img src="/pictures/20221027220005.png" alt="image-20221027220005610"></p>
|
||
<h3 id="查看命令的详细手册"><a href="#查看命令的详细手册" class="headerlink" title="查看命令的详细手册"></a>查看命令的详细手册</h3><p>可以通过:<code>man 命令</code>查看某命令的详细手册</p>
|
||
<p><img src="/pictures/20221027220010.png" alt="image-20221027220009949"></p>
|
||
<h1 id="五-Linux常用操作"><a href="#五-Linux常用操作" class="headerlink" title="五.Linux常用操作"></a>五.Linux常用操作</h1><h2 id="软件安装"><a href="#软件安装" class="headerlink" title="软件安装"></a>软件安装</h2><ul>
|
||
<li>CentOS系统使用:<ul>
|
||
<li>yum [install remove search] [-y] 软件名称<ul>
|
||
<li>install 安装</li>
|
||
<li>remove 卸载</li>
|
||
<li>search 搜索</li>
|
||
<li>-y,自动确认</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li>Ubuntu系统使用<ul>
|
||
<li>apt [install remove search] [-y] 软件名称<ul>
|
||
<li>install 安装</li>
|
||
<li>remove 卸载</li>
|
||
<li>search 搜索</li>
|
||
<li>-y,自动确认</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<blockquote>
|
||
<p>yum 和 apt 均需要root权限</p>
|
||
</blockquote>
|
||
<h2 id="systemctl"><a href="#systemctl" class="headerlink" title="systemctl"></a>systemctl</h2><p>功能:控制系统服务的启动关闭等</p>
|
||
<p>语法:<code>systemctl start | stop | restart | disable | enable | status 服务名</code></p>
|
||
<ul>
|
||
<li>start,启动</li>
|
||
<li>stop,停止</li>
|
||
<li>status,查看状态</li>
|
||
<li>disable,关闭开机自启</li>
|
||
<li>enable,开启开机自启</li>
|
||
<li>restart,重启</li>
|
||
</ul>
|
||
<h2 id="软链接"><a href="#软链接" class="headerlink" title="软链接"></a>软链接</h2><p>功能:创建文件、文件夹软链接(快捷方式)</p>
|
||
<p>语法:<code>ln -s 参数1 参数2</code></p>
|
||
<ul>
|
||
<li>参数1:被链接的</li>
|
||
<li>参数2:要链接去的地方(快捷方式的名称和存放位置)</li>
|
||
</ul>
|
||
<h2 id="日期"><a href="#日期" class="headerlink" title="日期"></a>日期</h2><p>语法:<code>date [-d] [+格式化字符串]</code></p>
|
||
<ul>
|
||
<li><p>-d 按照给定的字符串显示日期,一般用于日期计算</p>
|
||
</li>
|
||
<li><p>格式化字符串:通过特定的字符串标记,来控制显示的日期格式</p>
|
||
<ul>
|
||
<li>%Y 年%y 年份后两位数字 (00..99)</li>
|
||
<li>%m 月份 (01..12)</li>
|
||
<li>%d 日 (01..31)</li>
|
||
<li>%H 小时 (00..23)</li>
|
||
<li>%M 分钟 (00..59)</li>
|
||
<li>%S 秒 (00..60)</li>
|
||
<li>%s 自 1970-01-01 00:00:00 UTC 到现在的秒数</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p>示例:</p>
|
||
<ul>
|
||
<li><p>按照2022-01-01的格式显示日期</p>
|
||
<p><img src="/pictures/20221027220514.png" alt="image-20221027220514640"></p>
|
||
</li>
|
||
<li><p>按照2022-01-01 10:00:00的格式显示日期</p>
|
||
<p><img src="/pictures/20221027220525.png" alt="image-20221027220525625"></p>
|
||
</li>
|
||
<li><p>-d选项日期计算</p>
|
||
<p><img src="/pictures/20221027220429.png" alt="image-20221027220429831"></p>
|
||
<ul>
|
||
<li><p>支持的时间标记为:</p>
|
||
<p><img src="/pictures/20221027220449.png" alt="image-20221027220449312"></p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="时区"><a href="#时区" class="headerlink" title="时区"></a>时区</h2><p>修改时区为中国时区</p>
|
||
<p><img src="/pictures/20221027220554.png" alt="image-20221027220554654"></p>
|
||
<h2 id="ntp"><a href="#ntp" class="headerlink" title="ntp"></a>ntp</h2><p>功能:同步时间</p>
|
||
<p>安装:<code>yum install -y ntp</code></p>
|
||
<p>启动管理:<code>systemctl start | stop | restart | status | disable | enable ntpd</code></p>
|
||
<p>手动校准时间:<code>ntpdate -u ntp.aliyun.com</code></p>
|
||
<h2 id="ip地址"><a href="#ip地址" class="headerlink" title="ip地址"></a>ip地址</h2><p>格式:a.b.c.d</p>
|
||
<ul>
|
||
<li>abcd为0~255的数字</li>
|
||
</ul>
|
||
<p>特殊IP:</p>
|
||
<ul>
|
||
<li>127.0.0.1,表示本机</li>
|
||
<li>0.0.0.0<ul>
|
||
<li>可以表示本机</li>
|
||
<li>也可以表示任意IP(看使用场景)</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p>查看ip:<code>ifconfig</code></p>
|
||
<h2 id="主机名"><a href="#主机名" class="headerlink" title="主机名"></a>主机名</h2><p>功能:Linux系统的名称</p>
|
||
<p>查看:<code>hostname</code></p>
|
||
<p>设置:<code>hostnamectl set-hostname 主机名</code></p>
|
||
<h2 id="配置VMware固定IP"><a href="#配置VMware固定IP" class="headerlink" title="配置VMware固定IP"></a>配置VMware固定IP</h2><ol>
|
||
<li><p>修改VMware网络,参阅PPT,图太多</p>
|
||
</li>
|
||
<li><p>设置Linux内部固定IP</p>
|
||
<p>修改文件:<code>/etc/sysconfig/network-scripts/ifcfg-ens33</code></p>
|
||
<p>示例文件内容:</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">TYPE="Ethernet"</span><br><span class="line">PROXY_METHOD="none"</span><br><span class="line">BROWSER_ONLY="no"</span><br><span class="line">BOOTPROTO="static" # 改为static,固定IP</span><br><span class="line">DEFROUTE="yes"</span><br><span class="line">IPV4_FAILURE_FATAL="no"</span><br><span class="line">IPV6INIT="yes"</span><br><span class="line">IPV6_AUTOCONF="yes"</span><br><span class="line">IPV6_DEFROUTE="yes"</span><br><span class="line">IPV6_FAILURE_FATAL="no"</span><br><span class="line">IPV6_ADDR_GEN_MODE="stable-privacy"</span><br><span class="line">NAME="ens33"</span><br><span class="line">UUID="1b0011cb-0d2e-4eaa-8a11-af7d50ebc876"</span><br><span class="line">DEVICE="ens33"</span><br><span class="line">ONBOOT="yes"</span><br><span class="line">IPADDR="192.168.88.131" # IP地址,自己设置,要匹配网络范围</span><br><span class="line">NETMASK="255.255.255.0" # 子网掩码,固定写法255.255.255.0</span><br><span class="line">GATEWAY="192.168.88.2" # 网关,要和VMware中配置的一致</span><br><span class="line">DNS1="192.168.88.2" # DNS1服务器,和网关一致即可</span><br></pre></td></tr></table></figure></li>
|
||
</ol>
|
||
<h2 id="ps命令"><a href="#ps命令" class="headerlink" title="ps命令"></a>ps命令</h2><p>功能:查看进程信息</p>
|
||
<p>语法:<code>ps -ef</code>,查看全部进程信息,可以搭配grep做过滤:<code>ps -ef | grep xxx</code></p>
|
||
<h2 id="kill命令"><a href="#kill命令" class="headerlink" title="kill命令"></a>kill命令</h2><p><img src="/pictures/20221027221303.png" alt="image-20221027221303037"></p>
|
||
<h2 id="nmap命令"><a href="#nmap命令" class="headerlink" title="nmap命令"></a>nmap命令</h2><p><img src="/pictures/20221027221241.png" alt="image-20221027221241123"></p>
|
||
<h2 id="netstat命令"><a href="#netstat命令" class="headerlink" title="netstat命令"></a>netstat命令</h2><p>功能:查看端口占用</p>
|
||
<p>用法:<code>netstat -anp | grep xxx</code></p>
|
||
<h2 id="ping命令"><a href="#ping命令" class="headerlink" title="ping命令"></a>ping命令</h2><p>测试网络是否联通</p>
|
||
<p>语法:<code>ping [-c num] 参数</code></p>
|
||
<p><img src="/pictures/20221027221129.png" alt="image-20221027221129782"></p>
|
||
<h2 id="wget命令"><a href="#wget命令" class="headerlink" title="wget命令"></a>wget命令</h2><p><img src="/pictures/20221027221149.png" alt="image-20221027221148964"></p>
|
||
<h2 id="curl命令"><a href="#curl命令" class="headerlink" title="curl命令"></a>curl命令</h2><p><img src="/pictures/20221027221201.png" alt="image-20221027221201079"></p>
|
||
<p><img src="/pictures/20221027221210.png" alt="image-20221027221210518"></p>
|
||
<h2 id="top命令"><a href="#top命令" class="headerlink" title="top命令"></a>top命令</h2><p>功能:查看主机运行状态</p>
|
||
<p>语法:<code>top</code>,查看基础信息</p>
|
||
<p>可用选项:</p>
|
||
<p><img src="/pictures/20221027221340.png" alt="image-20221027221340729"></p>
|
||
<p>交互式模式中,可用快捷键:</p>
|
||
<p><img src="/pictures/20221027221354.png" alt="image-20221027221354137"></p>
|
||
<h2 id="df命令"><a href="#df命令" class="headerlink" title="df命令"></a>df命令</h2><p>查看磁盘占用</p>
|
||
<p><img src="/pictures/20221027221413.png" alt="image-20221027221413787"></p>
|
||
<h2 id="iostat命令"><a href="#iostat命令" class="headerlink" title="iostat命令"></a>iostat命令</h2><p>查看CPU、磁盘的相关信息</p>
|
||
<p><img src="/pictures/20221027221440.png" alt="image-20221027221439990"></p>
|
||
<p><img src="/pictures/20221027221514.png" alt="image-20221027221514237"></p>
|
||
<h2 id="sar命令"><a href="#sar命令" class="headerlink" title="sar命令"></a>sar命令</h2><p>查看网络统计</p>
|
||
<p><img src="/pictures/20221027221545.png" alt="image-20221027221545822"></p>
|
||
<h2 id="环境变量"><a href="#环境变量" class="headerlink" title="环境变量"></a>环境变量</h2><ul>
|
||
<li>临时设置:export 变量名=变量值</li>
|
||
<li>永久设置:<ul>
|
||
<li>针对用户,设置用户HOME目录内:<code>.bashrc</code>文件</li>
|
||
<li>针对全局,设置 <code>/etc/profile</code></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h3 id="PATH变量"><a href="#PATH变量" class="headerlink" title="PATH变量"></a>PATH变量</h3><p>记录了执行程序的搜索路径</p>
|
||
<p>可以将自定义路径加入PATH内,实现自定义命令在任意地方均可执行的效果</p>
|
||
<h2 id="符号"><a href="#符号" class="headerlink" title="$符号"></a>$符号</h2><p>可以取出指定的环境变量的值</p>
|
||
<p>语法:<code>$变量名</code></p>
|
||
<p>示例:</p>
|
||
<p><code>echo $PATH</code>,输出PATH环境变量的值</p>
|
||
<p><code>echo ${PATH}ABC</code>,输出PATH环境变量的值以及ABC</p>
|
||
<p>如果变量名和其它内容混淆在一起,可以使用${}</p>
|
||
<h2 id="压缩解压"><a href="#压缩解压" class="headerlink" title="压缩解压"></a>压缩解压</h2><h3 id="压缩"><a href="#压缩" class="headerlink" title="压缩"></a>压缩</h3><p><code>tar -zcvf 压缩包 被压缩1...被压缩2...被压缩N</code></p>
|
||
<ul>
|
||
<li>-z表示使用gzip,可以不写</li>
|
||
</ul>
|
||
<p><code>zip [-r] 参数1 参数2 参数N</code></p>
|
||
<p><img src="/pictures/20221027221906.png" alt="image-20221027221906247"></p>
|
||
<h3 id="解压"><a href="#解压" class="headerlink" title="解压"></a>解压</h3><p><code>tar -zxvf 被解压的文件 -C 要解压去的地方</code></p>
|
||
<ul>
|
||
<li>-z表示使用gzip,可以省略</li>
|
||
<li>-C,可以省略,指定要解压去的地方,不写解压到当前目录</li>
|
||
</ul>
|
||
<p><code>unzip [-d] 参数</code></p>
|
||
<p><img src="/pictures/20221027221939.png" alt="image-20221027221939899"></p>
|
||
<h2 id="su命令"><a href="#su命令" class="headerlink" title="su命令"></a>su命令</h2><p>切换用户</p>
|
||
<p>语法:<code>su [-] [用户]</code></p>
|
||
<p><img src="/pictures/20221027222021.png" alt="image-20221027222021619"></p>
|
||
<h2 id="sudo命令"><a href="#sudo命令" class="headerlink" title="sudo命令"></a>sudo命令</h2><p><img src="/pictures/20221027222035.png" alt="image-20221027222035337"></p>
|
||
<p>比如:</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">itheima ALL=(ALL) NOPASSWD: ALL</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在visudo内配置如上内容,可以让itheima用户,无需密码直接使用 <code>sudo</code></p>
|
||
<h2 id="chmod命令"><a href="#chmod命令" class="headerlink" title="chmod命令"></a>chmod命令</h2><p>修改文件、文件夹权限</p>
|
||
<p>语法:<code>chmod [-R] 权限 参数</code></p>
|
||
<ul>
|
||
<li><p>权限,要设置的权限,比如755,表示:<code>rwxr-xr-x</code></p>
|
||
<p><img src="/pictures/20221027222157.png" alt="image-20221027222157276"></p>
|
||
</li>
|
||
<li><p>参数,被修改的文件、文件夹</p>
|
||
</li>
|
||
<li><p>选项-R,设置文件夹和其内部全部内容一样生效</p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="chown命令"><a href="#chown命令" class="headerlink" title="chown命令"></a>chown命令</h2><p>修改文件、文件夹所属用户、组</p>
|
||
<p>语法:<code>chown [-R] [用户][:][用户组] 文件或文件夹</code></p>
|
||
<p><img src="/pictures/20221027222326.png" alt="image-20221027222326192"></p>
|
||
<h2 id="用户组管理"><a href="#用户组管理" class="headerlink" title="用户组管理"></a>用户组管理</h2><p><img src="/pictures/20221027222354.png" alt="image-20221027222354498"></p>
|
||
<h2 id="用户管理"><a href="#用户管理" class="headerlink" title="用户管理"></a>用户管理</h2><p><img src="/pictures/20221027222407.png" alt="image-20221027222407618"></p>
|
||
<h2 id="genenv命令"><a href="#genenv命令" class="headerlink" title="genenv命令"></a>genenv命令</h2><ul>
|
||
<li><p><code>getenv group</code>,查看系统全部的用户组</p>
|
||
<p><img src="/pictures/20221027222446.png" alt="image-20221027222446514"></p>
|
||
</li>
|
||
<li><p><code>getenv passwd</code>,查看系统全部的用户</p>
|
||
<p><img src="/pictures/20221027222512.png" alt="image-20221027222512274"></p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="env命令"><a href="#env命令" class="headerlink" title="env命令"></a>env命令</h2><p>查看系统全部的环境变量</p>
|
||
<p>语法:<code>env</code></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>运维</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Linux设置静态IP</title>
|
||
<url>/posts/21883.html</url>
|
||
<content><![CDATA[<h2 id="1-查看IP的状态"><a href="#1-查看IP的状态" class="headerlink" title="1.查看IP的状态"></a>1.查看IP的状态</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看是否为静态ip</span></span><br><span class="line">ip addr</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>如图所示的是动态IP,我们要配置静态IP</p>
|
||
<p><img src="/pictures/image-20230511230406172.png" alt="image-20230511230406172"></p>
|
||
<h2 id="2-设置网络"><a href="#2-设置网络" class="headerlink" title="2.设置网络"></a>2.设置网络</h2><h3 id="2-1-进入配置文件对网络进行配置"><a href="#2-1-进入配置文件对网络进行配置" class="headerlink" title="2.1 进入配置文件对网络进行配置"></a>2.1 进入配置文件对网络进行配置</h3><p>1.修改配置文件中的配置</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入配置文件的命令</span></span><br><span class="line">vim /etc/sysconfig/network-scripts/ifcfg-ens33</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230511233324998.png" alt="image-20230511233324998"></p>
|
||
<p>2.重启网络</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启网络的配置</span></span><br><span class="line">systemctl restart network</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看设置的IP情况</span></span><br><span class="line">ifconfig</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230511233838595.png" alt="image-20230511233838595"></p>
|
||
<p>在主机上使用ping命令ping 刚才的设置的静态IP也可以ping通</p>
|
||
<p><img src="/pictures/image-20230511234154523.png" alt="image-20230511234154523"></p>
|
||
<p>虚拟机ping外部也可以ping通</p>
|
||
<p><img src="/pictures/image-20230511235621228.png" alt="image-20230511235621228"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>MySQL5.7安装教程</title>
|
||
<url>/posts/17259.html</url>
|
||
<content><![CDATA[<h2 id="1-下载的地址"><a href="#1-下载的地址" class="headerlink" title="1.下载的地址"></a>1.下载的地址</h2><p>下载之后直接解压使用(下载之前看电脑上有没有mysql的服务,如果有先删除),解压的文件路径最好不要有中文</p>
|
||
<p>查看的方式</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">Win + R 输入 services.msc 回车打开 找是否有一个名为mysqld的服务</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>删除的指令</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">sc delete mysql</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>Mysql5.7地址:<a href="https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip">https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip</a></p>
|
||
<h2 id="2-配置环境变量"><a href="#2-配置环境变量" class="headerlink" title="2.配置环境变量"></a>2.配置环境变量</h2><p>添加环境变量 : 电脑-属性-高级系统设置-环境变量,在Path 环境变量增加mysql的安装目录\bin目录</p>
|
||
<h2 id="3-在mysql的安装目录下创建my-ini文件"><a href="#3-在mysql的安装目录下创建my-ini文件" class="headerlink" title="3.在mysql的安装目录下创建my.ini文件"></a>3.在mysql的安装目录下创建my.ini文件</h2><p><img src="/pictures/image-20230312152323079.png" alt="image-20230312152323079"></p>
|
||
<p>my.ini</p>
|
||
<figure class="highlight ini"><table><tr><td class="code"><pre><span class="line"><span class="section">[client]</span></span><br><span class="line"><span class="attr">port</span>=<span class="number">3306</span></span><br><span class="line"><span class="attr">default-character-set</span>=utf8</span><br><span class="line"><span class="section">[mysqld]</span></span><br><span class="line"><span class="comment"># 设置为自己MYSQL的安装目录</span></span><br><span class="line"><span class="attr">basedir</span>=C:\mysql\mysql-<span class="number">5.7</span>.<span class="number">19</span>-winx64\</span><br><span class="line"><span class="comment"># 设置为MYSQL的数据目录,这个目录系统帮我们创建</span></span><br><span class="line"><span class="attr">datadir</span>=C:\mysql\mysql-<span class="number">5.7</span>.<span class="number">19</span>-winx64\data\</span><br><span class="line"><span class="attr">port</span>=<span class="number">3306</span></span><br><span class="line"><span class="attr">character_set_server</span>=utf8</span><br><span class="line"><span class="comment">#跳过安全检查,注释后需要输入正确的用户名和密码才能登录</span></span><br><span class="line"><span class="comment">#第一登录不要注释掉,第一次进入没有设置密码,就可以不用输入密码了</span></span><br><span class="line"><span class="comment">#skip-grant-tables</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="4-下载服务和初始化数据库"><a href="#4-下载服务和初始化数据库" class="headerlink" title="4.下载服务和初始化数据库"></a>4.下载服务和初始化数据库</h2><p>1.下载mysql的服务</p>
|
||
<p> 使用<strong>管理员身份</strong>打开 cmd , 并切换到mysql-5.7.19-winx64\bin 目录下, 执行 mysqld -install</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">cd **/**/**/mysql-5.7.19-winx64\bin</span><br><span class="line">mysqld -install</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.初始化数据 </p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">mysqld --initialize-insecure --user=mysql</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="5-启动和停止mysql的服务"><a href="#5-启动和停止mysql的服务" class="headerlink" title="5.启动和停止mysql的服务"></a>5.启动和停止mysql的服务</h2><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">#开启mysql的服务</span><br><span class="line">net start mysql</span><br><span class="line">#停止mysql的服务</span><br><span class="line">net stop mysql</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="6-修改账户和密码"><a href="#6-修改账户和密码" class="headerlink" title="6.修改账户和密码"></a>6.修改账户和密码</h2><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">#9. 进入mysql 管理终端: 初次登录没有密码,直接按两下回车键进入</span><br><span class="line">mysql -u root -p</span><br><span class="line">进入之后执行:</span><br><span class="line">use mysql;</span><br><span class="line">update user set authentication_string=password('123456') where user='root' and Host='localhost';</span><br><span class="line">flush privileges; #刷新权限</span><br><span class="line">quit #退出</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>注释掉my.ini中的跳过权限检查 #skip-grant-tables </p>
|
||
<h2 id="7-重启mysql的服务"><a href="#7-重启mysql的服务" class="headerlink" title="7.重启mysql的服务"></a>7.重启mysql的服务</h2><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">net stop mysql</span><br><span class="line">net start mysql</span><br><span class="line">mysql -u root -p #输入刚才设置的密码进入mysql服务</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>安装失败,删除服务,重新安装</p>
|
||
<h2 id="8-可视化工具"><a href="#8-可视化工具" class="headerlink" title="8.可视化工具"></a>8.可视化工具</h2><p>推荐SQLyog Navicat </p>
|
||
<p><a href="https://wwvc.lanzouy.com/iJTRn0wwz9fe">网盘地址</a></p>
|
||
<h2 id="PDF版本的教程-来源于韩顺平教育-转载注明出处"><a href="#PDF版本的教程-来源于韩顺平教育-转载注明出处" class="headerlink" title="PDF版本的教程(来源于韩顺平教育,转载注明出处)"></a>PDF版本的教程(来源于韩顺平教育,转载注明出处)</h2>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MySQL5.7.19安装.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Mysql</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Map集合的遍历</title>
|
||
<url>/posts/24637.html</url>
|
||
<content><![CDATA[<h2 id="1-方法一"><a href="#1-方法一" class="headerlink" title="1.方法一"></a>1.方法一</h2><p>lambda表达式遍历</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">Map<String, String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><String, String>();</span><br><span class="line">map.forEach((key,value)->{</span><br><span class="line"> System.out.println(key);</span><br><span class="line"> System.out.println(value);</span><br><span class="line">});</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="1-方法二"><a href="#1-方法二" class="headerlink" title="1.方法二"></a>1.方法二</h2><p>在 for 循环中使用 entries 实现 Map 的遍历(最常见和最常用的)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">Map<String, String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><String, String>();</span><br><span class="line"><span class="keyword">for</span> (Map.Entry<String, String> entry : map.entrySet()) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">mapKey</span> <span class="operator">=</span> entry.getKey();</span><br><span class="line"> <span class="type">String</span> <span class="variable">mapValue</span> <span class="operator">=</span> entry.getValue();</span><br><span class="line"> System.out.println(mapKey + <span class="string">":"</span> + mapValue);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="2-方法三"><a href="#2-方法三" class="headerlink" title="2.方法三"></a>2.方法三</h2><p>使用 for-each 循环遍历 key 或者 values,一般适用于只需要 Map 中的 key 或者 value 时使用,性能上比 entrySet 好</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">Map<String, String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><String, String>();</span><br><span class="line"><span class="comment">// 打印键集合</span></span><br><span class="line"><span class="keyword">for</span> (String key : map.keySet()) {</span><br><span class="line"> System.out.println(key);</span><br><span class="line">}</span><br><span class="line"><span class="comment">// 打印值集合</span></span><br><span class="line"><span class="keyword">for</span> (String value : map.values()) {</span><br><span class="line"> System.out.println(value);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="3-方法四"><a href="#3-方法四" class="headerlink" title="3.方法四"></a>3.方法四</h2><p>使用迭代器(Iterator)遍历</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">Map<String, String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><String, String>();</span><br><span class="line">Iterator<Entry<String, String>> entries = map.entrySet().iterator();</span><br><span class="line"><span class="keyword">while</span> (entries.hasNext()) {</span><br><span class="line"> Entry<String, String> entry = entries.next();</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> entry.getKey();</span><br><span class="line"> <span class="type">String</span> <span class="variable">value</span> <span class="operator">=</span> entry.getValue();</span><br><span class="line"> System.out.println(key + <span class="string">":"</span> + value);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="4-方法五"><a href="#4-方法五" class="headerlink" title="4.方法五"></a>4.方法五</h2><p>通过键找值遍历,效率比较低,从键取值是耗时的操作</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">for</span>(String key : map.keySet()){</span><br><span class="line"> <span class="type">String</span> <span class="variable">value</span> <span class="operator">=</span> map.get(key);</span><br><span class="line"> System.out.println(key+<span class="string">":"</span>+value);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="……"><a href="#……" class="headerlink" title="……."></a>…….</h2>]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>MySql进阶教程</title>
|
||
<url>/posts/39654.html</url>
|
||
<content><![CDATA[<p><strong>全部的PDF笔记:</strong> <a href="https://jasonsgong.gitee.io/posts/50465.html">https://jasonsgong.gitee.io/posts/50465.html</a></p>
|
||
<p><strong>原视频地址:</strong> <a href="https://www.bilibili.com/video/BV1Kr4y1i7ru/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584">黑马程序员 MySQL数据库入门到精通,从mysql安装到mysql高级、mysql优化全囊括</a></p>
|
||
<h1 id="一-基础回顾"><a href="#一-基础回顾" class="headerlink" title="一.基础回顾"></a>一.基础回顾</h1><h2 id="1-DDL、DML、DQL、DCL"><a href="#1-DDL、DML、DQL、DCL" class="headerlink" title="1.DDL、DML、DQL、DCL"></a>1.DDL、DML、DQL、DCL</h2><p><strong>数据定义语言(DDL)</strong></p>
|
||
<p>DDL全称是Data Definition Language,即数据定义语言,定义语言就是定义关系模式、删除关系、修改关系模式以及创建数据库中的各种对象,比如表、聚簇、索引、视图、函数、存储过程和触发器等等。数据定义语言是由SQL语言集中负责数据结构定义与数据库对象定义的语言,并且由CREATE、ALTER、DROP和TRUNCATE四个语法组成。</p>
|
||
<p><strong>数据操纵语言(DML)</strong></p>
|
||
<p>数据操纵语言全程是Data Manipulation Language,主要是进行插入元组、删除元组、修改元组的操作。主要有insert、update、delete语法组成。</p>
|
||
<p><strong>数据查询语言(DQL)</strong></p>
|
||
<p>数据查询语言全称是Data Query Language,所以是用来进行数据库中数据的查询的,即最常用的select语句。</p>
|
||
<p><strong>数据控制语言(DCL)</strong></p>
|
||
<p>数据控制语言:Data Control Language。用来授权或回收访问数据库的某种特权,并控制数据库操纵事务发生的时间及效果,能够对数据库进行监视。比如常见的授权、取消授权、回滚、提交等等操作。</p>
|
||
<h1 id="二-MySql进阶"><a href="#二-MySql进阶" class="headerlink" title="二.MySql进阶"></a>二.MySql进阶</h1><h2 id="1-存储引擎"><a href="#1-存储引擎" class="headerlink" title="1.存储引擎"></a>1.存储引擎</h2><h3 id="1-1-MySql的体系结构"><a href="#1-1-MySql的体系结构" class="headerlink" title="1.1 MySql的体系结构"></a>1.1 MySql的体系结构</h3><p><img src="/pictures/image-20230916152706301.png" alt="image-20230916152706301"></p>
|
||
<p><img src="/pictures/image-20230916152828704.png" alt="image-20230916152828704"></p>
|
||
<h3 id="1-2-存储引擎简介"><a href="#1-2-存储引擎简介" class="headerlink" title="1.2 存储引擎简介"></a>1.2 存储引擎简介</h3><p><strong>简介</strong></p>
|
||
<p> 存储引擎就是存储数据、建立索引、更新/查询数据等技术的实现方式 。存储引擎是基于表的,而不是 基于库的,所以存储引擎也可被称为表类型。我们可以在创建表的时候,来指定选择的存储引擎,如果 没有指定将自动选择默认的存储引擎。</p>
|
||
<p><strong>查询一张数据库表的建表语句</strong></p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="comment">-- 查询建表语句</span></span><br><span class="line"><span class="keyword">show</span> <span class="keyword">create</span> <span class="keyword">table</span> book_info;</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230916153448893.png" alt="image-20230916153448893"></p>
|
||
<p><strong>建表的时候指定存储引擎的语句</strong></p>
|
||
<p><img src="/pictures/image-20230916153931010.png" alt="image-20230916153931010"></p>
|
||
<h3 id="1-3-存储引擎特点"><a href="#1-3-存储引擎特点" class="headerlink" title="1.3 存储引擎特点"></a>1.3 存储引擎特点</h3><p><img src="/pictures/image-20230916154915533.png" alt="image-20230916154915533"></p>
|
||
<p><img src="/pictures/image-20230916155113863.png" alt="image-20230916155113863"></p>
|
||
<p><img src="/pictures/image-20230916155356755.png" alt="image-20230916155356755"></p>
|
||
<p><img src="/pictures/image-20230916155525548.png" alt="image-20230916155525548"></p>
|
||
<p> <strong>存储引擎的区别</strong></p>
|
||
<p><img src="/pictures/image-20230916155637133.png" alt="image-20230916155637133"></p>
|
||
<h3 id="1-4-存储引擎的选择"><a href="#1-4-存储引擎的选择" class="headerlink" title="1.4 存储引擎的选择"></a>1.4 存储引擎的选择</h3><p> 在选择存储引擎时,应该根据应用系统的特点选择合适的存储引擎。对于复杂的应用系统,还可以根据 实际情况选择多种存储引擎进行组合。 </p>
|
||
<ul>
|
||
<li>InnoDB: 是Mysql的默认存储引擎,支持事务、外键。如果应用对事务的完整性有比较高的要 求,在并发条件下要求数据的一致性,数据操作除了插入和查询之外,还包含很多的更新、删除操 作,那么InnoDB存储引擎是比较合适的选择。 </li>
|
||
<li>MyISAM : 如果应用是以读操作和插入操作为主,只有很少的更新和删除操作,并且对事务的完 整性、并发性要求不是很高,那么选择这个存储引擎是非常合适的。(例如评论的数据、日志相关的数据、电商中足迹相关的数据)</li>
|
||
<li>MEMORY:将所有数据保存在内存中,访问速度快,通常用于临时表及缓存。MEMORY的缺陷就是 对表的大小有限制,太大的表无法缓存在内存中,而且无法保障数据的安全性。</li>
|
||
</ul>
|
||
<p>一句话:项目中绝大多数的时候使用的都是InnoDB</p>
|
||
<h2 id="2-索引"><a href="#2-索引" class="headerlink" title="2.索引"></a>2.索引</h2><h3 id="2-1-索引概述"><a href="#2-1-索引概述" class="headerlink" title="2.1 索引概述"></a>2.1 索引概述</h3><h4 id="2-1-1-介绍"><a href="#2-1-1-介绍" class="headerlink" title="2.1.1 介绍"></a>2.1.1 介绍</h4><p> 索引(index)是帮助MySQL高效获取数据的数据结构(有序)。在数据之外,数据库系统还维护着满足特定查找算法的数据结构,这些数据结构以某种方式引用(指向)数据, 这样就可以在这些数据结构上实现高级查找算法,这种数据结构就是索引。</p>
|
||
<h4 id="2-1-2-演示"><a href="#2-1-2-演示" class="headerlink" title="2.1.2 演示"></a>2.1.2 演示</h4><p>注:下面的二叉树并不是一个真实的索引结构,而是一个举例</p>
|
||
<p><img src="/pictures/image-20230916150211012.png" alt="image-20230916150211012"></p>
|
||
<h4 id="2-1-3-优缺点"><a href="#2-1-3-优缺点" class="headerlink" title="2.1.3 优缺点"></a>2.1.3 优缺点</h4><p><img src="/pictures/image-20230916150430708.png" alt="image-20230916150430708"></p>
|
||
<h3 id="2-2-索引结构"><a href="#2-2-索引结构" class="headerlink" title="2.2 索引结构"></a>2.2 索引结构</h3><h4 id="2-2-1-索引的数据结构有哪些"><a href="#2-2-1-索引的数据结构有哪些" class="headerlink" title="2.2.1 索引的数据结构有哪些"></a>2.2.1 索引的数据结构有哪些</h4><p>默认的索引结构是B+树索引结构</p>
|
||
<p><img src="/pictures/image-20230916161524219.png" alt="image-20230916161524219"></p>
|
||
<p><strong>不同类型的存储引擎对不同的索引结构的支持情况</strong></p>
|
||
<p><img src="/pictures/image-20230916161623546.png" alt="image-20230916161623546"></p>
|
||
<h4 id="2-2-2-B-树的索引数据结构"><a href="#2-2-2-B-树的索引数据结构" class="headerlink" title="2.2.2 B+树的索引数据结构"></a>2.2.2 B+树的索引数据结构</h4><p><strong>二叉树和红黑树的不足</strong></p>
|
||
<p><img src="/pictures/image-20230916162305576.png" alt="image-20230916162305576"></p>
|
||
<p><strong>B树</strong></p>
|
||
<p><img src="/pictures/image-20230916163234103.png" alt="image-20230916163234103"></p>
|
||
<p><strong>B+树</strong></p>
|
||
<p><img src="/pictures/image-20230916164042303.png" alt="image-20230916164042303"></p>
|
||
<p><img src="/pictures/image-20230916164314700.png" alt="image-20230916164314700"></p>
|
||
<p><strong>MySql中的B+树结构</strong></p>
|
||
<p><img src="/pictures/image-20230916164500444.png" alt="image-20230916164500444"></p>
|
||
<h4 id="2-2-3-hash的索引数据结构"><a href="#2-2-3-hash的索引数据结构" class="headerlink" title="2.2.3 hash的索引数据结构"></a>2.2.3 hash的索引数据结构</h4><p><img src="/pictures/image-20230916164903702.png" alt="image-20230916164903702"></p>
|
||
<p><img src="/pictures/image-20230916165007465.png" alt="image-20230916165007465"></p>
|
||
<h4 id="2-3-4-思考题"><a href="#2-3-4-思考题" class="headerlink" title="2.3.4 思考题"></a>2.3.4 思考题</h4><h4 id=""><a href="#" class="headerlink" title=""></a><img src="/pictures/image-20230916165329434.png" alt="image-20230916165329434"></h4><h3 id="2-3-索引分类"><a href="#2-3-索引分类" class="headerlink" title="2.3 索引分类"></a>2.3 索引分类</h3><p><img src="/pictures/image-20230916165516779.png" alt="image-20230916165516779"></p>
|
||
<p><img src="/pictures/image-20230916165647255.png" alt="image-20230916165647255"></p>
|
||
<p><img src="/pictures/image-20230916170012664.png" alt="image-20230916170012664"></p>
|
||
<p>当我们要查询name值是Arm的数据的时候,会先通过二级索引查询,然后通过聚集索引查询这一行的信息(回表查询)</p>
|
||
<p><img src="/pictures/image-20230916170421435.png" alt="image-20230916170421435"></p>
|
||
<p><strong>思考题</strong></p>
|
||
<p><img src="/pictures/image-20230916170537693.png" alt="image-20230916170537693"></p>
|
||
<p>第一条的执行效率高,第二条要回表查询(先查询name所在行对应的主键id,然后通过主键id查询这一行的数据)</p>
|
||
<h3 id="2-4-索引语法"><a href="#2-4-索引语法" class="headerlink" title="2.4 索引语法"></a>2.4 索引语法</h3><p><strong>创建|查看|删除语法</strong></p>
|
||
<p><img src="/pictures/image-20230917091746406.png" alt="image-20230917091746406"></p>
|
||
<p><strong>举例</strong></p>
|
||
<p><img src="/pictures/image-20230917093020287.png" alt="image-20230917093020287"></p>
|
||
<h3 id="2-5-SQL性能分析"><a href="#2-5-SQL性能分析" class="headerlink" title="2.5 SQL性能分析"></a>2.5 SQL性能分析</h3><h4 id="2-5-1-SQL执行频率"><a href="#2-5-1-SQL执行频率" class="headerlink" title="2.5.1 SQL执行频率"></a>2.5.1 SQL执行频率</h4><p><img src="/pictures/image-20230917093634100.png" alt="image-20230917093634100"></p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="comment">-- 查看系统的状态信息</span></span><br><span class="line"><span class="keyword">show</span> <span class="keyword">global</span> status <span class="keyword">like</span> <span class="string">'Com_______'</span>;</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-5-2-慢查询日志"><a href="#2-5-2-慢查询日志" class="headerlink" title="2.5.2 慢查询日志"></a>2.5.2 慢查询日志</h4><p><img src="/pictures/image-20230917094314803.png" alt="image-20230917094314803"></p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="comment">-- 查询慢查询日志是否开启</span></span><br><span class="line"><span class="keyword">show</span> variables <span class="keyword">like</span> <span class="string">'slow_query_log'</span>;</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-5-3-profile详情"><a href="#2-5-3-profile详情" class="headerlink" title="2.5.3 profile详情"></a>2.5.3 profile详情</h4><p><img src="/pictures/image-20230917095232011.png" alt="image-20230917095232011"></p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="comment">-- 是否支持profile详情功能</span></span><br><span class="line"><span class="keyword">select</span> @<span class="variable">@have_profiling</span>;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- 查看是否开启该功能</span></span><br><span class="line"><span class="keyword">select</span> @<span class="variable">@profiling</span>;</span><br><span class="line"></span><br><span class="line"><span class="comment">-- 开启profile</span></span><br><span class="line"><span class="keyword">set</span> profiling <span class="operator">=</span> <span class="number">1</span>;</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230917095320953.png" alt="image-20230917095320953"></p>
|
||
<h4 id="2-5-4-explain执行计划"><a href="#2-5-4-explain执行计划" class="headerlink" title="2.5.4 explain执行计划"></a>2.5.4 explain执行计划</h4><p><img src="/pictures/image-20230917095911304.png" alt="image-20230917095911304"></p>
|
||
<p><img src="/pictures/image-20230917101205097.png" alt="image-20230917101205097"></p>
|
||
<p><img src="/pictures/image-20230917101337147.png" alt="image-20230917101337147"></p>
|
||
<h3 id="2-6-索引使用"><a href="#2-6-索引使用" class="headerlink" title="2.6 索引使用"></a>2.6 索引使用</h3><h4 id="2-6-1-验证索引效率"><a href="#2-6-1-验证索引效率" class="headerlink" title="2.6.1 验证索引效率"></a>2.6.1 验证索引效率</h4><p><img src="/pictures/image-20230917141334774.png" alt="image-20230917141334774"></p>
|
||
<p>现在有一个有着10000000数据的表(tb_sku),我们根据sn这一字段查询某一条具体的数据,没有建立索引之前的查询耗费的时间是20多秒,建立索引耗费大约90秒,为sn字段建立索引之后,查询耗费时间大概是零点几秒。</p>
|
||
<h4 id="2-6-2-最左前缀法则"><a href="#2-6-2-最左前缀法则" class="headerlink" title="2.6.2 最左前缀法则"></a>2.6.2 最左前缀法则</h4><p><img src="/pictures/image-20230917142410276.png" alt="image-20230917142410276"></p>
|
||
<p><img src="/pictures/image-20230917142707646.png" alt="image-20230917142707646"></p>
|
||
<h4 id="2-6-3-索引失效的情况"><a href="#2-6-3-索引失效的情况" class="headerlink" title="2.6.3 索引失效的情况"></a>2.6.3 索引失效的情况</h4><p><img src="/pictures/image-20230917142948227.png" alt="image-20230917142948227"></p>
|
||
<p><img src="/pictures/image-20230917143143047.png" alt="image-20230917143143047"></p>
|
||
<p><img src="/pictures/image-20230917143421975.png" alt="image-20230917143421975"></p>
|
||
<p><img src="/pictures/image-20230917143842497.png" alt="image-20230917143842497"></p>
|
||
<p><img src="/pictures/image-20230917144459567.png" alt="image-20230917144459567"></p>
|
||
<h4 id="2-6-4-SQL提示"><a href="#2-6-4-SQL提示" class="headerlink" title="2.6.4 SQL提示"></a>2.6.4 SQL提示</h4><p><img src="/pictures/image-20230917145046280.png" alt="image-20230917145046280"></p>
|
||
<h4 id="2-6-5-覆盖索引"><a href="#2-6-5-覆盖索引" class="headerlink" title="2.6.5 覆盖索引"></a>2.6.5 覆盖索引</h4><p><img src="/pictures/image-20230917145643194.png" alt="image-20230917145643194"></p>
|
||
<h4 id="2-6-6-前缀索引"><a href="#2-6-6-前缀索引" class="headerlink" title="2.6.6 前缀索引"></a>2.6.6 前缀索引</h4><p><img src="/pictures/image-20230917153757773.png" alt="image-20230917153757773"></p>
|
||
<p><img src="/pictures/image-20230917154300147.png" alt="image-20230917154300147"></p>
|
||
<h4 id="2-6-7-单例索引与联合索引的选择问题"><a href="#2-6-7-单例索引与联合索引的选择问题" class="headerlink" title="2.6.7 单例索引与联合索引的选择问题"></a>2.6.7 单例索引与联合索引的选择问题</h4><p><img src="/pictures/image-20230917155017641.png" alt="image-20230917155017641"></p>
|
||
<p><img src="/pictures/image-20230917155223679.png" alt="image-20230917155223679"></p>
|
||
<h3 id="2-7-索引设计原则"><a href="#2-7-索引设计原则" class="headerlink" title="2.7 索引设计原则"></a>2.7 索引设计原则</h3><p><img src="/pictures/image-20230917155748055.png" alt="image-20230917155748055"></p>
|
||
<h2 id="3-SQL优化"><a href="#3-SQL优化" class="headerlink" title="3.SQL优化"></a>3.SQL优化</h2><h3 id="3-1-插入数据的优化"><a href="#3-1-插入数据的优化" class="headerlink" title="3.1 插入数据的优化"></a>3.1 插入数据的优化</h3><p><img src="/pictures/image-20230917181618942.png" alt="image-20230917181618942"></p>
|
||
<p><img src="/pictures/image-20230917181842030.png" alt="image-20230917181842030"></p>
|
||
<p>100万的数据如果使用insert插入的话需要10分钟左右,如果使用文件的方式导入,只需要10多秒。</p>
|
||
<h3 id="3-2-主键优化"><a href="#3-2-主键优化" class="headerlink" title="3.2 主键优化"></a>3.2 主键优化</h3><p><img src="/pictures/image-20230917205500523.png" alt="image-20230917205500523"></p>
|
||
<p><img src="/pictures/image-20230917205636137.png" alt="image-20230917205636137"></p>
|
||
<p><img src="/pictures/image-20230917205833596.png" alt="image-20230917205833596"></p>
|
||
<p><img src="/pictures/image-20230917210112389.png" alt="image-20230917210112389"></p>
|
||
<p><img src="/pictures/image-20230917210303469.png" alt="image-20230917210303469"></p>
|
||
<h3 id="3-3-order-by优化"><a href="#3-3-order-by优化" class="headerlink" title="3.3 order by优化"></a>3.3 order by优化</h3><p><img src="/pictures/image-20230917210730392.png" alt="image-20230917210730392"></p>
|
||
<p><img src="/pictures/image-20230917211254167.png" alt="image-20230917211254167"></p>
|
||
<p><img src="/pictures/image-20230917210616858.png" alt="image-20230917210616858"></p>
|
||
<p><img src="/pictures/image-20230917211543109.png" alt="image-20230917211543109"></p>
|
||
<h3 id="3-4-group-by优化"><a href="#3-4-group-by优化" class="headerlink" title="3.4 group by优化"></a>3.4 group by优化</h3><p><img src="/pictures/image-20230917212026101.png" alt="image-20230917212026101"></p>
|
||
<h3 id="3-5-limit优化"><a href="#3-5-limit优化" class="headerlink" title="3.5 limit优化"></a>3.5 limit优化</h3><p><img src="/pictures/image-20230917212530539.png" alt="image-20230917212530539"></p>
|
||
<h3 id="3-6-count优化"><a href="#3-6-count优化" class="headerlink" title="3.6 count优化"></a>3.6 count优化</h3><p><img src="/pictures/image-20230917212709489.png" alt="image-20230917212709489"></p>
|
||
<p><img src="/pictures/image-20230917213029734.png" alt="image-20230917213029734"></p>
|
||
<p><img src="/pictures/image-20230917213316193.png" alt="image-20230917213316193"></p>
|
||
<h3 id="3-7-update优化"><a href="#3-7-update优化" class="headerlink" title="3.7 update优化"></a>3.7 update优化</h3><p><img src="/pictures/image-20230917213859581.png" alt="image-20230917213859581"></p>
|
||
<h3 id="3-8-总结"><a href="#3-8-总结" class="headerlink" title="3.8 总结"></a>3.8 总结</h3><p><img src="/pictures/image-20230917214424722.png" alt="image-20230917214424722"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Mysql</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Mybatis-Plus的使用教程</title>
|
||
<url>/posts/53306.html</url>
|
||
<content><![CDATA[<p><strong>官方文档:<a href="https://www.baomidou.com/">MyBatis-Plus</a></strong></p>
|
||
<h1 id="常用插件"><a href="#常用插件" class="headerlink" title="常用插件"></a>常用插件</h1><h2 id="1-公共字段填充"><a href="#1-公共字段填充" class="headerlink" title="1.公共字段填充"></a>1.公共字段填充</h2><p> <strong>对于每个实体类共有的属性字段,例如创建时间、修改时间、创建人、修改人,我们可以使用公共字段填充,来统一填充这些字段,这样我们在创建这些实体类的对象的时候就不需要set这些属性,实现丝滑开发</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@TableField(fill = FieldFill.INSERT)</span> <span class="comment">//插入的时候填充</span></span><br><span class="line"><span class="keyword">private</span> String gmtCreate;</span><br><span class="line"><span class="meta">@TableField(fill = FieldFill.INSERT_UPDATE)</span><span class="comment">//插入和修改的时候填充</span></span><br><span class="line"><span class="keyword">private</span> String gmtModified;</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第一种配置的方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.itheima.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;</span><br><span class="line"><span class="keyword">import</span> org.apache.ibatis.reflection.MetaObject;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.time.LocalDateTime;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/25</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 公共字段填充的配置</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyMetaObjectHandler</span> <span class="keyword">implements</span> <span class="title class_">MetaObjectHandler</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 插入时的字段填充</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> metaObject 元对象</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">insertFill</span><span class="params">(MetaObject metaObject)</span> {</span><br><span class="line"> <span class="comment">//创建时间的字段填充</span></span><br><span class="line"> metaObject.setValue(<span class="string">"gmtCreate"</span>, LocalDateTime.now());</span><br><span class="line"> <span class="comment">//修改时间的字段填充</span></span><br><span class="line"> metaObject.setValue(<span class="string">"gmtModified"</span>, LocalDateTime.now());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改时的字段填充</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> metaObject 元对象</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateFill</span><span class="params">(MetaObject metaObject)</span> {</span><br><span class="line"> <span class="comment">//修改时间的字段填充</span></span><br><span class="line"> metaObject.setValue(<span class="string">"gmtModified"</span>, LocalDateTime.now());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第二种配置的方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyMetaObjectHandler</span> <span class="keyword">implements</span> <span class="title class_">MetaObjectHandler</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">insertFill</span><span class="params">(MetaObject metaObject)</span> {</span><br><span class="line"> <span class="comment">// 起始版本 3.3.0(推荐使用)</span></span><br><span class="line"> <span class="built_in">this</span>.strictInsertFill(metaObject, <span class="string">"createTime"</span>, LocalDateTime.class, LocalDateTime.now()); </span><br><span class="line"> <span class="comment">// 或者</span></span><br><span class="line"> <span class="built_in">this</span>.strictInsertFill(metaObject, <span class="string">"createTime"</span>, () -> LocalDateTime.now(), LocalDateTime.class); <span class="comment">// 起始版本 3.3.3(推荐)</span></span><br><span class="line"> <span class="comment">// 或者</span></span><br><span class="line"> <span class="comment">// 也可以使用(3.3.0 该方法有bug)</span></span><br><span class="line"> <span class="built_in">this</span>.fillStrategy(metaObject, <span class="string">"createTime"</span>, LocalDateTime.now()); </span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateFill</span><span class="params">(MetaObject metaObject)</span> {</span><br><span class="line"> <span class="comment">// 起始版本 3.3.0(推荐)</span></span><br><span class="line"> <span class="built_in">this</span>.strictUpdateFill(metaObject, <span class="string">"updateTime"</span>, LocalDateTime.class, LocalDateTime.now());</span><br><span class="line"> <span class="comment">// 或者</span></span><br><span class="line"> <span class="built_in">this</span>.strictUpdateFill(metaObject, <span class="string">"updateTime"</span>, () -> LocalDateTime.now(), LocalDateTime.class); <span class="comment">// 起始版本 3.3.3(推荐)</span></span><br><span class="line"> <span class="comment">// 或者</span></span><br><span class="line"> <span class="comment">// 也可以使用(3.3.0 该方法有bug)</span></span><br><span class="line"> <span class="built_in">this</span>.fillStrategy(metaObject, <span class="string">"updateTime"</span>, LocalDateTime.now()); </span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="2-逻辑删除"><a href="#2-逻辑删除" class="headerlink" title="2.逻辑删除"></a>2.逻辑删除</h2><p><strong>1.配置全局的配置文件(可以省略)</strong></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">global-config:</span></span><br><span class="line"> <span class="attr">db-config:</span></span><br><span class="line"> <span class="attr">logic-delete-value:</span> <span class="number">1</span> <span class="comment"># 逻辑已删除值(默认为 1)</span></span><br><span class="line"> <span class="attr">logic-not-delete-value:</span> <span class="number">0</span> <span class="comment"># 逻辑未删除值(默认为 0)</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.配置逻辑删除的组件(3.1.1版本之后不需要这一步,可以省略)</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.injector.ISqlInjector;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyBatisPlusConfiguration</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> ISqlInjector <span class="title function_">sqlInjector</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">LogicSqlInjector</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.在实体类上逻辑删除的字段上加上逻辑删除的注解</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//value:表示不删除对应的值</span></span><br><span class="line"><span class="comment">//delval:表示删除对应的值</span></span><br><span class="line"><span class="comment">//正常的情况下1代表删除,0代表未删除,这里我们没有使用这个规则,下面设置的是自己的规则</span></span><br><span class="line"><span class="meta">@TableLogic(value = "1",delval = "0")</span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SSM</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>MySql基础进阶运维篇PDF笔记</title>
|
||
<url>/posts/50465.html</url>
|
||
<content><![CDATA[<h2 id="1-PDF笔记"><a href="#1-PDF笔记" class="headerlink" title="1.PDF笔记"></a>1.PDF笔记</h2><h3 id="1-1MySql基础篇PDF笔记"><a href="#1-1MySql基础篇PDF笔记" class="headerlink" title="1.1MySql基础篇PDF笔记"></a>1.1MySql基础篇PDF笔记</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MySQL-基础篇.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="1-2MySql进阶篇PDF笔记"><a href="#1-2MySql进阶篇PDF笔记" class="headerlink" title="1.2MySql进阶篇PDF笔记"></a>1.2MySql进阶篇PDF笔记</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MySQL-进阶篇.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="1-3MySql运维篇PDF笔记"><a href="#1-3MySql运维篇PDF笔记" class="headerlink" title="1.3MySql运维篇PDF笔记"></a>1.3MySql运维篇PDF笔记</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MySQL-运维篇.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Mysql</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>MybatisX插件的使用</title>
|
||
<url>/posts/24606.html</url>
|
||
<content><![CDATA[<p>代码生成器 根据数据库表生成Mapper接口,Mapper配置文件,service </p>
|
||
<p>注解 mybatisPlus提供的注解</p>
|
||
<p>公共字段的自动填充 逻辑删除 乐观锁 雪花算法生成主键</p>
|
||
<p><img src="/pictures/image-20230321181437910.png" alt="image-20230321181437910"></p>
|
||
<p><img src="/pictures/image-20230321181452909.png" alt="image-20230321181452909"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>插件</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SSM框架基础知识及整合</title>
|
||
<url>/posts/56742.html</url>
|
||
<content><![CDATA[<p>PDF版本的笔记</p>
|
||
<p>Mybatis</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MyBatis.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<p>Spring SpringMVC MyBatis</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/SSM整合.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SSM</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SSM常用配置</title>
|
||
<url>/posts/32679.html</url>
|
||
<content><![CDATA[<h3 id="1-pom-xml"><a href="#1-pom-xml" class="headerlink" title="1.pom.xml"></a>1.pom.xml</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">project</span> <span class="attr">xmlns</span>=<span class="string">"http://maven.apache.org/POM/4.0.0"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">modelVersion</span>></span>4.0.0<span class="tag"></<span class="name">modelVersion</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.atguigu.ssm<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>ssm<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">packaging</span>></span>war<span class="tag"></<span class="name">packaging</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--管理版本信息,将版本信息提取出来,各个依赖的版本通过${spring.version}访问--></span></span><br><span class="line"> <span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">spring.version</span>></span>5.3.1<span class="tag"></<span class="name">spring.version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">properties</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-context<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-beans<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--springmvc--></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-webmvc<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-jdbc<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-aspects<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>${spring.version}<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Mybatis核心 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.mybatis<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>mybatis<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.5.7<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--mybatis和spring的整合包--></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.mybatis<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>mybatis-spring<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.0.6<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 连接池 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>druid<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0.9<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- junit测试 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>junit<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>junit<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>4.12<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- MySQL驱动 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>mysql<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>mysql-connector-java<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>5.1.3<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- log4j日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>log4j<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>log4j<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.2.17<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.github.pagehelper<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>pagehelper<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>5.2.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>ch.qos.logback<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>logback-classic<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.2.3<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- ServletAPI --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>javax.servlet<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>javax.servlet-api<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.1.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>provided<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.core<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-databind<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.12.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>commons-fileupload<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>commons-fileupload<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.3.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Spring5和Thymeleaf整合包 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.thymeleaf<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>thymeleaf-spring5<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.0.12.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"></<span class="name">dependencies</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">project</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-spring-xml"><a href="#2-spring-xml" class="headerlink" title="2.spring.xml"></a>2.spring.xml</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">beans</span> <span class="attr">xmlns</span>=<span class="string">"http://www.springframework.org/schema/beans"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:context</span>=<span class="string">"http://www.springframework.org/schema/context"</span> <span class="attr">xmlns:tx</span>=<span class="string">"http://www.springframework.org/schema/tx"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--扫描组件(除控制层)--></span></span><br><span class="line"> <span class="tag"><<span class="name">context:component-scan</span> <span class="attr">base-package</span>=<span class="string">"com.atguigu.ssm"</span>></span></span><br><span class="line"> <span class="comment"><!--通过控制层注解的全类名,排除控制层的扫描--></span></span><br><span class="line"> <span class="tag"><<span class="name">context:exclude-filter</span> <span class="attr">type</span>=<span class="string">"annotation"</span> <span class="attr">expression</span>=<span class="string">"org.springframework.stereotype.Controller"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">context:component-scan</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--引入数据库的配置文件--></span></span><br><span class="line"> <span class="tag"><<span class="name">context:property-placeholder</span> <span class="attr">location</span>=<span class="string">"classpath:jdbc.properties"</span>></span><span class="tag"></<span class="name">context:property-placeholder</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--配置数据源--></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"dataSource"</span> <span class="attr">class</span>=<span class="string">"com.alibaba.druid.pool.DruidDataSource"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"driverClassName"</span> <span class="attr">value</span>=<span class="string">"${jdbc.driver}"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"url"</span> <span class="attr">value</span>=<span class="string">"${jdbc.url}"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"username"</span> <span class="attr">value</span>=<span class="string">"${jdbc.username}"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"password"</span> <span class="attr">value</span>=<span class="string">"${jdbc.password}"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--配置事务管理器--></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"transactionManager"</span> <span class="attr">class</span>=<span class="string">"org.springframework.jdbc.datasource.DataSourceTransactionManager"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"dataSource"</span> <span class="attr">ref</span>=<span class="string">"dataSource"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"> <span class="comment"><!--开启事务的注解驱动--></span></span><br><span class="line"> <span class="tag"><<span class="name">tx:annotation-driven</span> <span class="attr">transaction-manager</span>=<span class="string">"transactionManager"</span>></span><span class="tag"></<span class="name">tx:annotation-driven</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--配置SqlSessionFactoryBean,可以直接在IOC容器中获取SqlSessionFactory--></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">class</span>=<span class="string">"org.mybatis.spring.SqlSessionFactoryBean"</span>></span></span><br><span class="line"> <span class="comment"><!--获取mybatis的核心配置文件--></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"configLocation"</span> <span class="attr">value</span>=<span class="string">"classpath:mybatis-config.xml"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="comment"><!--设置数据源,取代配置文件中的数据源的环境配置--></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"dataSource"</span> <span class="attr">ref</span>=<span class="string">"dataSource"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="comment"><!--设置类型别名所对应的包--></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"typeAliasesPackage"</span> <span class="attr">value</span>=<span class="string">"com.atguigu.ssm.pojo"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="comment"><!--设置mapper映射文件的路径,在这里我们不需要设置,只有在mapper接口和映射文件的路径不一致时设置--></span></span><br><span class="line"> <span class="comment"><!-- <property name="mapperLocations" value="classpath:"></property>--></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> 配置mapper接口扫描,可以将指定包下的所有mapper接口,</span></span><br><span class="line"><span class="comment"> 通过SqlSession创建代理实现类对象,</span></span><br><span class="line"><span class="comment"> 并将这些对象交给ioc容器管理</span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">class</span>=<span class="string">"org.mybatis.spring.mapper.MapperScannerConfigurer"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"basePackage"</span> <span class="attr">value</span>=<span class="string">"com.atguigu.ssm.mapper"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">beans</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-springmvc-xml"><a href="#3-springmvc-xml" class="headerlink" title="3.springmvc.xml"></a>3.springmvc.xml</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">beans</span> <span class="attr">xmlns</span>=<span class="string">"http://www.springframework.org/schema/beans"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:context</span>=<span class="string">"http://www.springframework.org/schema/context"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:mvc</span>=<span class="string">"http://www.springframework.org/schema/mvc"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc https://www.springframework.org/schema/mvc/spring-mvc.xsd"</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--组件扫描--></span></span><br><span class="line"> <span class="tag"><<span class="name">context:component-scan</span> <span class="attr">base-package</span>=<span class="string">"com.atguigu.ssm.controller"</span>></span><span class="tag"></<span class="name">context:component-scan</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--配置视图解析器--></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"viewResolver"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">class</span>=<span class="string">"org.thymeleaf.spring5.view.ThymeleafViewResolver"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"order"</span> <span class="attr">value</span>=<span class="string">"1"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"characterEncoding"</span> <span class="attr">value</span>=<span class="string">"UTF-8"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"templateEngine"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">class</span>=<span class="string">"org.thymeleaf.spring5.SpringTemplateEngine"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"templateResolver"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span></span></span><br><span class="line"><span class="tag"> <span class="attr">class</span>=<span class="string">"org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver"</span>></span></span><br><span class="line"> <span class="comment"><!-- 视图前缀 --></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"prefix"</span> <span class="attr">value</span>=<span class="string">"/WEB-INF/templates/"</span>/></span></span><br><span class="line"> <span class="comment"><!-- 视图后缀 --></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"suffix"</span> <span class="attr">value</span>=<span class="string">".html"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"templateMode"</span> <span class="attr">value</span>=<span class="string">"HTML5"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"characterEncoding"</span> <span class="attr">value</span>=<span class="string">"UTF-8"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 配置访问首页的视图控制 --></span></span><br><span class="line"> <span class="tag"><<span class="name">mvc:view-controller</span> <span class="attr">path</span>=<span class="string">"/"</span> <span class="attr">view-name</span>=<span class="string">"index"</span>></span><span class="tag"></<span class="name">mvc:view-controller</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 配置默认的servlet处理静态资源 --></span></span><br><span class="line"> <span class="tag"><<span class="name">mvc:default-servlet-handler</span> /></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 开启MVC的注解驱动 --></span></span><br><span class="line"> <span class="tag"><<span class="name">mvc:annotation-driven</span> /></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--拦截器--></span></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> SpringMVC中的拦截器用于拦截控制器方法的执行</span></span><br><span class="line"><span class="comment"> SpringMVC中的拦截器需要实现HandlerInterceptor</span></span><br><span class="line"><span class="comment"> SpringMVC的拦截器必须在SpringMVC的配置文件中进行配置:</span></span><br><span class="line"><span class="comment"> <bean class="com.atguigu.interceptor.FirstInterceptor"></bean></span></span><br><span class="line"><span class="comment"> <ref bean="firstInterceptor"></ref></span></span><br><span class="line"><span class="comment"> 以上两种配置方式都是对DispatcherServlet所处理的所有的请求进行拦截</span></span><br><span class="line"><span class="comment"> <mvc:interceptor></span></span><br><span class="line"><span class="comment"> <mvc:mapping path="/**"/></span></span><br><span class="line"><span class="comment"> <mvc:exclude-mapping path="/testRequestEntity"/></span></span><br><span class="line"><span class="comment"> <ref bean="firstInterceptor"></ref></span></span><br><span class="line"><span class="comment"> </mvc:interceptor></span></span><br><span class="line"><span class="comment"> 以上配置方式可以通过ref或bean标签设置拦截器,通过mvc:mapping设置需要拦截的请求,通过</span></span><br><span class="line"><span class="comment"> mvc:exclude-mapping设置需要排除的请求,即不需要拦截的请求</span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--异常处理器--></span></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> <bean</span></span><br><span class="line"><span class="comment"> class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"></span></span><br><span class="line"><span class="comment"> <property name="exceptionMappings"></span></span><br><span class="line"><span class="comment"> <props></span></span><br><span class="line"><span class="comment"> properties的键表示处理器方法执行过程中出现的异常</span></span><br><span class="line"><span class="comment"> properties的值表示若出现指定异常时,设置一个新的视图名称,跳转到指定页面</span></span><br><span class="line"><span class="comment"> <prop key="java.lang.ArithmeticException">error</prop></span></span><br><span class="line"><span class="comment"> </props></span></span><br><span class="line"><span class="comment"> </property></span></span><br><span class="line"><span class="comment"> exceptionAttribute属性设置一个属性名,将出现的异常信息在请求域中进行共享</span></span><br><span class="line"><span class="comment"> <property name="exceptionAttribute" value="ex"></property></span></span><br><span class="line"><span class="comment"> </bean></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--文件上传解析器,是根据id获取目标对象的,id必须是multipartResolver--></span></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"multipartResolver"</span> <span class="attr">class</span>=<span class="string">"org.springframework.web.multipart.commons.CommonsMultipartResolver"</span>></span><span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"><span class="tag"></<span class="name">beans</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-mybatis-config-xml"><a href="#4-mybatis-config-xml" class="headerlink" title="4.mybatis-config.xml"></a>4.mybatis-config.xml</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span> ?></span></span><br><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">configuration</span></span></span><br><span class="line"><span class="meta"> <span class="keyword">PUBLIC</span> <span class="string">"-//mybatis.org//DTD Config 3.0//EN"</span></span></span><br><span class="line"><span class="meta"> <span class="string">"http://mybatis.org/dtd/mybatis-3-config.dtd"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">configuration</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--解决数据库中的字段取名为emp_id,而在java中取名为empId,两者无法映射的问题--></span></span><br><span class="line"> <span class="comment"><!--下划线映射为驼峰--></span></span><br><span class="line"> <span class="tag"><<span class="name">settings</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">setting</span> <span class="attr">name</span>=<span class="string">"mapUnderscoreToCamelCase"</span> <span class="attr">value</span>=<span class="string">"true"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">settings</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--设置分页插件--></span></span><br><span class="line"> <span class="tag"><<span class="name">plugins</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">plugin</span> <span class="attr">interceptor</span>=<span class="string">"com.github.pagehelper.PageInterceptor"</span>></span><span class="tag"></<span class="name">plugin</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">plugins</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">configuration</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="5-jdbc-properties"><a href="#5-jdbc-properties" class="headerlink" title="5.jdbc.properties"></a>5.jdbc.properties</h3><figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">jdbc.driver</span>=<span class="string">com.mysql.jdbc.Driver</span></span><br><span class="line"><span class="attr">jdbc.url</span>=<span class="string">jdbc:mysql://localhost:3306/ssm</span></span><br><span class="line"><span class="attr">jdbc.username</span>=<span class="string">root</span></span><br><span class="line"><span class="attr">jdbc.password</span>=<span class="string">hsp</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="6-log4j-xml"><a href="#6-log4j-xml" class="headerlink" title="6.log4j.xml"></a>6.log4j.xml</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span> ?></span></span><br><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">log4j</span>:configuration <span class="keyword">SYSTEM</span> <span class="string">"log4j.dtd"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">log4j:configuration</span> <span class="attr">xmlns:log4j</span>=<span class="string">"http://jakarta.apache.org/log4j/"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"STDOUT"</span> <span class="attr">class</span>=<span class="string">"org.apache.log4j.ConsoleAppender"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">param</span> <span class="attr">name</span>=<span class="string">"Encoding"</span> <span class="attr">value</span>=<span class="string">"UTF-8"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">layout</span> <span class="attr">class</span>=<span class="string">"org.apache.log4j.PatternLayout"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">param</span> <span class="attr">name</span>=<span class="string">"ConversionPattern"</span> <span class="attr">value</span>=<span class="string">"%-5p %d{MM-dd HH:mm:ss,SSS}</span></span></span><br><span class="line"><span class="string"><span class="tag">%m (%F:%L) \n"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">layout</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">logger</span> <span class="attr">name</span>=<span class="string">"java.sql"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span> <span class="attr">value</span>=<span class="string">"debug"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">logger</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">logger</span> <span class="attr">name</span>=<span class="string">"org.apache.ibatis"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span> <span class="attr">value</span>=<span class="string">"info"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">logger</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">root</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span> <span class="attr">value</span>=<span class="string">"debug"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"STDOUT"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">root</span>></span></span><br><span class="line"><span class="tag"></<span class="name">log4j:configuration</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="7-log4j-properties"><a href="#7-log4j-properties" class="headerlink" title="7.log4j.properties"></a>7.log4j.properties</h3><figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">log4j.rootLogger</span>=<span class="string">debug, stdout, R</span></span><br><span class="line"></span><br><span class="line"><span class="attr">log4j.appender.stdout</span>=<span class="string">org.apache.log4j.ConsoleAppender</span></span><br><span class="line"><span class="attr">log4j.appender.stdout.layout</span>=<span class="string">org.apache.log4j.PatternLayout</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"># Pattern to output the caller's file name and line number.</span></span><br><span class="line"><span class="attr">log4j.appender.stdout.layout.ConversionPattern</span>=<span class="string">%5p [%t] (%F:%L) - %m%n</span></span><br><span class="line"></span><br><span class="line"><span class="attr">log4j.appender.R</span>=<span class="string">org.apache.log4j.RollingFileAppender</span></span><br><span class="line"><span class="attr">log4j.appender.R.File</span>=<span class="string">example.log</span></span><br><span class="line"></span><br><span class="line"><span class="attr">log4j.appender.R.MaxFileSize</span>=<span class="string">100KB</span></span><br><span class="line"><span class="comment"># Keep one backup file</span></span><br><span class="line"><span class="attr">log4j.appender.R.MaxBackupIndex</span>=<span class="string">5</span></span><br><span class="line"></span><br><span class="line"><span class="attr">log4j.appender.R.layout</span>=<span class="string">org.apache.log4j.PatternLayout</span></span><br><span class="line"><span class="attr">log4j.appender.R.layout.ConversionPattern</span>=<span class="string">%p %t %c - %m%n</span></span><br></pre></td></tr></table></figure>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SSM</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot中使用定时任务</title>
|
||
<url>/posts/73.html</url>
|
||
<content><![CDATA[<h2 id="1-在启动类上添加-EnableScheduling注解"><a href="#1-在启动类上添加-EnableScheduling注解" class="headerlink" title="1.在启动类上添加@EnableScheduling注解"></a>1.在启动类上添加@EnableScheduling注解</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@EnableScheduling</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="2-创建定时任务类,设置cron表达式"><a href="#2-创建定时任务类,设置cron表达式" class="headerlink" title="2.创建定时任务类,设置cron表达式"></a>2.创建定时任务类,设置cron表达式</h2><p>定时任务可以单独建立一个包 package com.atguigu.schedule</p>
|
||
<p>加上@Component注解,交给spring管理,启动这个模块,定时任务就开启了</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.schedule;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.scheduling.annotation.Scheduled;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/3/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 定时任务</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ScheduledTask</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//每隔五秒执行这个方法</span></span><br><span class="line"> <span class="comment">//"0/5 * * * * ?" 是corn表达式</span></span><br><span class="line"> <span class="meta">@Scheduled(cron = "0/5 * * * * ?")</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">tesSchedule</span><span class="params">()</span>{</span><br><span class="line"> System.out.println(<span class="string">"定时任务执行了...."</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230329184540977.png" alt="image-20230329184540977"></p>
|
||
<h2 id="3-Corn表达式-七子-七域-表达式-生成工具"><a href="#3-Corn表达式-七子-七域-表达式-生成工具" class="headerlink" title="3.Corn表达式(七子[七域]表达式)生成工具"></a>3.Corn表达式(七子[七域]表达式)生成工具</h2><p>网址: <a href="https://cron.qqe2.com/">https://cron.qqe2.com/</a></p>
|
||
<p><img src="/pictures/image-20230329184618098.png" alt="image-20230329184618098"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot中整合Swagger2</title>
|
||
<url>/posts/32246.html</url>
|
||
<content><![CDATA[<h2 id="1-Swagger2的介绍"><a href="#1-Swagger2的介绍" class="headerlink" title="1.Swagger2的介绍"></a>1.Swagger2的介绍</h2><p>什么是swagger2</p>
|
||
<p>编写和维护接口文档是每个程序员的职责,根据Swagger2可以快速帮助我们编写最新的API接口文档,再也不用担心开会前仍忙于整理各种资料了,间接提升了团队开发的沟通效率。</p>
|
||
<p>常用注解</p>
|
||
<p>swagger通过注解表明该接口会生成文档,包括接口名、请求方法、参数、返回信息等等</p>
|
||
<p> @Api:修饰整个类,描述Controller的作用</p>
|
||
<p> @ApiOperation:描述一个类的一个方法,或者说一个接口</p>
|
||
<p> @ApiParam:单个参数描述</p>
|
||
<p> @ApiModel:用对象来接收参数</p>
|
||
<p> @ApiModelProperty:用对象接收参数时,描述对象的一个字段</p>
|
||
<p> @ApiImplicitParam:一个请求参数</p>
|
||
<p> @ApiImplicitParams:多个请求参数</p>
|
||
<h2 id="2-SpringBoot中使用Swagger"><a href="#2-SpringBoot中使用Swagger" class="headerlink" title="2.SpringBoot中使用Swagger"></a>2.SpringBoot中使用Swagger</h2><h3 id="2-1导入相关的依赖"><a href="#2-1导入相关的依赖" class="headerlink" title="2.1导入相关的依赖"></a>2.1导入相关的依赖</h3><p>注意:Swagger2和SpringBoot存在版本兼容的问题,选择的时候要根据SpringBoot的版本进行选择</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.springfox<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>springfox-swagger2<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.7.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.springfox<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>springfox-swagger-ui<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.7.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2创建配置类"><a href="#2-2创建配置类" class="headerlink" title="2.2创建配置类"></a>2.2创建配置类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="meta">@EnableSwagger2</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Swagger2</span> {</span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> Docket <span class="title function_">adminApiConfig</span><span class="params">()</span>{</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">Docket</span>(DocumentationType.SWAGGER_2)</span><br><span class="line"> .groupName(<span class="string">"adminApi"</span>)</span><br><span class="line"> .apiInfo(apiInfo())</span><br><span class="line"> .select()</span><br><span class="line"> <span class="comment">//只显示admin路径下的页面</span></span><br><span class="line"> .paths(Predicates.and(PathSelectors.regex(<span class="string">"/admin/.*"</span>)))<span class="comment">// .paths(PathSelectors.any())表示所有</span></span><br><span class="line"> .build();</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> ApiInfo <span class="title function_">apiInfo</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">ApiInfoBuilder</span>()</span><br><span class="line"> .title(<span class="string">"后台管理系统-API文档"</span>)</span><br><span class="line"> .description(<span class="string">"本文档描述了后台管理系统微服务接口定义"</span>)</span><br><span class="line"> .version(<span class="string">"1.0"</span>)</span><br><span class="line"> .contact(<span class="keyword">new</span> <span class="title class_">Contact</span>(<span class="string">"GongChangjiang"</span>, <span class="string">"https://gong-changjiang.gitee.io/"</span>, <span class="string">"2602183349@qq.com"</span>))</span><br><span class="line"> .build();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3配置包扫描的规则"><a href="#2-3配置包扫描的规则" class="headerlink" title="2.3配置包扫描的规则"></a>2.3配置包扫描的规则</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//在项目的启动类加上该注解,swagger就会扫描如下包下的controller方法,生成接口文档</span></span><br><span class="line"><span class="meta">@ComponentScan(basePackages = "com.xxxx")</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4使用接口文档"><a href="#2-4使用接口文档" class="headerlink" title="2.4使用接口文档"></a>2.4使用接口文档</h3><figure class="highlight tex"><table><tr><td class="code"><pre><span class="line">//浏览器访问该网址</span><br><span class="line">//这里的端口号是要生成接口文档端口的端口号</span><br><span class="line">http://localhost:8080/swagger-ui.html</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230412141010237.png" alt="image-20230412141010237"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot整合Knife4j</title>
|
||
<url>/posts/855.html</url>
|
||
<content><![CDATA[<h2 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h2><p>一句话介绍Knife4j: Swagger的增强版,界面更好看,功能更加的丰富</p>
|
||
<p>文档地址:<a href="https://doc.xiaominfo.com/">https://doc.xiaominfo.com/</a></p>
|
||
<p><img src="/pictures/image-20230505222154471.png" alt="image-20230505222154471"></p>
|
||
<p><img src="/pictures/image-20230505223651097.png" alt="image-20230505223651097"></p>
|
||
<h2 id="2-使用教程"><a href="#2-使用教程" class="headerlink" title="2.使用教程"></a>2.使用教程</h2><h3 id="2-1-引入依赖"><a href="#2-1-引入依赖" class="headerlink" title="2.1 引入依赖"></a>2.1 引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--引入Knife4j的官方start包,该指南选择Spring Boot版本<3.0,开发者需要注意--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.github.xiaoymin<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>knife4j-openapi2-spring-boot-starter<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>4.0.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-编写配置类"><a href="#2-2-编写配置类" class="headerlink" title="2.2 编写配置类"></a>2.2 编写配置类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.config.knife4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.builders.ApiInfoBuilder;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.builders.ParameterBuilder;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.builders.PathSelectors;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.builders.RequestHandlerSelectors;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.schema.ModelRef;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.service.ApiInfo;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.service.Contact;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.service.Parameter;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.spi.DocumentationType;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.spring.web.plugins.Docket;</span><br><span class="line"><span class="keyword">import</span> springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/5</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> knife4j配置信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="meta">@EnableSwagger2WebMvc</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Knife4jConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> Docket <span class="title function_">adminApiConfig</span><span class="params">()</span>{</span><br><span class="line"> List<Parameter> pars = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="type">ParameterBuilder</span> <span class="variable">tokenPar</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ParameterBuilder</span>();</span><br><span class="line"> tokenPar.name(<span class="string">"token"</span>)</span><br><span class="line"> .description(<span class="string">"用户token"</span>)</span><br><span class="line"> .defaultValue(<span class="string">""</span>)</span><br><span class="line"> .modelRef(<span class="keyword">new</span> <span class="title class_">ModelRef</span>(<span class="string">"string"</span>))</span><br><span class="line"> .parameterType(<span class="string">"header"</span>)</span><br><span class="line"> .required(<span class="literal">false</span>)</span><br><span class="line"> .build();</span><br><span class="line"> pars.add(tokenPar.build());</span><br><span class="line"> <span class="comment">//添加head参数end</span></span><br><span class="line"></span><br><span class="line"> <span class="type">Docket</span> <span class="variable">adminApi</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Docket</span>(DocumentationType.SWAGGER_2)</span><br><span class="line"> .groupName(<span class="string">"adminApi"</span>)</span><br><span class="line"> .apiInfo(adminApiInfo())</span><br><span class="line"> .select()</span><br><span class="line"> <span class="comment">//只显示admin路径下的页面</span></span><br><span class="line"> .apis(RequestHandlerSelectors.basePackage(<span class="string">"com.atguigu"</span>))</span><br><span class="line"> .paths(PathSelectors.regex(<span class="string">"/admin/.*"</span>))</span><br><span class="line"> .build()</span><br><span class="line"> .globalOperationParameters(pars);</span><br><span class="line"> <span class="keyword">return</span> adminApi;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> ApiInfo <span class="title function_">adminApiInfo</span><span class="params">()</span>{</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">ApiInfoBuilder</span>()</span><br><span class="line"> .title(<span class="string">"后台管理系统-API文档"</span>)</span><br><span class="line"> .description(<span class="string">"本文档描述了后台管理系统微服务接口定义"</span>)</span><br><span class="line"> .version(<span class="string">"1.0"</span>)</span><br><span class="line"> .contact(<span class="keyword">new</span> <span class="title class_">Contact</span>(<span class="string">"JasonGong"</span>, <span class="string">"https://gong-changjiang.gitee.io/"</span>, <span class="string">"2602183349@qq.com"</span>))</span><br><span class="line"> .build();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-使用"><a href="#2-3-使用" class="headerlink" title="2.3 使用"></a>2.3 使用</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.auth.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.auth.service.SysRoleService;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.result.Result;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.model.system.SysRole;</span><br><span class="line"><span class="keyword">import</span> io.swagger.annotations.Api;</span><br><span class="line"><span class="keyword">import</span> io.swagger.annotations.ApiOperation;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.CrossOrigin;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestController;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/5</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 角色的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Api(tags = "角色管理的接口")</span></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="meta">@RequestMapping("/admin/system/sysRole")</span></span><br><span class="line"><span class="meta">@CrossOrigin</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SysRoleController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> SysRoleService sysRoleService;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ApiOperation("查询所有角色的接口")</span></span><br><span class="line"> <span class="meta">@GetMapping("/findAll")</span></span><br><span class="line"> <span class="keyword">public</span> Result<List<SysRole>> <span class="title function_">findAll</span><span class="params">()</span>{</span><br><span class="line"> List<SysRole> sysRoles = sysRoleService.list();</span><br><span class="line"> <span class="keyword">return</span> Result.ok(sysRoles);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4接口文档的访问地址"><a href="#2-4接口文档的访问地址" class="headerlink" title="2.4接口文档的访问地址"></a>2.4接口文档的访问地址</h3><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"># 端口号根据项目的端口号进行改变</span><br><span class="line">http://localhost:8080/doc.html </span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230505223433369.png" alt="image-20230505223433369"></p>
|
||
<p><img src="/pictures/image-20230505223331221.png"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot整合MongoDB</title>
|
||
<url>/posts/12929.html</url>
|
||
<content><![CDATA[<h2 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h2><p> MongoDB是一个基于分布式文件存储的数据库。由C++语言编写。旨在为WEB应用提供可扩展的高性能数据存储解决方案。<br>MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。它支持的数据结构非常松散,是类似json的bson格式,因此可以存储比较复杂的数据类型。Mongo最大的特点是它支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持对数据建立索引。</p>
|
||
<p><strong>适用场景</strong><br>1、网站数据:Mongo非常适合实时的插入,更新与查询,并具备网站实时数据存储所需的复制及高度伸缩性。<br>2、缓存:由于性能很高,Mongo也适合作为信息基础设施的缓存层。在系统重启之后,由M ongo搭建的持久化缓存层可以避免下层的数据源过载。<br>3、大尺寸,低价值的数据:使用传统的关系型数据库存储一些数据时可能会比较昂贵, 在此之前,很多时候程序员往往会选择传统的文件进行存储。<br>4、高伸缩性的场景:Mongo非常适合由数十或数百台服务器组成的数据库。Mongo的路线图中已经包含对Map Reduce弓摩的内置支持。<br>5、用于对象及 JSON数据的存储:Mongo的BSON数据格式非常适合文档化格式的存储 及查询。<br><strong>不适用场合</strong><br>1、高度事务性的系统:例如银行或会计系统。传统的关系型数据库目前还是更适用于需要大量原子性复杂事务的应用程序。<br>2、传统的商业智能应用:针对特定问题的BI数据库会对产生高度优化的查询方式。对于此类应用,数据仓库可能是更合适的选择。 </p>
|
||
<p>中文文档:<a href="https://docs.mongoing.com/">https://docs.mongoing.com/</a></p>
|
||
<h2 id="2-入门"><a href="#2-入门" class="headerlink" title="2.入门"></a>2.入门</h2><p> spring-data-mongodb提供了MongoTemplate与MongoRepository两种方式访问mongodb,MongoRepository操作简单,MongoTemplate操作灵活,我们在项目中可以灵活适用这两种方式操作mongodb,MongoRepository的缺点是不够灵活,MongoTemplate正好可以弥补不足</p>
|
||
<h3 id="2-1引入依赖"><a href="#2-1引入依赖" class="headerlink" title="2.1引入依赖"></a>2.1引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-data-mongodb<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-配置文件中添加MongoDB的配置"><a href="#2-2-配置文件中添加MongoDB的配置" class="headerlink" title="2.2 配置文件中添加MongoDB的配置"></a>2.2 配置文件中添加MongoDB的配置</h3><figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.data.mongodb.uri</span>=<span class="string">mongodb://localhost:27017/test</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-创建对应的实体类"><a href="#2-3-创建对应的实体类" class="headerlink" title="2.3 创建对应的实体类"></a>2.3 创建对应的实体类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@Document("User")</span> <span class="comment">//指定实体类对应的MongoDB集合的名称</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">User</span> {</span><br><span class="line"> <span class="meta">@Id</span> <span class="comment">//自动生成的主键ID</span></span><br><span class="line"> <span class="keyword">private</span> String id;</span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="keyword">private</span> Integer age;</span><br><span class="line"> <span class="keyword">private</span> String email;</span><br><span class="line"> <span class="keyword">private</span> String createDate;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4-常用的方法"><a href="#2-4-常用的方法" class="headerlink" title="2.4 常用的方法"></a>2.4 常用的方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//常用方法</span></span><br><span class="line">mongoTemplate.findAll(User.class); <span class="comment">//查询User文档的全部数据</span></span><br><span class="line">mongoTemplate.findById(<id>, User.class); <span class="comment">//查询User文档id为id的数据</span></span><br><span class="line">mongoTemplate.find(query, User.class); <span class="comment">//根据query内的查询条件查询</span></span><br><span class="line">mongoTemplate.upsert(query, update, User.class);<span class="comment">// 修改</span></span><br><span class="line">mongoTemplate.remove(query, User.class);<span class="comment">// 删除</span></span><br><span class="line">mongoTemplate.insert(User);<span class="comment">//新增</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight markdown"><table><tr><td class="code"><pre><span class="line">Query对象</span><br><span class="line">1、创建一个query对象(用来封装所有条件对象),再创建一个criteria对象(用来构建条件)</span><br><span class="line"></span><br><span class="line">2、精准条件:criteria.and(“key”).is(“条件”)</span><br><span class="line"> 模糊条件:criteria.and(“key”).regex(“条件”)</span><br><span class="line"> </span><br><span class="line">3、封装条件:query.addCriteria(criteria)</span><br><span class="line"></span><br><span class="line">4、大于(创建新的criteria):Criteria gt = Criteria.where(“key”).gt(“条件”)</span><br><span class="line"> 小于(创建新的criteria):Criteria lt = Criteria.where(“key”).lt(“条件”)</span><br><span class="line"> </span><br><span class="line">5、Query.addCriteria(new Criteria().andOperator(gt,lt));</span><br><span class="line"></span><br><span class="line">6、一个query中只能有一个andOperator() 其参数也可以是Criteria数组</span><br><span class="line"></span><br><span class="line">7、排序 :query.with(new Sort(Sort.Direction.ASC, "age"). and(new Sort(Sort.Direction.DESC, "date")))</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight markdown"><table><tr><td class="code"><pre><span class="line">主要注解:</span><br><span class="line"></span><br><span class="line">@Document,文档是 MongoDB 中最基本的数据单元,由键值对组成,类似于 JSON 格式,可以存储不同字段,字段的值可以包括其他文档,数组和文档数组。</span><br><span class="line"></span><br><span class="line">@Id(主键):用来将成员变量的值映射为文档的<span class="emphasis">_id的值</span></span><br><span class="line"><span class="emphasis"></span></span><br><span class="line"><span class="emphasis">@Indexed(索引): 索引是一种特殊的数据结构,存储在一个易于遍历读取的数据集合中,能够对数据库文档中的数据进行排序。索引能极大提高文档查询效率,如果没有设置索引,MongoDB 会遍历集合中的整个文档,选取符合查询条件的文档记录。这种查询效率是非常低的。</span></span><br><span class="line"><span class="emphasis"></span></span><br><span class="line"><span class="emphasis">@Field(字段): 文档中的字段,类似于 MySql 中的列。</span></span><br><span class="line"><span class="emphasis"></span></span><br><span class="line"><span class="emphasis">@Aggregation(聚合): 聚合主要用于数据处理,例如统计平均值、求和等。</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>示例代码</p>
|
||
<h4 id="2-4-1-使用MongoTemplate的方式访问MongoDB"><a href="#2-4-1-使用MongoTemplate的方式访问MongoDB" class="headerlink" title="2.4.1 使用MongoTemplate的方式访问MongoDB"></a>2.4.1 使用MongoTemplate的方式访问MongoDB</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">DemomogoApplicationTests</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> MongoTemplate mongoTemplate;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//添加</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">createUser</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line"> user.setAge(<span class="number">20</span>);</span><br><span class="line"> user.setName(<span class="string">"test"</span>);</span><br><span class="line"> user.setEmail(<span class="string">"4932200@qq.com"</span>);</span><br><span class="line"> <span class="type">User</span> <span class="variable">user1</span> <span class="operator">=</span> mongoTemplate.insert(user);</span><br><span class="line"> System.out.println(user1);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//查询所有</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUser</span><span class="params">()</span> {</span><br><span class="line"> List<User> userList = mongoTemplate.findAll(User.class);</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//根据id查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">getById</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> </span><br><span class="line">mongoTemplate.findById(<span class="string">"5ffbfa2ac290f356edf9b5aa"</span>, User.class);</span><br><span class="line"> System.out.println(user);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//条件查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUserList</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">Query</span> <span class="variable">query</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Query</span>(Criteria</span><br><span class="line"> .where(<span class="string">"name"</span>).is(<span class="string">"test"</span>)</span><br><span class="line"> .and(<span class="string">"age"</span>).is(<span class="number">20</span>));</span><br><span class="line"> List<User> userList = mongoTemplate.find(query, User.class);</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//模糊查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUsersLikeName</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> <span class="string">"est"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">regex</span> <span class="operator">=</span> String.format(<span class="string">"%s%s%s"</span>, <span class="string">"^.*"</span>, name, <span class="string">".*$"</span>);</span><br><span class="line"> <span class="type">Pattern</span> <span class="variable">pattern</span> <span class="operator">=</span> Pattern.compile(regex, Pattern.CASE_INSENSITIVE);</span><br><span class="line"> <span class="type">Query</span> <span class="variable">query</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Query</span>(Criteria.where(<span class="string">"name"</span>).regex(pattern));</span><br><span class="line"> List<User> userList = mongoTemplate.find(query, User.class);</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//分页查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUsersPage</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> <span class="string">"est"</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">pageNo</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">pageSize</span> <span class="operator">=</span> <span class="number">10</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//分页查询的条件</span></span><br><span class="line"> <span class="type">Query</span> <span class="variable">query</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Query</span>();</span><br><span class="line"> <span class="type">String</span> <span class="variable">regex</span> <span class="operator">=</span> String.format(<span class="string">"%s%s%s"</span>, <span class="string">"^.*"</span>, name, <span class="string">".*$"</span>);</span><br><span class="line"> <span class="type">Pattern</span> <span class="variable">pattern</span> <span class="operator">=</span> Pattern.compile(regex, Pattern.CASE_INSENSITIVE);</span><br><span class="line"> query.addCriteria(Criteria.where(<span class="string">"name"</span>).regex(pattern));</span><br><span class="line"> <span class="comment">//总记录数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">totalCount</span> <span class="operator">=</span> (<span class="type">int</span>) mongoTemplate.count(query, User.class);</span><br><span class="line"> <span class="comment">//分页查询</span></span><br><span class="line"> List<User> userList = mongoTemplate.find(query.skip((pageNo - <span class="number">1</span>) * pageSize).limit(pageSize), User.class);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//将分页的总记录数和分页数据封装在一个map集合中</span></span><br><span class="line"> Map<String, Object> pageMap = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> pageMap.put(<span class="string">"list"</span>, userList);</span><br><span class="line"> pageMap.put(<span class="string">"totalCount"</span>,totalCount);</span><br><span class="line"> System.out.println(pageMap);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//修改</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateUser</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> mongoTemplate.findById(<span class="string">"5ffbfa2ac290f356edf9b5aa"</span>, User.class);</span><br><span class="line"> user.setName(<span class="string">"test_1"</span>);</span><br><span class="line"> user.setAge(<span class="number">25</span>);</span><br><span class="line"> user.setEmail(<span class="string">"493220990@qq.com"</span>);</span><br><span class="line"> <span class="type">Query</span> <span class="variable">query</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Query</span>(Criteria.where(<span class="string">"_id"</span>).is(user.getId()));</span><br><span class="line"> <span class="type">Update</span> <span class="variable">update</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Update</span>();</span><br><span class="line"> update.set(<span class="string">"name"</span>, user.getName());</span><br><span class="line"> update.set(<span class="string">"age"</span>, user.getAge());</span><br><span class="line"> update.set(<span class="string">"email"</span>, user.getEmail());</span><br><span class="line"> <span class="type">UpdateResult</span> <span class="variable">result</span> <span class="operator">=</span> mongoTemplate.upsert(query, update, User.class);</span><br><span class="line"> <span class="comment">//影响的行数</span></span><br><span class="line"> <span class="type">long</span> <span class="variable">count</span> <span class="operator">=</span> result.getModifiedCount();</span><br><span class="line"> System.out.println(count);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//删除操作</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">Query</span> <span class="variable">query</span> <span class="operator">=</span> </span><br><span class="line"><span class="keyword">new</span> <span class="title class_">Query</span>(Criteria.where(<span class="string">"_id"</span>).is(<span class="string">"5ffbfa2ac290f356edf9b5aa"</span>));</span><br><span class="line"> <span class="type">DeleteResult</span> <span class="variable">result</span> <span class="operator">=</span> mongoTemplate.remove(query, User.class);</span><br><span class="line"> <span class="type">long</span> <span class="variable">count</span> <span class="operator">=</span> result.getDeletedCount();</span><br><span class="line"> System.out.println(count);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-4-2-使用MongoRepository的方式访问MongoDB"><a href="#2-4-2-使用MongoRepository的方式访问MongoDB" class="headerlink" title="2.4.2 使用MongoRepository的方式访问MongoDB"></a>2.4.2 使用MongoRepository的方式访问MongoDB</h4><h5 id="a-创建UserRepository类"><a href="#a-创建UserRepository类" class="headerlink" title="a.创建UserRepository类"></a>a.创建UserRepository类</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.mongodb.repository;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.mongodb.entity.User;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.mongodb.repository.MongoRepository;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Repository;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Repository</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">UserRepository</span> <span class="keyword">extends</span> <span class="title class_">MongoRepository</span><User, String> {</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="b-测试使用"><a href="#b-测试使用" class="headerlink" title="b.测试使用"></a>b.测试使用</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">DemomogoApplicationTests1</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> UserRepository userRepository;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//添加</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">createUser</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line"> user.setAge(<span class="number">20</span>);</span><br><span class="line"> user.setName(<span class="string">"张三"</span>);</span><br><span class="line"> user.setEmail(<span class="string">"3332200@qq.com"</span>);</span><br><span class="line"> <span class="type">User</span> <span class="variable">user1</span> <span class="operator">=</span> userRepository.save(user);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//查询所有</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUser</span><span class="params">()</span> {</span><br><span class="line"> List<User> userList = userRepository.findAll();</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//id查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">getById</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> userRepository.findById(<span class="string">"5ffbfe8197f24a07007bd6ce"</span>).get();</span><br><span class="line"> System.out.println(user);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//条件查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUserList</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//查询条件 名字是张三 年龄是20</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line"> user.setName(<span class="string">"张三"</span>);</span><br><span class="line"> user.setAge(<span class="number">20</span>);</span><br><span class="line"> Example<User> userExample = Example.of(user);</span><br><span class="line"> List<User> userList = userRepository.findAll(userExample);</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//模糊查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUsersLikeName</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//创建匹配器,即如何使用查询条件</span></span><br><span class="line"> <span class="type">ExampleMatcher</span> <span class="variable">matcher</span> <span class="operator">=</span> ExampleMatcher.matching() <span class="comment">//构建对象</span></span><br><span class="line"> .withStringMatcher(ExampleMatcher.StringMatcher.CONTAINING) <span class="comment">//改变默认字符串匹配方式:模糊查询</span></span><br><span class="line"> .withIgnoreCase(<span class="literal">true</span>); <span class="comment">//改变默认大小写忽略方式:忽略大小写</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line"> user.setName(<span class="string">"三"</span>);</span><br><span class="line"> Example<User> userExample = Example.of(user, matcher);</span><br><span class="line"> List<User> userList = userRepository.findAll(userExample);</span><br><span class="line"> System.out.println(userList);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//分页查询</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">findUsersPage</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//根据年龄降序</span></span><br><span class="line"> <span class="type">Sort</span> <span class="variable">sort</span> <span class="operator">=</span> Sort.by(Sort.Direction.DESC, <span class="string">"age"</span>);</span><br><span class="line"> <span class="comment">//0为第一页</span></span><br><span class="line"> <span class="type">Pageable</span> <span class="variable">pageable</span> <span class="operator">=</span> PageRequest.of(<span class="number">0</span>, <span class="number">10</span>, sort);</span><br><span class="line"> <span class="comment">//创建匹配器,即如何使用查询条件</span></span><br><span class="line"> <span class="type">ExampleMatcher</span> <span class="variable">matcher</span> <span class="operator">=</span> ExampleMatcher.matching() <span class="comment">//构建对象</span></span><br><span class="line"> .withStringMatcher(ExampleMatcher.StringMatcher.CONTAINING) <span class="comment">//改变默认字符串匹配方式:模糊查询</span></span><br><span class="line"> .withIgnoreCase(<span class="literal">true</span>); <span class="comment">//改变默认大小写忽略方式:忽略大小写</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>();</span><br><span class="line"> user.setName(<span class="string">"三"</span>);<span class="comment">//查询名字中包含 '三' 的数据</span></span><br><span class="line"> Example<User> userExample = Example.of(user, matcher);</span><br><span class="line"> <span class="comment">//创建实例</span></span><br><span class="line"> Example<User> example = Example.of(user, matcher);</span><br><span class="line"> Page<User> pages = userRepository.findAll(example, pageable);</span><br><span class="line"> System.out.println(pages);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//修改</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateUser</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> userRepository.findById(<span class="string">"5ffbfe8197f24a07007bd6ce"</span>).get();</span><br><span class="line"> user.setName(<span class="string">"张三_1"</span>);</span><br><span class="line"> user.setAge(<span class="number">25</span>);</span><br><span class="line"> user.setEmail(<span class="string">"883220990@qq.com"</span>);</span><br><span class="line"> <span class="type">User</span> <span class="variable">save</span> <span class="operator">=</span> userRepository.save(user);<span class="comment">//有id值就是修改 m</span></span><br><span class="line"> System.out.println(save);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//删除</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">()</span> {</span><br><span class="line"> userRepository.deleteById(<span class="string">"5ffbfe8197f24a07007bd6ce"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot整合EasyExcel</title>
|
||
<url>/posts/38823.html</url>
|
||
<content><![CDATA[<h2 id="1-EasyExcel介绍"><a href="#1-EasyExcel介绍" class="headerlink" title="1.EasyExcel介绍"></a>1.EasyExcel介绍</h2><p> Java解析、生成Excel比较有名的框架有Apache poi、jxl。但他们都存在一个严重的问题就是非常的耗内存,poi有一套SAX模式的API可以一定程度的解决一些内存溢出的问题,但POI还是有一些缺陷,比如07版Excel解压缩以及解压后存储都是在内存中完成的,内存消耗依然很大。easyexcel重写了poi对07版Excel的解析,一个3M的excel用POI sax解析依然需要100M左右内存,改用easyexcel可以降低到几M,并且再大的excel也不会出现内存溢出;03版依赖POI的sax模式,在上层做了模型转换的封装,让使用者更加简单方便</p>
|
||
<p>官网地址:<a href="https://easyexcel.opensource.alibaba.com/">https://easyexcel.opensource.alibaba.com/</a></p>
|
||
<h2 id="2-入门"><a href="#2-入门" class="headerlink" title="2.入门"></a>2.入门</h2><h3 id="2-1-引入依赖"><a href="#2-1-引入依赖" class="headerlink" title="2.1 引入依赖"></a>2.1 引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>easyexcel<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.1.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-创建与Excel表格对应的实体类,并在属性上加上注解"><a href="#2-2-创建与Excel表格对应的实体类,并在属性上加上注解" class="headerlink" title="2.2 创建与Excel表格对应的实体类,并在属性上加上注解"></a>2.2 创建与Excel表格对应的实体类,并在属性上加上注解</h3><p>不用自己设置excel表中的表头信息,easyexcel会帮我们设置</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.annotation.ExcelProperty;</span><br><span class="line"><span class="keyword">import</span> lombok.AllArgsConstructor;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> lombok.NoArgsConstructor;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 与Excel表格对应的实体类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@AllArgsConstructor</span></span><br><span class="line"><span class="meta">@NoArgsConstructor</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">UserData</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 注解中value 设置的是表头的信息</span></span><br><span class="line"><span class="comment"> * index 设置的是这个属性在excel表格中的索引位置 列索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"> <span class="meta">@ExcelProperty(value = "用户编号", index = 0)</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> uid;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@ExcelProperty(value = "用户名称", index = 1)</span></span><br><span class="line"> <span class="keyword">private</span> String username;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-读写操作"><a href="#2-3-读写操作" class="headerlink" title="2.3 读写操作"></a>2.3 读写操作</h3><h4 id="1-写操作"><a href="#1-写操作" class="headerlink" title="1.写操作"></a>1.写操作</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.EasyExcel;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 测试对excel的操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">TestEasyExcel</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//设置excel文件的路径和名称</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filename</span> <span class="operator">=</span> <span class="string">"C:\\AlYun\\user.xlsx"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//构建一个数据的list集合,存放要保存在excel表中的数据</span></span><br><span class="line"> List<UserData> userDataList = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> userDataList.add(<span class="keyword">new</span> <span class="title class_">UserData</span>(<span class="number">1</span>,<span class="string">"张三"</span>));</span><br><span class="line"> userDataList.add(<span class="keyword">new</span> <span class="title class_">UserData</span>(<span class="number">2</span>,<span class="string">"李四"</span>));</span><br><span class="line"> userDataList.add(<span class="keyword">new</span> <span class="title class_">UserData</span>(<span class="number">3</span>,<span class="string">"王五"</span>));</span><br><span class="line"> userDataList.add(<span class="keyword">new</span> <span class="title class_">UserData</span>(<span class="number">4</span>,<span class="string">"赵六"</span>));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//调用方法实现写的操作</span></span><br><span class="line"> EasyExcel.write(filename,UserData.class)</span><br><span class="line"> .sheet(<span class="string">"用户信息"</span>)</span><br><span class="line"> .doWrite(userDataList);</span><br><span class="line"> </span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>执行之后,空的excel表中会添加如下的数据</p>
|
||
<p><img src="/pictures/image-20230414131020923.png" alt="image-20230414131020923"></p>
|
||
<h4 id="2-读操作"><a href="#2-读操作" class="headerlink" title="2.读操作"></a>2.读操作</h4><h5 id="1-创建一个读操作的监听器"><a href="#1-创建一个读操作的监听器" class="headerlink" title="1 .创建一个读操作的监听器"></a>1 .创建一个读操作的监听器</h5><p>继承AnalysisEventListener<T> T表示实体类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.context.AnalysisContext;</span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.event.AnalysisEventListener;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 读操作的监听器</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ExcelLister</span> <span class="keyword">extends</span> <span class="title class_">AnalysisEventListener</span><UserData> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 一行一行的读取 从第二行开始读取</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">invoke</span><span class="params">(UserData data, AnalysisContext context)</span> {</span><br><span class="line"> <span class="comment">//打印输出读取到的数据</span></span><br><span class="line"> System.out.println(data);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 读取之后执行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">doAfterAllAnalysed</span><span class="params">(AnalysisContext context)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 非必须实现的方法</span></span><br><span class="line"><span class="comment"> * 此方法可以读取表头的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">invokeHeadMap</span><span class="params">(Map<Integer, String> headMap, AnalysisContext context)</span> {</span><br><span class="line"> <span class="comment">//打印读取到的表头信息</span></span><br><span class="line"> System.out.println(<span class="string">"表头信息:"</span>+headMap);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="5-编写方法测试"><a href="#5-编写方法测试" class="headerlink" title="5.编写方法测试"></a>5.编写方法测试</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.EasyExcel;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">TestReadExcel</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//设置excel文件的路径和名称</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filename</span> <span class="operator">=</span> <span class="string">"C:\\AlYun\\user.xlsx"</span>;</span><br><span class="line"> <span class="comment">//调用方法实现读取操作</span></span><br><span class="line"> <span class="comment">//new ExcelLister()自己创建的监听器</span></span><br><span class="line"> EasyExcel.read(filename,UserData.class,<span class="keyword">new</span> <span class="title class_">ExcelLister</span>())</span><br><span class="line"> .sheet()</span><br><span class="line"> .doRead();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-监听器中实现对数据库的操作"><a href="#3-监听器中实现对数据库的操作" class="headerlink" title="3.监听器中实现对数据库的操作"></a>3.监听器中实现对数据库的操作</h2><p>解决listener中无法操作数据库的问题</p>
|
||
<h3 id="3-1-通过构造器注入的方式"><a href="#3-1-通过构造器注入的方式" class="headerlink" title="3.1 通过构造器注入的方式"></a>3.1 通过构造器注入的方式</h3><p>在进行读操作创建Listener的时候,注入mapper</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.yygh.cmn.listener;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.context.AnalysisContext;</span><br><span class="line"><span class="keyword">import</span> com.alibaba.excel.event.AnalysisEventListener;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.cmn.mapper.DictMapper;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.model.cmn.Dict;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.vo.cmn.DictEeVo;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.BeanUtils;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">DictListener</span> <span class="keyword">extends</span> <span class="title class_">AnalysisEventListener</span><DictEeVo> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> DictMapper dictMapper;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">DictListener</span><span class="params">(DictMapper dictMapper)</span> {</span><br><span class="line"> <span class="built_in">this</span>.dictMapper = dictMapper;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">invoke</span><span class="params">(DictEeVo data, AnalysisContext context)</span> {</span><br><span class="line"> <span class="comment">//调用mapper 添加数据</span></span><br><span class="line"> <span class="type">Dict</span> <span class="variable">dict</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Dict</span>();</span><br><span class="line"> BeanUtils.copyProperties(data,dict);</span><br><span class="line"> dictMapper.insert(dict);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">doAfterAllAnalysed</span><span class="params">(AnalysisContext context)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-2-使用注解加属性注入的方式"><a href="#3-2-使用注解加属性注入的方式" class="headerlink" title="3.2 使用注解加属性注入的方式"></a>3.2 使用注解加属性注入的方式</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Component</span></span><br><span class="line"> +</span><br><span class="line"><span class="meta">@Autowired</span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot整合Logback日志</title>
|
||
<url>/posts/64205.html</url>
|
||
<content><![CDATA[<h2 id="1-创建一个SpringBoot的工程"><a href="#1-创建一个SpringBoot的工程" class="headerlink" title="1.创建一个SpringBoot的工程"></a>1.创建一个SpringBoot的工程</h2><h2 id="2-在resources目录下创建logback-spring-xml的配置文件"><a href="#2-在resources目录下创建logback-spring-xml的配置文件" class="headerlink" title="2.在resources目录下创建logback-spring.xml的配置文件"></a>2.在resources目录下创建logback-spring.xml的配置文件</h2><p>创建的时候要修改日志输出的路径</p>
|
||
<p>日志的级别根据需要自己修改</p>
|
||
<p>级别:OFF、FATAL、ERROR、WARN、INFO、DEBUG、ALL</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">configuration</span> <span class="attr">scan</span>=<span class="string">"true"</span> <span class="attr">scanPeriod</span>=<span class="string">"10 seconds"</span>></span></span><br><span class="line"> <span class="comment"><!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 --></span></span><br><span class="line"> <span class="comment"><!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true --></span></span><br><span class="line"> <span class="comment"><!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 --></span></span><br><span class="line"> <span class="comment"><!-- de<span class="doctag">bug:</span>当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 --></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">contextName</span>></span>logback<span class="tag"></<span class="name">contextName</span>></span></span><br><span class="line"> <span class="comment"><!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"log.path"</span> <span class="attr">value</span>=<span class="string">"C:/AlYun/log"</span> /></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 彩色日志 --></span></span><br><span class="line"> <span class="comment"><!-- 配置格式变量:CONSOLE_LOG_PATTERN 彩色日志格式 --></span></span><br><span class="line"> <span class="comment"><!-- magenta:洋红 --></span></span><br><span class="line"> <span class="comment"><!-- boldMagenta:粗红--></span></span><br><span class="line"> <span class="comment"><!-- cyan:青色 --></span></span><br><span class="line"> <span class="comment"><!-- white:白色 --></span></span><br><span class="line"> <span class="comment"><!-- magenta:洋红 --></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"CONSOLE_LOG_PATTERN"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">value</span>=<span class="string">"%yellow(%date{yyyy-MM-dd HH:mm:ss}) |%highlight(%-5level) |%blue(%thread) |%blue(%file:%line) |%green(%logger) |%cyan(%msg%n)"</span>/></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--输出到控制台--></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"CONSOLE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.ConsoleAppender"</span>></span></span><br><span class="line"> <span class="comment"><!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--></span></span><br><span class="line"> <span class="comment"><!-- 例如:如果此处配置了INFO级别,则后面其他位置即使配置了DEBUG级别的日志,也不会被输出 --></span></span><br><span class="line"> <span class="tag"><<span class="name">filter</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.classic.filter.ThresholdFilter"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span>></span>INFO<span class="tag"></<span class="name">level</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">filter</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">Pattern</span>></span>${CONSOLE_LOG_PATTERN}<span class="tag"></<span class="name">Pattern</span>></span></span><br><span class="line"> <span class="comment"><!-- 设置字符集 --></span></span><br><span class="line"> <span class="tag"><<span class="name">charset</span>></span>UTF-8<span class="tag"></<span class="name">charset</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--输出到文件--></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 时间滚动输出 level为 INFO 日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"INFO_FILE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.RollingFileAppender"</span>></span></span><br><span class="line"> <span class="comment"><!-- 正在记录的日志文件的路径及文件名 --></span></span><br><span class="line"> <span class="tag"><<span class="name">file</span>></span>${log.path}/log_info.log<span class="tag"></<span class="name">file</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件输出格式--></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">pattern</span>></span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n<span class="tag"></<span class="name">pattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">charset</span>></span>UTF-8<span class="tag"></<span class="name">charset</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="comment"><!-- 日志记录器的滚动策略,按日期,按大小记录 --></span></span><br><span class="line"> <span class="tag"><<span class="name">rollingPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span>></span></span><br><span class="line"> <span class="comment"><!-- 每天日志归档路径以及格式 --></span></span><br><span class="line"> <span class="tag"><<span class="name">fileNamePattern</span>></span>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log<span class="tag"></<span class="name">fileNamePattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">timeBasedFileNamingAndTriggeringPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maxFileSize</span>></span>100MB<span class="tag"></<span class="name">maxFileSize</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">timeBasedFileNamingAndTriggeringPolicy</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件保留天数--></span></span><br><span class="line"> <span class="tag"><<span class="name">maxHistory</span>></span>15<span class="tag"></<span class="name">maxHistory</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">rollingPolicy</span>></span></span><br><span class="line"> <span class="comment"><!-- 此日志文件只记录info级别的 --></span></span><br><span class="line"> <span class="tag"><<span class="name">filter</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.classic.filter.LevelFilter"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span>></span>INFO<span class="tag"></<span class="name">level</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMatch</span>></span>ACCEPT<span class="tag"></<span class="name">onMatch</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMismatch</span>></span>DENY<span class="tag"></<span class="name">onMismatch</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">filter</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 时间滚动输出 level为 WARN 日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"WARN_FILE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.RollingFileAppender"</span>></span></span><br><span class="line"> <span class="comment"><!-- 正在记录的日志文件的路径及文件名 --></span></span><br><span class="line"> <span class="tag"><<span class="name">file</span>></span>${log.path}/log_warn.log<span class="tag"></<span class="name">file</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件输出格式--></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">pattern</span>></span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n<span class="tag"></<span class="name">pattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">charset</span>></span>UTF-8<span class="tag"></<span class="name">charset</span>></span> <span class="comment"><!-- 此处设置字符集 --></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="comment"><!-- 日志记录器的滚动策略,按日期,按大小记录 --></span></span><br><span class="line"> <span class="tag"><<span class="name">rollingPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">fileNamePattern</span>></span>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log<span class="tag"></<span class="name">fileNamePattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">timeBasedFileNamingAndTriggeringPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maxFileSize</span>></span>100MB<span class="tag"></<span class="name">maxFileSize</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">timeBasedFileNamingAndTriggeringPolicy</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件保留天数--></span></span><br><span class="line"> <span class="tag"><<span class="name">maxHistory</span>></span>15<span class="tag"></<span class="name">maxHistory</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">rollingPolicy</span>></span></span><br><span class="line"> <span class="comment"><!-- 此日志文件只记录warn级别的 --></span></span><br><span class="line"> <span class="tag"><<span class="name">filter</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.classic.filter.LevelFilter"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span>></span>warn<span class="tag"></<span class="name">level</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMatch</span>></span>ACCEPT<span class="tag"></<span class="name">onMatch</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMismatch</span>></span>DENY<span class="tag"></<span class="name">onMismatch</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">filter</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 时间滚动输出 level为 ERROR 日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"ERROR_FILE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.RollingFileAppender"</span>></span></span><br><span class="line"> <span class="comment"><!-- 正在记录的日志文件的路径及文件名 --></span></span><br><span class="line"> <span class="tag"><<span class="name">file</span>></span>${log.path}/log_error.log<span class="tag"></<span class="name">file</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件输出格式--></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">pattern</span>></span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n<span class="tag"></<span class="name">pattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">charset</span>></span>UTF-8<span class="tag"></<span class="name">charset</span>></span> <span class="comment"><!-- 此处设置字符集 --></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="comment"><!-- 日志记录器的滚动策略,按日期,按大小记录 --></span></span><br><span class="line"> <span class="tag"><<span class="name">rollingPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">fileNamePattern</span>></span>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log<span class="tag"></<span class="name">fileNamePattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">timeBasedFileNamingAndTriggeringPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maxFileSize</span>></span>100MB<span class="tag"></<span class="name">maxFileSize</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">timeBasedFileNamingAndTriggeringPolicy</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件保留天数--></span></span><br><span class="line"> <span class="tag"><<span class="name">maxHistory</span>></span>15<span class="tag"></<span class="name">maxHistory</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">rollingPolicy</span>></span></span><br><span class="line"> <span class="comment"><!-- 此日志文件只记录ERROR级别的 --></span></span><br><span class="line"> <span class="tag"><<span class="name">filter</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.classic.filter.LevelFilter"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">level</span>></span>ERROR<span class="tag"></<span class="name">level</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMatch</span>></span>ACCEPT<span class="tag"></<span class="name">onMatch</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">onMismatch</span>></span>DENY<span class="tag"></<span class="name">onMismatch</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">filter</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> <logger>用来设置某一个包或者具体的某一个类的日志打印级别、以及指定<appender>。</span></span><br><span class="line"><span class="comment"> <logger>仅有一个name属性,</span></span><br><span class="line"><span class="comment"> 一个可选的level和一个可选的addtivity属性。</span></span><br><span class="line"><span class="comment"> name:用来指定受此logger约束的某一个包或者具体的某一个类。</span></span><br><span class="line"><span class="comment"> level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF,</span></span><br><span class="line"><span class="comment"> 如果未设置此属性,那么当前logger将会继承上级的级别。</span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> 使用mybatis的时候,sql语句是debug下才会打印,而这里我们只配置了info,所以想要查看sql语句的话,有以下两种操作:</span></span><br><span class="line"><span class="comment"> 第一种把<root level="INFO">改成<root level="DEBUG">这样就会打印sql,不过这样日志那边会出现很多其他消息</span></span><br><span class="line"><span class="comment"> 第二种就是单独给mapper下目录配置DEBUG模式,代码如下,这样配置sql语句会打印,其他还是正常DEBUG级别:</span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="comment"><!--开发环境:打印控制台--></span></span><br><span class="line"> <span class="tag"><<span class="name">springProfile</span> <span class="attr">name</span>=<span class="string">"dev"</span>></span></span><br><span class="line"> <span class="comment"><!--可以输出项目中的debug日志,包括mybatis的sql日志--></span></span><br><span class="line"> <span class="tag"><<span class="name">logger</span> <span class="attr">name</span>=<span class="string">"com.guli"</span> <span class="attr">level</span>=<span class="string">"INFO"</span> /></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> root节点是必选节点,用来指定最基础的日志输出级别,只有一个level属性</span></span><br><span class="line"><span class="comment"> level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF,默认是DEBUG</span></span><br><span class="line"><span class="comment"> 可以包含零个或多个appender元素。</span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"><<span class="name">root</span> <span class="attr">level</span>=<span class="string">"INFO"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"CONSOLE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"INFO_FILE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"WARN_FILE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"ERROR_FILE"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">root</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">springProfile</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--生产环境:输出到文件--></span></span><br><span class="line"> <span class="tag"><<span class="name">springProfile</span> <span class="attr">name</span>=<span class="string">"pro"</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">root</span> <span class="attr">level</span>=<span class="string">"INFO"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"CONSOLE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"DEBUG_FILE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"INFO_FILE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"ERROR_FILE"</span> /></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"WARN_FILE"</span> /></span></span><br><span class="line"> <span class="tag"></<span class="name">root</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">springProfile</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">configuration</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-日志的样式如下图所示"><a href="#3-日志的样式如下图所示" class="headerlink" title="3.日志的样式如下图所示"></a>3.日志的样式如下图所示</h2><p><img src="/pictures/image-20230412171350769.png" alt="image-20230412171350769"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>VMWare虚拟机安装Linux教程</title>
|
||
<url>/posts/47407.html</url>
|
||
<content><![CDATA[<h2 id="1-下载CentOs镜像文件"><a href="#1-下载CentOs镜像文件" class="headerlink" title="1.下载CentOs镜像文件"></a>1.下载CentOs镜像文件</h2><p>这里下载的是7版本的 如果有其他的需要 自行安装其他的版本</p>
|
||
<p>下载完成之后 记录好安装的位置</p>
|
||
<p>阿里镜像下载地址:<a href="https://mirrors.aliyun.com/centos/7/isos/x86_64/?spm=a2c6h.25603864.0.0.4eab4511uQRsgc">https://mirrors.aliyun.com/centos/7/isos/x86_64/?spm=a2c6h.25603864.0.0.4eab4511uQRsgc</a></p>
|
||
<p><img src="/pictures/image-20230510224239950.png" alt="image-20230510224239950"></p>
|
||
<h2 id="2-下载VMWare-虚拟机"><a href="#2-下载VMWare-虚拟机" class="headerlink" title="2.下载VMWare 虚拟机"></a>2.下载VMWare 虚拟机</h2><p>这里下载的是17版本的VMWare ,可以免费试用30天,需要许可证的可自行百度搜索</p>
|
||
<p>官网下载地址: <a href="https://download3.vmware.com/software/WKST-1701-WIN/VMware-workstation-full-17.0.1-21139696.exe">https://download3.vmware.com/software/WKST-1701-WIN/VMware-workstation-full-17.0.1-21139696.exe</a></p>
|
||
<p>安装步骤:</p>
|
||
<p><img src="/pictures/image-20230510222210848.png" alt="image-20230510222210848"></p>
|
||
<h2 id="3-配置虚拟机-以CentOs为例"><a href="#3-配置虚拟机-以CentOs为例" class="headerlink" title="3.配置虚拟机 (以CentOs为例)"></a>3.配置虚拟机 (以CentOs为例)</h2><p>CentOs的不同版本在VmWare上面的配置略有不同</p>
|
||
<h4 id="CentOs-7-6版本的配置教程"><a href="#CentOs-7-6版本的配置教程" class="headerlink" title="CentOs 7.6版本的配置教程"></a>CentOs 7.6版本的配置教程</h4>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/韩顺平教育安装CentOS7.6.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h4 id="CentOs-8-1版本的配置教程"><a href="#CentOs-8-1版本的配置教程" class="headerlink" title="CentOs 8.1版本的配置教程"></a>CentOs 8.1版本的配置教程</h4>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/韩顺平教育安装CentOS8.1.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="连接Linux-的远程工具"><a href="#连接Linux-的远程工具" class="headerlink" title="连接Linux 的远程工具"></a>连接Linux 的远程工具</h2><p><strong>其实本地安装Linux大可不必安装远程控制工具 直接进入Linux里面控制即可</strong></p>
|
||
<p><img src="/pictures/image-20230510225825430.png" alt="image-20230510225825430"></p>
|
||
<h3 id="XShell6的安装和配置"><a href="#XShell6的安装和配置" class="headerlink" title="XShell6的安装和配置"></a>XShell6的安装和配置</h3><h4 id="1-安装"><a href="#1-安装" class="headerlink" title="1.安装"></a>1.安装</h4><p>下载地址: <a href="https://wwvc.lanzouy.com/ipF2w0v6np8j">https://wwvc.lanzouy.com/ipF2w0v6np8j</a></p>
|
||
<p>下载解压之后双击.exe文件 点击下一步安装 直到安装完成</p>
|
||
<h4 id="2-配置"><a href="#2-配置" class="headerlink" title="2.配置"></a>2.配置</h4><p>1.获取Linux的ip地址信息 并记录ip的信息 </p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">命令</span> </span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">注意这里没有写错 就是ifconfig 不是ipconfig,ipconfig是windows系统的查看ip的命令</span></span><br><span class="line">ifconfig</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230510230114550.png" alt="image-20230510230114550"></p>
|
||
<p>2.打开xShell工具</p>
|
||
<p>2.1创建会话</p>
|
||
<p><img src="/pictures/image-20230510230758405.png" alt="image-20230510230758405"></p>
|
||
<p>2.2 选择会话并连接</p>
|
||
<p><img src="/pictures/image-20230510230937843.png" alt="image-20230510230937843"></p>
|
||
<p><img src="/pictures/image-20230510231329208.png" alt="image-20230510231329208"></p>
|
||
<p><img src="/pictures/image-20230510231432103.png" alt="image-20230510231432103"></p>
|
||
<p>2.3 用户名和密码正确之后就连接成功</p>
|
||
<p>连接成功如下图</p>
|
||
<p><img src="/pictures/image-20230510231607314.png" alt="image-20230510231607314"></p>
|
||
<p><strong>完整的配置过程</strong></p>
|
||
<p><img src="/pictures/image-20230510232029231.png" alt="image-20230510232029231"></p>
|
||
<h3 id="FinalShell的下载地址"><a href="#FinalShell的下载地址" class="headerlink" title="FinalShell的下载地址"></a>FinalShell的下载地址</h3><p>下载地址: <a href="http://www.hostbuf.com/downloads/finalshell_install.exe">http://www.hostbuf.com/downloads/finalshell_install.exe</a></p>
|
||
<p>Tips:</p>
|
||
<p> 这里我们没有设置Linux的静态IP,电脑每次网络变化之后,IP地址会发生变化,这时我们需要获取最新的IP地址,重新执行以上的连接步骤。如果想要IP地址固定,我们可以设置静态IP,设置静态的IP的方法如下:</p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/21883.html">Linux设置静态IP | The Blog (gitee.io)</a></strong></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot整合Redis</title>
|
||
<url>/posts/13813.html</url>
|
||
<content><![CDATA[<h2 id="1-Redis的介绍"><a href="#1-Redis的介绍" class="headerlink" title="1.Redis的介绍"></a>1.Redis的介绍</h2><p> Redis是一个开源(BSD许可),内存存储的数据结构服务器,可用作数据库,高速缓存和消息队列代理。它支持字符串、哈希表、列表、集合、有序集合,位图,hyperloglogs等数据类型。内置复制、Lua脚本、LRU收回、事务以及不同级别磁盘持久化功能,同时通过Redis Sentinel提供高可用,通过Redis Cluster提供自动分区。</p>
|
||
<p>中文文档:<a href="https://www.redis.net.cn/">https://www.redis.net.cn/</a></p>
|
||
<h2 id="2-入门"><a href="#2-入门" class="headerlink" title="2.入门"></a>2.入门</h2><h3 id="2-1-引入依赖"><a href="#2-1-引入依赖" class="headerlink" title="2.1 引入依赖"></a>2.1 引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- redis --></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-data-redis<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!-- spring2.X集成redis所需common-pool2--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.apache.commons<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>commons-pool2<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.6.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span> </span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="2-2-添加配置类"><a href="#2-2-添加配置类" class="headerlink" title="2.2 添加配置类"></a>2.2 添加配置类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.yygh.common.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.fasterxml.jackson.annotation.JsonAutoDetect;</span><br><span class="line"><span class="keyword">import</span> com.fasterxml.jackson.annotation.PropertyAccessor;</span><br><span class="line"><span class="keyword">import</span> com.fasterxml.jackson.databind.ObjectMapper;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cache.CacheManager;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cache.annotation.EnableCaching;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cache.interceptor.KeyGenerator;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.cache.RedisCacheConfiguration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.cache.RedisCacheManager;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.connection.RedisConnectionFactory;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.core.RedisTemplate;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.RedisSerializationContext;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.RedisSerializer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.StringRedisSerializer;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Method;</span><br><span class="line"><span class="keyword">import</span> java.time.Duration;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="meta">@EnableCaching</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">RedisConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自定义key规则</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> KeyGenerator <span class="title function_">keyGenerator</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">KeyGenerator</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Object <span class="title function_">generate</span><span class="params">(Object target, Method method, Object... params)</span> {</span><br><span class="line"> <span class="type">StringBuilder</span> <span class="variable">sb</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuilder</span>();</span><br><span class="line"> sb.append(target.getClass().getName());</span><br><span class="line"> sb.append(method.getName());</span><br><span class="line"> <span class="keyword">for</span> (Object obj : params) {</span><br><span class="line"> sb.append(obj.toString());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> sb.toString();</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 设置RedisTemplate规则</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> RedisTemplate<Object, Object> <span class="title function_">redisTemplate</span><span class="params">(RedisConnectionFactory redisConnectionFactory)</span> {</span><br><span class="line"> RedisTemplate<Object, Object> redisTemplate = <span class="keyword">new</span> <span class="title class_">RedisTemplate</span><>();</span><br><span class="line"> redisTemplate.setConnectionFactory(redisConnectionFactory);</span><br><span class="line"> <span class="type">Jackson2JsonRedisSerializer</span> <span class="variable">jackson2JsonRedisSerializer</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Jackson2JsonRedisSerializer</span>(Object.class);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//解决查询缓存转换异常的问题</span></span><br><span class="line"> <span class="type">ObjectMapper</span> <span class="variable">om</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ObjectMapper</span>();</span><br><span class="line"> <span class="comment">// 指定要序列化的域,field,get和set,以及修饰符范围,ANY是都有包括private和public</span></span><br><span class="line"> om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);</span><br><span class="line"> <span class="comment">// 指定序列化输入的类型,类必须是非final修饰的,final修饰的类,比如String,Integer等会跑出异常</span></span><br><span class="line"> om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);</span><br><span class="line"> jackson2JsonRedisSerializer.setObjectMapper(om);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//序列号key value</span></span><br><span class="line"> redisTemplate.setKeySerializer(<span class="keyword">new</span> <span class="title class_">StringRedisSerializer</span>());</span><br><span class="line"> redisTemplate.setValueSerializer(jackson2JsonRedisSerializer);</span><br><span class="line"> redisTemplate.setHashKeySerializer(<span class="keyword">new</span> <span class="title class_">StringRedisSerializer</span>());</span><br><span class="line"> redisTemplate.setHashValueSerializer(jackson2JsonRedisSerializer);</span><br><span class="line"></span><br><span class="line"> redisTemplate.afterPropertiesSet();</span><br><span class="line"> <span class="keyword">return</span> redisTemplate;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 设置CacheManager缓存规则</span></span><br><span class="line"><span class="comment"> * 缓存的时间</span></span><br><span class="line"><span class="comment"> * 乱码的处理</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> CacheManager <span class="title function_">cacheManager</span><span class="params">(RedisConnectionFactory factory)</span> {</span><br><span class="line"> RedisSerializer<String> redisSerializer = <span class="keyword">new</span> <span class="title class_">StringRedisSerializer</span>();</span><br><span class="line"> <span class="type">Jackson2JsonRedisSerializer</span> <span class="variable">jackson2JsonRedisSerializer</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Jackson2JsonRedisSerializer</span>(Object.class);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//解决查询缓存转换异常的问题</span></span><br><span class="line"> <span class="type">ObjectMapper</span> <span class="variable">om</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ObjectMapper</span>();</span><br><span class="line"> om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);</span><br><span class="line"> om.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);</span><br><span class="line"> jackson2JsonRedisSerializer.setObjectMapper(om);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 配置序列化(解决乱码的问题),过期时间600秒</span></span><br><span class="line"> <span class="type">RedisCacheConfiguration</span> <span class="variable">config</span> <span class="operator">=</span> RedisCacheConfiguration.defaultCacheConfig()</span><br><span class="line"> .entryTtl(Duration.ofSeconds(<span class="number">600</span>))</span><br><span class="line"> .serializeKeysWith(RedisSerializationContext.SerializationPair.fromSerializer(redisSerializer))</span><br><span class="line"> .serializeValuesWith(RedisSerializationContext.SerializationPair.fromSerializer(jackson2JsonRedisSerializer))</span><br><span class="line"> .disableCachingNullValues();</span><br><span class="line"></span><br><span class="line"> <span class="type">RedisCacheManager</span> <span class="variable">cacheManager</span> <span class="operator">=</span> RedisCacheManager.builder(factory)</span><br><span class="line"> .cacheDefaults(config)</span><br><span class="line"> .build();</span><br><span class="line"> <span class="keyword">return</span> cacheManager;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>说明:<br> @EnableCaching:标记注解 @EnableCaching,开启缓存,并配置Redis缓存管理器。@EnableCaching 注释触发后置处理器, 检查每一个Spring bean 的 public 方法是否存在缓存注解。如果找到这样的一个注释, 自动创建一个代理拦截方法调用和处理相应的缓存行为。</p>
|
||
<h3 id="2-3-配置文件中加入redis的配置"><a href="#2-3-配置文件中加入redis的配置" class="headerlink" title="2.3 配置文件中加入redis的配置"></a>2.3 配置文件中加入redis的配置</h3><p>application.properties</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.redis.host</span>=<span class="string">localhost</span></span><br><span class="line"><span class="attr">spring.redis.port</span>=<span class="string">6379</span></span><br><span class="line"><span class="attr">spring.redis.database</span>= <span class="string">0</span></span><br><span class="line"><span class="attr">spring.redis.timeout</span>=<span class="string">1800000</span></span><br><span class="line"></span><br><span class="line"><span class="attr">spring.redis.lettuce.pool.max-active</span>=<span class="string">20</span></span><br><span class="line"><span class="attr">spring.redis.lettuce.pool.max-wait</span>=<span class="string">-1</span></span><br><span class="line"><span class="comment">#最大阻塞等待时间(负数表示没限制)</span></span><br><span class="line"><span class="attr">spring.redis.lettuce.pool.max-idle</span>=<span class="string">5</span></span><br><span class="line"><span class="attr">spring.redis.lettuce.pool.min-idle</span>=<span class="string">0</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4-使用Spring-Cache-Redis执行缓存操作"><a href="#2-4-使用Spring-Cache-Redis执行缓存操作" class="headerlink" title="2.4 使用Spring Cache + Redis执行缓存操作"></a>2.4 使用Spring Cache + Redis执行缓存操作</h3><h4 id="2-1-2-Cacheable"><a href="#2-1-2-Cacheable" class="headerlink" title="2.1.2 @Cacheable"></a>2.1.2 @Cacheable</h4><p> 根据方法对其返回结果进行缓存,下次请求时,如果缓存存在,则直接读取缓存数据返回;如果缓存不存在,则执行方法,并把返回的结果存入缓存中。一般用在查询方法上。</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>属性/方法名</th>
|
||
<th>解释</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>value</td>
|
||
<td>缓存名,必填,它指定了你的缓存存放在哪块命名空间</td>
|
||
</tr>
|
||
<tr>
|
||
<td>cacheNames</td>
|
||
<td>与 value 差不多,二选一即可</td>
|
||
</tr>
|
||
<tr>
|
||
<td>key</td>
|
||
<td>可选属性,可以使用 SpEL 标签自定义缓存的key</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h4 id="2-1-2-CachePut"><a href="#2-1-2-CachePut" class="headerlink" title="2.1.2 @CachePut"></a>2.1.2 @CachePut</h4><p> 使用该注解标志的方法,每次都会执行,并将结果存入指定的缓存中。其他方法可以直接从响应的缓存中读取缓存数据,而不需要再去查询数据库。一般用在新增方法上。</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>属性/方法名</th>
|
||
<th>解释</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>value</td>
|
||
<td>缓存名,必填,它指定了你的缓存存放在哪块命名空间</td>
|
||
</tr>
|
||
<tr>
|
||
<td>cacheNames</td>
|
||
<td>与 value 差不多,二选一即可</td>
|
||
</tr>
|
||
<tr>
|
||
<td>key</td>
|
||
<td>可选属性,可以使用 SpEL 标签自定义缓存的key</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h4 id="2-1-3-CacheEvict"><a href="#2-1-3-CacheEvict" class="headerlink" title="2.1.3 @CacheEvict"></a>2.1.3 @CacheEvict</h4><p> 使用该注解标志的方法,会清空指定的缓存。一般用在更新或者删除方法上</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>属性/方法名</th>
|
||
<th>解释</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>value</td>
|
||
<td>缓存名,必填,它指定了你的缓存存放在哪块命名空间</td>
|
||
</tr>
|
||
<tr>
|
||
<td>cacheNames</td>
|
||
<td>与 value 差不多,二选一即可</td>
|
||
</tr>
|
||
<tr>
|
||
<td>key</td>
|
||
<td>可选属性,可以使用 SpEL 标签自定义缓存的key</td>
|
||
</tr>
|
||
<tr>
|
||
<td>allEntries</td>
|
||
<td>是否清空所有缓存,默认为 false。如果指定为 true,则方法调用后将立即清空所有的缓存</td>
|
||
</tr>
|
||
<tr>
|
||
<td>beforeInvocation</td>
|
||
<td>是否在方法执行前就清空,默认为 false。如果指定为 true,则在方法执行前就会清空缓存</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h2 id="3-示例"><a href="#3-示例" class="headerlink" title="3.示例"></a>3.示例</h2><p>下面的第一个方法是查询数据位list集合</p>
|
||
<p> @Cacheable(value = “dict”,keyGenerator = “keyGenerator”) 对方法的结果进行缓存</p>
|
||
<p> value属性表示key的前缀 </p>
|
||
<p> keyGenerator表示key的生成规则,生成规则在配置文件中配置,这里我们使用的是方法的全类名作为key的后缀</p>
|
||
<p>第二个方法是添加数据 添加数据会造成数据库中数据的变化 我们要清除缓存</p>
|
||
<p> @CacheEvict(value = “dict”,allEntries = true) 清空指定的缓存</p>
|
||
<p> value属性表示清空以dict为前缀的所有缓存</p>
|
||
<p> allEntries 属性表示是否清空所有缓存,默认为 false。如果指定为 true,则方法调用后将立即清空所有的缓存 </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="meta">@Cacheable(value = "dict",keyGenerator = "keyGenerator")</span></span><br><span class="line"><span class="keyword">public</span> List<Dict> <span class="title function_">findByParentId</span><span class="params">(Long parentId)</span> {</span><br><span class="line"> LambdaQueryWrapper<Dict> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> queryWrapper.eq(Dict::getParentId, parentId);</span><br><span class="line"> List<Dict> dictList = dictMapper.selectList(queryWrapper);</span><br><span class="line"> <span class="keyword">for</span> (Dict dict : dictList) {</span><br><span class="line"> dict.setHasChildren(<span class="built_in">this</span>.isHasChildren(dict.getId()));</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> dictList;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@CacheEvict(value = "dict",allEntries = true)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">importDictData</span><span class="params">(MultipartFile file)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> EasyExcel.read(file.getInputStream(),DictEeVo.class,<span class="keyword">new</span> <span class="title class_">DictListener</span>(dictMapper)).sheet().doRead();</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>key的生成规则如下图:</p>
|
||
<p><img src="/pictures/image-20230414152035347.png" alt="image-20230414152035347"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Windows10的Linux子系统WSL的安装和使用</title>
|
||
<url>/posts/25154.html</url>
|
||
<content><![CDATA[<h1 id="一-WSL简介"><a href="#一-WSL简介" class="headerlink" title="一. WSL简介"></a>一. WSL简介</h1><p><img src="/pictures/image-20230919221346055.png" alt="image-20230919221346055"></p>
|
||
<p><img src="/pictures/image-20230919221906997.png" alt="image-20230919221906997"></p>
|
||
<h1 id="二-安装教程"><a href="#二-安装教程" class="headerlink" title="二.安装教程"></a>二.安装教程</h1><p><strong>1.开启WSL相关功能</strong></p>
|
||
<p><img src="/pictures/image-20230919222258965.png" alt="image-20230919222258965"></p>
|
||
<p><strong>2.在微软应用商店下载并安装Ubuntu</strong></p>
|
||
<p><img src="/pictures/image-20230919224644515.png" alt="image-20230919224644515"></p>
|
||
<p><strong>3.下载完成后打开Ubuntu,设置用户名和密码就可以使用了,下次打开直接搜索Ubuntu这个应用,打开即可</strong></p>
|
||
<p>用户名要小写,下面我们可以看到如果使用大写的用户名,会一直提示我们使用小写的用户名</p>
|
||
<p><img src="/pictures/image-20230920100712177.png" alt="image-20230920100712177"></p>
|
||
<p><strong>4.使用Windows Terminal操作Ubuntu</strong></p>
|
||
<p>下载Windows Terminal</p>
|
||
<p><img src="/pictures/image-20230920101220932.png" alt="image-20230920101220932"></p>
|
||
<p>使用Windows Terminal打开Ubuntu界面</p>
|
||
<p><img src="/pictures/image-20230920101719542.png" alt="image-20230920101719542"></p>
|
||
<h1 id="三-FinalShell连接本机Ubuntu"><a href="#三-FinalShell连接本机Ubuntu" class="headerlink" title="三.FinalShell连接本机Ubuntu"></a>三.FinalShell连接本机Ubuntu</h1><p><strong>1.先卸载重装一遍ssh服务,这里不是很确定是不是自带ssh服务有没有问题 ,这里使用root</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo -s #切换到管理员用户</span><br><span class="line">apt-get remove openssh-server</span><br><span class="line">apt-get install openssh-server</span><br><span class="line">apt-get update #执行上面的指令出现404错误的时候可以执行一下这一条指令,然后再执行上面的命令</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.编辑sshd_config文件</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">vim /etc/ssh/sshd_config</span><br><span class="line"></span><br><span class="line">Port 2222 #设置ssh的端口号, 由于22在windows中有别的用处, 尽量不修改系统的端口号</span><br><span class="line">PermitRootLogin yes # 可以root远程登录</span><br><span class="line">PasswordAuthentication yes # 密码验证登录</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.重启服务</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">sudo service ssh --full-restart</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>4.使用finall连接</strong> </p>
|
||
<p>注: 用户名填写设置的用户名,端口号是2222,如果是其它的主机连接本机的ubuntu,修改主机地址即可</p>
|
||
<p><img src="/pictures/image-20230920112553412.png" alt="image-20230920112553412"></p>
|
||
<p><strong>5.连接成功之后</strong></p>
|
||
<p><img src="/pictures/image-20230920112730660.png" alt="image-20230920112730660"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>运维</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Thymeleaf教程</title>
|
||
<url>/posts/54835.html</url>
|
||
<content><![CDATA[<p>Thymeleaf 是一个服务器端 Java 模板引擎,能够处理 HTML、XML、CSS、JAVASCRIPT 等模板文件。Thymeleaf 模板可以直接当作静态原型来使用,它主要目标是为开发者的开发工作流程带来优雅的自然模板,也是 Java 服务器端 HTML5 开发的理想选择。</p>
|
||
<p><img src="/pictures/image-20230706152329777.png" alt="image-20230706152329777"></p>
|
||
<p>教程: <a href="https://www.thymeleaf.org/">https://www.thymeleaf.org</a></p>
|
||
<h1 id="项目集成Thymeleaf"><a href="#项目集成Thymeleaf" class="headerlink" title="项目集成Thymeleaf"></a>项目集成Thymeleaf</h1><p><strong>1.导入依赖</strong></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- thymeleaf--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-thymeleaf<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.添加配置</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.thymeleaf.cache</span>=<span class="string">false #关闭缓存(后面使用devtools进行热更新也要关闭缓存)</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.在HTML文件中引入名称空间</strong></p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">xmlns:th</span>=<span class="string">"http://www.thymeleaf.org"</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">xmlns:th</span>=<span class="string">"http://www.thymeleaf.org"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>标题<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"Content-Type"</span> <span class="attr">content</span>=<span class="string">"text/html; charset=UTF-8"</span> /></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">p</span> <span class="attr">th:text</span>=<span class="string">"#{home.welcome}"</span>></span>Welcome to our grocery store!<span class="tag"></<span class="name">p</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h1 id="Thymeleaf"><a href="#Thymeleaf" class="headerlink" title="Thymeleaf"></a>Thymeleaf</h1><h2 id="devtools热部署"><a href="#devtools热部署" class="headerlink" title="devtools热部署"></a><strong>devtools热部署</strong></h2><p>Tips:在使用Thymeleaf的时候修改页面我们要频繁的重启项目,非常浪费时间,这时我们可以导入devtools进行热部署</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--devtools--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-devtools<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>导入之后重启项目,会显示如下的标识</p>
|
||
<p><img src="/pictures/image-20230706154112026.png" alt="image-20230706154112026"></p>
|
||
<p>每次修改页面之后,我们只需要在当前文件下重新build一下(Ctrl+Shift+F9),就可以实现热更新</p>
|
||
<p><img src="/pictures/image-20230706161401528.png" alt="image-20230706161401528"></p>
|
||
<h2 id="使用文档"><a href="#使用文档" class="headerlink" title="使用文档"></a>使用文档</h2><p>英文文档: <a href="https://www.thymeleaf.org/doc/tutorials/3.1/usingthymeleaf.html">https://www.thymeleaf.org/doc/tutorials/3.1/usingthymeleaf.html</a></p>
|
||
<p>博客文章: <a href="https://fanlychie.github.io/post/thymeleaf.html">https://fanlychie.github.io/post/thymeleaf.html</a></p>
|
||
<p><strong>中文PDF文档</strong></p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/Thymeleaf中文参考文档.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>前端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Thymeleaf</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>gitHub上的优质课设项目</title>
|
||
<url>/posts/19270.html</url>
|
||
<content><![CDATA[<h2 id="1-学生成绩管理系统"><a href="#1-学生成绩管理系统" class="headerlink" title="1.学生成绩管理系统"></a>1.学生成绩管理系统</h2><p>基于SpringBoot开发</p>
|
||
<p>包含:学生信息管理 班级信息管理 教师信息管理 课程信息管理 选课信息管理 考勤信息管理 请假信息管理 成绩信息管理 系统管理</p>
|
||
<p>项目代码截图:</p>
|
||
<p><img src="/pictures/image-20230311113425453.png" alt="image-20230311113425453"></p>
|
||
<p>数据库:</p>
|
||
<p><img src="/pictures/image-20230311113536220.png" alt="image-20230311113536220"></p>
|
||
<p>页面展示:</p>
|
||
<p><img src="/pictures/image-20230311113653032.png" alt="image-20230311113653032"></p>
|
||
<p><img src="/pictures/image-20230311113841997.png" alt="image-20230311113841997"></p>
|
||
<h2 id="2-物流管理系统"><a href="#2-物流管理系统" class="headerlink" title="2.物流管理系统"></a>2.物流管理系统</h2><p>基于spring boot的中小型仓库物流管理系统(springboot+mybatis-plus+shiro+mysql+layui前端框架)</p>
|
||
<p>可以使用shiro进行权限管理</p>
|
||
<p>主要功能实现:</p>
|
||
<p>1.基础管理:商品管理、客户管理、供应商管理;</p>
|
||
<p>2.物流管理:进货管理、发货管理、交付管理;</p>
|
||
<p>3.系统管理:菜单管理、部门管理;</p>
|
||
<p>4.人事管理:权限管理、角色管理、用户管理;</p>
|
||
<p>5.其他:</p>
|
||
<p>后台代码部分截图:</p>
|
||
<p><img src="/pictures/image-20230311114451668.png" alt="image-20230311114451668"></p>
|
||
<p>数据库:</p>
|
||
<p><img src="/pictures/image-20230311114537761.png" alt="image-20230311114537761"></p>
|
||
<p>项目展示:</p>
|
||
<p><img src="/pictures/image-20230311114653791.png" alt="image-20230311114653791"></p>
|
||
<p><img src="/pictures/image-20230311114849263.png" alt="image-20230311114849263"></p>
|
||
<h2 id="3-酒店管理系统"><a href="#3-酒店管理系统" class="headerlink" title="3.酒店管理系统"></a>3.酒店管理系统</h2><p>一个精简的基于SSM框架开发的酒店后台管理系统</p>
|
||
<p>支持报表的导出和导入:EXCEL报表的导出和导入,项目的亮点</p>
|
||
<p>后台部分代码截图:</p>
|
||
<p><img src="/pictures/image-20230311115057351.png" alt="image-20230311115057351"></p>
|
||
<p>数据库:</p>
|
||
<p><img src="/pictures/image-20230311115223537.png" alt="image-20230311115223537"></p>
|
||
<p>页面展示:</p>
|
||
<p><img src="/pictures/image-20230311120902633.png" alt="image-20230311120902633"></p>
|
||
<p><img src="/pictures/image-20230311121529641.png" alt="image-20230311121529641"></p>
|
||
<h2 id="注:"><a href="#注:" class="headerlink" title="注:"></a>注:</h2><p> 需要更多的优质项目,收藏此网站的链接,后续会更新更多的课设项目,敬请期待!</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>GitHub</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>xShell自定义配色方案</title>
|
||
<url>/posts/60780.html</url>
|
||
<content><![CDATA[<p>自定义配色方案</p>
|
||
<p><img src="/pictures/20230321180350.png" alt="20230321180350"></p>
|
||
<p><img src="/pictures/20230321180405.png" alt="20230321180405"></p>
|
||
<p>字体大小的设置</p>
|
||
<p><img src="/pictures/20230321180420.png" alt="20230321180420"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Linux</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>个人简历</title>
|
||
<url>/posts/53088.html</url>
|
||
<content><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="Error" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
|
||
<script id="hbeData" type="hbeData" data-hmacdigest="198bde99e3a21e02a7a4fbf9a5a0b72724a2f0640a5dd175002e00ef20bb35f8">fecdcfecb9c8b79b78911ccdbd3ae5bd0b2b085a189bf5e2b32bb5c7f602d6ca5b538d6135289887e6542d0abcaa800c00452ee3aa211bcec31749af80edbe35ec147dd1ee6a0ad5cbad7f38c8fe5319f8a55636d1e017c96721dd1147c6e46e0b063320fd60b0ab999d0862dd3a5d10fc45839694625a7e950dbbe3d9e2e21575910033b8f74b78f719f0e43fa69779222112dd7be174b883855498af4d0743117f41cda34c37592665d3885e44896cd8ce95a5bba3cd0844904516d9544c4c69968fdf022b59ca0dcf9730848d15b227210cafa103c700b6fc1ee2562cefcc55792875eab4ec4a8093107f8054ff7265aa34073e297f001d064ec0f07f8804808183ae627d5dd43dfd3813fa1bf939e1821a2c7a72d1091958a016ebe5d699ab42dc71a39dc7d8b2e098db483c7a48148640a5e57e7c606c4b0a247dbdd280d71747b6365bfc0dd221f2a163080123a5b1f2e309174d0534de40ef43f4ecf25d6032204ff54a6a966136bdb365257fb33f60c7bc281d964f693c7a0c23fd6e1a0e5c3dc09ecf0f6d27bf558e05495170cd2520bf6fc9a240600b31e79843339e87962cdd2e49d3720395a472623a87665c277a26b1499722776eae310416b867b7e4d99df481526433c19a4b17df3bdcd70a680397c61f020e4bfd1a5fe2c15478763e310008c12ed4f222ef3b5a0cf9c53c9348f86f1b7d80550eb61242353bf98163fe6e845eb449cda1d7afdf399b5f40f89b433c063d4b41c0189e0879aa02c03c98ae7672a83219d31260a6cad873b4fbccf850104592102a6186c13df61757c333457cca30dee588e79566d483bfa19b6595f119431fadf0e56eb66826593a8e95df7e24c8bfa78f0306963e35a71f281ba1b3a4eb976ed79534a37fa096f2bd386159cd12cfa24b94fc23dea1333550366c4b55278a852a65e4e36b4ccf151f1d8228b25938abf4cef6bef240243ec2b5e7ec70ffa319cce9c2ac5c77019dcbdf62308cc605c52f0e591de42849d1a2748308479f76fbdd084e6b5e9919c1333efddd00ce20d4eb6bb8bbbe2c011e5220a1266e5cf638d2e77d3b788531f2b564a8a1413a49eac8f70a45c356b199bfb8d09d8801b18a03a3d2d29a100440bbc3160e6e9f2d7bd44b5eff038e662cd9737b2a56796e165efd063f24eab4efaca52c599d0e2bf35715b1eebddaa6cffde8f776b7b02a9ad0f06f5cd1527b34ba8178ca82b3233254ad8ce642538e9ebede8b6015082cee8bb5e457caf2d52c364c569abaa0dbf44df38e5d4659b9479f6c968c69999ee721221d25d627be98ee92dfefbb13a1216b21cd51b654f59947bbcb75776e9edffac7675ca5999f18202174dde468453dcf5bc3e3a897e20e0c01e33b86ced66a75d56ff695</script>
|
||
<div class="hbe hbe-content">
|
||
<div class="hbe hbe-input hbe-input-wave">
|
||
<input class="hbe hbe-input-field hbe-input-field-wave" type="password" id="hbePass">
|
||
<label class="hbe hbe-input-label hbe-input-label-wave" for="hbePass">
|
||
<span class="hbe hbe-input-label-content hbe-input-label-content-wave"></span>
|
||
</label>
|
||
<svg class="hbe hbe-graphic hbe-graphic-wave" width="300%" height="100%" viewBox="0 0 1200 60" preserveAspectRatio="none">
|
||
<path d="M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0"></path>
|
||
</svg>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script data-pjax src="/lib/hbe.js"></script><link href="/css/hbe.style.css" rel="stylesheet" type="text/css">]]></content>
|
||
<categories>
|
||
<category>面试</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>简历</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>使用Robot类编写自动化脚本</title>
|
||
<url>/posts/30127.html</url>
|
||
<content><![CDATA[<h2 id="一-概述"><a href="#一-概述" class="headerlink" title="一.概述"></a>一.概述</h2><p> Java中Robot类位于java.awt.Robot,该类用于为测试自动化,自运行演示程序和其他需要控制鼠标和键盘的应用程序生成本机系统输入事件,Robot类的主要目的是便于Java平台实现自动测试</p>
|
||
<h2 id="二-基本API"><a href="#二-基本API" class="headerlink" title="二.基本API"></a>二.基本API</h2><table>
|
||
<thead>
|
||
<tr>
|
||
<th>方法名</th>
|
||
<th>使用说明</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>delay(n)</td>
|
||
<td>延迟电脑操作n毫秒,类似于Thread.sleep()</td>
|
||
</tr>
|
||
<tr>
|
||
<td>keyPress()</td>
|
||
<td>模拟手动按下电脑键盘上的某个键</td>
|
||
</tr>
|
||
<tr>
|
||
<td>keyRelease()</td>
|
||
<td>模拟手动松开电脑键盘上的某个键(与keyPress()对应,按下一个键必须松开这个键)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>mouseMove(x,y)</td>
|
||
<td>将鼠标移动到指定的x,y位置</td>
|
||
</tr>
|
||
<tr>
|
||
<td>mousePress()</td>
|
||
<td>按下鼠标上的某个键</td>
|
||
</tr>
|
||
<tr>
|
||
<td>mouseRelease()</td>
|
||
<td>松开鼠标上的某个键</td>
|
||
</tr>
|
||
<tr>
|
||
<td>getPixelColor(x,y)</td>
|
||
<td>获取指定坐标处的像素颜色</td>
|
||
</tr>
|
||
<tr>
|
||
<td>mouseWheel(int wheelAmt)</td>
|
||
<td>鼠标滚动(参数小于0,表示向上滚动;参数大于0,表示向下滚动)</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h2 id="三-基本使用"><a href="#三-基本使用" class="headerlink" title="三.基本使用"></a>三.基本使用</h2><h3 id="1-模拟按键"><a href="#1-模拟按键" class="headerlink" title="1.模拟按键"></a>1.模拟按键</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.event.KeyEvent;</span><br><span class="line"><span class="keyword">import</span> java.util.Random;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Test</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> AWTException {</span><br><span class="line"> <span class="type">Robot</span> <span class="variable">robot</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Robot</span>();</span><br><span class="line"> <span class="comment">//延时函数,延时5秒</span></span><br><span class="line"> robot.delay(<span class="number">5000</span>);</span><br><span class="line"> <span class="comment">//模拟按一下K键</span></span><br><span class="line"> robot.keyPress(KeyEvent.VK_K);</span><br><span class="line"> <span class="comment">//产生一个随机的时间(0.2 ~ 0.4秒之间)</span></span><br><span class="line"> <span class="type">Random</span> <span class="variable">random</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Random</span>();</span><br><span class="line"> <span class="type">double</span> <span class="variable">randomValue</span> <span class="operator">=</span> random.nextDouble() * <span class="number">0.2</span> + <span class="number">0.2</span>;</span><br><span class="line"> robot.delay((<span class="type">int</span>)randomValue * <span class="number">1000</span>);</span><br><span class="line"> <span class="comment">//释放k键</span></span><br><span class="line"> robot.keyRelease(KeyEvent.VK_K);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-模拟鼠标"><a href="#2-模拟鼠标" class="headerlink" title="2.模拟鼠标"></a>2.模拟鼠标</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.event.InputEvent;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Test</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> AWTException {</span><br><span class="line"> <span class="type">Robot</span> <span class="variable">robot</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Robot</span>();</span><br><span class="line"> <span class="comment">//鼠标的移动</span></span><br><span class="line"> robot.mouseMove(<span class="number">800</span>, <span class="number">200</span>);</span><br><span class="line"> <span class="comment">//按下左键</span></span><br><span class="line"> robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);</span><br><span class="line"> <span class="comment">//弹起左键</span></span><br><span class="line"> robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);</span><br><span class="line"> <span class="comment">//鼠标滚轮(大于1 向上滚动)</span></span><br><span class="line"> robot.mouseWheel(<span class="number">1</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-获取颜色"><a href="#3-获取颜色" class="headerlink" title="3.获取颜色"></a>3.获取颜色</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Test</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> AWTException {</span><br><span class="line"> <span class="type">Robot</span> <span class="variable">robot</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Robot</span>();</span><br><span class="line"> <span class="type">Color</span> <span class="variable">color</span> <span class="operator">=</span> robot.getPixelColor(<span class="number">520</span>, <span class="number">70</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>脚本</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>内网穿透</title>
|
||
<url>/posts/6932.html</url>
|
||
<content><![CDATA[<h2 id="第一步-官网下载"><a href="#第一步-官网下载" class="headerlink" title="第一步 官网下载"></a>第一步 官网下载</h2><p>客户端下载 –> windows 64位 –>解压后得到.exe文件</p>
|
||
<p><img src="/pictures/image-20230409221503708.png" alt="image-20230409221503708"></p>
|
||
<h2 id="第二步-官网注册并登录进入后台"><a href="#第二步-官网注册并登录进入后台" class="headerlink" title="第二步 官网注册并登录进入后台"></a>第二步 官网注册并登录进入后台</h2><p>官网注册登录 –> 购买免费隧道 –>获取authtoken</p>
|
||
<p><img src="/pictures/image-20230409221827414.png" alt="image-20230409221827414"></p>
|
||
<p><img src="/pictures/image-20230409221954792.png" alt="image-20230409221954792"></p>
|
||
<h2 id="第三步-双击下载的-exe文件进入命令行页面输入命令"><a href="#第三步-双击下载的-exe文件进入命令行页面输入命令" class="headerlink" title="第三步 双击下载的.exe文件进入命令行页面输入命令"></a>第三步 双击下载的.exe文件进入命令行页面输入命令</h2><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">natapp -authtoken=刚刚你申请的authtoken</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230409222457135.png" alt="image-20230409222457135"></p>
|
||
<p><img src="/pictures/image-20230409222628425.png" alt="image-20230409222628425"></p>
|
||
<h2 id="第四步-根据生成的域名访问服务"><a href="#第四步-根据生成的域名访问服务" class="headerlink" title="第四步 根据生成的域名访问服务"></a>第四步 根据生成的域名访问服务</h2><p><img src="/pictures/image-20230409222923480.png" alt="image-20230409222923480"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>网络</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>免费域名注册教程</title>
|
||
<url>/posts/5727.html</url>
|
||
<content><![CDATA[<h1 id="一-域名注册"><a href="#一-域名注册" class="headerlink" title="一.域名注册"></a>一.域名注册</h1><p><strong>免费域名注册网址:<a href="https://nic.eu.org/">https://nic.eu.org</a></strong></p>
|
||
<p><img src="/pictures/image-20230913123344514.png" alt="image-20230913123344514"></p>
|
||
<h2 id="1-注册账号"><a href="#1-注册账号" class="headerlink" title="1.注册账号"></a>1.注册账号</h2><p>第一步:点击: here</p>
|
||
<p><img src="/pictures/image-20230913123704246.png" alt="image-20230913123704246"></p>
|
||
<p>第二步: 点击Register</p>
|
||
<p><img src="/pictures/image-20230913123809940.png" alt="image-20230913123809940"></p>
|
||
<p>第三步:填写相关的信息</p>
|
||
<p>地址信息填写英国的地址,可以使用在线地址生成器生成:<a href="https://www.meiguodizhi.com/uk-address">https://www.meiguodizhi.com/uk-address</a></p>
|
||
<p><img src="/pictures/image-20230913124042655.png" alt="image-20230913124042655"></p>
|
||
<p>填写地址相关的信息,其余的信息根据自己的情况填写(fax可不填)</p>
|
||
<p><img src="/pictures/image-20230913124616244.png" alt="image-20230913124616244"></p>
|
||
<p>显示下面的提示就是注册成功了</p>
|
||
<p><img src="/pictures/image-20230913124842536.png" alt="image-20230913124842536"></p>
|
||
<p>这时在系统会给刚才注册的邮箱发送一个激活链接,点击激活</p>
|
||
<p><img src="/pictures/image-20230913125129535.png" alt="image-20230913125129535"></p>
|
||
<p>打开链接之后点击的按钮<strong>Validate</strong>验证,验证之后显示如下页面表示成功</p>
|
||
<p><img src="/pictures/image-20230913125324974.png" alt="image-20230913125324974"></p>
|
||
<h2 id="2-登录"><a href="#2-登录" class="headerlink" title="2.登录"></a>2.登录</h2><p>登录的账号就在刚才发送的邮件里面,密码就是注册时设置的密码</p>
|
||
<p><img src="/pictures/image-20230913125539561.png" alt="image-20230913125539561"></p>
|
||
<h2 id="3-申请域名"><a href="#3-申请域名" class="headerlink" title="3.申请域名"></a>3.申请域名</h2><p>输入你要注册的域名,域名的格式是 xxxx.eu.org</p>
|
||
<p><img src="/pictures/image-20230913132602702.png" alt="image-20230913132602702"></p>
|
||
<p>域名验证,在输入框中填写下面的信息</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">grannbo.ns.cloudflare.com</span><br><span class="line">sid.ns.cloudflare.com</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230913132742999.png" alt="image-20230913132742999"></p>
|
||
<p>点击Submit按钮之后显示如下的内容表示这个免费的域名是可以申请到的,然后等待人工审核通过</p>
|
||
<p><img src="/pictures/image-20230913132918535.png" alt="image-20230913132918535"></p>
|
||
<p>审核通过之后,你注册时使用的邮箱就会收到信息</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>个人</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>域名注册</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>信息系统分析与设计项目运行环境的搭建</title>
|
||
<url>/posts/1530.html</url>
|
||
<content><![CDATA[<p> 安装时请仔细的看一遍需要安装的环境,避免因为错装版本导致项目无法运行,安装过程中遇到链接失效可以点击头像下方的图标联系我获取最新的链接</p>
|
||
<p>注:项目是基于java的项目,这些才需要安装,C或者C++,Python,Go,PHP等语言编写的项目,请移步</p>
|
||
<h2 id="1-需要安装的环境-最小安装环境-不涉及微服务的项目-微服务项目环境安装私聊我"><a href="#1-需要安装的环境-最小安装环境-不涉及微服务的项目-微服务项目环境安装私聊我" class="headerlink" title="1.需要安装的环境(最小安装环境,不涉及微服务的项目,微服务项目环境安装私聊我)"></a>1.需要安装的环境(最小安装环境,不涉及微服务的项目,微服务项目环境安装私聊我)</h2><h3 id="1-1:写代码的工具-Intellij-IDEA"><a href="#1-1:写代码的工具-Intellij-IDEA" class="headerlink" title="1.1:写代码的工具: Intellij IDEA"></a>1.1:写代码的工具: Intellij IDEA</h3><h3 id="1-2:Java运行环境:java8-也叫JDK1-8,高版本的不推荐使用-可能出现项目运行错误的情况"><a href="#1-2:Java运行环境:java8-也叫JDK1-8,高版本的不推荐使用-可能出现项目运行错误的情况" class="headerlink" title="1.2:Java运行环境:java8 (也叫JDK1.8,高版本的不推荐使用,可能出现项目运行错误的情况)"></a>1.2:Java运行环境:java8 (也叫JDK1.8,高版本的不推荐使用,可能出现项目运行错误的情况)</h3><h3 id="1-3:数据库:MySQL-5-7-必须安装,数据的持久化需要用到"><a href="#1-3:数据库:MySQL-5-7-必须安装,数据的持久化需要用到" class="headerlink" title="1.3:数据库:MySQL 5.7(必须安装,数据的持久化需要用到)"></a>1.3:数据库:MySQL 5.7(必须安装,数据的持久化需要用到)</h3><h3 id="1-4:构建工具:Maven-3-6-3-用于安装依赖-IDEA中自带的有Maven构建工具,但是由于用的是国外的镜像,安装依赖可能失败,这根据具体的项目决定-不想安装可以先用用自带的maven,不行的话再安装。"><a href="#1-4:构建工具:Maven-3-6-3-用于安装依赖-IDEA中自带的有Maven构建工具,但是由于用的是国外的镜像,安装依赖可能失败,这根据具体的项目决定-不想安装可以先用用自带的maven,不行的话再安装。" class="headerlink" title="1.4:构建工具:Maven 3.6.3(用于安装依赖,IDEA中自带的有Maven构建工具,但是由于用的是国外的镜像,安装依赖可能失败,这根据具体的项目决定),不想安装可以先用用自带的maven,不行的话再安装。"></a>1.4:构建工具:Maven 3.6.3(用于安装依赖,IDEA中自带的有Maven构建工具,但是由于用的是国外的镜像,安装依赖可能失败,这根据具体的项目决定),不想安装可以先用用自带的maven,不行的话再安装。</h3><h2 id="2-具体安装教程"><a href="#2-具体安装教程" class="headerlink" title="2.具体安装教程"></a>2.具体安装教程</h2><h3 id="2-1:Intellij-IDEA-:安装社区版也就是免费版的-项目运行完全够用-收费版需要自助开源(自行百度搜索破解教程)"><a href="#2-1:Intellij-IDEA-:安装社区版也就是免费版的-项目运行完全够用-收费版需要自助开源(自行百度搜索破解教程)" class="headerlink" title="2.1:Intellij IDEA :安装社区版也就是免费版的(项目运行完全够用),收费版需要自助开源(自行百度搜索破解教程)"></a>2.1:Intellij IDEA :安装社区版也就是免费版的(项目运行完全够用),收费版需要自助开源(自行百度搜索破解教程)</h3><p>安装教程:官网安装: <a href="https://www.jetbrains.com/idea/download/#section=windows">https://www.jetbrains.com/idea/download/#section=windows</a></p>
|
||
<p><img src="/pictures/image-20230311104034350.png" alt="image-20230311104034350"></p>
|
||
<h3 id="2-2Java运行环境JDk的安装:这个必须安装-java程序运行的基础,推荐JDK1-8-不推荐高版本。必须安装成功。"><a href="#2-2Java运行环境JDk的安装:这个必须安装-java程序运行的基础,推荐JDK1-8-不推荐高版本。必须安装成功。" class="headerlink" title="2.2Java运行环境JDk的安装:这个必须安装,java程序运行的基础,推荐JDK1.8,不推荐高版本。必须安装成功。"></a>2.2Java运行环境JDk的安装:这个必须安装,java程序运行的基础,推荐JDK1.8,不推荐高版本。必须安装成功。</h3><p>安装教程:1.下载安装 2.配置环境变量 3.测试安装是否成功(任意位置打开cmd窗口输入java -version都可以执行)</p>
|
||
<p>保姆级教程: <a href="https://blog.csdn.net/weixin_52161454/article/details/122467301">https://blog.csdn.net/weixin_52161454/article/details/122467301</a></p>
|
||
<h3 id="2-3-Mysql-5-7-最好是安装5-7版本的-8-0版本的mysql驱动与5-7版本不一样(5-7版本安装不了可以安装8-0版本的),需要更改驱动和链接url-(这里安装mysql数据库就行了-Oracle数据库个人项目不常用)"><a href="#2-3-Mysql-5-7-最好是安装5-7版本的-8-0版本的mysql驱动与5-7版本不一样(5-7版本安装不了可以安装8-0版本的),需要更改驱动和链接url-(这里安装mysql数据库就行了-Oracle数据库个人项目不常用)" class="headerlink" title="2.3:Mysql 5.7:最好是安装5.7版本的,8.0版本的mysql驱动与5.7版本不一样(5.7版本安装不了可以安装8.0版本的),需要更改驱动和链接url (这里安装mysql数据库就行了,Oracle数据库个人项目不常用)"></a>2.3:Mysql 5.7:最好是安装5.7版本的,8.0版本的mysql驱动与5.7版本不一样(5.7版本安装不了可以安装8.0版本的),需要更改驱动和链接url (这里安装mysql数据库就行了,Oracle数据库个人项目不常用)</h3><p>注意:安装最好一次成功,不然安装失败再安装会有很多的不便</p>
|
||
<p>以下保姆级教程二选一:</p>
|
||
<p>安装教程一: <a href="https://blog.csdn.net/m0_49284219/article/details/121972531">https://blog.csdn.net/m0_49284219/article/details/121972531</a></p>
|
||
<p>安装教程二: <a href="https://blog.csdn.net/qq_55660421/article/details/123023804">https://blog.csdn.net/qq_55660421/article/details/123023804</a></p>
|
||
<h3 id="2-4:Maven3-6-3:可以安装最新版的maven-,这个是构建工具,用来安装项目运行所需要的依赖,安装成功后将配置文件中的安装源换成阿里源,安装依赖更快更稳定"><a href="#2-4:Maven3-6-3:可以安装最新版的maven-,这个是构建工具,用来安装项目运行所需要的依赖,安装成功后将配置文件中的安装源换成阿里源,安装依赖更快更稳定" class="headerlink" title="2.4:Maven3.6.3:可以安装最新版的maven ,这个是构建工具,用来安装项目运行所需要的依赖,安装成功后将配置文件中的安装源换成阿里源,安装依赖更快更稳定"></a>2.4:Maven3.6.3:可以安装最新版的maven ,这个是构建工具,用来安装项目运行所需要的依赖,安装成功后将配置文件中的安装源换成阿里源,安装依赖更快更稳定</h3><p>保姆级别教程: <a href="https://blog.csdn.net/tirster/article/details/123418269">https://blog.csdn.net/tirster/article/details/123418269</a></p>
|
||
<h2 id="注:"><a href="#注:" class="headerlink" title="注:"></a>注:</h2><p> 安装的过程中出现错误的话可以通过百度解决,你遇到的错误大多数人也会遇到,要学会自己寻找解决这些问题的办法。以上安装的是本次课程设计的基本环境依赖(够用了),如果项目中包含缓存优化(redis),前后端分离开发,分布式,还需安装redis数据库,nginx,VsCode,Dubbo,Zookeeper等软件和环境。安装过程中遇到实在是无法解决的问题,可以联系我,在线解答。下期可能会出一期怎么在github上寻找优质的项目,敬请期待。</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>环境搭建</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>压力测试与性能监控</title>
|
||
<url>/posts/1416.html</url>
|
||
<content><![CDATA[<h2 id="一-压力测试"><a href="#一-压力测试" class="headerlink" title="一.压力测试"></a>一.压力测试</h2><p><strong>性能指标</strong></p>
|
||
<ul>
|
||
<li><p>响应时间(Response Time: RT)响应时间指用户从客户端发起一个请求开始,到客户端接收到从服务器端返回的响应结束,整个过程所耗费的时间。</p>
|
||
</li>
|
||
<li><p>HPS(Hits Per Second) :每秒点击次数,单位是次/秒。</p>
|
||
</li>
|
||
<li><p>TPS(Transaction per Second):系统每秒处理交易数,单位是笔/秒。</p>
|
||
</li>
|
||
<li><p>QPS(Query per Second):系统每秒处理查询次数,单位是次/秒。对于互联网业务中,如果某些业务有且仅有一个请求连接,那么 TPS=QPS=HPS,一般情况下用 TPS 来衡量整个业务流程,用 QPS 来衡量接口查询次数,用 HPS 来表示对服务器单击请求。</p>
|
||
</li>
|
||
<li><p>无论 TPS、QPS、HPS,此指标是衡量系统处理能力非常重要的指标,越大越好,根据经验,一般情况下:</p>
|
||
<p>金融行业:1000TPS~50000TPS,不包括互联网化的活动</p>
|
||
<p>保险行业:100TPS~100000TPS,不包括互联网化的活动</p>
|
||
<p>制造行业:10TPS~5000TPS</p>
|
||
<p>互联网电子商务:10000TPS~1000000TPS</p>
|
||
<p>互联网中型网站:1000TPS~50000TPS</p>
|
||
<p>互联网小型网站:500TPS~10000TPS</p>
|
||
</li>
|
||
<li><p>最大响应时间(Max Response Time) 指用户发出请求或者指令到系统做出反应(响应)的最大时间。</p>
|
||
</li>
|
||
<li><p>最少响应时间(Mininum ResponseTime) 指用户发出请求或者指令到系统做出反应(响应)的最少时间。</p>
|
||
</li>
|
||
<li><p>90%响应时间(90% Response Time) 是指所有用户的响应时间进行排序,第 90%的响应时间。</p>
|
||
</li>
|
||
<li><p>从外部看,性能测试主要关注如下三个指标</p>
|
||
<p>吞吐量:每秒钟系统能够处理的请求数、任务数。</p>
|
||
<p>响应时间:服务处理一个请求或一个任务的耗时。</p>
|
||
<p>错误率:一批请求中结果出错的请求所占比例。</p>
|
||
</li>
|
||
</ul>
|
||
<h3 id="1-JMeter的使用"><a href="#1-JMeter的使用" class="headerlink" title="1.JMeter的使用"></a>1.JMeter的使用</h3><h4 id="1-1-安装"><a href="#1-1-安装" class="headerlink" title="1.1 安装"></a>1.1 安装</h4><p><strong>1.下载安装包</strong></p>
|
||
<p>安装网址: <a href="https://jmeter.apache.org/download_jmeter.cgi">https://jmeter.apache.org/download_jmeter.cgi</a></p>
|
||
<p><img src="/pictures/image-20230709161151542.png" alt="image-20230709161151542"></p>
|
||
<p><strong>2.解压并双击运行</strong></p>
|
||
<p><img src="/pictures/image-20230709161346717.png" alt="image-20230709161346717"></p>
|
||
<p><img src="/pictures/image-20230709161600398.png" alt="image-20230709161600398"></p>
|
||
<h4 id="1-2-设置"><a href="#1-2-设置" class="headerlink" title="1.2 设置"></a>1.2 设置</h4><p>设置为中文页面</p>
|
||
<p>点击Options->Language->选择简体中文</p>
|
||
<p><img src="/pictures/image-20230709161752103.png" alt="image-20230709161752103"></p>
|
||
<h4 id="1-3-压测示例"><a href="#1-3-压测示例" class="headerlink" title="1.3 压测示例"></a>1.3 压测示例</h4><p><strong>1.新建线程组</strong></p>
|
||
<p>右键点击测试计划->添加->线程->线程组</p>
|
||
<p><img src="/pictures/image-20230709162502383.png" alt="image-20230709162502383"></p>
|
||
<p>线程组参数详解:</p>
|
||
<ul>
|
||
<li><p>线程数:虚拟用户数。一个虚拟用户占用一个进程或线程。设置多少虚拟用户数在这里也就是设置多少个线程数。</p>
|
||
</li>
|
||
<li><p>线程数:虚拟用户数。一个虚拟用户占用一个进程或线程。设置多少虚拟用户数在这里也就是设置多少个线程数。</p>
|
||
</li>
|
||
<li><p>Ramp-Up Period(in seconds)准备时长:设置的虚拟用户数需要多长时间全部启动。如果线程数为 10,准备时长为 2,那么需要 2 秒钟启动10个线程,也就是每秒钟启动 5 个线程。</p>
|
||
</li>
|
||
<li><p>循环次数:每个线程发送请求的次数。如果线程数为 10,循环次数为 100,那么每个线程发送 100 次请求。总请求数为 10*100=1000 。如勾选了“永远”,那么所有线程会一直发送请求,一到选择停止运行脚本。</p>
|
||
</li>
|
||
<li><p>Delay Thread creation until needed:直到需要时延迟线程的创建。</p>
|
||
</li>
|
||
<li><p>调度器:设置线程组启动的开始时间和结束时间(配置调度器时,需要勾选循环次数为永远)</p>
|
||
</li>
|
||
<li><p>持续时间(秒):测试持续时间,会覆盖结束时间</p>
|
||
</li>
|
||
<li><p>启动延迟(秒):测试延迟启动时间,会覆盖启动时间</p>
|
||
</li>
|
||
<li><p>启动时间:测试启动时间,启动延迟会覆盖它。当启动时间已过,手动只需测试时当前时间也会覆盖它。</p>
|
||
</li>
|
||
<li><p>结束时间:测试结束时间,持续时间会覆盖它。</p>
|
||
</li>
|
||
</ul>
|
||
<p><strong>2.添加HTTP请求</strong></p>
|
||
<p><img src="/pictures/image-20230709163303477.png" alt="image-20230709163303477"></p>
|
||
<p><img src="/pictures/image-20230709163457833.png" alt="image-20230709163457833"></p>
|
||
<p><strong>3.添加监听器</strong></p>
|
||
<p><img src="/pictures/image-20230709163639856.png" alt="image-20230709163639856"></p>
|
||
<p><strong>4.启动压测和查看分析结果</strong></p>
|
||
<p><img src="/pictures/image-20230709164012746.png" alt="image-20230709164012746"></p>
|
||
<p><img src="/pictures/image-20230709164208747.png" alt="image-20230709164208747"></p>
|
||
<h4 id="1-4-JMeter-Address-Already-in-use-错误解决"><a href="#1-4-JMeter-Address-Already-in-use-错误解决" class="headerlink" title="1.4 JMeter Address Already in use 错误解决"></a>1.4 JMeter Address Already in use 错误解决</h4><p>windows 本身提供的端口访问机制的问题。<br>Windows 提供给 TCP/IP 链接的端口为 1024-5000,并且要四分钟来循环回收他们。就导致<br>我们在短时间内跑大量的请求时将端口占满了。<br>1.cmd 中,用 regedit 命令打开注册表</p>
|
||
<p>2.在 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters 下,<br>右击 parameters,添加一个新的 DWORD,名字为 MaxUserPort,然后双击 MaxUserPort,输入数值数据为 65534,基数选择十进制(如果是分布式运行的话,控制机器和负载机器都需要这样操作)</p>
|
||
<p>3.修改配置完毕之后记得重启机器才会生效<br>官网解释:<a href="https://support.microsoft.com/zh-cn/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t">https://support.microsoft.com/zh-cn/help/196271/when-you-try-to-connect-from-tcp-ports-greater-than-5000-you-receive-t</a><br>TCPTimedWaitDelay:30</p>
|
||
<h2 id="二-性能监控"><a href="#二-性能监控" class="headerlink" title="二.性能监控"></a>二.性能监控</h2><p>Jdk 的两个小工具 jconsole、jvisualvm(升级版的 jconsole);通过命令行启动,可监控本地和远程应用。</p>
|
||
<h3 id="1-jconsole"><a href="#1-jconsole" class="headerlink" title="1.jconsole"></a>1.jconsole</h3><p><img src="/pictures/image-20230709160343565.png" alt="image-20230709160343565"></p>
|
||
<h3 id="2-jvisualvm"><a href="#2-jvisualvm" class="headerlink" title="2.jvisualvm"></a><strong>2.jvisualvm</strong></h3><p><strong>jvisualvm相比jconsole功能更全,一般使用jvisualvm</strong></p>
|
||
<p><img src="/pictures/image-20230709160552461.png" alt="image-20230709160552461"></p>
|
||
<p><strong>Visual GC插件的安装</strong></p>
|
||
<p>点击工具->插件->在可用插件中选择Visual GC安装</p>
|
||
<p>安装成功之后显示如下</p>
|
||
<p><img src="/pictures/image-20230709160932416.png" alt="image-20230709160932416"></p>
|
||
<p><img src="/pictures/image-20230709170626946.png" alt="image-20230709170626946"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>测试</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>测试</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>力扣(LeetCode)算法刷题</title>
|
||
<url>/posts/13579.html</url>
|
||
<content><![CDATA[<p><strong>刷题网站:</strong> <a href="https://leetcode.cn/problemset/all/">力扣</a> <strong>视频:</strong> <a href="https://www.acwing.com/activity/">AcWing</a></p>
|
||
<h2 id="一-数组"><a href="#一-数组" class="headerlink" title="一.数组"></a>一.数组</h2><h3 id="A-简单"><a href="#A-简单" class="headerlink" title="A.简单"></a>A.简单</h3><h4 id="1-两数之和"><a href="#1-两数之和" class="headerlink" title="1.两数之和"></a>1.两数之和</h4><p>给定一个整数数组 <code>nums</code> 和一个整数目标值 <code>target</code>,请你在该数组中找出 <strong>和为目标值</strong> <em><code>target</code></em> 的那 <strong>两个</strong> 整数,并返回它们的数组下标。你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。你可以按任意顺序返回答案。</p>
|
||
<p><strong>示例 1:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [2,7,11,15], target = 9</span><br><span class="line">输出:[0,1]</span><br><span class="line">解释:因为 nums[0] + nums[1] == 9 ,返回 [0, 1] 。</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例 2:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [3,2,4], target = 6</span><br><span class="line">输出:[1,2]</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例 3:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [3,3], target = 6</span><br><span class="line">输出:[0,1]</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>提示:</strong></p>
|
||
<ul>
|
||
<li><code>2 <= nums.length <= 104</code></li>
|
||
<li><code>-109 <= nums[i] <= 109</code></li>
|
||
<li><code>-109 <= target <= 109</code></li>
|
||
<li><strong>只会存在一个有效答案</strong></li>
|
||
</ul>
|
||
<p><strong>代码实现</strong></p>
|
||
<p>自己的代码 暴力枚举</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">class</span> <span class="title class_">Solution</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span>[] twoSum(<span class="type">int</span>[] nums, <span class="type">int</span> target) {</span><br><span class="line"> <span class="type">int</span>[] result = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">2</span>];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < nums.length; i++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < nums.length; j++) {</span><br><span class="line"> <span class="keyword">if</span> (nums[i] + nums[j] == target && i != j) {</span><br><span class="line"> result[<span class="number">0</span>] = i;</span><br><span class="line"> result[<span class="number">1</span>] = j;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-删除有序数组中的重复项"><a href="#2-删除有序数组中的重复项" class="headerlink" title="2.删除有序数组中的重复项"></a>2.删除有序数组中的重复项</h4><p>给你一个 <strong>升序排列</strong> 的数组 <code>nums</code> ,请你**<a href="http://baike.baidu.com/item/%E5%8E%9F%E5%9C%B0%E7%AE%97%E6%B3%95"> 原地</a>** 删除重复出现的元素,使每个元素 <strong>只出现一次</strong> ,返回删除后数组的新长度。元素的 <strong>相对顺序</strong> 应该保持 <strong>一致</strong> 。然后返回 <code>nums</code> 中唯一元素的个数。</p>
|
||
<p>考虑 <code>nums</code> 的唯一元素的数量为 <code>k</code> ,你需要做以下事情确保你的题解可以被通过:</p>
|
||
<ul>
|
||
<li>更改数组 <code>nums</code> ,使 <code>nums</code> 的前 <code>k</code> 个元素包含唯一元素,并按照它们最初在 <code>nums</code> 中出现的顺序排列。<code>nums</code> 的其余元素与 <code>nums</code> 的大小不重要。</li>
|
||
<li>返回 <code>k</code> 。</li>
|
||
</ul>
|
||
<p><strong>判题标准:</strong></p>
|
||
<p>系统会用下面的代码来测试你的题解:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">int[] nums = [...]; // 输入数组</span><br><span class="line">int[] expectedNums = [...]; // 长度正确的期望答案</span><br><span class="line"></span><br><span class="line">int k = removeDuplicates(nums); // 调用</span><br><span class="line"></span><br><span class="line">assert k == expectedNums.length;</span><br><span class="line">for (int i = 0; i < k; i++) {</span><br><span class="line"> assert nums[i] == expectedNums[i];</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>如果所有断言都通过,那么您的题解将被 <strong>通过</strong>。</p>
|
||
<p><strong>示例 1:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [1,1,2]</span><br><span class="line">输出:2, nums = [1,2,_]</span><br><span class="line">解释:函数应该返回新的长度 2 ,并且原数组 nums 的前两个元素被修改为 1, 2 。不需要考虑数组中超出新长度后面的元素。</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例 2:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [0,0,1,1,1,2,2,3,3,4]</span><br><span class="line">输出:5, nums = [0,1,2,3,4]</span><br><span class="line">解释:函数应该返回新的长度 5 , 并且原数组 nums 的前五个元素被修改为 0, 1, 2, 3, 4 。不需要考虑数组中超出新长度后面的元素。</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>提示:</strong></p>
|
||
<ul>
|
||
<li><code>1 <= nums.length <= 3 * 104</code></li>
|
||
<li><code>-104 <= nums[i] <= 104</code></li>
|
||
<li><code>nums</code> 已按 <strong>升序</strong> 排列</li>
|
||
</ul>
|
||
<p><strong>代码实现</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.leetcode.array;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 删除有序数组中的重复项</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">RemoveDuplicates</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">RemoveDuplicates</span> <span class="variable">removeDuplicates</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">RemoveDuplicates</span>();</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">0</span>,<span class="number">0</span>,<span class="number">1</span>,<span class="number">1</span>,<span class="number">1</span>,<span class="number">2</span>,<span class="number">2</span>,<span class="number">3</span>,<span class="number">3</span>,<span class="number">4</span>};</span><br><span class="line"> System.out.println(removeDuplicates.removeDuplicates(arr));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 数组去重</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">removeDuplicates</span><span class="params">(<span class="type">int</span>[] nums)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">n</span> <span class="operator">=</span> nums.length;<span class="comment">//获取数组长度</span></span><br><span class="line"> <span class="keyword">if</span> (n == <span class="number">0</span>) { <span class="comment">//数组的长度是零就直接的退出</span></span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">fast</span> <span class="operator">=</span> <span class="number">1</span>, slow = <span class="number">1</span>; <span class="comment">//定义两个快慢指针</span></span><br><span class="line"> <span class="keyword">while</span> (fast < n) {</span><br><span class="line"> <span class="comment">//如果后面一个数和前面的那个数相同 慢指针不动 快指针动</span></span><br><span class="line"> <span class="comment">//然后下一次判断的时候 慢指针就别快指针慢了一次 再将慢指针指向快指针</span></span><br><span class="line"> <span class="comment">//相同的数就后移了</span></span><br><span class="line"> <span class="keyword">if</span> (nums[fast] != nums[fast - <span class="number">1</span>]) {</span><br><span class="line"> nums[slow] = nums[fast];</span><br><span class="line"> ++slow;</span><br><span class="line"> }</span><br><span class="line"> ++fast;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> slow;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-移除元素"><a href="#3-移除元素" class="headerlink" title="3.移除元素"></a>3.移除元素</h4><p>给你一个数组 <code>nums</code> 和一个值 <code>val</code>,你需要 <strong><a href="https://baike.baidu.com/item/%E5%8E%9F%E5%9C%B0%E7%AE%97%E6%B3%95">原地</a></strong> 移除所有数值等于 <code>val</code> 的元素,并返回移除后数组的新长度。</p>
|
||
<p>不要使用额外的数组空间,你必须仅使用 <code>O(1)</code> 额外空间并 <strong><a href="https://baike.baidu.com/item/%E5%8E%9F%E5%9C%B0%E7%AE%97%E6%B3%95">原地 </a>修改输入数组</strong>。</p>
|
||
<p>元素的顺序可以改变。你不需要考虑数组中超出新长度后面的元素。</p>
|
||
<p><strong>说明:</strong></p>
|
||
<p>为什么返回数值是整数,但输出的答案是数组呢?</p>
|
||
<p>请注意,输入数组是以<strong>「引用」</strong>方式传递的,这意味着在函数里修改输入数组对于调用者是可见的。</p>
|
||
<p>你可以想象内部操作如下:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">// nums 是以“引用”方式传递的。也就是说,不对实参作任何拷贝</span><br><span class="line">int len = removeElement(nums, val);</span><br><span class="line"></span><br><span class="line">// 在函数里修改输入数组对于调用者是可见的。</span><br><span class="line">// 根据你的函数返回的长度, 它会打印出数组中 该长度范围内 的所有元素。</span><br><span class="line">for (int i = 0; i < len; i++) {</span><br><span class="line"> print(nums[i]);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例 1:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [3,2,2,3], val = 3</span><br><span class="line">输出:2, nums = [2,2]</span><br><span class="line">解释:函数应该返回新的长度 2, 并且 nums 中的前两个元素均为 2。你不需要考虑数组中超出新长度后面的元素。例如,函数返回的新长度为 2 ,而 nums = [2,2,3,3] 或 nums = [2,2,0,0],也会被视作正确答案。</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例 2:</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">输入:nums = [0,1,2,2,3,0,4,2], val = 2</span><br><span class="line">输出:5, nums = [0,1,4,0,3]</span><br><span class="line">解释:函数应该返回新的长度 5, 并且 nums 中的前五个元素为 0, 1, 3, 0, 4。注意这五个元素可为任意顺序。你不需要考虑数组中超出新长度后面的元素。</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>提示:</strong></p>
|
||
<ul>
|
||
<li><code>0 <= nums.length <= 100</code></li>
|
||
<li><code>0 <= nums[i] <= 50</code></li>
|
||
<li><code>0 <= val <= 100</code></li>
|
||
</ul>
|
||
<p><strong>代码实现</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>数据结构与算法</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>常用正则表达式大全</title>
|
||
<url>/posts/47003.html</url>
|
||
<content><![CDATA[<p>一、校验数字的表达式<br>1 数字:^[0-9]$<br>2 n位的数字:^\d{n}$<br>3 至少n位的数字:^\d{n,}$<br>4 m-n位的数字:^\d{m,n}$<br>5 零和非零开头的数字:^(0|[1-9][0-9])$<br>6 非零开头的最多带两位小数的数字:^([1-9][0-9])+(.[0-9]{1,2})?$<br>7 带1-2位小数的正数或负数:^(-)?\d+(.\d{1,2})?$<br>8 正数、负数、和小数:^(-|+)?\d+(.\d+)?$<br>9 有两位小数的正实数:^[0-9]+(.[0-9]{2})?$<br>10 有1~3位小数的正实数:^[0-9]+(.[0-9]{1,3})?$<br>11 非零的正整数:^[1-9]\d$ 或 ^([1-9][0-9]){1,3}$ 或 ^+?[1-9][0-9]$<br>12 非零的负整数:^-[1-9][]0-9”$ 或 ^-[1-9]\d$<br>13 非负整数:^\d+$ 或 ^[1-9]\d|0$<br>14 非正整数:^-[1-9]\d|0$ 或 ^((-\d+)|(0+))$<br>15 非负浮点数:^\d+(.\d+)?$ 或 ^[1-9]\d.\d|0.\d[1-9]\d|0?.0+|0$<br>16 非正浮点数:^((-\d+(.\d+)?)|(0+(.0+)?))$ 或 ^(-([1-9]\d.\d|0.\d[1-9]\d))|0?.0+|0$<br>17 正浮点数:^[1-9]\d.\d|0.\d[1-9]\d$ 或 ^(([0-9]+.[0-9][1-9][0-9])|([0-9][1-9][0-9].[0-9]+)|([0-9][1-9][0-9]))$<br>18 负浮点数:^-([1-9]\d.\d|0.\d[1-9]\d)$ 或 ^(-(([0-9]+.[0-9][1-9][0-9])|([0-9][1-9][0-9].[0-9]+)|([0-9][1-9][0-9])))$<br>19 浮点数:^(-?\d+)(.\d+)?$ 或 ^-?([1-9]\d.\d|0.\d[1-9]\d|0?.0+|0)$</p>
|
||
<p>二、校验字符的表达式<br>1 汉字:^[\u4e00-\u9fa5]{0,}$<br>2 英文和数字:^[A-Za-z0-9]+$ 或 ^[A-Za-z0-9]{4,40}$<br>3 长度为3-20的所有字符:^.{3,20}$<br>4 由26个英文字母组成的字符串:^[A-Za-z]+$<br>5 由26个大写英文字母组成的字符串:^[A-Z]+$<br>6 由26个小写英文字母组成的字符串:^[a-z]+$<br>7 由数字和26个英文字母组成的字符串:^[A-Za-z0-9]+$<br>8 由数字、26个英文字母或者下划线组成的字符串:^\w+$ 或 ^\w{3,20}$<br>9 中文、英文、数字包括下划线:^[\u4E00-\u9FA5A-Za-z0-9_]+$<br>10 中文、英文、数字但不包括下划线等符号:^[\u4E00-\u9FA5A-Za-z0-9]+$ 或 ^[\u4E00-\u9FA5A-Za-z0-9]{2,20}$<br>11 可以输入含有^%&’,;=?$"等字符:[^%&’,;=?$\x22]+<br>12 禁止输入含有<del>的字符:[^</del>\x22]+</p>
|
||
<p>三、特殊需求表达式<br>1 Email地址:^\w+([-+.]\w+)@\w+([-.]\w+).\w+([-.]\w+)$<br>2 域名:[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/.?<br>3 InternetURL:[a-zA-z]+://[^\s] 或 ^https://([\w-]+.)+[\w-]+(/[\w-./?%&=])?$<br>4 手机号码:^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$<br>5 电话号码(“XXX-XXXXXXX”、”XXXX-XXXXXXXX”、”XXX-XXXXXXX”、”XXX-XXXXXXXX”、”XXXXXXX”和”XXXXXXXX):^((\d{3,4}-)|\d{3.4}-)?\d{7,8}$<br>6 国内电话号码(0511-4405222、021-87888822):\d{3}-\d{8}|\d{4}-\d{7}<br>7 身份证号:<br> 15或18位身份证:^\d{15}|\d{18}$<br> 15位身份证:^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$<br> 18位身份证:^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$<br>8 短身份证号码(数字、字母x结尾):^([0-9]){7,18}(x|X)?$ 或 ^\d{8,18}|[0-9x]{8,18}|[0-9X]{8,18}?$<br>9 帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线):^[a-zA-Z][a-zA-Z0-9_]{4,15}$<br>10 密码(以字母开头,长度在6~18之间,只能包含字母、数字和下划线):^[a-zA-Z]\w{5,17}$<br>11 强密码(必须包含大小写字母和数字的组合,不能使用特殊字符,长度在8-10之间):^(?=.\d)(?=.[a-z])(?=.[A-Z]).{8,10}$<br>12 日期格式:^\d{4}-\d{1,2}-\d{1,2}<br>13 一年的12个月(01~09和1~12):^(0?[1-9]|1[0-2])$<br>14 一个月的31天(01~09和1~31):^((0?[1-9])|((1|2)[0-9])|30|31)$<br>15 钱的输入格式:<br>16 1.有四种钱的表示形式我们可以接受:”10000.00” 和 “10,000.00”, 和没有 “分” 的 “10000” 和 “10,000”:^[1-9][0-9]$<br>17 2.这表示任意一个不以0开头的数字,但是,这也意味着一个字符”0”不通过,所以我们采用下面的形式:^(0|[1-9][0-9])$<br>18 3.一个0或者一个不以0开头的数字.我们还可以允许开头有一个负号:^(0|-?[1-9][0-9])$<br>19 4.这表示一个0或者一个可能为负的开头不为0的数字.让用户以0开头好了.把负号的也去掉,因为钱总不能是负的吧.下面我们要加的是说明可能的小数部分:^[0-9]+(.[0-9]+)?$<br>20 5.必须说明的是,小数点后面至少应该有1位数,所以”10.”是不通过的,但是 “10” 和 “10.2” 是通过的:^[0-9]+(.[0-9]{2})?$<br>21 6.这样我们规定小数点后面必须有两位,如果你认为太苛刻了,可以这样:^[0-9]+(.[0-9]{1,2})?$<br>22 7.这样就允许用户只写一位小数.下面我们该考虑数字中的逗号了,我们可以这样:^[0-9]{1,3}(,[0-9]{3})(.[0-9]{1,2})?$<br>23 8.1到3个数字,后面跟着任意个 逗号+3个数字,逗号成为可选,而不是必须:^([0-9]+|[0-9]{1,3}(,[0-9]{3}))(.[0-9]{1,2})?$<br>24 备注:这就是最终结果了,别忘了”+”可以用””替代如果你觉得空字符串也可以接受的话(奇怪,为什么?)最后,别忘了在用函数时去掉去掉那个反斜杠,一般的错误都在这里<br>25 xml文件:^([a-zA-Z]+-?)+[a-zA-Z0-9]+\.[x|X][m|M][l|L]$<br>26 中文字符的正则表达式:[\u4e00-\u9fa5]<br>27 双字节字符:[^\x00-\xff] (包括汉字在内,可以用来计算字符串的长度(一个双字节字符长度计2,ASCII字符计1))<br>28 空白行的正则表达式:\n\s\r (可以用来删除空白行)<br>29 HTML标记的正则表达式:<(\S?)[^>]>.?|<.? /> (网上流传的版本太糟糕,上面这个也仅仅能部分,对于复杂的嵌套标记依旧无能为力)<br>30 首尾空白字符的正则表达式:^\s|\s$或(^\s)|(\s$) (可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等),非常有用的表达式)<br>31 腾讯QQ号:[1-9][0-9]{4,} (腾讯QQ号从10000开始)<br>32 中国邮政编码:[1-9]\d{5}(?!\d) (中国邮政编码为6位数字)<br>33 IP地址:\d+.\d+.\d+.\d+ (提取IP地址时有用)</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>正则表达式</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>常用的DOS命令</title>
|
||
<url>/posts/51007.html</url>
|
||
<content><![CDATA[<h3 id="1-一些基础的DOS命令"><a href="#1-一些基础的DOS命令" class="headerlink" title="1.一些基础的DOS命令"></a>1.一些基础的DOS命令</h3><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">c:\javacode>dir //查看C盘javacode目录下有那些文件</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">c:\javacode>cd /D d: //从C盘切换到D盘</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">c:\javacode>help cd //解释cd是怎么使用的</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">c:\javacode>cd .. //切换到上一级目录</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">c:\javacode>cd \ //切换到根目录</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">C:\tree c:\javacode //查看C盘下的子目录javacode下面的所有子目录,形成一个目录树</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">>cls //清空所有内容,清屏</span><br><span class="line">>exit //退出控制台</span><br><span class="line">md[创建目录],rd[删除目录],copy[拷贝文件],del[删除文件],echo[输入内容到文件],type,move[剪切] </span><br><span class="line">>echo ok >pic.txt //创建pic.txt并把ok输入到pic.txt中</span><br><span class="line">>echo nul >pic.txt //创建一个空文件pic.txt</span><br><span class="line">>copy ok.txt d:\ok.txt //把ok.txt从当前路径拷贝到D盘下面,可以更改第二个ok.txt的文件名</span><br><span class="line">>move ok.txt d:\ok.txt //把ok.txt剪切到D盘下面</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-网络编程相关的DOS命令"><a href="#2-网络编程相关的DOS命令" class="headerlink" title="2.网络编程相关的DOS命令"></a>2.网络编程相关的DOS命令</h3><figure class="highlight dos"><table><tr><td class="code"><pre><span class="line">//获取IP相关的信息</span><br><span class="line">><span class="built_in">ipconfig</span></span><br><span class="line">//端口监听和网络监听情况</span><br><span class="line">>netstat -an</span><br><span class="line">>netstat -an | <span class="built_in">more</span>//分页显示</span><br><span class="line">>netstat -anb</span><br><span class="line">//<span class="built_in">ping</span>命令,查看网络是否连通</span><br><span class="line">><span class="built_in">ping</span> IP地址或者域名</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-MySql的相关DOS命令"><a href="#3-MySql的相关DOS命令" class="headerlink" title="3.MySql的相关DOS命令"></a>3.MySql的相关DOS命令</h3><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">//开启MySQL和关闭MySQL服务</span><br><span class="line">>net start mysql //开</span><br><span class="line">>new stop mysql //关</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">//登录mysql的命令</span><br><span class="line">>mysql -u 用户名 -p密码 //密码可以先不输入,直接回车输入,或者直接写在p的后面,中间不要空格</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">//连接mysql服务(mysql数据库)的指令</span><br><span class="line">>mysql -h 主机ip -P端口 -u 用户名 -p密码</span><br><span class="line">//tips:</span><br><span class="line"> //p和密码中间不要有空格</span><br><span class="line"> //-p后面没有密码的话,会让回车的时候输入密码</span><br><span class="line"> //如果没有写-h主机,默认就是本机</span><br><span class="line"> //如果没有写-P端口,默认就是3306</span><br><span class="line"> //在实际的工作中端口一般会修改,使用3306这一端口,容易被黑客发现并攻击</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">//备份数据库的命令</span><br><span class="line"> //备份整个数据库</span><br><span class="line">>mysqldump -u root -p -B 数据库 数据库 > c:\\test\\bak.sql</span><br><span class="line"> //备份数据库的某个表</span><br><span class="line">>mysqldump -u root -p 数据库 表1 表2 表n > c:\\test\\bak.sql </span><br><span class="line">//这里就是把数据库hsp_db02 和数据库hsp_db03备份在C盘下面test目录中一个叫bak.sql的文件中,这里备份的是sql语句</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">//根据备份的文件,恢复数据库</span><br><span class="line">//第一种方式</span><br><span class="line">>source c:\\test\\bak.sql //根据C盘下面的c:\\test\\bak.sql的文件恢复数据库</span><br><span class="line">//第二种方式</span><br><span class="line">//直接把这个.sql的文件再执行一遍,就会恢复两个数据库了</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>常用命令</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>常见的问题及解决方法</title>
|
||
<url>/posts/14438.html</url>
|
||
<content><![CDATA[<h2 id="1-前后端时间格式的问题"><a href="#1-前后端时间格式的问题" class="headerlink" title="1.前后端时间格式的问题"></a>1.前后端时间格式的问题</h2><p>配置文件中设置时间的格式和时区</p>
|
||
<p><img src="/pictures/image-20230506130238222.png" alt="image-20230506130238222"></p>
|
||
<h2 id="2-MyBatis分页插件统计总记录数total失效的问题"><a href="#2-MyBatis分页插件统计总记录数total失效的问题" class="headerlink" title="2.MyBatis分页插件统计总记录数total失效的问题"></a>2.MyBatis分页插件统计总记录数total失效的问题</h2><p>检查一下分页插件的配置 选择以下正确的分页插件配置</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.config.mp;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.DbType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;</span><br><span class="line"><span class="keyword">import</span> org.mybatis.spring.annotation.MapperScan;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * mp的分页插件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="meta">@MapperScan("com.atguigu.auth.mapper")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MybatisPlusConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 新的分页插件,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存出现问题(该属性会在旧插件移除后一同移除)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> MybatisPlusInterceptor <span class="title function_">mybatisPlusInterceptor</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">MybatisPlusInterceptor</span> <span class="variable">interceptor</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MybatisPlusInterceptor</span>();</span><br><span class="line"> interceptor.addInnerInterceptor(<span class="keyword">new</span> <span class="title class_">PaginationInnerInterceptor</span>(DbType.MYSQL));</span><br><span class="line"> <span class="keyword">return</span> interceptor;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> ConfigurationCustomizer <span class="title function_">configurationCustomizer</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> configuration -> configuration.setUseDeprecatedExecutor(<span class="literal">false</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.injector.ISqlInjector;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/3/4</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> mybatis-plus的配置文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MpConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 分页插件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> PaginationInterceptor <span class="title function_">paginationInterceptor</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PaginationInterceptor</span>();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-网关中的路由问题"><a href="#3-网关中的路由问题" class="headerlink" title="3.网关中的路由问题"></a>3.网关中的路由问题</h2><p>网关中的路由匹配问题,模糊的路由放在精确的路由前面,容易是精确的路由配置失效</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment">#这个是精确的路由,下面的路由在前,特定的请求就不会转发到这个请求中来</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">product_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://gulimall-product</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/product/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/(?<segment>.*),/$\{segment}</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">#这个是模糊的路由,如果放在上面的那个路由配置的前面,会导致上面的那个路由配置失效</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">admin_route</span> </span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://renren-fast</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/(?<segment>.*),/renren-fast/$\{segment}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="4-Docker中部署mysql后SpringBoot连接时提示表不存在-修改表名忽略大小写-解决方案"><a href="#4-Docker中部署mysql后SpringBoot连接时提示表不存在-修改表名忽略大小写-解决方案" class="headerlink" title="4.Docker中部署mysql后SpringBoot连接时提示表不存在(修改表名忽略大小写)解决方案"></a>4.Docker中部署mysql后SpringBoot连接时提示表不存在(修改表名忽略大小写)<strong>解决方案</strong></h2><p>使用Docer启动容器的时候设置忽略大小写,表不存在是因为表名大小写的原因。</p>
|
||
<p><strong>方案一:启动的时候加上–lower_case_table_names= 1</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">docker run -p 3306:3306 --name mysql -v /usr/local/docker/mysql/conf:/etc/mysql -v /usr/local/docker/mysql/logs:/var/log/mysql -v /usr/local/docker/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 --lower_case_table_names= 1</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>方案二: 修改mysql挂载在宿主机的配置文件</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 在配置文件中添加如下的配置</span></span><br><span class="line"><span class="attr">lower_case_table_names</span>=<span class="string">1</span></span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>常用网站及网址信息</title>
|
||
<url>/posts/17772.html</url>
|
||
<content><![CDATA[<p><strong><a href="https://jasonsgong.gitee.io/website/bookmarks.html">常用网站及网址信息</a></strong></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>个人</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>常用网站</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>开发环境的搭建</title>
|
||
<url>/posts/63333.html</url>
|
||
<content><![CDATA[<h2 id="1-后端环境搭建"><a href="#1-后端环境搭建" class="headerlink" title="1.后端环境搭建"></a>1.后端环境搭建</h2><h3 id="1-1-JDK环境的配置"><a href="#1-1-JDK环境的配置" class="headerlink" title="1.1 JDK环境的配置"></a>1.1 JDK环境的配置</h3><p>常规的安装,无需教程</p>
|
||
<p>IDEA中设置默认的JDK</p>
|
||
<p><img src="/pictures/image-20230604120610791.png" alt="image-20230604120610791"></p>
|
||
<p>选中需要设置为默认JDK的JDK</p>
|
||
<p><img src="/pictures/image-20230604120654078.png" alt="image-20230604120654078"></p>
|
||
<h3 id="1-2-Maven的安装与配置"><a href="#1-2-Maven的安装与配置" class="headerlink" title="1.2 Maven的安装与配置"></a>1.2 Maven的安装与配置</h3><p><strong>环境变量的配置</strong></p>
|
||
<p>MAVEN_HOME和Path 配置文件的配置</p>
|
||
<p>设置默认maven,每次创建新的工程的时候就会使用这个maven</p>
|
||
<p><img src="/pictures/image-20230604120307280.png" alt="image-20230604120307280"></p>
|
||
<p>然后在弹出的页面中设置,这样每次创建新的工程就会使用当前设置的maven</p>
|
||
<p><img src="/pictures/image-20230604120436139.png" alt="image-20230604120436139"></p>
|
||
<h3 id="1-3-IDEA的配置"><a href="#1-3-IDEA的配置" class="headerlink" title="1.3 IDEA的配置"></a>1.3 IDEA的配置</h3><p>展开目录树 取消勾选下面的选项</p>
|
||
<p><img src="/pictures/image-20230604151530534.png" alt="image-20230604151530534"></p>
|
||
<p>快捷键的配置 IDEA中的全局查找的快捷键会和windows的中文的繁简字体切换的快捷键冲突,直接关掉系统的快捷键</p>
|
||
<p><img src="/pictures/image-20230604121126549.png" alt="image-20230604121126549"></p>
|
||
<p>页面中字体的配置</p>
|
||
<img src="/pictures/image-20230603202245269.png" alt="image-20230603202245269" style="zoom:150%;" />
|
||
|
||
<p>代码字体的配置</p>
|
||
<img src="/pictures/image-20230603154531129.png" alt="image-20230603154531129" style="zoom:150%;" />
|
||
|
||
<p>设置代码粗体</p>
|
||
<img src="/pictures/image-20230603154622726.png" alt="image-20230603154622726" style="zoom:150%;" />
|
||
|
||
<p>打开的多个文件多行显示,不在同一行显示</p>
|
||
<p><img src="/pictures/image-20230611211438017.png" alt="image-20230611211438017"></p>
|
||
<p><strong>浅色主题的配置</strong></p>
|
||
<p><img src="/pictures/image-20230815171925527.png" alt="image-20230815171925527"></p>
|
||
<p>修改注释的颜色</p>
|
||
<p>修改多行注释的颜色: 修改Doc comment -> Text的颜色</p>
|
||
<p><img src="/pictures/image-20230815172326472.png" alt="image-20230815172326472"></p>
|
||
<h3 id="1-4-mysql的安装"><a href="#1-4-mysql的安装" class="headerlink" title="1.4 mysql的安装"></a>1.4 mysql的安装</h3><p>具体的安装教程在《MySql5.7的安装教程的博客中》</p>
|
||
<h3 id="1-5-Nacos的安装配置"><a href="#1-5-Nacos的安装配置" class="headerlink" title="1.5 Nacos的安装配置"></a>1.5 Nacos的安装配置</h3><p>github下载之后,直接解压运行</p>
|
||
<p>下载的地址:<a href="https://github.com/alibaba/nacos/releases">https://github.com/alibaba/nacos/releases</a></p>
|
||
<p>踩坑:单节点部署的话,启动的时候需要配置一下,不然启动的时候会闪退</p>
|
||
<p><img src="/pictures/image-20230603193632659.png" alt="image-20230603193632659"></p>
|
||
<h2 id="2-前端环境的搭建"><a href="#2-前端环境的搭建" class="headerlink" title="2.前端环境的搭建"></a>2.前端环境的搭建</h2><h3 id="2-1-Nodejs的安装与配置"><a href="#2-1-Nodejs的安装与配置" class="headerlink" title="2.1 Nodejs的安装与配置"></a>2.1 Nodejs的安装与配置</h3><p>下载的网址:<a href="https://nodejs.org/zh-cn/download/releases">https://nodejs.org/zh-cn/download/releases</a></p>
|
||
<p>选择.msi的下载即可</p>
|
||
<p>不用配置环境变量,一直下一步,直到安装成功过,node自带npm包管理工具</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">检验命令</span></span><br><span class="line">node -v</span><br><span class="line">npm -v</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-前后端公共环境的搭建"><a href="#3-前后端公共环境的搭建" class="headerlink" title="3.前后端公共环境的搭建"></a>3.前后端公共环境的搭建</h2><h3 id="1-Git环境的搭建"><a href="#1-Git环境的搭建" class="headerlink" title="1.Git环境的搭建"></a>1.Git环境的搭建</h3><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">以下的操作在下载安装完毕之后进行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">1.鼠标在桌面右键 选择Git Bash Here 打开控制台</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">2.配置用户名和邮箱</span></span><br><span class="line">git config --global user.name "用户名" #随意</span><br><span class="line">git config --global user.email "邮箱" #自己的邮箱</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">3.配置SSH免密连接</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">生成密钥</span></span><br><span class="line">ssh-keygen -t rsa -C "在码云上注册的邮箱地址" #连续三次回车</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看密钥并复制公钥的内容</span></span><br><span class="line">cat ~/.ssh/id_rsa.pub</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.将密钥的复制到码云的SSH公钥中</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.1添加公钥 公钥名随意 公钥内容就是上面复制的内容</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">5.测试</span></span><br><span class="line">ssh -T git@gitee.com</span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>环境搭建</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>技术书籍-Linux指令大全</title>
|
||
<url>/posts/3661.html</url>
|
||
<content><![CDATA[<h2 id="Linux命令行与shell脚本编程大全-第三版-布鲁姆-P606"><a href="#Linux命令行与shell脚本编程大全-第三版-布鲁姆-P606" class="headerlink" title="Linux命令行与shell脚本编程大全 第三版 ,布鲁姆 ,P606"></a>Linux命令行与shell脚本编程大全 第三版 ,布鲁姆 ,P606</h2><h3 id="PDF"><a href="#PDF" class="headerlink" title="PDF"></a>PDF</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/Linux命令行与shell脚本编程大全.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="精通Linux-第二版"><a href="#精通Linux-第二版" class="headerlink" title="精通Linux 第二版"></a>精通Linux 第二版</h2><h3 id="PDF-1"><a href="#PDF-1" class="headerlink" title="PDF"></a>PDF</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/精通Linux.第2版.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>技术书籍</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>接口测试工具</title>
|
||
<url>/posts/35630.html</url>
|
||
<content><![CDATA[<h2 id="一-Postman的使用"><a href="#一-Postman的使用" class="headerlink" title="一 Postman的使用"></a>一 Postman的使用</h2><p><strong>官网网址: <a href="https://www.postman.com/">https://www.postman.com/</a></strong></p>
|
||
<p><strong>Postman的首页</strong></p>
|
||
<p><img src="/pictures/image-20230813162510205.png" alt="image-20230813162510205"></p>
|
||
<h3 id="1-使用教程"><a href="#1-使用教程" class="headerlink" title="1 使用教程"></a>1 使用教程</h3><h4 id="1-1-发送Post请求"><a href="#1-1-发送Post请求" class="headerlink" title="1.1 发送Post请求"></a>1.1 发送Post请求</h4><p><strong>以一个普通的登录操作来演示Postman的使用教程</strong></p>
|
||
<p>发送Post请求的: 1.修改请求的方式 2.设置请求体的数据类型</p>
|
||
<p><img src="/pictures/image-20230813163451814.png" alt="image-20230813163451814"></p>
|
||
<p>请求数据的格式</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"phone"</span><span class="punctuation">:</span><span class="string">"13511223456"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"password"</span><span class="punctuation">:</span><span class="string">"admin"</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>响应数据的格式</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"host"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"code"</span><span class="punctuation">:</span> <span class="number">200</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"errorMessage"</span><span class="punctuation">:</span> <span class="string">"操作成功"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"data"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"user"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">4</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"salt"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"admin"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"password"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"phone"</span><span class="punctuation">:</span> <span class="string">"13511223456"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"image"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sex"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"certification"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"identityAuthentication"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"flag"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"createdTime"</span><span class="punctuation">:</span> <span class="string">"2020-03-30T08:36:32.000+00:00"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"token"</span><span class="punctuation">:</span> <span class="string">"eyJhbGciOiJIUzUxMiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAADWLQQrDMAzA_uJzc3DnBKe_cRKPpVAIOIWNsb_PPfQmIfSFfXbYgCqlEkmDVI6BHlJCrrWF9IzKiMKNERboMmHDlDFjTMgL2Fn8to9NPa5u5vrSfoibnM1NxnDW97jPvF5n90a_P2LDCJyAAAAA.Rk6wC_YpLmxrqylQxEgz19uKHkrBRV6_JmIqbHrSQENkURtavrzhLzr0D8mQf-wtKivaGGviDGHmdckw8IWi7g"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="二-Swagger的使用"><a href="#二-Swagger的使用" class="headerlink" title="二 Swagger的使用"></a>二 Swagger的使用</h2><p>SpringBoot整合Swagger:<a href="https://jasonsgong.gitee.io/posts/32246.html">https://jasonsgong.gitee.io/posts/32246.html</a></p>
|
||
<p><strong>以一个普通的登录操作来演示Swagger的使用教程</strong></p>
|
||
<p><img src="/pictures/image-20230813170950932.png" alt="image-20230813170950932"></p>
|
||
<p><img src="/pictures/image-20230813171244848.png" alt="image-20230813171244848"></p>
|
||
<h2 id="三-knife4j的使用"><a href="#三-knife4j的使用" class="headerlink" title="三 knife4j的使用"></a>三 knife4j的使用</h2><p><strong>SpringBoot整合Knife4j教程: <a href="https://jasonsgong.gitee.io/posts/855.html">https://jasonsgong.gitee.io/posts/855.html</a></strong></p>
|
||
<p>gitee地址:<a href="https://gitee.com/xiaoym/knife4j">https://gitee.com/xiaoym/knife4j</a> </p>
|
||
<p>官方文档:<a href="https://doc.xiaominfo.com/">https://doc.xiaominfo.com/</a> </p>
|
||
<p><strong>核心功能</strong> :文档说明 在线调试 个性化配置 离线文档 接口排序</p>
|
||
<p><img src="/pictures/image-20230813172211110.png" alt="image-20230813172211110"></p>
|
||
<p><strong>以一个普通的登录操作来演示knife4j的使用教程</strong></p>
|
||
<p><img src="/pictures/image-20230813172355353.png" alt="image-20230813172355353"></p>
|
||
<p><strong>下载离线文档</strong></p>
|
||
<p><img src="/pictures/image-20230813172605624.png" alt="image-20230813172605624"></p>
|
||
<p>下载成功之后打开的效果</p>
|
||
<p><img src="/pictures/image-20230813172720116.png" alt="image-20230813172720116"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>工具</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>数据校验</title>
|
||
<url>/posts/27166.html</url>
|
||
<content><![CDATA[<p> 在前端接收数据和前端向后端传递数据的时候,都需要进行数据校验,避免传入错误的信息,比如在需要传入一个非空的值时,传入了一个空字符串,需要传入邮箱号码的时候,传入的非邮箱格式的数据。同时在写接口时经常要写效验请求参数逻辑,这时候我们会常用做法是写大量的 if 与 if else 类似这样的代码,大量if-else代码看起来比较混乱,降低了代码的可读性。</p>
|
||
<h2 id="一-JSR303数据校验"><a href="#一-JSR303数据校验" class="headerlink" title="一.JSR303数据校验"></a>一.JSR303数据校验</h2><h3 id="1-引入依赖"><a href="#1-引入依赖" class="headerlink" title="1.引入依赖"></a>1.引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.hibernate<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>hibernate-validator<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>6.0.7.Final<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-给实体类添加校验注解,并定义自己的message提示"><a href="#2-给实体类添加校验注解,并定义自己的message提示" class="headerlink" title="2.给实体类添加校验注解,并定义自己的message提示"></a>2.给实体类添加校验注解,并定义自己的message提示</h3><p><strong>常用的检验注解</strong></p>
|
||
<img src="/pictures/image-20230612170704286.png" alt="image-20230612170704286" style="zoom:150%;" />
|
||
|
||
<p><strong>示例</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.entity;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.hibernate.validator.constraints.URL;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.Min;</span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.NotBlank;</span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.NotEmpty;</span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.Pattern;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> JasonGong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@email</span> JasonGong@gmail.com</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@date</span> 2023-05-19 00:23:36</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("pms_brand")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BrandEntity</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId</span></span><br><span class="line"> <span class="keyword">private</span> Long brandId;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotBlank(message = "品牌名必须提交")</span> <span class="comment">//非空的校验</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌logo地址</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotEmpty</span><span class="comment">//既不能为空,也要符合URL的格式</span></span><br><span class="line"> <span class="meta">@URL(message = "logo必须是一个合法的URL地址")</span><span class="comment">//URL的校验</span></span><br><span class="line"> <span class="keyword">private</span> String logo;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 介绍</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String descript;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示状态[0-不显示;1-显示]</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer showStatus;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 检索首字母</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotEmpty</span></span><br><span class="line"> <span class="meta">@Pattern(regexp = "^[a-zA-Z]$", message = "检索首字母必须是一个字母")</span><span class="comment">//正则表达式的校验,在java中使用正则的时候不需要/符号</span></span><br><span class="line"> <span class="keyword">private</span> String firstLetter;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotNull</span> <span class="comment">//Integer类型不为空,使用@NotNull不能使用@NotEmpty</span></span><br><span class="line"> <span class="meta">@Min(value = 0, message = "排序必须大于等于0")</span><span class="comment">//最小值是0</span></span><br><span class="line"> <span class="keyword">private</span> Integer sort;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-开启校验功能-Valid"><a href="#3-开启校验功能-Valid" class="headerlink" title="3.开启校验功能@Valid"></a>3.开启校验功能@Valid</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Valid</span>注解开启校验</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> result 检验之后响应的结果信息</span></span><br><span class="line"><span class="comment"> * 给校验的bean后紧跟一个BindingResult,就可以获取到校验的结果</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@Valid</span> <span class="meta">@RequestBody</span> BrandEntity brand, BindingResult result<span class="comment">/*紧跟在需要校验的字段后面*/</span>)</span>{</span><br><span class="line"> <span class="keyword">if</span>(result.hasErrors()){<span class="comment">//判断有没有校验的错误</span></span><br><span class="line"> Map<String,String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//获取检验的错误结果, result.getFieldErrors():校验出错的字段的集合</span></span><br><span class="line"> <span class="keyword">for</span> (FieldError fieldError : result.getFieldErrors()) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">defaultMessage</span> <span class="operator">=</span> fieldError.getDefaultMessage();<span class="comment">//获取到错误的提示</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">field</span> <span class="operator">=</span> fieldError.getField();<span class="comment">//获取错误的属性(字段)的名字</span></span><br><span class="line"> <span class="comment">//封装在一个集合中方便后期统一通过R返回结果</span></span><br><span class="line"> map.put(field,defaultMessage);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.error(<span class="number">400</span>,<span class="string">"提交的数据不合法"</span>).put(<span class="string">"data"</span>,map);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//校验合格的话,就做进行业务的处理</span></span><br><span class="line"> brandService.save(brand);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试查看返回的数据的格式,这里我们输入的都是不合法的数据格式,返回的结果如下</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"msg"</span><span class="punctuation">:</span> <span class="string">"提交的数据不合法"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"code"</span><span class="punctuation">:</span> <span class="number">400</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"data"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"品牌名必须提交"</span><span class="punctuation">,</span><span class="comment">//字段:错误信息</span></span><br><span class="line"> <span class="attr">"logo"</span><span class="punctuation">:</span> <span class="string">"logo必须是一个合法的URL地址"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="string">"排序必须大于等于0"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstLetter"</span><span class="punctuation">:</span> <span class="string">"检索首字母必须是一个字母"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>参数没有错误之后返回的数据</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"msg"</span><span class="punctuation">:</span> <span class="string">"success"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"code"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-上面的代码过于冗余-我们可以直接使用统一异常处理处理数据校验的异常"><a href="#4-上面的代码过于冗余-我们可以直接使用统一异常处理处理数据校验的异常" class="headerlink" title="4.上面的代码过于冗余,我们可以直接使用统一异常处理处理数据校验的异常"></a>4.上面的代码过于冗余,我们可以直接使用统一异常处理处理数据校验的异常</h3><p>在统一异常处理类上加上数据校验异常的异常处理</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.exception;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.R;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.validation.BindingResult;</span><br><span class="line"><span class="keyword">import</span> org.springframework.validation.FieldError;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.MethodArgumentNotValidException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ExceptionHandler;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestControllerAdvice;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/12</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 异常处理类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@RestControllerAdvice(basePackages = "com.atguigu.gulimall.product.controller")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GulimallExceptionControllerAdvice</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@ExceptionHandler(value = MethodArgumentNotValidException.class)</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">handleValidException</span><span class="params">(MethodArgumentNotValidException e)</span>{</span><br><span class="line"> log.error(<span class="string">"数据校验出现问题:{},异常类型:{}"</span>,e.getMessage(),e.getClass());</span><br><span class="line"> Map<String,String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//获取检验的错误结果</span></span><br><span class="line"> <span class="type">BindingResult</span> <span class="variable">result</span> <span class="operator">=</span> e.getBindingResult();</span><br><span class="line"> <span class="keyword">for</span> (FieldError fieldError : result.getFieldErrors()) {</span><br><span class="line"> <span class="comment">//获取到错误的提示</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">defaultMessage</span> <span class="operator">=</span> fieldError.getDefaultMessage();</span><br><span class="line"> <span class="comment">//获取错误的属性的名字</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">field</span> <span class="operator">=</span> fieldError.getField();</span><br><span class="line"> map.put(field,defaultMessage);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.error(<span class="number">400</span>,<span class="string">"数据校验出现问题"</span>).put(<span class="string">"data"</span>,map);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>这个时候上面的代码就可以简化为下面的格式,数据校验出现问题之后就直接在统一异常处理中处理了</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@Valid</span> <span class="meta">@RequestBody</span> BrandEntity brand )</span>{</span><br><span class="line"> brandService.save(brand);</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="5-分组校验功能"><a href="#5-分组校验功能" class="headerlink" title="5.分组校验功能"></a>5.分组校验功能</h3><pre><code> 例如:当我们在添加一个品牌的时候,我们不需要传入这个品牌的id信息,需要这个品牌的品牌名信息,但是在修改这个品牌的时候,我们需要这个品牌的id信息和品牌名的信息,这时我们就需要使用分组校验了
|
||
</code></pre>
|
||
<h4 id="5-1-定义空接口-作为分组校验的组"><a href="#5-1-定义空接口-作为分组校验的组" class="headerlink" title="5.1 定义空接口,作为分组校验的组"></a>5.1 定义空接口,作为分组校验的组</h4><p>添加操作的组</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.valid;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">AddGroup</span> {</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改操作的组</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.valid;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">UpdateGroup</span> {</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="5-2-在实体类上添加上分组的信息"><a href="#5-2-在实体类上添加上分组的信息" class="headerlink" title="5.2 在实体类上添加上分组的信息"></a>5.2 在实体类上添加上分组的信息</h4><p><strong>注意:使用了分组校验之后,其余的字段也要加上分组信息,否则没有加上分组信息的会失效</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.entity;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.valid.AddGroup;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.valid.UpdateGroup;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.hibernate.validator.constraints.URL;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.*;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("pms_brand")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BrandEntity</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotNull(message = "修改必须指定品牌id", groups = {UpdateGroup.class})</span><span class="comment">//在修改的时候进行校验</span></span><br><span class="line"> <span class="meta">@Null(message = "新增不能指定id", groups = {AddGroup.class})</span><span class="comment">//在添加的时候进行校验</span></span><br><span class="line"> <span class="meta">@TableId</span></span><br><span class="line"> <span class="keyword">private</span> Long brandId;</span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotBlank(message = "品牌名必须提交", groups = {AddGroup.class, UpdateGroup.class})</span><span class="comment">//这个就是在添加和修改的组中都需要进行校验</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="5-3-在控制层添加上相应的注解信息-指定当前是操作属于的分组"><a href="#5-3-在控制层添加上相应的注解信息-指定当前是操作属于的分组" class="headerlink" title="5.3 在控制层添加上相应的注解信息,指定当前是操作属于的分组"></a>5.3 在控制层添加上相应的注解信息,指定当前是操作属于的分组</h4><p><strong>注意:这里如果产生数据校验的出现问题的异常,会由统一异常处理进行处理</strong></p>
|
||
<p>保存的控制器方法上添加上添加分组信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Validated</span>({AddGroup.class}) 指定使用添加分组的校验</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@Validated({AddGroup.class})</span> <span class="meta">@RequestBody</span> BrandEntity brand )</span>{</span><br><span class="line"> brandService.save(brand);</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改的分组上添加上修改的分组信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/update")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">update</span><span class="params">(<span class="meta">@Validated({UpdateGroup.class})</span> <span class="meta">@RequestBody</span> BrandEntity brand)</span>{</span><br><span class="line"> brandService.updateById(brand);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试:我们在新增的时候加上品牌的id,这时就会产生错误</p>
|
||
<p><img src="/pictures/image-20230614105450858.png" alt="image-20230614105450858"></p>
|
||
<p>修改的时候不带品牌的id信息</p>
|
||
<p><img src="/pictures/image-20230614111024292.png" alt="image-20230614111024292"></p>
|
||
<h3 id="6-自定义校验"><a href="#6-自定义校验" class="headerlink" title="6.自定义校验"></a>6.自定义校验</h3><p><strong>这里我们以编写一个输入的值只能是指定值的注解为例</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示状态[0-不显示;1-显示]</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="comment">//注意:我们使用了分组校验,所以这里也要加上分组groups</span></span><br><span class="line"><span class="meta">@ListValue(vals = {0, 1}, groups = {AddGroup.class, UpdateGroup.class})</span><span class="comment">//自定义的注解,输入的时候只能是0或者1</span></span><br><span class="line"><span class="keyword">private</span> Integer showStatus;</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="6-1-编写一个自定义的校验注解"><a href="#6-1-编写一个自定义的校验注解" class="headerlink" title="6.1 编写一个自定义的校验注解"></a>6.1 编写一个自定义的校验注解</h4><p>编写自定义注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.valid;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.validation.Constraint;</span><br><span class="line"><span class="keyword">import</span> javax.validation.Payload;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.annotation.Documented;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.annotation.Retention;</span><br><span class="line"><span class="keyword">import</span> java.lang.annotation.Target;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> <span class="keyword">static</span> java.lang.annotation.ElementType.*;</span><br><span class="line"><span class="keyword">import</span> <span class="keyword">static</span> java.lang.annotation.ElementType.TYPE_USE;</span><br><span class="line"><span class="keyword">import</span> <span class="keyword">static</span> java.lang.annotation.RetentionPolicy.RUNTIME;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 自定义的校验注解</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Documented</span></span><br><span class="line"><span class="meta">@Constraint(validatedBy = {})</span><span class="comment">//校验注解使用的校验器</span></span><br><span class="line"><span class="meta">@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE})</span><span class="comment">//注解可以标注的位置</span></span><br><span class="line"><span class="meta">@Retention(RUNTIME)</span></span><br><span class="line"><span class="keyword">public</span> <span class="meta">@interface</span> ListValue {</span><br><span class="line"></span><br><span class="line"> String <span class="title function_">message</span><span class="params">()</span> <span class="keyword">default</span> <span class="string">"{com.atguigu.common.valid.ListValue.message}"</span>;<span class="comment">//在配置文件中指明</span></span><br><span class="line"></span><br><span class="line"> Class<?>[] groups() <span class="keyword">default</span> {};</span><br><span class="line"></span><br><span class="line"> Class<? <span class="keyword">extends</span> <span class="title class_">Payload</span>>[] payload() <span class="keyword">default</span> {};</span><br><span class="line"></span><br><span class="line"> <span class="type">int</span>[] vals() <span class="keyword">default</span> {};<span class="comment">//使用注解的时候会有vals属性 在属性里面指定值</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>编写注解中默认提示消息的配置文件</p>
|
||
<p><strong>ValidationMessages.properties</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">com.atguigu.common.valid.ListValue.message</span>=<span class="string">必须提交指定的值</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="6-2-编写一个自定义的校验器"><a href="#6-2-编写一个自定义的校验器" class="headerlink" title="6.2 编写一个自定义的校验器"></a>6.2 编写一个自定义的校验器</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.valid;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.validation.ConstraintValidator;</span><br><span class="line"><span class="keyword">import</span> javax.validation.ConstraintValidatorContext;</span><br><span class="line"><span class="keyword">import</span> java.util.HashSet;</span><br><span class="line"><span class="keyword">import</span> java.util.Set;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 自定义的校验器</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ListValueConstraintValidator</span> <span class="keyword">implements</span> <span class="title class_">ConstraintValidator</span><ListValue,Integer> {</span><br><span class="line"> <span class="keyword">private</span> Set<Integer> set = <span class="keyword">new</span> <span class="title class_">HashSet</span><>();<span class="comment">//创建一个set集合 用于存储指定输入的值0和1</span></span><br><span class="line"> <span class="comment">//初始化方法</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">initialize</span><span class="params">(ListValue constraintAnnotation)</span> {</span><br><span class="line"> <span class="type">int</span>[] vals = constraintAnnotation.vals();<span class="comment">//@ListValue(vals = {0, 1})</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> val : vals) {</span><br><span class="line"> set.add(val);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//判断是否校验成功</span></span><br><span class="line"> <span class="comment">//value:需要校验的值</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isValid</span><span class="params">(Integer integer, ConstraintValidatorContext constraintValidatorContext)</span> {</span><br><span class="line"> <span class="keyword">return</span> set.contains(integer);<span class="comment">//判断真实树的值在不在包含0和1的这个set集合中</span></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="6-3-关联自定义的校验器和校验注解"><a href="#6-3-关联自定义的校验器和校验注解" class="headerlink" title="6.3 关联自定义的校验器和校验注解"></a>6.3 关联自定义的校验器和校验注解</h4><p>在自定义的注解上面关联上上面自定义的校验规则</p>
|
||
<p><img src="/pictures/image-20230615151144311.png" alt="image-20230615151144311"></p>
|
||
<p>测试自定义的注解</p>
|
||
<p><img src="/pictures/image-20230615152331597.png" alt="image-20230615152331597"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>技术书籍-java8实战</title>
|
||
<url>/posts/46306.html</url>
|
||
<content><![CDATA[<h3 id="java-8实战"><a href="#java-8实战" class="headerlink" title="java 8实战"></a>java 8实战</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/Java8实战.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>技术书籍</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>细节知识</title>
|
||
<url>/posts/22202.html</url>
|
||
<content><![CDATA[<p>Linux开启/关闭防火墙的命令</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">检查防火墙状态:</span></span><br><span class="line">systemctl status firewalld</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">开启防火墙</span></span><br><span class="line">systemctl start firewalld</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">关闭防火墙(有时间限制)</span></span><br><span class="line">systemctl stop firewalld</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机禁用防火墙(先执行上面一条命令之后执行此命令,即可永久关闭)</span></span><br><span class="line">systemctl disable firewalld.service</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启用防火墙</span></span><br><span class="line">systemctl enable firewalld.service</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>windows查看端口占用情况,杀死端口的命令</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">查询被占用的端口号的信息</span></span><br><span class="line">netstat -ano | findstr "8080"</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">根据端口号的PID杀死该端口的进程 其中 17156 是8080端口的PID值</span></span><br><span class="line">taskkill /pid 17156 /f</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>Linux开启关闭键盘背光灯</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">不是永久有效的</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">开启键盘背光灯</span></span><br><span class="line">xset led named "Scroll Lock"</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">关闭键盘背光灯</span></span><br><span class="line">xset -led named "Scroll Lock"</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>关闭Mysql的服务</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查找是否安装了mysql的服务</span></span><br><span class="line">rpm -qa | grep -i mysql</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看mysql服务的状态</span></span><br><span class="line">service mysqld status</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">关闭mysql的服务</span></span><br><span class="line">service mysqld stop</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启的命令</span></span><br><span class="line">service mysqld restart</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">关闭开机自启动</span></span><br><span class="line">systemctl disable mysqld</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>前端向后端传递对象数据</p>
|
||
<p>传递普通对象参数的写法</p>
|
||
<p>params: searchObj</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="title function_">getPageList</span>(<span class="params">current,limit,searchObj</span>){</span><br><span class="line"> <span class="keyword">return</span> <span class="title function_">request</span>({</span><br><span class="line"> <span class="attr">url</span>: <span class="string">`<span class="subst">${api_name}</span>/<span class="subst">${current}</span>/<span class="subst">${limit}</span>`</span>,</span><br><span class="line"> <span class="attr">method</span>: <span class="string">'get'</span>,</span><br><span class="line"> <span class="attr">params</span>: searchObj <span class="comment">//使用这种方式进行传递</span></span><br><span class="line"> })</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@GetMapping("/{page}/{limit}")</span></span><br><span class="line"><span class="keyword">public</span> Result <span class="title function_">pageQueryRole</span><span class="params">(<span class="meta">@PathVariable</span> Long page,</span></span><br><span class="line"><span class="params"> <span class="meta">@PathVariable</span> Integer limit,</span></span><br><span class="line"><span class="params"> SysRoleQueryVo sysRoleQueryVo)</span> { <span class="comment">//普通的对象进行接收 没有添加注解</span></span><br><span class="line"></span><br><span class="line"> Page<SysRole> pageParam = <span class="keyword">new</span> <span class="title class_">Page</span><>(page, limit);</span><br><span class="line"> LambdaQueryWrapper<SysRole> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> queryWrapper.like(!StringUtils.isEmpty(sysRoleQueryVo.getRoleName()),SysRole::getRoleName, sysRoleQueryVo.getRoleName());</span><br><span class="line"> Page<SysRole> sysRolePage = sysRoleService.page(pageParam, queryWrapper);</span><br><span class="line"> <span class="keyword">return</span> Result.ok(sysRolePage);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>json格式的传递</p>
|
||
<p>data: searchObj</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="title function_">add</span>(<span class="params">sysRole</span>){</span><br><span class="line"> <span class="keyword">return</span> <span class="title function_">request</span>({</span><br><span class="line"> <span class="attr">url</span>: <span class="string">`<span class="subst">${api_name}</span>/save`</span>,</span><br><span class="line"> <span class="attr">method</span>: <span class="string">'post'</span>,</span><br><span class="line"> <span class="attr">data</span>: sysRole <span class="comment">//使用这种方式进行传递</span></span><br><span class="line"> })</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@PostMapping("/save")</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">save</span><span class="params">(<span class="meta">@RequestBody</span> SysRole sysRole)</span>{ <span class="comment">//JSON格式对象的传递 需要使用注解@RequestBody</span></span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isSave</span> <span class="operator">=</span> sysRoleService.save(sysRole);</span><br><span class="line"> <span class="keyword">return</span> isSave? Result.ok() : Result.fail();</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>调整日志的级别</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">logging:</span></span><br><span class="line"> <span class="attr">level:</span></span><br><span class="line"> <span class="comment"># 注意这里包的路径,要根据实际情况t</span></span><br><span class="line"> <span class="attr">com.atguigu.gulimall:</span> <span class="string">debug</span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>@JsonInclude注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@JsonInclude(JsonInclude.Include.NON_EMPTY)</span><span class="comment">//这里是当children为空的时候,向前端传递数据就不带这个</span></span><br><span class="line"><span class="keyword">private</span> List<CategoryEntity> children;</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<p>node相关的问题</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看node的版本</span></span><br><span class="line">node -v</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看npm的版本</span></span><br><span class="line">npm -v</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看npm使用的镜像源(npm镜像源)</span></span><br><span class="line">npm get registry</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置淘宝镜像源</span></span><br><span class="line">npm config set registry http://registry.npm.taobao.org</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>细节知识</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>谷粒学苑课程分类列表显示前后端代码</title>
|
||
<url>/posts/7353.html</url>
|
||
<content><![CDATA[<p> 谷粒学苑的前端课程分类显示使用的是树形列表显示,如图所示:</p>
|
||
<p><img src="/pictures/image-20230310102929346.png" alt="image-20230310102929346"></p>
|
||
<p> Swagger测试时显示的数据格式</p>
|
||
<p><img src="/pictures/image-20230310103351729.png" alt="image-20230310103351729"></p>
|
||
<p> 前端代码代码具体的实现(部分代码):</p>
|
||
<p><img src="/pictures/image-20230310103126938.png" alt="image-20230310103126938"></p>
|
||
<p> 后端代码具体的实现(业务层):</p>
|
||
<p><img src="/pictures/image-20230310103430906.png" alt="image-20230310103430906"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>项目实战</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>简历模板</title>
|
||
<url>/posts/29250.html</url>
|
||
<content><![CDATA[<p>黑马程序员新版Java面试专题视频教程,java八股文面试全套真题+深度详解(含大厂高频面试真题) <a href="https://www.bilibili.com/video/BV1yT411H7YK/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584">https://www.bilibili.com/video/BV1yT411H7YK/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584</a></p>
|
||
<h2 id="Java批注简历标准"><a href="#Java批注简历标准" class="headerlink" title="Java批注简历标准"></a>Java批注简历标准</h2><p><img src="/pictures/image-20230508235133469.png" alt="image-20230508235133469"></p>
|
||
<h2 id="面试参考话术"><a href="#面试参考话术" class="headerlink" title="面试参考话术"></a>面试参考话术</h2>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/【必看】面试参考话术.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h2 id="模板"><a href="#模板" class="headerlink" title="模板"></a>模板</h2><p>全部的模板地址: <a href="https://gitee.com/JasonsGong/resume">https://gitee.com/JasonsGong/resume</a></p>
|
||
<h3 id="模板一-本科一年经验"><a href="#模板一-本科一年经验" class="headerlink" title="模板一 本科一年经验"></a>模板一 本科一年经验</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/【参考】1年_本科.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板二-Java开发-AAA-N年"><a href="#模板二-Java开发-AAA-N年" class="headerlink" title="模板二 Java开发_AAA_N年"></a>模板二 Java开发_AAA_N年</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/Java开发_AAA_N年.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板三-灰蓝色色时尚简历模板"><a href="#模板三-灰蓝色色时尚简历模板" class="headerlink" title="模板三 灰蓝色色时尚简历模板"></a>模板三 灰蓝色色时尚简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/灰蓝色色时尚简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板四-灰色大气简约简历模板"><a href="#模板四-灰色大气简约简历模板" class="headerlink" title="模板四 灰色大气简约简历模板"></a>模板四 灰色大气简约简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/灰色大气简约简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板五-简约大气橙色简历模板"><a href="#模板五-简约大气橙色简历模板" class="headerlink" title="模板五 简约大气橙色简历模板"></a>模板五 简约大气橙色简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/简约大气橙色简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板六-经典风格简历模板"><a href="#模板六-经典风格简历模板" class="headerlink" title="模板六 经典风格简历模板"></a>模板六 经典风格简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/经典风格简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板七-时尚线条简历模板"><a href="#模板七-时尚线条简历模板" class="headerlink" title="模板七 时尚线条简历模板"></a>模板七 时尚线条简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/时尚线条简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板八-科技版简历模板"><a href="#模板八-科技版简历模板" class="headerlink" title="模板八 科技版简历模板"></a>模板八 科技版简历模板</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/科技版简历模板.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h3 id="模板九-JAVA开发-李传播-5年"><a href="#模板九-JAVA开发-李传播-5年" class="headerlink" title="模板九 JAVA开发_李传播_5年"></a>模板九 JAVA开发_李传播_5年</h3>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/JAVA开发_李传播_5年.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>面试</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>简历</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>统一异常处理</title>
|
||
<url>/posts/31385.html</url>
|
||
<content><![CDATA[<p>我们想让异常结果也显示为统一的返回结果对象,并且统一处理系统的异常信息,那么需要统一异常处理。</p>
|
||
<p><img src="/pictures/image-20230506153955544.png" alt="image-20230506153955544"></p>
|
||
<h2 id="1-全局异常处理"><a href="#1-全局异常处理" class="headerlink" title="1.全局异常处理"></a>1.全局异常处理</h2><p>异常返回的结果也为统一的返回结果的对象</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.exception;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.result.Result;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ControllerAdvice;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ExceptionHandler;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ResponseBody;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/6</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 全局的异常处理器</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@ControllerAdvice</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GlobalExceptionHandler</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 全局的异常处理</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ExceptionHandler(Exception.class)</span> <span class="comment">//标记什么异常使用该方法</span></span><br><span class="line"> <span class="meta">@ResponseBody</span> <span class="comment">//返回的是json数据</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">error</span><span class="params">(Exception e)</span>{</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> Result.fail().message(<span class="string">"全局异常处理器捕获到该异常"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 特定的异常处理(先找特定的异常 再找全局的异常)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ExceptionHandler(ArithmeticException.class)</span> <span class="comment">//标记什么异常使用该方法</span></span><br><span class="line"> <span class="meta">@ResponseBody</span> <span class="comment">//返回的是json数据</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">error</span><span class="params">(ArithmeticException e)</span>{</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> Result.fail().message(<span class="string">"数学运算异常"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自定义异常处理</span></span><br><span class="line"><span class="comment"> * GuiguException为自定义的异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ExceptionHandler(GuiguException.class)</span> <span class="comment">//标记什么异常使用该方法</span></span><br><span class="line"> <span class="meta">@ResponseBody</span> <span class="comment">//返回的是json数据</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">error</span><span class="params">(GuiguException e)</span>{</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="comment">//获取抛出异常的时候填入的code和message的值并返回</span></span><br><span class="line"> <span class="keyword">return</span> Result.fail().code(e.getCode()).message(e.getMessage());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="2-自定义异常"><a href="#2-自定义异常" class="headerlink" title="2.自定义异常"></a>2.自定义异常</h2><h3 id="创建异常类-继承RuntimeException"><a href="#创建异常类-继承RuntimeException" class="headerlink" title="创建异常类 继承RuntimeException"></a>创建异常类 继承RuntimeException</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.exception;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.result.ResultCodeEnum;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/6</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 自定义的异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GuiguException</span> <span class="keyword">extends</span> <span class="title class_">RuntimeException</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 异常的状态码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer code;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 描述信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String message;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 通过状态码和错误消息创建异常对象</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">GuiguException</span><span class="params">(Integer code, String message)</span> {</span><br><span class="line"> <span class="built_in">super</span>(message);</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.message = message;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 接收枚举类型对象</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> resultCodeEnum 枚举类型的结果信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">GuiguException</span><span class="params">(ResultCodeEnum resultCodeEnum)</span> {</span><br><span class="line"> <span class="built_in">super</span>(resultCodeEnum.getMessage());</span><br><span class="line"> <span class="built_in">this</span>.code = resultCodeEnum.getCode();</span><br><span class="line"> <span class="built_in">this</span>.message = resultCodeEnum.getMessage();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"GuliException{"</span> +</span><br><span class="line"> <span class="string">"code="</span> + code +</span><br><span class="line"> <span class="string">", message="</span> + <span class="built_in">this</span>.getMessage() +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="在需要抛出自定义异常的地方抛出异常"><a href="#在需要抛出自定义异常的地方抛出异常" class="headerlink" title="在需要抛出自定义异常的地方抛出异常"></a>在需要抛出自定义异常的地方抛出异常</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ApiOperation("查询所有角色的接口")</span></span><br><span class="line"> <span class="meta">@GetMapping("/findAll")</span></span><br><span class="line"> <span class="keyword">public</span> Result<List<SysRole>> <span class="title function_">findAll</span><span class="params">()</span> {</span><br><span class="line"> List<SysRole> sysRoles = sysRoleService.list();</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//这里我们使用除零模拟异常</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">1</span>/<span class="number">0</span>;</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">GuiguException</span>(<span class="number">2001</span>, <span class="string">"抛出了自定义的异常"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> Result.ok(sysRoles);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="全局异常处理器捕获异常并返回异常信息"><a href="#全局异常处理器捕获异常并返回异常信息" class="headerlink" title="全局异常处理器捕获异常并返回异常信息"></a>全局异常处理器捕获异常并返回异常信息</h3><p><img src="/pictures/image-20230506154605339.png" alt="image-20230506154605339"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>验证码服务</title>
|
||
<url>/posts/11844.html</url>
|
||
<content><![CDATA[<h2 id="1-使用邮件发送验证码"><a href="#1-使用邮件发送验证码" class="headerlink" title="1.使用邮件发送验证码"></a>1.使用邮件发送验证码</h2><h3 id="1-1-引入依赖"><a href="#1-1-引入依赖" class="headerlink" title="1.1 引入依赖"></a>1.1 引入依赖</h3><p>坑点:有时候遇到验证码发不出去的情况,要调整依赖的版本,更新为高版本的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--javaMail--></span></span><br><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>javax.mail<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>javax.mail-api<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.5.6<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.sun.mail<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>javax.mail<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.5.3<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="1-2-导入发送验证码的工具类"><a href="#1-2-导入发送验证码的工具类" class="headerlink" title="1.2 导入发送验证码的工具类"></a>1.2 导入发送验证码的工具类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//读取配置文件中的值</span></span><br><span class="line"><span class="comment">//静态属性只会加载一次 我们要在第一次加载的时候给静态属性赋上值</span></span><br><span class="line"><span class="comment">//还要其他的方法 比如使用@Value注解 </span></span><br><span class="line"><span class="keyword">static</span> { <span class="comment">//读取配置文件中的关于邮件的配置</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">fileInputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"src/main/resources/application.properties"</span>);</span><br><span class="line"> <span class="type">Properties</span> <span class="variable">properties</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Properties</span>();</span><br><span class="line"> properties.load(fileInputStream);</span><br><span class="line"> user = properties.getProperty(<span class="string">"guli.user"</span>);</span><br><span class="line"> password = properties.getProperty(<span class="string">"guli.password"</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(e);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Value;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.annotation.PostConstruct;</span><br><span class="line"><span class="keyword">import</span> javax.mail.*;</span><br><span class="line"><span class="keyword">import</span> javax.mail.internet.InternetAddress;</span><br><span class="line"><span class="keyword">import</span> javax.mail.internet.MimeMessage;</span><br><span class="line"><span class="keyword">import</span> java.util.Properties;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发邮件工具类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MailUtils</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">String</span> <span class="variable">USER</span> <span class="operator">=</span> <span class="string">"xxxxxxxx"</span>; <span class="comment">// 发件人称号,同邮箱地址</span></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">String</span> <span class="variable">PASSWORD</span> <span class="operator">=</span> <span class="string">"xxxxxxxx"</span>; <span class="comment">// 授权码,开启SMTP时显示</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> to 收件人邮箱</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> text 邮件正文</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> title 标题</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="comment">/* 发送验证信息的邮件 */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">sendMail</span><span class="params">(String to, String text, String title)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">final</span> <span class="type">Properties</span> <span class="variable">props</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Properties</span>();</span><br><span class="line"> props.put(<span class="string">"mail.smtp.auth"</span>, <span class="string">"true"</span>);</span><br><span class="line"> <span class="comment">//注意发送邮件的方法中,发送给谁的,发送给对应的app,※</span></span><br><span class="line"> <span class="comment">//要改成对应的app。扣扣的改成qq的,网易的要改成网易的。※</span></span><br><span class="line"> <span class="comment">//props.put("mail.smtp.host", "smtp.qq.com");</span></span><br><span class="line"> props.put(<span class="string">"mail.smtp.host"</span>, <span class="string">"smtp.qq.com"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 发件人的账号</span></span><br><span class="line"> props.put(<span class="string">"mail.user"</span>, USER);</span><br><span class="line"> <span class="comment">//发件人的密码</span></span><br><span class="line"> props.put(<span class="string">"mail.password"</span>, PASSWORD);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 构建授权信息,用于进行SMTP进行身份验证</span></span><br><span class="line"> <span class="type">Authenticator</span> <span class="variable">authenticator</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Authenticator</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">protected</span> PasswordAuthentication <span class="title function_">getPasswordAuthentication</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 用户名、密码</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">userName</span> <span class="operator">=</span> props.getProperty(<span class="string">"mail.user"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">password</span> <span class="operator">=</span> props.getProperty(<span class="string">"mail.password"</span>);</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PasswordAuthentication</span>(userName, password);</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> <span class="comment">// 使用环境属性和授权信息,创建邮件会话</span></span><br><span class="line"> <span class="type">Session</span> <span class="variable">mailSession</span> <span class="operator">=</span> Session.getInstance(props, authenticator);</span><br><span class="line"> <span class="comment">// 创建邮件消息</span></span><br><span class="line"> <span class="type">MimeMessage</span> <span class="variable">message</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MimeMessage</span>(mailSession);</span><br><span class="line"> <span class="comment">// 设置发件人</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">username</span> <span class="operator">=</span> props.getProperty(<span class="string">"mail.user"</span>);</span><br><span class="line"> <span class="type">InternetAddress</span> <span class="variable">form</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">InternetAddress</span>(username);</span><br><span class="line"> message.setFrom(form);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 设置收件人</span></span><br><span class="line"> <span class="type">InternetAddress</span> <span class="variable">toAddress</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">InternetAddress</span>(to);</span><br><span class="line"> message.setRecipient(Message.RecipientType.TO, toAddress);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 设置邮件标题</span></span><br><span class="line"> message.setSubject(title);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 设置邮件的内容体</span></span><br><span class="line"> message.setContent(text, <span class="string">"text/html;charset=UTF-8"</span>);</span><br><span class="line"> <span class="comment">// 发送邮件</span></span><br><span class="line"> Transport.send(message);</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-3-导入随机生成验证码的工具类"><a href="#1-3-导入随机生成验证码的工具类" class="headerlink" title="1.3 导入随机生成验证码的工具类"></a>1.3 导入随机生成验证码的工具类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> java.util.Random;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 随机生成验证码工具类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ValidateCodeUtils</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 随机生成验证码</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> length 长度为4位或者6位</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> Integer <span class="title function_">generateValidateCode</span><span class="params">(<span class="type">int</span> length)</span> {</span><br><span class="line"> <span class="type">Integer</span> <span class="variable">code</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">if</span> (length == <span class="number">4</span>) {</span><br><span class="line"> code = <span class="keyword">new</span> <span class="title class_">Random</span>().nextInt(<span class="number">9999</span>);<span class="comment">//生成随机数,最大为9999</span></span><br><span class="line"> <span class="keyword">if</span> (code < <span class="number">1000</span>) {</span><br><span class="line"> code = code + <span class="number">1000</span>;<span class="comment">//保证随机数为4位数字</span></span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (length == <span class="number">6</span>) {</span><br><span class="line"> code = <span class="keyword">new</span> <span class="title class_">Random</span>().nextInt(<span class="number">999999</span>);<span class="comment">//生成随机数,最大为999999</span></span><br><span class="line"> <span class="keyword">if</span> (code < <span class="number">100000</span>) {</span><br><span class="line"> code = code + <span class="number">100000</span>;<span class="comment">//保证随机数为6位数字</span></span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"只能生成4位或6位数字验证码"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> code;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 随机生成指定长度字符串验证码</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> length 长度</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">generateValidateCode4String</span><span class="params">(<span class="type">int</span> length)</span> {</span><br><span class="line"> <span class="type">Random</span> <span class="variable">rdm</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Random</span>();</span><br><span class="line"> <span class="type">String</span> <span class="variable">hash1</span> <span class="operator">=</span> Integer.toHexString(rdm.nextInt());</span><br><span class="line"> <span class="type">String</span> <span class="variable">capstr</span> <span class="operator">=</span> hash1.substring(<span class="number">0</span>, length);</span><br><span class="line"> <span class="keyword">return</span> capstr;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-4-测试使用"><a href="#1-4-测试使用" class="headerlink" title="1.4 测试使用"></a>1.4 测试使用</h3><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">1.设置发送邮件的账号和授权码信息</span><br><span class="line">2.编写测试类测试邮件是否可以正常的发送</span><br><span class="line">3.添加到业务代码中,实现验证码的发送功能</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="2-使用阿里云的短信服务"><a href="#2-使用阿里云的短信服务" class="headerlink" title="2.使用阿里云的短信服务"></a>2.使用阿里云的短信服务</h2><p>阿里云的短信服务不面向个人用户,无法使用,但是使用的基本逻辑和使用邮箱类似</p>
|
||
<h2 id="3-Token字符串生成的工具类-JWT"><a href="#3-Token字符串生成的工具类-JWT" class="headerlink" title="3.Token字符串生成的工具类(JWT)"></a>3.Token字符串生成的工具类(JWT)</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.commonutils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Claims;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Jws;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Jwts;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.SignatureAlgorithm;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.server.reactive.ServerHttpRequest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> helen</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@since</span> 2019/10/16</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">JwtUtils</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 设置token的过期时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">EXPIRE</span> <span class="operator">=</span> <span class="number">1000</span> * <span class="number">60</span> * <span class="number">60</span> * <span class="number">24</span>;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 密钥</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">APP_SECRET</span> <span class="operator">=</span> <span class="string">"ukc8BDbRigUDaY6pZFfWus2jZWLPHO"</span>;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 生成token字符串</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">getJwtToken</span><span class="params">(String id, String nickname)</span>{</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">JwtToken</span> <span class="operator">=</span> Jwts.builder()</span><br><span class="line"> .setHeaderParam(<span class="string">"typ"</span>, <span class="string">"JWT"</span>)</span><br><span class="line"> .setHeaderParam(<span class="string">"alg"</span>, <span class="string">"HS256"</span>)</span><br><span class="line"> .setSubject(<span class="string">"guli-user"</span>)</span><br><span class="line"> .setIssuedAt(<span class="keyword">new</span> <span class="title class_">Date</span>())</span><br><span class="line"> .setExpiration(<span class="keyword">new</span> <span class="title class_">Date</span>(System.currentTimeMillis() + EXPIRE))</span><br><span class="line"> .claim(<span class="string">"id"</span>, id)</span><br><span class="line"> .claim(<span class="string">"nickname"</span>, nickname)</span><br><span class="line"> .signWith(SignatureAlgorithm.HS256, APP_SECRET)</span><br><span class="line"> .compact();</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> JwtToken;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断token是否存在与有效</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">checkToken</span><span class="params">(String jwtToken)</span> {</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断token是否存在与有效</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">checkToken</span><span class="params">(HttpServletRequest request)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">jwtToken</span> <span class="operator">=</span> request.getHeader(<span class="string">"token"</span>);</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据token获取会员id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">getMemberIdByJwtToken</span><span class="params">(HttpServletRequest request)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">jwtToken</span> <span class="operator">=</span> request.getHeader(<span class="string">"token"</span>);</span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isEmpty(jwtToken)) <span class="keyword">return</span> <span class="string">""</span>;</span><br><span class="line"> Jws<Claims> claimsJws = Jwts.parser().setSigningKey(APP_SECRET).parseClaimsJws(jwtToken);</span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claims</span> <span class="operator">=</span> claimsJws.getBody();</span><br><span class="line"> <span class="keyword">return</span> (String)claims.get(<span class="string">"id"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>FreeMarker模板引擎</title>
|
||
<url>/posts/29367.html</url>
|
||
<content><![CDATA[<h1 id="一-FreeMarker介绍"><a href="#一-FreeMarker介绍" class="headerlink" title="一.FreeMarker介绍"></a>一.FreeMarker介绍</h1><p> FreeMarker 是一款 模板引擎: 即一种基于模板和要改变的数据, 并用来生成输出文本(HTML网页,电子邮件,配置文件,源代码等)的通用工具。 它不是面向最终用户的,而是一个Java类库,是一款程序员可以嵌入他们所开发产品的组件。</p>
|
||
<p> 模板编写为FreeMarker Template Language (FTL)。它是简单的,专用的语言, <em>不是</em> 像PHP那样成熟的编程语言。 那就意味着要准备数据在真实编程语言中来显示,比如数据库查询和业务运算, 之后模板显示已经准备好的数据。在模板中,你可以专注于如何展现数据, 而在模板之外可以专注于要展示什么数据。</p>
|
||
<p><img src="/pictures/image-20230816145012534.png" alt="image-20230816145012534"></p>
|
||
<p><strong>技术选型对比</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>技术</strong></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>Jsp</td>
|
||
<td>Jsp 为 Servlet 专用,不能单独进行使用</td>
|
||
</tr>
|
||
<tr>
|
||
<td>Velocity</td>
|
||
<td>Velocity从2010年更新完 2.0 版本后,7年没有更新。Spring Boot 官方在 1.4 版本后对此也不在支持</td>
|
||
</tr>
|
||
<tr>
|
||
<td>thmeleaf</td>
|
||
<td>新技术,功能较为强大,但是执行的效率比较低</td>
|
||
</tr>
|
||
<tr>
|
||
<td>freemarker</td>
|
||
<td>性能好,强大的模板语言、轻量</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h1 id="二-快速入门"><a href="#二-快速入门" class="headerlink" title="二.快速入门"></a>二.快速入门</h1><h2 id="1-环境搭建"><a href="#1-环境搭建" class="headerlink" title="1.环境搭建"></a>1.环境搭建</h2><h3 id="1-1-创建一个demo工程"><a href="#1-1-创建一个demo工程" class="headerlink" title="1.1 创建一个demo工程"></a>1.1 创建一个demo工程</h3><p>此处为了方便建的是子模块,测试使用可以创建一个单独的工程</p>
|
||
<p><img src="/pictures/image-20230816145923876.png" alt="image-20230816145923876"></p>
|
||
<h3 id="1-2-引入依赖"><a href="#1-2-引入依赖" class="headerlink" title="1.2 引入依赖"></a>1.2 引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-freemarker<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="comment"><!-- lombok --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.projectlombok<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>lombok<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- apache 对 java io 的封装工具库 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.apache.commons<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>commons-io<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.3.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-3-添加配置"><a href="#1-3-添加配置" class="headerlink" title="1.3 添加配置"></a>1.3 添加配置</h3><figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">8881</span> <span class="comment">#服务端口</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">freemarker-demo</span> <span class="comment">#指定服务名</span></span><br><span class="line"> <span class="attr">freemarker:</span></span><br><span class="line"> <span class="attr">cache:</span> <span class="literal">false</span> <span class="comment">#关闭模板缓存,方便测试</span></span><br><span class="line"> <span class="attr">settings:</span></span><br><span class="line"> <span class="attr">template_update_delay:</span> <span class="number">0</span> <span class="comment">#检查模板更新延迟时间,设置为0表示立即检查,如果时间大于0会有缓存不方便进行模板测试</span></span><br><span class="line"> <span class="attr">suffix:</span> <span class="string">.ftl</span> <span class="comment">#指定Freemarker模板文件的后缀名,通常都是以ftl作为扩展名,也可以为html、xml、jsp等!</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-4-创建模板"><a href="#1-4-创建模板" class="headerlink" title="1.4 创建模板"></a>1.4 创建模板</h3><p>在resources下创建<strong>templates</strong>,此目录为freemarker的默认模板存放目录</p>
|
||
<p><img src="/pictures/image-20230816150936881.png" alt="image-20230816150936881"></p>
|
||
<p>在templates下创建模板文件 01-basic.ftl ,模板中的<strong>插值表达式</strong>最终会被freemarker替换成具体的数据</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Hello World!<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>普通文本 String 展示:<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line">Hello ${name} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>对象Student中的数据展示:<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:${stu.name}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:${stu.age}</span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-5-创建启动类和模型类"><a href="#1-5-创建启动类和模型类" class="headerlink" title="1.5 创建启动类和模型类"></a>1.5 创建启动类和模型类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.freemarker;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.SpringApplication;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.SpringBootApplication;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootApplication</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FreeMarkerDemoApplication</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> SpringApplication.run(FreeMarkerDemoApplication.class,args);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.freemarker.entity;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Student</span> {</span><br><span class="line"> <span class="keyword">private</span> String name;<span class="comment">//姓名</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> age;<span class="comment">//年龄</span></span><br><span class="line"> <span class="keyword">private</span> Date birthday;<span class="comment">//生日</span></span><br><span class="line"> <span class="keyword">private</span> Float money;<span class="comment">//钱包</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-6-创建Controller"><a href="#1-6-创建Controller" class="headerlink" title="1.6 创建Controller"></a>1.6 创建Controller</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.freemarker.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.freemarker.entity.Student;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.ui.Model;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">HelloController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@GetMapping("/basic")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">test</span><span class="params">(Model model)</span> {</span><br><span class="line"> <span class="comment">//1.纯文本形式的参数</span></span><br><span class="line"> model.addAttribute(<span class="string">"name"</span>, <span class="string">"freemarker"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.实体类相关的参数</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">student</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> student.setName(<span class="string">"小明"</span>);</span><br><span class="line"> student.setAge(<span class="number">18</span>);</span><br><span class="line"> model.addAttribute(<span class="string">"stu"</span>, student);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"01-basic"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-7-测试访问"><a href="#1-7-测试访问" class="headerlink" title="1.7 测试访问"></a>1.7 测试访问</h3><p>访问 <a href="http://localhost:8881/basic">http://localhost:8881/basic</a></p>
|
||
<p><img src="/pictures/image-20230816152750639.png" alt="image-20230816152750639"></p>
|
||
<h1 id="三-FreeMarker语法基础"><a href="#三-FreeMarker语法基础" class="headerlink" title="三.FreeMarker语法基础"></a>三.FreeMarker语法基础</h1><h2 id="1-基础语法种类"><a href="#1-基础语法种类" class="headerlink" title="1.基础语法种类"></a>1.基础语法种类</h2><p> 1、注释,即<#– –>,介于其之间的内容会被freemarker忽略</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><#--我是一个freemarker注释--></span><br></pre></td></tr></table></figure>
|
||
|
||
<p> 2、插值(Interpolation):即 <strong><code>${..}</code></strong> 部分,freemarker会用真实的值代替**<code>${..}</code>**</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">Hello ${name}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p> 3、FTL指令:和HTML标记类似,名字前加#予以区分,Freemarker会解析标签中的表达式或逻辑。</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><# >FTL指令</#> </span><br></pre></td></tr></table></figure>
|
||
|
||
<p> 4、文本,仅文本信息,这些不是freemarker的注释、插值、FTL指令的内容会被freemarker忽略解析,直接输出内容。</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><#--freemarker中的普通文本--></span><br><span class="line">我是一个普通的文本</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="2-集合指令"><a href="#2-集合指令" class="headerlink" title="2.集合指令"></a>2.集合指令</h2><p><img src="/pictures/image-20230816170028648.png" alt="image-20230816170028648"></p>
|
||
<p><img src="/pictures/image-20230816170704421.png" alt="image-20230816170704421"></p>
|
||
<p>1、数据模型:</p>
|
||
<p>在HelloController中新增如下方法:</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@GetMapping("/list")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">list</span><span class="params">(Model model)</span>{</span><br><span class="line"></span><br><span class="line"> <span class="comment">//------------------------------------</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">stu1</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> stu1.setName(<span class="string">"小强"</span>);</span><br><span class="line"> stu1.setAge(<span class="number">18</span>);</span><br><span class="line"> stu1.setMoney(<span class="number">1000.86f</span>);</span><br><span class="line"> stu1.setBirthday(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"></span><br><span class="line"> <span class="comment">//小红对象模型数据</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">stu2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> stu2.setName(<span class="string">"小红"</span>);</span><br><span class="line"> stu2.setMoney(<span class="number">200.1f</span>);</span><br><span class="line"> stu2.setAge(<span class="number">19</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//将两个对象模型数据存放到List集合中</span></span><br><span class="line"> List<Student> stus = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> stus.add(stu1);</span><br><span class="line"> stus.add(stu2);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//向model中存放List集合数据</span></span><br><span class="line"> model.addAttribute(<span class="string">"stus"</span>,stus);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//------------------------------------</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//创建Map数据</span></span><br><span class="line"> HashMap<String,Student> stuMap = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> stuMap.put(<span class="string">"stu1"</span>,stu1);</span><br><span class="line"> stuMap.put(<span class="string">"stu2"</span>,stu2);</span><br><span class="line"> <span class="comment">// 3.1 向model中存放Map数据</span></span><br><span class="line"> model.addAttribute(<span class="string">"stuMap"</span>, stuMap);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"02-list"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2、模板:</p>
|
||
<p>在templates中新增<code>02-list.ftl</code>文件</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Hello World!<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> </span><br><span class="line"><#-- list 数据的展示 --></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>展示list中的stu数据:<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">table</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>序号<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>姓名<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>年龄<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>钱包<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">table</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"> </span><br><span class="line"><#-- Map 数据的展示 --></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>map数据的展示:<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>方式一:通过map['keyname'].property<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">输出stu1的学生信息:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>方式二:通过map.keyname.property<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">输出stu2的学生信息:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>遍历map中两个学生信息:<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">table</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>序号<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>姓名<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>年龄<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>钱包<span class="tag"></<span class="name">td</span>></span> </span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">table</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"> </span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实例代码:</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Hello World!<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> </span><br><span class="line"><#-- list 数据的展示 --></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>展示list中的stu数据:<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">table</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>序号<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>姓名<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>年龄<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>钱包<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"> <#list stus as stu></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stu_index+1}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stu.name}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stu.age}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stu.money}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"> </#list></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">table</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"> </span><br><span class="line"><#-- Map 数据的展示 --></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>map数据的展示:<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>方式一:通过map['keyname'].property<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">输出stu1的学生信息:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:${stuMap['stu1'].name}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:${stuMap['stu1'].age}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>方式二:通过map.keyname.property<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">输出stu2的学生信息:<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:${stuMap.stu2.name}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:${stuMap.stu2.age}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"###"</span>></span>遍历map中两个学生信息:<span class="tag"></<span class="name">a</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">table</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>序号<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>姓名<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>年龄<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>钱包<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"> <#list stuMap?keys as key ></span><br><span class="line"> <span class="tag"><<span class="name">tr</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${key_index}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stuMap[key].name}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stuMap[key].age}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">td</span>></span>${stuMap[key].money}<span class="tag"></<span class="name">td</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">tr</span>></span></span><br><span class="line"> </#list></span><br><span class="line"><span class="tag"></<span class="name">table</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"> </span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>上面代码解释:</p>
|
||
<p>${k_index}:index:得到循环的下标,使用方法是在stu后边加”_index”,它的值是从0开始,${stu_index+1}下标从1开始</p>
|
||
<p>展示效果:</p>
|
||
<p><img src="/pictures/image-20230816170550343.png" alt="image-20230816170550343"></p>
|
||
<h2 id="3-if指令"><a href="#3-if指令" class="headerlink" title="3.if指令"></a>3.if指令</h2><p><img src="/pictures/image-20230816170909497.png" alt="image-20230816170909497"></p>
|
||
<p> if 指令即判断指令,是常用的FTL指令,freemarker在解析时遇到if会进行判断,条件为真则输出if中间的内容,否则跳过内容不再输出。</p>
|
||
<ul>
|
||
<li>指令格式</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><#if ><span class="tag"></<span class="name">if</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>1、数据模型:</p>
|
||
<p>使用list指令中测试数据模型,判断名称为小红的数据字体显示为红色。</p>
|
||
<p>2、模板:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><table></span><br><span class="line"> <tr></span><br><span class="line"> <td>姓名</td></span><br><span class="line"> <td>年龄</td></span><br><span class="line"> <td>钱包</td></span><br><span class="line"> </tr></span><br><span class="line"> <#list stus as stu></span><br><span class="line"> <tr></span><br><span class="line"> <td >${stu.name}</td></span><br><span class="line"> <td>${stu.age}</td></span><br><span class="line"> <td >${stu.mondy}</td></span><br><span class="line"> </tr></span><br><span class="line"> </#list></span><br><span class="line"></span><br><span class="line"></table></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实例代码:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><table></span><br><span class="line"> <tr></span><br><span class="line"> <td>姓名</td></span><br><span class="line"> <td>年龄</td></span><br><span class="line"> <td>钱包</td></span><br><span class="line"> </tr></span><br><span class="line"> <#list stus as stu ></span><br><span class="line"> <#if stu.name='小红'></span><br><span class="line"> <tr style="color: red"></span><br><span class="line"> <td>${stu_index}</td></span><br><span class="line"> <td>${stu.name}</td></span><br><span class="line"> <td>${stu.age}</td></span><br><span class="line"> <td>${stu.money}</td></span><br><span class="line"> </tr></span><br><span class="line"> <#else ></span><br><span class="line"> <tr></span><br><span class="line"> <td>${stu_index}</td></span><br><span class="line"> <td>${stu.name}</td></span><br><span class="line"> <td>${stu.age}</td></span><br><span class="line"> <td>${stu.money}</td></span><br><span class="line"> </tr></span><br><span class="line"> </#if></span><br><span class="line"> </#list></span><br><span class="line"></table></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3、输出:</p>
|
||
<p><img src="/pictures/image-20230816171119081.png" alt="image-20230816171119081"></p>
|
||
<h2 id="4-运算符"><a href="#4-运算符" class="headerlink" title="4.运算符"></a>4.运算符</h2><p><strong>1、算数运算符</strong></p>
|
||
<p>FreeMarker表达式中完全支持算术运算,FreeMarker支持的算术运算符包括:</p>
|
||
<ul>
|
||
<li>加法: <code>+</code></li>
|
||
<li>减法: <code>-</code></li>
|
||
<li>乘法: <code>*</code></li>
|
||
<li>除法: <code>/</code></li>
|
||
<li>求模 (求余): <code>%</code></li>
|
||
</ul>
|
||
<p>模板代码</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">b</span>></span>算数运算符<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"><span class="tag"><<span class="name">br</span>/></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> 100+5 运算: ${100 + 5 }<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> 100 - 5 * 5运算:${100 - 5 * 5}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> 5 / 2运算:${5 / 2}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> 12 % 10运算:${12 % 10}<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>除了 + 运算以外,其他的运算只能和 number 数字类型的计算。</p>
|
||
<p><strong>2、比较运算符</strong></p>
|
||
<ul>
|
||
<li><strong><code>=</code><strong>或者</strong><code>==</code></strong>:判断两个值是否相等. </li>
|
||
<li><strong><code>!=</code></strong>:判断两个值是否不等. </li>
|
||
<li><strong><code>></code><strong>或者</strong><code>gt</code></strong>:判断左边值是否大于右边值 </li>
|
||
<li><strong><code>>=</code><strong>或者</strong><code>gte</code></strong>:判断左边值是否大于等于右边值 </li>
|
||
<li><strong><code><</code><strong>或者</strong><code>lt</code></strong>:判断左边值是否小于右边值 </li>
|
||
<li><strong><code><=</code><strong>或者</strong><code>lte</code></strong>:判断左边值是否小于等于右边值</li>
|
||
</ul>
|
||
<p>= 和 == 模板代码</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Hello World!<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">b</span>></span>比较运算符<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dl</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dt</span>></span> =/== 和 != 比较:<span class="tag"></<span class="name">dt</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dd</span>></span></span><br><span class="line"> <#if "xiaoming" == "xiaoming"></span><br><span class="line"> 字符串的比较 "xiaoming" == "xiaoming"</span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"></<span class="name">dd</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dd</span>></span></span><br><span class="line"> <#if 10 != 100></span><br><span class="line"> 数值的比较 10 != 100</span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"></<span class="name">dd</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dl</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dl</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dt</span>></span>其他比较<span class="tag"></<span class="name">dt</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dd</span>></span></span><br><span class="line"> <#if 10 gt 5 ></span><br><span class="line"> 形式一:使用特殊字符比较数值 10 gt 5</span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"></<span class="name">dd</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dd</span>></span></span><br><span class="line"> <#-- 日期的比较需要通过?date将属性转为data类型才能进行比较 --></span><br><span class="line"> <#if (date1?date >= date2?date)></span><br><span class="line"> 形式二:使用括号形式比较时间 date1?date >= date2?date</span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"></<span class="name">dd</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dl</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>Controller 的 数据模型代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@GetMapping("operation")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">testOperation</span><span class="params">(Model model)</span> {</span><br><span class="line"> <span class="comment">//构建 Date 数据</span></span><br><span class="line"> <span class="type">Date</span> <span class="variable">now</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> model.addAttribute(<span class="string">"date1"</span>, now);</span><br><span class="line"> model.addAttribute(<span class="string">"date2"</span>, now);</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">return</span> <span class="string">"03-operation"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>比较运算符注意</strong></p>
|
||
<ul>
|
||
<li><code>=</code>和<code>!=</code>可以用于字符串、数值和日期来比较是否相等</li>
|
||
<li><code>=</code>和<code>!=</code>两边必须是相同类型的值,否则会产生错误</li>
|
||
<li>字符串 <code>"x"</code> 、<code>"x "</code> 、<code>"X"</code>比较是不等的.因为FreeMarker是精确比较</li>
|
||
<li>其它的运行符可以作用于数字和日期,但不能作用于字符串</li>
|
||
<li>使用<code>gt</code>等字母运算符代替<code>></code>会有更好的效果,因为 FreeMarker会把<code>></code>解释成FTL标签的结束字符</li>
|
||
<li>可以使用括号来避免这种情况,如:<code><#if (x>y)></code></li>
|
||
</ul>
|
||
<p><strong>3、逻辑运算符</strong></p>
|
||
<ul>
|
||
<li>逻辑与:&& </li>
|
||
<li>逻辑或:|| </li>
|
||
<li>逻辑非:!</li>
|
||
</ul>
|
||
<p>逻辑运算符只能作用于布尔值,否则将产生错误 。</p>
|
||
<p>模板代码</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">b</span>></span>逻辑运算符<span class="tag"></<span class="name">b</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> <#if (10 lt 12 )&&( 10 gt 5 ) ></span><br><span class="line"> (10 lt 12 )&&( 10 gt 5 ) 显示为 true</span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">br</span>/></span></span><br><span class="line"> <#if !false></span><br><span class="line"> false 取反为true</span><br><span class="line"> </#if></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="5-空值处理"><a href="#5-空值处理" class="headerlink" title="5.空值处理"></a>5.空值处理</h2><p><strong>1、判断某变量是否存在使用 “??”</strong></p>
|
||
<p>用法为:variable??,如果该变量存在,返回true,否则返回false </p>
|
||
<p>例:为防止stus为空报错可以加上判断如下:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><#if stus??></span><br><span class="line"><#list stus as stu></span><br><span class="line"> ......</span><br><span class="line"></#list></span><br><span class="line"></#if></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2、缺失变量默认值使用 “!”</strong></p>
|
||
<ul>
|
||
<li><p>使用!要以指定一个默认值,当变量为空时显示默认值</p>
|
||
<p>例: ${name!’’}表示如果name为空显示空字符串。</p>
|
||
</li>
|
||
<li><p>如果是嵌套对象则建议使用()括起来</p>
|
||
<p>例: ${(stu.bestFriend.name)!’’}表示,如果stu或bestFriend或name为空默认显示空字符串。</p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="6-内建函数"><a href="#6-内建函数" class="headerlink" title="6.内建函数"></a>6.内建函数</h2><p>内建函数语法格式: <strong><code>变量+?+函数名称</code></strong> </p>
|
||
<p><strong>1、某个集合的大小</strong></p>
|
||
<p><strong><code>${集合名?size}</code></strong></p>
|
||
<p><strong>2、日期格式化</strong></p>
|
||
<p>显示年月日: <code>${today?date}</code> </p>
|
||
<p>显示时分秒:<code>${today?time}</code> </p>
|
||
<p>显示日期+时间:<code>${today?datetime}</code> </p>
|
||
<p>自定义格式化: <code>${today?string("yyyy年MM月")}</code></p>
|
||
<p><strong>3、内建函数<code>c</code></strong></p>
|
||
<p>model.addAttribute(“point”, 102920122);</p>
|
||
<p>point是数字型,使用${point}会显示这个数字的值,每三位使用逗号分隔。</p>
|
||
<p>如果不想显示为每三位分隔的数字,可以使用c函数将数字型转成字符串输出</p>
|
||
<p><strong><code>${point?c}</code></strong></p>
|
||
<p><strong>4、将json字符串转成对象</strong></p>
|
||
<p>一个例子:</p>
|
||
<p>其中用到了 assign标签,assign的作用是定义一个变量。</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><#assign text="{'bank':'工商银行','account':'10101920201920212'}" /></span><br><span class="line"><#assign data=text?eval /></span><br><span class="line">开户行:${data.bank} 账号:${data.account}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>模板代码:</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>inner Function<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">b</span>></span>获得集合大小<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 集合大小:</span><br><span class="line"> <span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">b</span>></span>获得日期<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 显示年月日: <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 显示时分秒:<span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 显示日期+时间:<span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 自定义格式化: <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">b</span>></span>内建函数C<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 没有C函数显示的数值: <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"> 有C函数显示的数值:</span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">b</span>></span>声明变量assign<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>内建函数模板页面:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><!DOCTYPE html></span><br><span class="line"><html></span><br><span class="line"><head></span><br><span class="line"> <meta charset="utf-8"></span><br><span class="line"> <title>inner Function</title></span><br><span class="line"></head></span><br><span class="line"><body></span><br><span class="line"></span><br><span class="line"> <b>获得集合大小</b><br></span><br><span class="line"></span><br><span class="line"> 集合大小:${stus?size}</span><br><span class="line"> <hr></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <b>获得日期</b><br></span><br><span class="line"></span><br><span class="line"> 显示年月日: ${today?date} <br></span><br><span class="line"></span><br><span class="line"> 显示时分秒:${today?time}<br></span><br><span class="line"></span><br><span class="line"> 显示日期+时间:${today?datetime}<br></span><br><span class="line"></span><br><span class="line"> 自定义格式化: ${today?string("yyyy年MM月")}<br></span><br><span class="line"></span><br><span class="line"> <hr></span><br><span class="line"></span><br><span class="line"> <b>内建函数C</b><br></span><br><span class="line"> 没有C函数显示的数值:${point} <br></span><br><span class="line"></span><br><span class="line"> 有C函数显示的数值:${point?c}</span><br><span class="line"></span><br><span class="line"> <hr></span><br><span class="line"></span><br><span class="line"> <b>声明变量assign</b><br></span><br><span class="line"> <#assign text="{'bank':'工商银行','account':'10101920201920212'}" /></span><br><span class="line"> <#assign data=text?eval /></span><br><span class="line"> 开户行:${data.bank} 账号:${data.account}</span><br><span class="line"></span><br><span class="line"><hr></span><br><span class="line"></body></span><br><span class="line"></html></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>内建函数Controller数据模型:</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@GetMapping("innerFunc")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">testInnerFunc</span><span class="params">(Model model)</span> {</span><br><span class="line"> <span class="comment">//1.1 小强对象模型数据</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">stu1</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> stu1.setName(<span class="string">"小强"</span>);</span><br><span class="line"> stu1.setAge(<span class="number">18</span>);</span><br><span class="line"> stu1.setMoney(<span class="number">1000.86f</span>);</span><br><span class="line"> stu1.setBirthday(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="comment">//1.2 小红对象模型数据</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">stu2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> stu2.setName(<span class="string">"小红"</span>);</span><br><span class="line"> stu2.setMoney(<span class="number">200.1f</span>);</span><br><span class="line"> stu2.setAge(<span class="number">19</span>);</span><br><span class="line"> <span class="comment">//1.3 将两个对象模型数据存放到List集合中</span></span><br><span class="line"> List<Student> stus = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> stus.add(stu1);</span><br><span class="line"> stus.add(stu2);</span><br><span class="line"> model.addAttribute(<span class="string">"stus"</span>, stus);</span><br><span class="line"> <span class="comment">// 2.1 添加日期</span></span><br><span class="line"> <span class="type">Date</span> <span class="variable">date</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>();</span><br><span class="line"> model.addAttribute(<span class="string">"today"</span>, date);</span><br><span class="line"> <span class="comment">// 3.1 添加数值</span></span><br><span class="line"> model.addAttribute(<span class="string">"point"</span>, <span class="number">102920122</span>);</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"04-innerFunc"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h1 id="四-静态化测试"><a href="#四-静态化测试" class="headerlink" title="四.静态化测试"></a>四.静态化测试</h1><h2 id="1-思路分析"><a href="#1-思路分析" class="headerlink" title="1.思路分析"></a>1.思路分析</h2><p><img src="/pictures/image-20230816172633599.png" alt="image-20230816172633599"></p>
|
||
<h2 id="2-实现步骤"><a href="#2-实现步骤" class="headerlink" title="2.实现步骤"></a>2.实现步骤</h2><p><strong>根据模板文件生成html文件</strong></p>
|
||
<p>①:修改application.yml文件,添加以下模板存放位置的配置信息,完整配置如下:</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">8881</span> <span class="comment">#服务端口</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">freemarker-demo</span> <span class="comment">#指定服务名</span></span><br><span class="line"> <span class="attr">freemarker:</span></span><br><span class="line"> <span class="attr">cache:</span> <span class="literal">false</span> <span class="comment">#关闭模板缓存,方便测试</span></span><br><span class="line"> <span class="attr">settings:</span></span><br><span class="line"> <span class="attr">template_update_delay:</span> <span class="number">0</span> <span class="comment">#检查模板更新延迟时间,设置为0表示立即检查,如果时间大于0会有缓存不方便进行模板测试</span></span><br><span class="line"> <span class="attr">suffix:</span> <span class="string">.ftl</span> <span class="comment">#指定Freemarker模板文件的后缀名</span></span><br><span class="line"> <span class="attr">template-loader-path:</span> <span class="string">classpath:/templates</span> <span class="comment">#模板存放位置</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>②:在test下创建测试类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.freemarker.test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.freemarker.FreeMarkerDemoApplication;</span><br><span class="line"><span class="keyword">import</span> com.heima.freemarker.entity.Student;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.Configuration;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.Template;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.TemplateException;</span><br><span class="line"><span class="keyword">import</span> org.junit.Test;</span><br><span class="line"><span class="keyword">import</span> org.junit.runner.RunWith;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.test.context.junit4.SpringRunner;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootTest(classes = FreeMarkerDemoApplication.class)</span></span><br><span class="line"><span class="meta">@RunWith(SpringRunner.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FreeMarkerTest</span> {</span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="comment">//freemarker.template.Configuration</span></span><br><span class="line"> <span class="keyword">private</span> Configuration configuration;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">test</span><span class="params">()</span> <span class="keyword">throws</span> IOException, TemplateException {</span><br><span class="line"> <span class="type">Template</span> <span class="variable">template</span> <span class="operator">=</span> configuration.getTemplate(<span class="string">"01-basic.ftl"</span>);</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 第一个参数:数据模型</span></span><br><span class="line"><span class="comment"> * 第二个参数:输出流</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> template.process(getData(),<span class="keyword">new</span> <span class="title class_">FileWriter</span>(<span class="string">"C:\\Gong\\data\\test.html"</span>));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 构建数据模型</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Map<String,Object> <span class="title function_">getData</span><span class="params">()</span>{</span><br><span class="line"> HashMap<String, Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//1.纯文本形式的参数</span></span><br><span class="line"> map.put(<span class="string">"name"</span>, <span class="string">"freemarker"</span>);</span><br><span class="line"> <span class="comment">//2.实体类相关的参数</span></span><br><span class="line"> <span class="type">Student</span> <span class="variable">student</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Student</span>();</span><br><span class="line"> student.setName(<span class="string">"小明"</span>);</span><br><span class="line"> student.setAge(<span class="number">18</span>);</span><br><span class="line"> map.put(<span class="string">"stu"</span>, student);</span><br><span class="line"> <span class="keyword">return</span> map;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p> ③ :运行结果</p>
|
||
<p><img src="/pictures/image-20230816174550953.png" alt="image-20230816174550953"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>前端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>FreeMarker</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>ElementUI使用示例</title>
|
||
<url>/posts/50908.html</url>
|
||
<content><![CDATA[<p><strong><a href="https://element.eleme.cn/#/zh-CN/component/quickstart">ElementUI官网</a></strong></p>
|
||
<h2 id="一-树形显示-树形控件"><a href="#一-树形显示-树形控件" class="headerlink" title="一.树形显示-树形控件"></a>一.树形显示-树形控件</h2><h3 id="1-树形显示"><a href="#1-树形显示" class="headerlink" title="1.树形显示"></a>1.树形显示</h3><p><strong>示例-以谷粒商城项目的商品分类为例</strong></p>
|
||
<p><strong>数据中商品分类的数据表,所有的分类数据在同一张表中</strong></p>
|
||
<img src="/pictures/image-20230530174911409.png" alt="image-20230530174911409" style="zoom:150%;" />
|
||
|
||
<p><strong>商品分类的实体类</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.entity;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 商品三级分类</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> JasonGong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@email</span> JasonGong@gmail.com</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@date</span> 2023-05-19 00:23:36</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("pms_category")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CategoryEntity</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 分类id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId</span></span><br><span class="line"> <span class="keyword">private</span> Long catId;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 分类名称</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 父分类id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Long parentCid;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 层级</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer catLevel;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否显示[0-不显示,1显示]</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer showStatus;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer sort;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 图标地址</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String icon;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 计量单位</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String productUnit;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 商品数量</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer productCount;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@TableField(exist = false)</span><span class="comment">//这个注解要加,因为这个属性不是数据库中的字段</span></span><br><span class="line"> <span class="keyword">private</span> List<CategoryEntity> children;<span class="comment">//这里的属性名不是瞎起的,与ElementUI中的显示相对应,这里改了,前端也要改</span></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>封装数据,供前端显示</strong></p>
|
||
<p>controller层</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有的分类以及子分类,以树形结构组装起来</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/list/tree")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">list</span><span class="params">()</span>{</span><br><span class="line"> List<CategoryEntity> entities = categoryService.listWithTree();</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"data"</span>, entities);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service层,这里主要有一个单独的递归方法,使用的时候会改就行</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有分类,以树形结构显示</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<CategoryEntity> <span class="title function_">listWithTree</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//查出所有的分类</span></span><br><span class="line"> List<CategoryEntity> entities = categoryDao.selectList(<span class="literal">null</span>);</span><br><span class="line"> <span class="comment">//组装成父子的树形结构</span></span><br><span class="line"> <span class="comment">//找到所有的一级分类</span></span><br><span class="line"> List<CategoryEntity> level1List = entities.stream().filter(categoryEntity -></span><br><span class="line"> <span class="comment">//父级分类的id等于0的就是一级分类</span></span><br><span class="line"> categoryEntity.getParentCid() == <span class="number">0</span></span><br><span class="line"> ).map((menu) -> {</span><br><span class="line"> <span class="comment">//为当前分类的子分类赋值</span></span><br><span class="line"> menu.setChildren(getChildren(menu, entities));</span><br><span class="line"> <span class="keyword">return</span> menu;</span><br><span class="line"> }).sorted((menu1, menu2) -> {</span><br><span class="line"> <span class="comment">//排序</span></span><br><span class="line"> <span class="keyword">return</span> (menu1.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu1.getSort()) - (menu2.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu2.getSort());</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> level1List;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 递归查询所有菜单的子菜单</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> root 当前分类</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> all 所有的分类数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 子菜单的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<CategoryEntity> <span class="title function_">getChildren</span><span class="params">(CategoryEntity root, List<CategoryEntity> all)</span> {</span><br><span class="line"> List<CategoryEntity> children = all.stream().filter(categoryEntity -> {</span><br><span class="line"> <span class="keyword">return</span> categoryEntity.getParentCid().equals(root.getCatId());</span><br><span class="line"> }).map(categoryEntity -> {</span><br><span class="line"> <span class="comment">//1.递归找子菜单</span></span><br><span class="line"> categoryEntity.setChildren(getChildren(categoryEntity, all));</span><br><span class="line"> <span class="keyword">return</span> categoryEntity;</span><br><span class="line"> }).sorted((menu1, menu2) -> {</span><br><span class="line"> <span class="comment">//2.菜单的排序</span></span><br><span class="line"> <span class="keyword">return</span> (menu1.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu1.getSort()) - (menu2.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu2.getSort());</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="keyword">return</span> children;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>返回数据的格式</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"msg"</span><span class="punctuation">:</span> <span class="string">"success"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"code"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"data"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"图书、音像、电子书刊"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"电子书刊"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">165</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"电子书"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">166</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"网络原创"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">167</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"数字杂志"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">168</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"多媒体图书"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">23</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"音像"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">169</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"音乐"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">23</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">170</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"影视"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">23</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"catId"</span><span class="punctuation">:</span> <span class="number">171</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"教育音像"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"parentCid"</span><span class="punctuation">:</span> <span class="number">23</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catLevel"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showStatus"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"icon"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"productCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"children"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> 略.............................</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>前端代码</strong></p>
|
||
<p>模板</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> @node-click="handleNodeClick"</span><br><span class="line"> ></el-tree></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line"> export default {</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> data: [],//发送请求获取的数据(比如 return R.ok().put("data", entities);里面的data)</span><br><span class="line"> defaultProps: {</span><br><span class="line"> children: 'children',//实体类中的属性(比如:private List<CategoryEntity> children;)</span><br><span class="line"> label: 'label'//需要显示的属性的属性名(比如商品分类名,属性名是name,这里就填name)</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> handleNodeClick(data) {</span><br><span class="line"> console.log(data);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"></script></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>完整代码</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> @node-click="handleNodeClick"</span><br><span class="line"> ></el-tree></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {//这里的配置看官方的文档</span><br><span class="line"> children: "children",//父节点上的子节点</span><br><span class="line"> label: "name",//每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> handleNodeClick(data) {</span><br><span class="line"> console.log(data);</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>显示效果</strong></p>
|
||
<img src="/pictures/image-20230530181102832.png" alt="image-20230530181102832" style="zoom:150%;" />
|
||
|
||
<h3 id="2-树形控件的删除、添加"><a href="#2-树形控件的删除、添加" class="headerlink" title="2.树形控件的删除、添加"></a>2.树形控件的删除、添加</h3><p>页面的显示效果</p>
|
||
<p><img src="/pictures/image-20230605145343384.png" alt="image-20230605145343384"></p>
|
||
<p>使用的组件 在树形控件的基础上添加相关的代码</p>
|
||
<img src="/pictures/image-20230605145433594.png" alt="image-20230605145433594" style="zoom:150%;" />
|
||
|
||
<p>添加的时候弹出的对话框使用的组件</p>
|
||
<img src="/pictures/image-20230605153935967.png" alt="image-20230605153935967" style="zoom:150%;" />
|
||
|
||
<img src="/pictures/image-20230605154629290.png" alt="image-20230605154629290" style="zoom:150%;" />
|
||
|
||
<p><strong>前端代码的实现</strong></p>
|
||
<p>Tips:删除成功之后依然展开删除的节点</p>
|
||
<p>删除和添加的前端代码</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件--></span><br><span class="line"> <!-- :expand-on-click-node="false"设置为点击箭头的时候才会展开,避免点击删除的按钮的时候展开 --></span><br><span class="line"> <!-- show-checkbox表示开启选择框,批量选择--></span><br><span class="line"> <!-- node-key表示在整个树中唯一的表示 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> :expand-on-click-node="false"</span><br><span class="line"> show-checkbox</span><br><span class="line"> node-key="catId"</span><br><span class="line"> :default-expanded-keys="expandedKey"</span><br><span class="line"> ></span><br><span class="line"> <span class="custom-tree-node" slot-scope="{ node, data }"></span><br><span class="line"> <span>{{ node.label }}</span></span><br><span class="line"> <span></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.level <= 2"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => append(data)"</span><br><span class="line"> ></span><br><span class="line"> 添加</span><br><span class="line"> </el-button></span><br><span class="line"> <!-- 添加判断,没有下一级节点的时候就显示删除的按钮 --></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="data.children.length <= 0"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => remove(node, data)"</span><br><span class="line"> ></span><br><span class="line"> 删除</span><br><span class="line"> </el-button></span><br><span class="line"> </span></span><br><span class="line"> </span></el-tree</span><br><span class="line"> ></span><br><span class="line"> <!-- 添加分类的时候弹出的对话框 --></span><br><span class="line"> <el-dialog title="提示" :visible.sync="dialogVisible" width="30%"></span><br><span class="line"> <el-form :model="category"></span><br><span class="line"> <el-form-item label="分类名称"></span><br><span class="line"> <el-input v-model="category.name" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot="footer" class="dialog-footer"></span><br><span class="line"> <el-button @click="dialogVisible = false">取 消</el-button></span><br><span class="line"> <el-button type="primary" @click="addCategory">确 定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> //这里的配置看官方的文档</span><br><span class="line"> children: "children", //父节点上的子节点</span><br><span class="line"> label: "name", //每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> expandedKey: [], //需要展开的数组,用于删除之后树形控件仍然展开</span><br><span class="line"> dialogVisible: false, //添加菜单的对话框的开启或者关闭</span><br><span class="line"> //表单绑定的对象</span><br><span class="line"> category: {</span><br><span class="line"> name: "", //分类的名称</span><br><span class="line"> parentCid: 0, //父类的id</span><br><span class="line"> catLevel: 0, //分类的级别</span><br><span class="line"> showStatus: 1, //是否显示该分类</span><br><span class="line"> sort: 0, //排序</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> //添加分类(弹出的对话框确定按钮执行的方法)</span><br><span class="line"> addCategory() {</span><br><span class="line"> console.log("提交的数据:", this.category);</span><br><span class="line"> //将添加的数据返回给后端</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/save"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(this.category, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单添加成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus()</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才添加的节点)</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> //关闭对话框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> },</span><br><span class="line"> //添加分类的方法</span><br><span class="line"> append(data) {</span><br><span class="line"> //清空一下表单的数据</span><br><span class="line"> this.category.name = "";</span><br><span class="line"> //打开添加的对话框</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"> //为分类的对象赋值</span><br><span class="line"> this.category.parentCid = data.catId;</span><br><span class="line"> this.category.catLevel = data.catLevel * 1 + 1; //防止catLevel是一个字符串</span><br><span class="line"> },</span><br><span class="line"> //删除节点的方法</span><br><span class="line"> remove(node, data) {</span><br><span class="line"> var ids = [data.catId];</span><br><span class="line"> this.$confirm(`是否要删除[${data.name}]菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单删除成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才删除的节点)</span><br><span class="line"> this.expandedKey = [node.parent.data.catId];</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {</span><br><span class="line"> this.$message({</span><br><span class="line"> type: "info",</span><br><span class="line"> message: "已取消删除",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>后端代码</strong></p>
|
||
<p>删除的后端代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@RequestMapping("/delete")</span></span><br><span class="line"> <span class="comment">//@RequiresPermissions("product:category:delete")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">delete</span><span class="params">(<span class="meta">@RequestBody</span> Long[] catIds)</span> {</span><br><span class="line"> <span class="comment">//检查当前删除的菜单,是否被别的地方引用</span></span><br><span class="line"> <span class="comment">//categoryService.removeByIds(Arrays.asList(catIds));</span></span><br><span class="line"> categoryService.removeMenuByIds(Arrays.asList(catIds));</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>添加的后端代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="comment">//@RequiresPermissions("product:category:save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@RequestBody</span> CategoryEntity category)</span> {</span><br><span class="line"> categoryService.save(category);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230605163004850.png" alt="image-20230605163004850"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>前端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>前端</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Java生成二维码</title>
|
||
<url>/posts/62439.html</url>
|
||
<content><![CDATA[<div class="note success flat"><p>SpringBoot + zxing 生成二维码</p>
|
||
<p>SpringBoot + qrcode生成二维码</p>
|
||
<p>原视频地址: <a href="https://www.bilibili.com/video/BV1Kw41197kh/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584">Java生成二维码教程 | 两小时学会Java生成二维码</a></p>
|
||
<p>源码地址: <a href="https://gitee.com/JasonsGong/two-dimensional-code">https://gitee.com/JasonsGong/two-dimensional-code</a></p>
|
||
</div>
|
||
|
||
<h2 id="一-谷歌zxing开源库生成二维码"><a href="#一-谷歌zxing开源库生成二维码" class="headerlink" title="一.谷歌zxing开源库生成二维码"></a>一.谷歌zxing开源库生成二维码</h2><h3 id="1-创建一个sprinBoot项目"><a href="#1-创建一个sprinBoot项目" class="headerlink" title="1.创建一个sprinBoot项目"></a>1.创建一个sprinBoot项目</h3><p><img src="/pictures/image-20230828215513289.png" alt="image-20230828215513289"></p>
|
||
<h3 id="2-引入相关的依赖"><a href="#2-引入相关的依赖" class="headerlink" title="2.引入相关的依赖"></a>2.引入相关的依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-thymeleaf<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.google.zxing<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>core<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.1.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.google.zxing<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>javase<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.1.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>commons-lang<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>commons-lang<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.6<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.projectlombok<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>lombok<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-在templates目录下新建index-html文件"><a href="#3-在templates目录下新建index-html文件" class="headerlink" title="3.在templates目录下新建index.html文件"></a>3.在templates目录下新建index.html文件</h3><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Title<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-编写controller跳转到该页面,完成后重启项目,访问localhost-8080-测试"><a href="#4-编写controller跳转到该页面,完成后重启项目,访问localhost-8080-测试" class="headerlink" title="4.编写controller跳转到该页面,完成后重启项目,访问localhost:8080 测试"></a>4.编写controller跳转到该页面,完成后重启项目,访问localhost:8080 测试</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CodeController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@GetMapping("/")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">index</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"index"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="5-打开index-html,编写前端页面"><a href="#5-打开index-html,编写前端页面" class="headerlink" title="5.打开index.html,编写前端页面"></a>5.打开index.html,编写前端页面</h3><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>二维码<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">h1</span>></span>谷歌zxing开源库生成黑白二维码<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line">请输入文本内容:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">id</span>=<span class="string">"url"</span>></span><span class="tag"><<span class="name">button</span> <span class="attr">onclick</span>=<span class="string">"generateQRCode()"</span>></span>生成二维码<span class="tag"></<span class="name">button</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">img</span> <span class="attr">id</span>=<span class="string">"qrCodeImg"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">generateQRCode</span>(<span class="params"></span>){</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//获取url</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> url = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"url"</span>).<span class="property">value</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//设置img标签的src属性</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> qrCodeImg = <span class="variable language_">document</span>.<span class="title function_">getElementById</span>(<span class="string">"qrCodeImg"</span>)</span></span><br><span class="line"><span class="language-javascript"> qrCodeImg.<span class="property">src</span> = <span class="string">"/generate?url="</span>+ url</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>由于后端部分没有编写,这时我们访问项目的时候会返回404</p>
|
||
<p><img src="/pictures/image-20230828223201038.png" alt="image-20230828223201038"></p>
|
||
<h3 id="6-后端代码的编写"><a href="#6-后端代码的编写" class="headerlink" title="6.后端代码的编写"></a>6.后端代码的编写</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.google.zxing.BarcodeFormat;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.EncodeHintType;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.MultiFormatWriter;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.aztec.encoder.AztecCode;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.common.BitMatrix;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ResponseBody;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.ServletOutputStream;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/28</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CodeController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@GetMapping("/")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">index</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"index"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@GetMapping("/generate")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generate</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response)</span> {</span><br><span class="line"> log.info(<span class="string">"文本内容:{}"</span>, url);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//创建一个map集合,存储二维码的相关属性</span></span><br><span class="line"> <span class="type">Map</span> <span class="variable">map</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//EncodeHintType 编码的提示类型</span></span><br><span class="line"> <span class="comment">//设置二维码的误差校正级别 可选值有 L(7%) M(15%) Q(25%) H(30%)</span></span><br><span class="line"> <span class="comment">//选择L级别的容错率,相当于允许二维码在整体的颜色区域中,最多有7%的坏像素点;择H级别的容错率,相当于允许二维码在整体的颜色区域中,最多有30%的坏像素点</span></span><br><span class="line"> map.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);</span><br><span class="line"> <span class="comment">//设置二维码的字符集</span></span><br><span class="line"> map.put(EncodeHintType.CHARACTER_SET, <span class="string">"utf-8"</span>);</span><br><span class="line"> <span class="comment">//设置二维码四周的留白 1表示1像素</span></span><br><span class="line"> map.put(EncodeHintType.MARGIN, <span class="number">1</span>);</span><br><span class="line"> <span class="comment">//创建zxing的核心对象MultiFormatWriter (多格式写入器)</span></span><br><span class="line"> <span class="comment">//通过MultiFormatWriter对象来生成二维码</span></span><br><span class="line"> <span class="type">MultiFormatWriter</span> <span class="variable">writer</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MultiFormatWriter</span>();</span><br><span class="line"> <span class="comment">//参数一:内容</span></span><br><span class="line"> <span class="comment">//参数二:二维码格式</span></span><br><span class="line"> <span class="comment">//BarcodeFormat(码格式) QR_CODE :常见的二维码格式之一,广泛应用于商品包装、扫码支付</span></span><br><span class="line"> <span class="comment">//AZTEC_CODE:高密度,可靠性很高 容错率更低 储存个人信息、证件信息、账户密码</span></span><br><span class="line"> <span class="comment">//PDF417 可以存储大量的信息 数据密度高 应用于航空机票、配送标签、法律文件</span></span><br><span class="line"> <span class="comment">//DATA_MATRIX: 小巧的二维码格式 编码格式类似于QR_CODE 但是优于QR_CODE 适合嵌入简单的产品标签 医疗图像 检测数据</span></span><br><span class="line"> <span class="comment">//参数三四:二维码的宽度和高度</span></span><br><span class="line"> <span class="comment">//参数五:二维码参数</span></span><br><span class="line"> <span class="comment">//位矩阵对象 (位矩阵对象对象的内部实际上是一个二位数组,二维数组中每一个元素是boolean类型 true代表黑色 false代表白色)</span></span><br><span class="line"> <span class="type">BitMatrix</span> <span class="variable">bitMatrix</span> <span class="operator">=</span> writer.encode(url, BarcodeFormat.QR_CODE, <span class="number">300</span>, <span class="number">300</span>, map);</span><br><span class="line"> <span class="comment">//获取矩阵的宽度和高度</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">width</span> <span class="operator">=</span> bitMatrix.getWidth();</span><br><span class="line"> <span class="type">int</span> <span class="variable">height</span> <span class="operator">=</span> bitMatrix.getHeight();</span><br><span class="line"> <span class="comment">//生成二维码图片</span></span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedImage</span>(width, height, BufferedImage.TYPE_INT_BGR);</span><br><span class="line"> <span class="comment">//遍历位矩阵对象</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">x</span> <span class="operator">=</span> <span class="number">0</span>; x < width; x++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">y</span> <span class="operator">=</span> <span class="number">0</span>; y < height; y++) {</span><br><span class="line"> <span class="comment">//设置每一块的颜色值</span></span><br><span class="line"> <span class="comment">//0xFF000000表示黑色 0xFFFFFFFF表示白色</span></span><br><span class="line"> image.setRGB(x, y, bitMatrix.get(x, y) ? <span class="number">0xFF000000</span> : <span class="number">0xFFFFFFFF</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将图片响应到客户端</span></span><br><span class="line"> <span class="type">ServletOutputStream</span> <span class="variable">out</span> <span class="operator">=</span> response.getOutputStream();</span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,out);</span><br><span class="line"> out.flush();</span><br><span class="line"> out.close();</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="7-测试生成二维码"><a href="#7-测试生成二维码" class="headerlink" title="7.测试生成二维码"></a>7.测试生成二维码</h3><p><img src="/pictures/image-20230828233052417.png" alt="image-20230828233052417"></p>
|
||
<p><strong>完整的项目结构</strong></p>
|
||
<p><img src="/pictures/image-20230828233917645.png" alt="image-20230828233917645"></p>
|
||
<h3 id="8-生成一个带Logo的黑白二维码"><a href="#8-生成一个带Logo的黑白二维码" class="headerlink" title="8.生成一个带Logo的黑白二维码"></a>8.生成一个带Logo的黑白二维码</h3><p><strong>1.编写qrcode.html页面和跳转到该页面的controller</strong></p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>生成带logo的黑白二维码<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/generateWithLogo"</span> <span class="attr">method</span>=<span class="string">"post"</span> <span class="attr">enctype</span>=<span class="string">"multipart/form-data"</span>></span></span><br><span class="line"> 请输入文本内容:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">name</span>=<span class="string">"url"</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 请选择logo图片:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"file"</span> <span class="attr">name</span>=<span class="string">"logo"</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"submit"</span> <span class="attr">value</span>=<span class="string">"生成二维码"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 跳转到生成带logo的黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@GetMapping("/logo")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">toLogo</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"qrcode"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.编写后端生成二维码逻辑</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 生成带logo的黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostMapping("/generateWithLogo")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">generateWithLogo</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">Map</span> <span class="variable">map</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);</span><br><span class="line"> map.put(EncodeHintType.CHARACTER_SET, <span class="string">"utf-8"</span>);</span><br><span class="line"> map.put(EncodeHintType.MARGIN, <span class="number">1</span>);</span><br><span class="line"> <span class="type">MultiFormatWriter</span> <span class="variable">writer</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MultiFormatWriter</span>();</span><br><span class="line"> <span class="type">BitMatrix</span> <span class="variable">bitMatrix</span> <span class="operator">=</span> writer.encode(url, BarcodeFormat.QR_CODE, <span class="number">300</span>, <span class="number">300</span>, map);</span><br><span class="line"> <span class="type">int</span> <span class="variable">width</span> <span class="operator">=</span> bitMatrix.getWidth();</span><br><span class="line"> <span class="type">int</span> <span class="variable">height</span> <span class="operator">=</span> bitMatrix.getHeight();</span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedImage</span>(width, height, BufferedImage.TYPE_INT_BGR);</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">x</span> <span class="operator">=</span> <span class="number">0</span>; x < width; x++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">y</span> <span class="operator">=</span> <span class="number">0</span>; y < height; y++) {</span><br><span class="line"> image.setRGB(x, y, bitMatrix.get(x, y) ? <span class="number">0xFF000000</span> : <span class="number">0xFFFFFFFF</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//给二维码添加logo</span></span><br><span class="line"> <span class="comment">//1.获取logo</span></span><br><span class="line"> <span class="type">Part</span> <span class="variable">logoPart</span> <span class="operator">=</span> request.getPart(<span class="string">"logo"</span>);</span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> logoPart.getInputStream();</span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">logoImage</span> <span class="operator">=</span> ImageIO.read(inputStream);</span><br><span class="line"> <span class="comment">//2.对获取的logo图片进行缩放</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">logoWidth</span> <span class="operator">=</span> logoImage.getWidth(<span class="literal">null</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">logoHeight</span> <span class="operator">=</span> logoImage.getHeight(<span class="literal">null</span>);</span><br><span class="line"> <span class="keyword">if</span> (logoWidth > <span class="number">60</span>){</span><br><span class="line"> logoWidth = <span class="number">60</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (logoHeight > <span class="number">60</span>){</span><br><span class="line"> logoHeight = <span class="number">60</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//使用平滑缩放算法对原始的logo图像进行缩放到一个全新的图像</span></span><br><span class="line"> <span class="type">Image</span> <span class="variable">scaledLogo</span> <span class="operator">=</span> logoImage.getScaledInstance(logoWidth, logoHeight, Image.SCALE_SMOOTH);</span><br><span class="line"> <span class="comment">//3.将缩放的图片画在黑白的二维码上</span></span><br><span class="line"> <span class="comment">//获取一个画笔</span></span><br><span class="line"> <span class="type">Graphics2D</span> <span class="variable">graphics2D</span> <span class="operator">=</span> image.createGraphics();</span><br><span class="line"> <span class="comment">//计算从哪里开始画 300指的是二维码的宽度和高度</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">x</span> <span class="operator">=</span> (<span class="number">300</span> - logoWidth) /<span class="number">2</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">y</span> <span class="operator">=</span> (<span class="number">300</span> - logoHeight) /<span class="number">2</span>;</span><br><span class="line"> <span class="comment">//画上去</span></span><br><span class="line"> graphics2D.drawImage(scaledLogo,x,y,<span class="literal">null</span>);</span><br><span class="line"> <span class="comment">//实现logo的圆角效果</span></span><br><span class="line"> <span class="type">Shape</span> <span class="variable">shape</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">RoundRectangle2D</span>.Float(x, y, logoWidth, logoHeight, <span class="number">10</span>, <span class="number">10</span>);</span><br><span class="line"> <span class="comment">//使用一个宽度为4像素的基本笔触</span></span><br><span class="line"> graphics2D.setStroke(<span class="keyword">new</span> <span class="title class_">BasicStroke</span>(<span class="number">4f</span>));</span><br><span class="line"> <span class="comment">//给logo画圆角矩形</span></span><br><span class="line"> graphics2D.draw(shape);</span><br><span class="line"> <span class="comment">//释放画笔</span></span><br><span class="line"> graphics2D.dispose();</span><br><span class="line"> <span class="comment">//将二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image, <span class="string">"png"</span>, response.getOutputStream());</span><br><span class="line"> <span class="comment">//关闭流</span></span><br><span class="line"> inputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>访问 <a href="http://localhost:8080/logo">http://localhost:8080/logo</a> 测试</p>
|
||
<p><strong>实现的效果</strong></p>
|
||
<p><img src="/pictures/image-20230829160901904.png" alt="image-20230829160901904"></p>
|
||
<p><img src="/pictures/image-20230829160938795.png" alt="image-20230829160938795"></p>
|
||
<h2 id="二-github开源项目qrcode生成二维码"><a href="#二-github开源项目qrcode生成二维码" class="headerlink" title="二.github开源项目qrcode生成二维码"></a>二.github开源项目qrcode生成二维码</h2><h3 id="1-引入依赖文件"><a href="#1-引入依赖文件" class="headerlink" title="1.引入依赖文件"></a>1.引入依赖文件</h3><p>这里就不在重新创建工程了,直接在上面工程的基础上操作</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.github.liuyueyi.media<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>qrcode-plugin<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.5.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-生成黑白二维码"><a href="#2-生成黑白二维码" class="headerlink" title="2.生成黑白二维码"></a>2.生成黑白二维码</h3><p><strong>1.创建github-qrcode.html文件</strong></p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>qrcode生成黑白二维码<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">h1</span>></span>使用github上的开源项目qrcode生成二维码<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/generateWithQrCode"</span> <span class="attr">method</span>=<span class="string">"post"</span> <span class="attr">enctype</span>=<span class="string">"multipart/form-data"</span>></span></span><br><span class="line"> 请输入文本内容:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">name</span>=<span class="string">"url"</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 请选择logo图片:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"file"</span> <span class="attr">name</span>=<span class="string">"logo"</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"submit"</span> <span class="attr">value</span>=<span class="string">"生成二维码"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.编写controller处理请求</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成二维码</span></span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url).asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,response.getOutputStream());</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.访问测试</strong></p>
|
||
<p><img src="/pictures/image-20230829223442421.png" alt="image-20230829223442421"></p>
|
||
<h3 id="3-生成带有logo的黑白二维码"><a href="#3-生成带有logo的黑白二维码" class="headerlink" title="3.生成带有logo的黑白二维码"></a>3.生成带有logo的黑白二维码</h3><p>前端页面延续使用上面的github-qrcode.html</p>
|
||
<p><strong>1.后端代码的编写</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeOptions;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成二维码</span></span><br><span class="line"> <span class="comment">//生成黑白的二维码</span></span><br><span class="line"> <span class="comment">//BufferedImage image = QrCodeGenWrapper.of(url).asBufferedImage();</span></span><br><span class="line"> <span class="comment">//生成带logo的黑白二维码</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> request.getPart(<span class="string">"logo"</span>).getInputStream();</span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url)</span><br><span class="line"> .setLogo(inputStream)<span class="comment">//logo图片的输入流</span></span><br><span class="line"> .setLogoRate(<span class="number">7</span>)<span class="comment">//设置logo图片和二维码之间的比例,7表示logo的宽度等于二维码的1/7</span></span><br><span class="line"> .setLogoStyle(QrCodeOptions.LogoStyle.ROUND)<span class="comment">//设置logo图片的样式,将logo的边框形状设置成圆形</span></span><br><span class="line"> .asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,response.getOutputStream());</span><br><span class="line"> <span class="comment">//关闭流</span></span><br><span class="line"> inputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现的效果</strong></p>
|
||
<p><img src="/pictures/image-20230829224339809.png" alt="image-20230829224339809"></p>
|
||
<h3 id="4-生成彩色的二维码"><a href="#4-生成彩色的二维码" class="headerlink" title="4.生成彩色的二维码"></a>4.生成彩色的二维码</h3><p>前端页面延续使用上面的github-qrcode.html</p>
|
||
<p><strong>1.后端代码的编写</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeOptions;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成彩色的二维码</span></span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url).setDrawPreColor(Color.GREEN).asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,response.getOutputStream());</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现的效果</strong></p>
|
||
<p><img src="/pictures/image-20230829225017032.png" alt="image-20230829225017032"></p>
|
||
<h3 id="5-生成带有背景图的二维码"><a href="#5-生成带有背景图的二维码" class="headerlink" title="5.生成带有背景图的二维码"></a>5.生成带有背景图的二维码</h3><p>前端页面延续使用上面的github-qrcode.html</p>
|
||
<p><strong>1.后端代码的编写</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeOptions;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成带有背景图的二维码</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> request.getPart(<span class="string">"logo"</span>).getInputStream();</span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url)</span><br><span class="line"> .setBgImg(inputStream)</span><br><span class="line"> .setBgOpacity(<span class="number">0.5F</span>)<span class="comment">//设置透明度</span></span><br><span class="line"> .asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,response.getOutputStream());</span><br><span class="line"> <span class="comment">//关闭流</span></span><br><span class="line"> inputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现的效果</strong></p>
|
||
<p><img src="/pictures/image-20230829225740156.png" alt="image-20230829225740156"></p>
|
||
<h3 id="6-生成特殊形状的二维码"><a href="#6-生成特殊形状的二维码" class="headerlink" title="6.生成特殊形状的二维码"></a>6.生成特殊形状的二维码</h3><p>前端页面延续使用上面的github-qrcode.html</p>
|
||
<p><strong>1.后端代码的编写</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeOptions;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成特殊形状的二维码</span></span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url)</span><br><span class="line"> .setDrawEnableScale(<span class="literal">true</span>)<span class="comment">//启用二维码绘制时的缩放功能</span></span><br><span class="line"> .setDrawStyle(QrCodeOptions.DrawStyle.DIAMOND)<span class="comment">//绘制钻石形状的二维码</span></span><br><span class="line"> .asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image,<span class="string">"png"</span>,response.getOutputStream());</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现的效果</strong></p>
|
||
<p><img src="/pictures/image-20230829230236500.png" alt="image-20230829230236500"></p>
|
||
<h3 id="7-生成图片填充二维码"><a href="#7-生成图片填充二维码" class="headerlink" title="7.生成图片填充二维码"></a>7.生成图片填充二维码</h3><p>前端页面延续使用上面的github-qrcode.html</p>
|
||
<p><strong>1.后端代码的编写</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.mine.code.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeDeWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeGenWrapper;</span><br><span class="line"><span class="keyword">import</span> com.github.hui.quick.plugin.qrcode.wrapper.QrCodeOptions;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.WriterException;</span><br><span class="line"><span class="keyword">import</span> com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestParam;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.imageio.ImageIO;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.awt.*;</span><br><span class="line"><span class="keyword">import</span> java.awt.image.BufferedImage;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用qrcode生成二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GithubQrCodeController</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写请求跳转到使用qrcode生成二维码的页面</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/qrcode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toQrCode</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"github-qrcode"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用qrcode生成黑白二维码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/generateWithQrCode")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">generateWithQrCode</span><span class="params">(<span class="meta">@RequestParam("url")</span> String url, HttpServletResponse response, HttpServletRequest request)</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//生成图片填充二维码</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> request.getPart(<span class="string">"logo"</span>).getInputStream();</span><br><span class="line"> <span class="type">BufferedImage</span> <span class="variable">image</span> <span class="operator">=</span> QrCodeGenWrapper.of(url)</span><br><span class="line"> .setErrorCorrection(ErrorCorrectionLevel.H)<span class="comment">//设置二维码的纠正级别</span></span><br><span class="line"> .setDrawStyle(QrCodeOptions.DrawStyle.IMAGE)<span class="comment">//绘制二维码的时候采用图片填充</span></span><br><span class="line"> .addImg(<span class="number">1</span>, <span class="number">1</span>, inputStream)<span class="comment">//添加图片</span></span><br><span class="line"> .asBufferedImage();</span><br><span class="line"> <span class="comment">//将生成的二维码响应到浏览器</span></span><br><span class="line"> ImageIO.write(image, <span class="string">"png"</span>, response.getOutputStream());</span><br><span class="line"> <span class="comment">//关闭流</span></span><br><span class="line"> inputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现的效果</strong></p>
|
||
<p>二维码中的每一个像素点都是上传的图片,生成的速度很慢</p>
|
||
<p><img src="/pictures/image-20230829230843477.png" alt="image-20230829230843477"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>二维码</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Maven配置文件settings.xml</title>
|
||
<url>/posts/26768.html</url>
|
||
<content><![CDATA[<p>更换IDEA中Maven配置文件实现不下载配置maven的阿里云镜像 </p>
|
||
<h2 id="设置本地仓库磁盘存储位置"><a href="#设置本地仓库磁盘存储位置" class="headerlink" title="设置本地仓库磁盘存储位置"></a>设置本地仓库磁盘存储位置</h2><p>1.在C盘的根目录下创建如下的文件夹C:\maven\maven-repository</p>
|
||
<p>2.任选下面的两个配置文件中的一个放在C:\maven目录下 配置文件的名字为 <strong>settings.xml</strong></p>
|
||
<p>3.在IDEA中配置本地仓库的位置和配置文件的位置</p>
|
||
<h2 id="配置文件"><a href="#配置文件" class="headerlink" title="配置文件"></a>配置文件</h2><h3 id="apache-maven-3-6-3"><a href="#apache-maven-3-6-3" class="headerlink" title="apache-maven-3.6.3"></a>apache-maven-3.6.3</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!--</span></span><br><span class="line"><span class="comment">Licensed to the Apache Software Foundation (ASF) under one</span></span><br><span class="line"><span class="comment">or more contributor license agreements. See the NOTICE file</span></span><br><span class="line"><span class="comment">distributed with this work for additional information</span></span><br><span class="line"><span class="comment">regarding copyright ownership. The ASF licenses this file</span></span><br><span class="line"><span class="comment">to you under the Apache License, Version 2.0 (the</span></span><br><span class="line"><span class="comment">"License"); you may not use this file except in compliance</span></span><br><span class="line"><span class="comment">with the License. You may obtain a copy of the License at</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> http://www.apache.org/licenses/LICENSE-2.0</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">Unless required by applicable law or agreed to in writing,</span></span><br><span class="line"><span class="comment">software distributed under the License is distributed on an</span></span><br><span class="line"><span class="comment">"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></span><br><span class="line"><span class="comment">KIND, either express or implied. See the License for the</span></span><br><span class="line"><span class="comment">specific language governing permissions and limitations</span></span><br><span class="line"><span class="comment">under the License.</span></span><br><span class="line"><span class="comment">--></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!--</span></span><br><span class="line"><span class="comment"> | This is the configuration file for Maven. It can be specified at two levels:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | 1. User Level. This settings.xml file provides configuration for a single user,</span></span><br><span class="line"><span class="comment"> | and is normally provided in ${user.home}/.m2/settings.xml.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> This location can be overridden with the CLI option:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | -s /path/to/user/settings.xml</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | 2. Global Level. This settings.xml file provides configuration for all Maven</span></span><br><span class="line"><span class="comment"> | users on a machine (assuming they're all using the same Maven</span></span><br><span class="line"><span class="comment"> | installation). It's normally provided in</span></span><br><span class="line"><span class="comment"> | ${maven.conf}/settings.xml.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> This location can be overridden with the CLI option:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | -gs /path/to/global/settings.xml</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | The sections in this sample file are intended to give you a running start at</span></span><br><span class="line"><span class="comment"> | getting the most out of your Maven installation. Where appropriate, the default</span></span><br><span class="line"><span class="comment"> | values (values used when the setting is not specified) are provided.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"><span class="tag"><<span class="name">settings</span> <span class="attr">xmlns</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.0.0"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"</span>></span></span><br><span class="line"> <span class="comment"><!-- localRepository</span></span><br><span class="line"><span class="comment"> | The path to the local repository maven will use to store artifacts.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: ${user.home}/.m2/repository</span></span><br><span class="line"><span class="comment"> <localRepository>/path/to/local/repo</localRepository></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"><span class="tag"><<span class="name">localRepository</span>></span>C:\maven\maven-repository<span class="tag"></<span class="name">localRepository</span>></span></span><br><span class="line"> <span class="comment"><!-- interactiveMode</span></span><br><span class="line"><span class="comment"> | This will determine whether maven prompts you when it needs input. If set to false,</span></span><br><span class="line"><span class="comment"> | maven will use a sensible default value, perhaps based on some other setting, for</span></span><br><span class="line"><span class="comment"> | the parameter in question.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: true</span></span><br><span class="line"><span class="comment"> <interactiveMode>true</interactiveMode></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- offline</span></span><br><span class="line"><span class="comment"> | Determines whether maven should attempt to connect to the network when executing a build.</span></span><br><span class="line"><span class="comment"> | This will have an effect on artifact downloads, artifact deployment, and others.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: false</span></span><br><span class="line"><span class="comment"> <offline>false</offline></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- pluginGroups</span></span><br><span class="line"><span class="comment"> | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.</span></span><br><span class="line"><span class="comment"> | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers</span></span><br><span class="line"><span class="comment"> | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">pluginGroups</span>></span></span><br><span class="line"> <span class="comment"><!-- pluginGroup</span></span><br><span class="line"><span class="comment"> | Specifies a further group identifier to use for plugin lookup.</span></span><br><span class="line"><span class="comment"> <pluginGroup>com.your.plugins</pluginGroup></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">pluginGroups</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- proxies</span></span><br><span class="line"><span class="comment"> | This is a list of proxies which can be used on this machine to connect to the network.</span></span><br><span class="line"><span class="comment"> | Unless otherwise specified (by system property or command-line switch), the first proxy</span></span><br><span class="line"><span class="comment"> | specification in this list marked as active will be used.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">proxies</span>></span></span><br><span class="line"> <span class="comment"><!-- proxy</span></span><br><span class="line"><span class="comment"> | Specification for one proxy, to be used in connecting to the network.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <proxy></span></span><br><span class="line"><span class="comment"> <id>optional</id></span></span><br><span class="line"><span class="comment"> <active>true</active></span></span><br><span class="line"><span class="comment"> <protocol>http</protocol></span></span><br><span class="line"><span class="comment"> <username>proxyuser</username></span></span><br><span class="line"><span class="comment"> <password>proxypass</password></span></span><br><span class="line"><span class="comment"> <host>proxy.host.net</host></span></span><br><span class="line"><span class="comment"> <port>80</port></span></span><br><span class="line"><span class="comment"> <nonProxyHosts>local.net|some.host.com</nonProxyHosts></span></span><br><span class="line"><span class="comment"> </proxy></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">proxies</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- servers</span></span><br><span class="line"><span class="comment"> | This is a list of authentication profiles, keyed by the server-id used within the system.</span></span><br><span class="line"><span class="comment"> | Authentication profiles can be used whenever maven must make a connection to a remote server.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">servers</span>></span></span><br><span class="line"> <span class="comment"><!-- server</span></span><br><span class="line"><span class="comment"> | Specifies the authentication information to use when connecting to a particular server, identified by</span></span><br><span class="line"><span class="comment"> | a unique name within the system (referred to by the 'id' attribute below).</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> You should either specify username/password OR privateKey/passphrase, since these pairings are</span></span><br><span class="line"><span class="comment"> | used together.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <server></span></span><br><span class="line"><span class="comment"> <id>deploymentRepo</id></span></span><br><span class="line"><span class="comment"> <username>repouser</username></span></span><br><span class="line"><span class="comment"> <password>repopwd</password></span></span><br><span class="line"><span class="comment"> </server></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Another sample, using keys to authenticate.</span></span><br><span class="line"><span class="comment"> <server></span></span><br><span class="line"><span class="comment"> <id>siteServer</id></span></span><br><span class="line"><span class="comment"> <privateKey>/path/to/private/key</privateKey></span></span><br><span class="line"><span class="comment"> <passphrase>optional; leave empty if not used.</passphrase></span></span><br><span class="line"><span class="comment"> </server></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">servers</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- mirrors</span></span><br><span class="line"><span class="comment"> | This is a list of mirrors to be used in downloading artifacts from remote repositories.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | It works like this: a POM may declare a repository to use in resolving certain artifacts.</span></span><br><span class="line"><span class="comment"> | However, this repository may have problems with heavy traffic at times, so people have mirrored</span></span><br><span class="line"><span class="comment"> | it to several places.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | That repository definition will have a unique id, so we can create a mirror reference for that</span></span><br><span class="line"><span class="comment"> | repository, to be used as an alternate download site. The mirror site will be the preferred</span></span><br><span class="line"><span class="comment"> | server for that repository.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">mirrors</span>></span></span><br><span class="line"> <span class="comment"><!-- mirror</span></span><br><span class="line"><span class="comment"> | Specifies a repository mirror site to use instead of a given repository. The repository that</span></span><br><span class="line"><span class="comment"> | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used</span></span><br><span class="line"><span class="comment"> | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <mirror></span></span><br><span class="line"><span class="comment"> <id>mirrorId</id></span></span><br><span class="line"><span class="comment"> <mirrorOf>repositoryId</mirrorOf></span></span><br><span class="line"><span class="comment"> <name>Human Readable Name for this Mirror.</name></span></span><br><span class="line"><span class="comment"> <url>http://my.repository.com/repo/path</url></span></span><br><span class="line"><span class="comment"> </mirror></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="comment"><!-- 阿里云仓库,个人配置 --></span></span><br><span class="line"> <span class="tag"><<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">id</span>></span>alimaven<span class="tag"></<span class="name">id</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">mirrorOf</span>></span>central<span class="tag"></<span class="name">mirrorOf</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">name</span>></span>aliyun maven<span class="tag"></<span class="name">name</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">url</span>></span>http://maven.aliyun.com/nexus/content/repositories/central/<span class="tag"></<span class="name">url</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirrors</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- profiles</span></span><br><span class="line"><span class="comment"> | This is a list of profiles which can be activated in a variety of ways, and which can modify</span></span><br><span class="line"><span class="comment"> | the build process. Profiles provided in the settings.xml are intended to provide local machine-</span></span><br><span class="line"><span class="comment"> | specific paths and repository locations which allow the build to work in the local environment.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | For example, if you have an integration testing plugin - like cactus - that needs to know where</span></span><br><span class="line"><span class="comment"> | your Tomcat instance is installed, you can provide a variable here such that the variable is</span></span><br><span class="line"><span class="comment"> | dereferenced during the build process to configure the cactus plugin.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles</span></span><br><span class="line"><span class="comment"> | section of this document (settings.xml) - will be discussed later. Another way essentially</span></span><br><span class="line"><span class="comment"> | relies on the detection of a system property, either matching a particular value for the property,</span></span><br><span class="line"><span class="comment"> | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a</span></span><br><span class="line"><span class="comment"> | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.</span></span><br><span class="line"><span class="comment"> | Finally, the list of active profiles can be specified directly from the command line.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> For profiles defined in the settings.xml, you are restricted to specifying only artifact</span></span><br><span class="line"><span class="comment"> | repositories, plugin repositories, and free-form properties to be used as configuration</span></span><br><span class="line"><span class="comment"> | variables for plugins in the POM.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">profiles</span>></span></span><br><span class="line"> <span class="comment"><!-- profile</span></span><br><span class="line"><span class="comment"> | Specifies a set of introductions to the build process, to be activated using one or more of the</span></span><br><span class="line"><span class="comment"> | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/></span></span><br><span class="line"><span class="comment"> | or the command line, profiles have to have an ID that is unique.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | An encouraged best practice for profile identification is to use a consistent naming convention</span></span><br><span class="line"><span class="comment"> | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.</span></span><br><span class="line"><span class="comment"> | This will make it more intuitive to understand what the set of introduced profiles is attempting</span></span><br><span class="line"><span class="comment"> | to accomplish, particularly when you only have a list of profile id's for debug.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.</span></span><br><span class="line"><span class="comment"> <profile></span></span><br><span class="line"><span class="comment"> <id>jdk-1.4</id></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <activation></span></span><br><span class="line"><span class="comment"> <jdk>1.4</jdk></span></span><br><span class="line"><span class="comment"> </activation></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <repositories></span></span><br><span class="line"><span class="comment"> <repository></span></span><br><span class="line"><span class="comment"> <id>jdk14</id></span></span><br><span class="line"><span class="comment"> <name>Repository for JDK 1.4 builds</name></span></span><br><span class="line"><span class="comment"> <url>http://www.myhost.com/maven/jdk14</url></span></span><br><span class="line"><span class="comment"> <layout>default</layout></span></span><br><span class="line"><span class="comment"> <snapshotPolicy>always</snapshotPolicy></span></span><br><span class="line"><span class="comment"> </repository></span></span><br><span class="line"><span class="comment"> </repositories></span></span><br><span class="line"><span class="comment"> </profile></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> | Here is another profile, activated by the system property 'target-env' with a value of 'dev',</span></span><br><span class="line"><span class="comment"> | which provides a specific path to the Tomcat instance. To use this, your plugin configuration</span></span><br><span class="line"><span class="comment"> | might hypothetically look like:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | ...</span></span><br><span class="line"><span class="comment"> | <plugin></span></span><br><span class="line"><span class="comment"> | <groupId>org.myco.myplugins</groupId></span></span><br><span class="line"><span class="comment"> | <artifactId>myplugin</artifactId></span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <configuration></span></span><br><span class="line"><span class="comment"> | <tomcatLocation>${tomcatPath}</tomcatLocation></span></span><br><span class="line"><span class="comment"> | </configuration></span></span><br><span class="line"><span class="comment"> | </plugin></span></span><br><span class="line"><span class="comment"> | ...</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> If you just wanted to inject this configuration whenever someone set 'target-env' to</span></span><br><span class="line"><span class="comment"> | anything, you could just leave off the <value/> inside the activation-property.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <profile></span></span><br><span class="line"><span class="comment"> <id>env-dev</id></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <activation></span></span><br><span class="line"><span class="comment"> <property></span></span><br><span class="line"><span class="comment"> <name>target-env</name></span></span><br><span class="line"><span class="comment"> <value>dev</value></span></span><br><span class="line"><span class="comment"> </property></span></span><br><span class="line"><span class="comment"> </activation></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <properties></span></span><br><span class="line"><span class="comment"> <tomcatPath>/path/to/tomcat/instance</tomcatPath></span></span><br><span class="line"><span class="comment"> </properties></span></span><br><span class="line"><span class="comment"> </profile></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">profiles</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- activeProfiles</span></span><br><span class="line"><span class="comment"> | List of profiles that are active for all builds.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <activeProfiles></span></span><br><span class="line"><span class="comment"> <activeProfile>alwaysActiveProfile</activeProfile></span></span><br><span class="line"><span class="comment"> <activeProfile>anotherAlwaysActiveProfile</activeProfile></span></span><br><span class="line"><span class="comment"> </activeProfiles></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"><span class="tag"></<span class="name">settings</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="apache-maven-3-8-6"><a href="#apache-maven-3-8-6" class="headerlink" title="apache-maven-3.8.6"></a>apache-maven-3.8.6</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!--</span></span><br><span class="line"><span class="comment">Licensed to the Apache Software Foundation (ASF) under one</span></span><br><span class="line"><span class="comment">or more contributor license agreements. See the NOTICE file</span></span><br><span class="line"><span class="comment">distributed with this work for additional information</span></span><br><span class="line"><span class="comment">regarding copyright ownership. The ASF licenses this file</span></span><br><span class="line"><span class="comment">to you under the Apache License, Version 2.0 (the</span></span><br><span class="line"><span class="comment">"License"); you may not use this file except in compliance</span></span><br><span class="line"><span class="comment">with the License. You may obtain a copy of the License at</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> http://www.apache.org/licenses/LICENSE-2.0</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">Unless required by applicable law or agreed to in writing,</span></span><br><span class="line"><span class="comment">software distributed under the License is distributed on an</span></span><br><span class="line"><span class="comment">"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></span><br><span class="line"><span class="comment">KIND, either express or implied. See the License for the</span></span><br><span class="line"><span class="comment">specific language governing permissions and limitations</span></span><br><span class="line"><span class="comment">under the License.</span></span><br><span class="line"><span class="comment">--></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!--</span></span><br><span class="line"><span class="comment"> | This is the configuration file for Maven. It can be specified at two levels:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | 1. User Level. This settings.xml file provides configuration for a single user,</span></span><br><span class="line"><span class="comment"> | and is normally provided in ${user.home}/.m2/settings.xml.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> This location can be overridden with the CLI option:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | -s /path/to/user/settings.xml</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | 2. Global Level. This settings.xml file provides configuration for all Maven</span></span><br><span class="line"><span class="comment"> | users on a machine (assuming they're all using the same Maven</span></span><br><span class="line"><span class="comment"> | installation). It's normally provided in</span></span><br><span class="line"><span class="comment"> | ${maven.conf}/settings.xml.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> This location can be overridden with the CLI option:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | -gs /path/to/global/settings.xml</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | The sections in this sample file are intended to give you a running start at</span></span><br><span class="line"><span class="comment"> | getting the most out of your Maven installation. Where appropriate, the default</span></span><br><span class="line"><span class="comment"> | values (values used when the setting is not specified) are provided.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"><span class="tag"><<span class="name">settings</span> <span class="attr">xmlns</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.2.0"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"</span>></span></span><br><span class="line"> <span class="comment"><!-- localRepository</span></span><br><span class="line"><span class="comment"> | The path to the local repository maven will use to store artifacts.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: ${user.home}/.m2/repository</span></span><br><span class="line"><span class="comment"> <localRepository>/path/to/local/repo</localRepository></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"><<span class="name">localRepository</span>></span>C:\maven\maven-repository<span class="tag"></<span class="name">localRepository</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- interactiveMode</span></span><br><span class="line"><span class="comment"> | This will determine whether maven prompts you when it needs input. If set to false,</span></span><br><span class="line"><span class="comment"> | maven will use a sensible default value, perhaps based on some other setting, for</span></span><br><span class="line"><span class="comment"> | the parameter in question.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: true</span></span><br><span class="line"><span class="comment"> <interactiveMode>true</interactiveMode></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- offline</span></span><br><span class="line"><span class="comment"> | Determines whether maven should attempt to connect to the network when executing a build.</span></span><br><span class="line"><span class="comment"> | This will have an effect on artifact downloads, artifact deployment, and others.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | Default: false</span></span><br><span class="line"><span class="comment"> <offline>false</offline></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- pluginGroups</span></span><br><span class="line"><span class="comment"> | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.</span></span><br><span class="line"><span class="comment"> | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers</span></span><br><span class="line"><span class="comment"> | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">pluginGroups</span>></span></span><br><span class="line"> <span class="comment"><!-- pluginGroup</span></span><br><span class="line"><span class="comment"> | Specifies a further group identifier to use for plugin lookup.</span></span><br><span class="line"><span class="comment"> <pluginGroup>com.your.plugins</pluginGroup></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">pluginGroups</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- proxies</span></span><br><span class="line"><span class="comment"> | This is a list of proxies which can be used on this machine to connect to the network.</span></span><br><span class="line"><span class="comment"> | Unless otherwise specified (by system property or command-line switch), the first proxy</span></span><br><span class="line"><span class="comment"> | specification in this list marked as active will be used.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">proxies</span>></span></span><br><span class="line"> <span class="comment"><!-- proxy</span></span><br><span class="line"><span class="comment"> | Specification for one proxy, to be used in connecting to the network.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <proxy></span></span><br><span class="line"><span class="comment"> <id>optional</id></span></span><br><span class="line"><span class="comment"> <active>true</active></span></span><br><span class="line"><span class="comment"> <protocol>http</protocol></span></span><br><span class="line"><span class="comment"> <username>proxyuser</username></span></span><br><span class="line"><span class="comment"> <password>proxypass</password></span></span><br><span class="line"><span class="comment"> <host>proxy.host.net</host></span></span><br><span class="line"><span class="comment"> <port>80</port></span></span><br><span class="line"><span class="comment"> <nonProxyHosts>local.net|some.host.com</nonProxyHosts></span></span><br><span class="line"><span class="comment"> </proxy></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">proxies</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- servers</span></span><br><span class="line"><span class="comment"> | This is a list of authentication profiles, keyed by the server-id used within the system.</span></span><br><span class="line"><span class="comment"> | Authentication profiles can be used whenever maven must make a connection to a remote server.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">servers</span>></span></span><br><span class="line"> <span class="comment"><!-- server</span></span><br><span class="line"><span class="comment"> | Specifies the authentication information to use when connecting to a particular server, identified by</span></span><br><span class="line"><span class="comment"> | a unique name within the system (referred to by the 'id' attribute below).</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> You should either specify username/password OR privateKey/passphrase, since these pairings are</span></span><br><span class="line"><span class="comment"> | used together.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <server></span></span><br><span class="line"><span class="comment"> <id>deploymentRepo</id></span></span><br><span class="line"><span class="comment"> <username>repouser</username></span></span><br><span class="line"><span class="comment"> <password>repopwd</password></span></span><br><span class="line"><span class="comment"> </server></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Another sample, using keys to authenticate.</span></span><br><span class="line"><span class="comment"> <server></span></span><br><span class="line"><span class="comment"> <id>siteServer</id></span></span><br><span class="line"><span class="comment"> <privateKey>/path/to/private/key</privateKey></span></span><br><span class="line"><span class="comment"> <passphrase>optional; leave empty if not used.</passphrase></span></span><br><span class="line"><span class="comment"> </server></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"></<span class="name">servers</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- mirrors</span></span><br><span class="line"><span class="comment"> | This is a list of mirrors to be used in downloading artifacts from remote repositories.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | It works like this: a POM may declare a repository to use in resolving certain artifacts.</span></span><br><span class="line"><span class="comment"> | However, this repository may have problems with heavy traffic at times, so people have mirrored</span></span><br><span class="line"><span class="comment"> | it to several places.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | That repository definition will have a unique id, so we can create a mirror reference for that</span></span><br><span class="line"><span class="comment"> | repository, to be used as an alternate download site. The mirror site will be the preferred</span></span><br><span class="line"><span class="comment"> | server for that repository.</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">mirrors</span>></span></span><br><span class="line"> <span class="comment"><!-- mirror</span></span><br><span class="line"><span class="comment"> | Specifies a repository mirror site to use instead of a given repository. The repository that</span></span><br><span class="line"><span class="comment"> | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used</span></span><br><span class="line"><span class="comment"> | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <mirror></span></span><br><span class="line"><span class="comment"> <id>mirrorId</id></span></span><br><span class="line"><span class="comment"> <mirrorOf>repositoryId</mirrorOf></span></span><br><span class="line"><span class="comment"> <name>Human Readable Name for this Mirror.</name></span></span><br><span class="line"><span class="comment"> <url>http://my.repository.com/repo/path</url></span></span><br><span class="line"><span class="comment"> </mirror></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="comment"><!--<mirror></span></span><br><span class="line"><span class="comment"> <id>maven-default-http-blocker</id></span></span><br><span class="line"><span class="comment"> <mirrorOf>external:http:*</mirrorOf></span></span><br><span class="line"><span class="comment"> <name>Pseudo repository to mirror external repositories initially using HTTP.</name></span></span><br><span class="line"><span class="comment"> <url>http://0.0.0.0/</url></span></span><br><span class="line"><span class="comment"> <blocked>true</blocked></span></span><br><span class="line"><span class="comment"> </mirror>--></span></span><br><span class="line"> <span class="tag"><<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">id</span>></span>nexus-aliyun<span class="tag"></<span class="name">id</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">mirrorOf</span>></span>central<span class="tag"></<span class="name">mirrorOf</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">name</span>></span>Nexus aliyun<span class="tag"></<span class="name">name</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">url</span>></span>http://maven.aliyun.com/nexus/content/groups/public<span class="tag"></<span class="name">url</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirrors</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- profiles</span></span><br><span class="line"><span class="comment"> | This is a list of profiles which can be activated in a variety of ways, and which can modify</span></span><br><span class="line"><span class="comment"> | the build process. Profiles provided in the settings.xml are intended to provide local machine-</span></span><br><span class="line"><span class="comment"> | specific paths and repository locations which allow the build to work in the local environment.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | For example, if you have an integration testing plugin - like cactus - that needs to know where</span></span><br><span class="line"><span class="comment"> | your Tomcat instance is installed, you can provide a variable here such that the variable is</span></span><br><span class="line"><span class="comment"> | dereferenced during the build process to configure the cactus plugin.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles</span></span><br><span class="line"><span class="comment"> | section of this document (settings.xml) - will be discussed later. Another way essentially</span></span><br><span class="line"><span class="comment"> | relies on the detection of a system property, either matching a particular value for the property,</span></span><br><span class="line"><span class="comment"> | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a</span></span><br><span class="line"><span class="comment"> | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.</span></span><br><span class="line"><span class="comment"> | Finally, the list of active profiles can be specified directly from the command line.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> For profiles defined in the settings.xml, you are restricted to specifying only artifact</span></span><br><span class="line"><span class="comment"> | repositories, plugin repositories, and free-form properties to be used as configuration</span></span><br><span class="line"><span class="comment"> | variables for plugins in the POM.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> |--></span></span><br><span class="line"> <span class="tag"><<span class="name">profiles</span>></span></span><br><span class="line"> <span class="comment"><!-- profile</span></span><br><span class="line"><span class="comment"> | Specifies a set of introductions to the build process, to be activated using one or more of the</span></span><br><span class="line"><span class="comment"> | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/></span></span><br><span class="line"><span class="comment"> | or the command line, profiles have to have an ID that is unique.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | An encouraged best practice for profile identification is to use a consistent naming convention</span></span><br><span class="line"><span class="comment"> | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.</span></span><br><span class="line"><span class="comment"> | This will make it more intuitive to understand what the set of introduced profiles is attempting</span></span><br><span class="line"><span class="comment"> | to accomplish, particularly when you only have a list of profile id's for debug.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.</span></span><br><span class="line"><span class="comment"> <profile></span></span><br><span class="line"><span class="comment"> <id>jdk-1.4</id></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <activation></span></span><br><span class="line"><span class="comment"> <jdk>1.4</jdk></span></span><br><span class="line"><span class="comment"> </activation></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <repositories></span></span><br><span class="line"><span class="comment"> <repository></span></span><br><span class="line"><span class="comment"> <id>jdk14</id></span></span><br><span class="line"><span class="comment"> <name>Repository for JDK 1.4 builds</name></span></span><br><span class="line"><span class="comment"> <url>http://www.myhost.com/maven/jdk14</url></span></span><br><span class="line"><span class="comment"> <layout>default</layout></span></span><br><span class="line"><span class="comment"> <snapshotPolicy>always</snapshotPolicy></span></span><br><span class="line"><span class="comment"> </repository></span></span><br><span class="line"><span class="comment"> </repositories></span></span><br><span class="line"><span class="comment"> </profile></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!--</span></span><br><span class="line"><span class="comment"> | Here is another profile, activated by the system property 'target-env' with a value of 'dev',</span></span><br><span class="line"><span class="comment"> | which provides a specific path to the Tomcat instance. To use this, your plugin configuration</span></span><br><span class="line"><span class="comment"> | might hypothetically look like:</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | ...</span></span><br><span class="line"><span class="comment"> | <plugin></span></span><br><span class="line"><span class="comment"> | <groupId>org.myco.myplugins</groupId></span></span><br><span class="line"><span class="comment"> | <artifactId>myplugin</artifactId></span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <configuration></span></span><br><span class="line"><span class="comment"> | <tomcatLocation>${tomcatPath}</tomcatLocation></span></span><br><span class="line"><span class="comment"> | </configuration></span></span><br><span class="line"><span class="comment"> | </plugin></span></span><br><span class="line"><span class="comment"> | ...</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> | <span class="doctag">NOTE:</span> If you just wanted to inject this configuration whenever someone set 'target-env' to</span></span><br><span class="line"><span class="comment"> | anything, you could just leave off the <value/> inside the activation-property.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <profile></span></span><br><span class="line"><span class="comment"> <id>env-dev</id></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <activation></span></span><br><span class="line"><span class="comment"> <property></span></span><br><span class="line"><span class="comment"> <name>target-env</name></span></span><br><span class="line"><span class="comment"> <value>dev</value></span></span><br><span class="line"><span class="comment"> </property></span></span><br><span class="line"><span class="comment"> </activation></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> <properties></span></span><br><span class="line"><span class="comment"> <tomcatPath>/path/to/tomcat/instance</tomcatPath></span></span><br><span class="line"><span class="comment"> </properties></span></span><br><span class="line"><span class="comment"> </profile></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"> <span class="tag"><<span class="name">profile</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">id</span>></span>jdk-1.8<span class="tag"></<span class="name">id</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">activation</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">activeByDefault</span>></span>true<span class="tag"></<span class="name">activeByDefault</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">jdk</span>></span>1.8<span class="tag"></<span class="name">jdk</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">activation</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maven.compiler.source</span>></span>1.8<span class="tag"></<span class="name">maven.compiler.source</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maven.compiler.target</span>></span>1.8<span class="tag"></<span class="name">maven.compiler.target</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maven.compiler.compilerVersion</span>></span>1.8<span class="tag"></<span class="name">maven.compiler.compilerVersion</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">profile</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">profiles</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- activeProfiles</span></span><br><span class="line"><span class="comment"> | List of profiles that are active for all builds.</span></span><br><span class="line"><span class="comment"> |</span></span><br><span class="line"><span class="comment"> <activeProfiles></span></span><br><span class="line"><span class="comment"> <activeProfile>alwaysActiveProfile</activeProfile></span></span><br><span class="line"><span class="comment"> <activeProfile>anotherAlwaysActiveProfile</activeProfile></span></span><br><span class="line"><span class="comment"> </activeProfiles></span></span><br><span class="line"><span class="comment"> --></span></span><br><span class="line"><span class="tag"></<span class="name">settings</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="Linux中使用-去掉了注释"><a href="#Linux中使用-去掉了注释" class="headerlink" title="Linux中使用,去掉了注释"></a>Linux中使用,去掉了注释</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">settings</span> <span class="attr">xmlns</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.0.0"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"</span>></span></span><br><span class="line"> </span><br><span class="line"><span class="tag"><<span class="name">localRepository</span>></span>/root/.m2/repository<span class="tag"></<span class="name">localRepository</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">pluginGroups</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"></<span class="name">pluginGroups</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">proxies</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"></<span class="name">proxies</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">servers</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"></<span class="name">servers</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">mirrors</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"><<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">id</span>></span>alimaven<span class="tag"></<span class="name">id</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">mirrorOf</span>></span>central<span class="tag"></<span class="name">mirrorOf</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">name</span>></span>aliyun maven<span class="tag"></<span class="name">name</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">url</span>></span>http://maven.aliyun.com/nexus/content/repositories/central/<span class="tag"></<span class="name">url</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirror</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">mirrors</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">profiles</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"></<span class="name">profiles</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">settings</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>代码注释模板</title>
|
||
<url>/posts/1727.html</url>
|
||
<content><![CDATA[<p>VScode插件推荐:<strong>koroFileHeader</strong> (用于生成文件头部注释和函数注释的插件)</p>
|
||
<p>完整的模板大全:<a href="https://github.com/OBKoro1/koro1FileHeader/wiki/%E4%BD%9B%E7%A5%96%E4%BF%9D%E4%BD%91%E6%B0%B8%E6%97%A0BUG%E3%80%81%E7%A5%9E%E5%85%BD%E6%8A%A4%E4%BD%93%E3%80%81%E6%B3%A8%E9%87%8A%E5%9B%BE%E6%A1%88">佛祖保佑永无BUG、神兽护体、注释图案 · OBKoro1/koro1FileHeader Wiki (github.com)</a></p>
|
||
<p><img src="/pictures/image-20230912105041466.png" alt="image-20230912105041466"></p>
|
||
<h2 id="佛祖保佑一"><a href="#佛祖保佑一" class="headerlink" title="佛祖保佑一"></a>佛祖保佑一</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment">////////////////////////////////////////////////////////////////////</span></span><br><span class="line"><span class="comment">// _ooOoo_ //</span></span><br><span class="line"><span class="comment">// o8888888o //</span></span><br><span class="line"><span class="comment">// 88" . "88 //</span></span><br><span class="line"><span class="comment">// (| ^_^ |) //</span></span><br><span class="line"><span class="comment">// O\ = /O //</span></span><br><span class="line"><span class="comment">// ____/`---'\____ //</span></span><br><span class="line"><span class="comment">// .' \\| |// `. //</span></span><br><span class="line"><span class="comment">// / \\||| : |||// \ //</span></span><br><span class="line"><span class="comment">// / _||||| -:- |||||- \ //</span></span><br><span class="line"><span class="comment">// | | \\\ - /// | | //</span></span><br><span class="line"><span class="comment">// | \_| ''\---/'' | | //</span></span><br><span class="line"><span class="comment">// \ .-\__ `-` ___/-. / //</span></span><br><span class="line"><span class="comment">// ___`. .' /--.--\ `. . ___ //</span></span><br><span class="line"><span class="comment">// ."" '< `.___\_<|>_/___.' >'"". //</span></span><br><span class="line"><span class="comment">// | | : `- \`.;`\ _ /`;.`/ - ` : | | //</span></span><br><span class="line"><span class="comment">// \ \ `-. \_ __\ /__ _/ .-` / / //</span></span><br><span class="line"><span class="comment">// ========`-.____`-.___\_____/___.-`____.-'======== //</span></span><br><span class="line"><span class="comment">// `=---=' //</span></span><br><span class="line"><span class="comment">// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //</span></span><br><span class="line"><span class="comment">// 佛祖保佑 永无BUG 永不修改 //</span></span><br><span class="line"><span class="comment">////////////////////////////////////////////////////////////////////</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="佛祖保佑一-1"><a href="#佛祖保佑一-1" class="headerlink" title="佛祖保佑一"></a>佛祖保佑一</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * _ooOoo_</span></span><br><span class="line"><span class="comment"> * o8888888o</span></span><br><span class="line"><span class="comment"> * 88" . "88</span></span><br><span class="line"><span class="comment"> * (| -_- |)</span></span><br><span class="line"><span class="comment"> * O\ = /O</span></span><br><span class="line"><span class="comment"> * ____/`---'\____</span></span><br><span class="line"><span class="comment"> * .' \\| |// `.</span></span><br><span class="line"><span class="comment"> * / \\||| : |||// \</span></span><br><span class="line"><span class="comment"> * / _||||| -:- |||||- \</span></span><br><span class="line"><span class="comment"> * | | \\\ - /// | |</span></span><br><span class="line"><span class="comment"> * | \_| ''\---/'' | |</span></span><br><span class="line"><span class="comment"> * \ .-\__ `-` ___/-. /</span></span><br><span class="line"><span class="comment"> * ___`. .' /--.--\ `. . __</span></span><br><span class="line"><span class="comment"> * ."" '< `.___\_<|>_/___.' >'"".</span></span><br><span class="line"><span class="comment"> * | | : `- \`.;`\ _ /`;.`/ - ` : | |</span></span><br><span class="line"><span class="comment"> * \ \ `-. \_ __\ /__ _/ .-` / /</span></span><br><span class="line"><span class="comment"> * ======`-.____`-.___\_____/___.-`____.-'======</span></span><br><span class="line"><span class="comment"> * `=---='</span></span><br><span class="line"><span class="comment"> * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span></span><br><span class="line"><span class="comment"> * 佛祖保佑 永无BUG</span></span><br><span class="line"><span class="comment"> * 佛曰:</span></span><br><span class="line"><span class="comment"> * 写字楼里写字间,写字间里程序员;</span></span><br><span class="line"><span class="comment"> * 程序人员写程序,又拿程序换酒钱。</span></span><br><span class="line"><span class="comment"> * 酒醒只在网上坐,酒醉还来网下眠;</span></span><br><span class="line"><span class="comment"> * 酒醉酒醒日复日,网上网下年复年。</span></span><br><span class="line"><span class="comment"> * 但愿老死电脑间,不愿鞠躬老板前;</span></span><br><span class="line"><span class="comment"> * 奔驰宝马贵者趣,公交自行程序员。</span></span><br><span class="line"><span class="comment"> * 别人笑我忒疯癫,我笑自己命太贱;</span></span><br><span class="line"><span class="comment"> * 不见满街漂亮妹,哪个归得程序员?</span></span><br><span class="line"><span class="comment">*/</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="草泥马一"><a href="#草泥马一" class="headerlink" title="草泥马一"></a>草泥马一</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * ┏┓ ┏┓+ +</span></span><br><span class="line"><span class="comment"> * ┏┛┻━━━┛┻┓ + +</span></span><br><span class="line"><span class="comment"> * ┃ ┃ </span></span><br><span class="line"><span class="comment"> * ┃ ━ ┃ ++ + + +</span></span><br><span class="line"><span class="comment"> * ████━████ ┃+</span></span><br><span class="line"><span class="comment"> * ┃ ┃ +</span></span><br><span class="line"><span class="comment"> * ┃ ┻ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃ + +</span></span><br><span class="line"><span class="comment"> * ┗━┓ ┏━┛</span></span><br><span class="line"><span class="comment"> * ┃ ┃ </span></span><br><span class="line"><span class="comment"> * ┃ ┃ + + + +</span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃ + 神兽保佑</span></span><br><span class="line"><span class="comment"> * ┃ ┃ 代码无bug </span></span><br><span class="line"><span class="comment"> * ┃ ┃ + </span></span><br><span class="line"><span class="comment"> * ┃ ┗━━━┓ + +</span></span><br><span class="line"><span class="comment"> * ┃ ┣┓</span></span><br><span class="line"><span class="comment"> * ┃ ┏┛</span></span><br><span class="line"><span class="comment"> * ┗┓┓┏━┳┓┏┛ + + + +</span></span><br><span class="line"><span class="comment"> * ┃┫┫ ┃┫┫</span></span><br><span class="line"><span class="comment"> * ┗┻┛ ┗┻┛+ + + +</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="草泥马二"><a href="#草泥马二" class="headerlink" title="草泥马二"></a>草泥马二</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * ┏┓ ┏┓</span></span><br><span class="line"><span class="comment"> * ┏┛┻━━━┛┻┓</span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ━ ┃</span></span><br><span class="line"><span class="comment"> * ┃ > < ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃... ⌒ ... ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┗━┓ ┏━┛</span></span><br><span class="line"><span class="comment"> * ┃ ┃ </span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┃ 神兽保佑</span></span><br><span class="line"><span class="comment"> * ┃ ┃ 代码无bug </span></span><br><span class="line"><span class="comment"> * ┃ ┃</span></span><br><span class="line"><span class="comment"> * ┃ ┗━━━┓</span></span><br><span class="line"><span class="comment"> * ┃ ┣┓</span></span><br><span class="line"><span class="comment"> * ┃ ┏┛</span></span><br><span class="line"><span class="comment"> * ┗┓┓┏━┳┓┏┛</span></span><br><span class="line"><span class="comment"> * ┃┫┫ ┃┫┫</span></span><br><span class="line"><span class="comment"> * ┗┻┛ ┗┻┛</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="全键盘"><a href="#全键盘" class="headerlink" title="全键盘"></a>全键盘</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * ┌───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┬───┐ ┌───┬───┬───┐</span></span><br><span class="line"><span class="comment"> * │Esc│ │ F1│ F2│ F3│ F4│ │ F5│ F6│ F7│ F8│ │ F9│F10│F11│F12│ │P/S│S L│P/B│ ┌┐ ┌┐ ┌┐</span></span><br><span class="line"><span class="comment"> * └───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┴───┘ └───┴───┴───┘ └┘ └┘ └┘</span></span><br><span class="line"><span class="comment"> * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐ ┌───┬───┬───┐ ┌───┬───┬───┬───┐</span></span><br><span class="line"><span class="comment"> * │~ `│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ BacSp │ │Ins│Hom│PUp│ │N L│ / │ * │ - │</span></span><br><span class="line"><span class="comment"> * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤ ├───┼───┼───┤ ├───┼───┼───┼───┤</span></span><br><span class="line"><span class="comment"> * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│ | \ │ │Del│End│PDn│ │ 7 │ 8 │ 9 │ │</span></span><br><span class="line"><span class="comment"> * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┴───┴───┘ ├───┼───┼───┤ + │</span></span><br><span class="line"><span class="comment"> * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter │ │ 4 │ 5 │ 6 │ │</span></span><br><span class="line"><span class="comment"> * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤ ┌───┐ ├───┼───┼───┼───┤</span></span><br><span class="line"><span class="comment"> * │ Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift │ │ ↑ │ │ 1 │ 2 │ 3 │ │</span></span><br><span class="line"><span class="comment"> * ├─────┬──┴─┬─┴──┬┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤ ┌───┼───┼───┐ ├───┴───┼───┤ E││</span></span><br><span class="line"><span class="comment"> * │ Ctrl│ │Alt │ Space │ Alt│ │ │Ctrl│ │ ← │ ↓ │ → │ │ 0 │ . │←─┘│</span></span><br><span class="line"><span class="comment"> * └─────┴────┴────┴───────────────────────┴────┴────┴────┴────┘ └───┴───┴───┘ └───────┴───┴───┘</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="小键盘"><a href="#小键盘" class="headerlink" title="小键盘"></a>小键盘</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * ┌─────────────────────────────────────────────────────────────┐</span></span><br><span class="line"><span class="comment"> * │┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐│</span></span><br><span class="line"><span class="comment"> * ││Esc│!1 │@2 │#3 │$4 │%5 │^6 │&7 │*8 │(9 │)0 │_- │+= │|\ │`~ ││</span></span><br><span class="line"><span class="comment"> * │├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤│</span></span><br><span class="line"><span class="comment"> * ││ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{[ │}] │ BS ││</span></span><br><span class="line"><span class="comment"> * │├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤│</span></span><br><span class="line"><span class="comment"> * ││ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter ││</span></span><br><span class="line"><span class="comment"> * │├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤│</span></span><br><span class="line"><span class="comment"> * ││ Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shift │Fn ││</span></span><br><span class="line"><span class="comment"> * │└─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴┬─────┴───┘│</span></span><br><span class="line"><span class="comment"> * │ │Fn │ Alt │ Space │ Alt │Win│ HHKB │</span></span><br><span class="line"><span class="comment"> * │ └───┴─────┴───────────────────────┴─────┴───┘ │</span></span><br><span class="line"><span class="comment"> * └─────────────────────────────────────────────────────────────┘</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>耶稣</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * |~~~~~~~|</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * |~.\\\_\~~~~~~~~~~~~~~xx~~~ ~~~~~~~~~~~~~~~~~~~~~/_//;~|</span></span><br><span class="line"><span class="comment"> * | \ o \_ ,XXXXX), _..-~ o / |</span></span><br><span class="line"><span class="comment"> * | ~~\ ~-. XXXXX`)))), _.--~~ .-~~~ |</span></span><br><span class="line"><span class="comment"> * ~~~~~~~`\ ~\~~~XXX' _/ ';)) |~~~~~~..-~ _.-~ ~~~~~~~</span></span><br><span class="line"><span class="comment"> * `\ ~~--`_\~\, ;;;\)__.---.~~~ _.-~</span></span><br><span class="line"><span class="comment"> * ~-. `:;;/;; \ _..-~~</span></span><br><span class="line"><span class="comment"> * ~-._ `'' /-~-~</span></span><br><span class="line"><span class="comment"> * `\ / /</span></span><br><span class="line"><span class="comment"> * | , | |</span></span><br><span class="line"><span class="comment"> * | ' / |</span></span><br><span class="line"><span class="comment"> * \/; |</span></span><br><span class="line"><span class="comment"> * ;; |</span></span><br><span class="line"><span class="comment"> * `; . |</span></span><br><span class="line"><span class="comment"> * |~~~-----.....|</span></span><br><span class="line"><span class="comment"> * | \ \</span></span><br><span class="line"><span class="comment"> * | /\~~--...__ |</span></span><br><span class="line"><span class="comment"> * (| `\ __-\|</span></span><br><span class="line"><span class="comment"> * || \_ /~ |</span></span><br><span class="line"><span class="comment"> * |) \~-' |</span></span><br><span class="line"><span class="comment"> * | | \ '</span></span><br><span class="line"><span class="comment"> * | | \ :</span></span><br><span class="line"><span class="comment"> * \ | | |</span></span><br><span class="line"><span class="comment"> * | ) ( )</span></span><br><span class="line"><span class="comment"> * \ /; /\ |</span></span><br><span class="line"><span class="comment"> * | |/ |</span></span><br><span class="line"><span class="comment"> * | | |</span></span><br><span class="line"><span class="comment"> * \ .' ||</span></span><br><span class="line"><span class="comment"> * | | | |</span></span><br><span class="line"><span class="comment"> * ( | | |</span></span><br><span class="line"><span class="comment"> * | \ \ |</span></span><br><span class="line"><span class="comment"> * || o `.)|</span></span><br><span class="line"><span class="comment"> * |`\\) |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> * | |</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="美女"><a href="#美女" class="headerlink" title="美女"></a>美女</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * .::::.</span></span><br><span class="line"><span class="comment"> * .::::::::.</span></span><br><span class="line"><span class="comment"> * :::::::::::</span></span><br><span class="line"><span class="comment"> * ..:::::::::::'</span></span><br><span class="line"><span class="comment"> * '::::::::::::'</span></span><br><span class="line"><span class="comment"> * .::::::::::</span></span><br><span class="line"><span class="comment"> * '::::::::::::::..</span></span><br><span class="line"><span class="comment"> * ..::::::::::::.</span></span><br><span class="line"><span class="comment"> * ``::::::::::::::::</span></span><br><span class="line"><span class="comment"> * ::::``:::::::::' .:::.</span></span><br><span class="line"><span class="comment"> * ::::' ':::::' .::::::::.</span></span><br><span class="line"><span class="comment"> * .::::' :::: .:::::::'::::.</span></span><br><span class="line"><span class="comment"> * .:::' ::::: .:::::::::' ':::::.</span></span><br><span class="line"><span class="comment"> * .::' :::::.:::::::::' ':::::.</span></span><br><span class="line"><span class="comment"> * .::' ::::::::::::::' ``::::.</span></span><br><span class="line"><span class="comment"> * ...::: ::::::::::::' ``::.</span></span><br><span class="line"><span class="comment"> * ````':. ':::::::::' ::::..</span></span><br><span class="line"><span class="comment"> * '.:::::' ':'````..</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="程序员之歌"><a href="#程序员之歌" class="headerlink" title="程序员之歌"></a>程序员之歌</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 江城子 . 程序员之歌</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * 十年生死两茫茫,写程序,到天亮。</span></span><br><span class="line"><span class="comment"> * 千行代码,Bug何处藏。</span></span><br><span class="line"><span class="comment"> * 纵使上线又怎样,朝令改,夕断肠。</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * 领导每天新想法,天天改,日日忙。</span></span><br><span class="line"><span class="comment"> * 相顾无言,惟有泪千行。</span></span><br><span class="line"><span class="comment"> * 每晚灯火阑珊处,夜难寐,加班狂。</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="龙图腾"><a href="#龙图腾" class="headerlink" title="龙图腾"></a>龙图腾</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * ......................................&&.........................</span></span><br><span class="line"><span class="comment"> * ....................................&&&..........................</span></span><br><span class="line"><span class="comment"> * .................................&&&&............................</span></span><br><span class="line"><span class="comment"> * ...............................&&&&..............................</span></span><br><span class="line"><span class="comment"> * .............................&&&&&&..............................</span></span><br><span class="line"><span class="comment"> * ...........................&&&&&&....&&&..&&&&&&&&&&&&&&&........</span></span><br><span class="line"><span class="comment"> * ..................&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&..............</span></span><br><span class="line"><span class="comment"> * ................&...&&&&&&&&&&&&&&&&&&&&&&&&&&&&.................</span></span><br><span class="line"><span class="comment"> * .......................&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&.........</span></span><br><span class="line"><span class="comment"> * ...................&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&...............</span></span><br><span class="line"><span class="comment"> * ..................&&& &&&&&&&&&&&&&&&&&&&&&&&&&&&&&............</span></span><br><span class="line"><span class="comment"> * ...............&&&&&@ &&&&&&&&&&..&&&&&&&&&&&&&&&&&&&...........</span></span><br><span class="line"><span class="comment"> * ..............&&&&&&&&&&&&&&&.&&....&&&&&&&&&&&&&..&&&&&.........</span></span><br><span class="line"><span class="comment"> * ..........&&&&&&&&&&&&&&&&&&...&.....&&&&&&&&&&&&&...&&&&........</span></span><br><span class="line"><span class="comment"> * ........&&&&&&&&&&&&&&&&&&&.........&&&&&&&&&&&&&&&....&&&.......</span></span><br><span class="line"><span class="comment"> * .......&&&&&&&&.....................&&&&&&&&&&&&&&&&.....&&......</span></span><br><span class="line"><span class="comment"> * ........&&&&&.....................&&&&&&&&&&&&&&&&&&.............</span></span><br><span class="line"><span class="comment"> * ..........&...................&&&&&&&&&&&&&&&&&&&&&&&............</span></span><br><span class="line"><span class="comment"> * ................&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&............</span></span><br><span class="line"><span class="comment"> * ..................&&&&&&&&&&&&&&&&&&&&&&&&&&&&..&&&&&............</span></span><br><span class="line"><span class="comment"> * ..............&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&....&&&&&............</span></span><br><span class="line"><span class="comment"> * ...........&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&......&&&&............</span></span><br><span class="line"><span class="comment"> * .........&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&.........&&&&............</span></span><br><span class="line"><span class="comment"> * .......&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&...........&&&&............</span></span><br><span class="line"><span class="comment"> * ......&&&&&&&&&&&&&&&&&&&...&&&&&&...............&&&.............</span></span><br><span class="line"><span class="comment"> * .....&&&&&&&&&&&&&&&&............................&&..............</span></span><br><span class="line"><span class="comment"> * ....&&&&&&&&&&&&&&&.................&&...........................</span></span><br><span class="line"><span class="comment"> * ...&&&&&&&&&&&&&&&.....................&&&&......................</span></span><br><span class="line"><span class="comment"> * ...&&&&&&&&&&.&&&........................&&&&&...................</span></span><br><span class="line"><span class="comment"> * ..&&&&&&&&&&&..&&..........................&&&&&&&...............</span></span><br><span class="line"><span class="comment"> * ..&&&&&&&&&&&&...&............&&&.....&&&&...&&&&&&&.............</span></span><br><span class="line"><span class="comment"> * ..&&&&&&&&&&&&&.................&&&.....&&&&&&&&&&&&&&...........</span></span><br><span class="line"><span class="comment"> * ..&&&&&&&&&&&&&&&&..............&&&&&&&&&&&&&&&&&&&&&&&&.........</span></span><br><span class="line"><span class="comment"> * ..&&.&&&&&&&&&&&&&&&&&.........&&&&&&&&&&&&&&&&&&&&&&&&&&&.......</span></span><br><span class="line"><span class="comment"> * ...&&..&&&&&&&&&&&&.........&&&&&&&&&&&&&&&&...&&&&&&&&&&&&......</span></span><br><span class="line"><span class="comment"> * ....&..&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&...........&&&&&&&&.....</span></span><br><span class="line"><span class="comment"> * .......&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&..............&&&&&&&....</span></span><br><span class="line"><span class="comment"> * .......&&&&&.&&&&&&&&&&&&&&&&&&..&&&&&&&&...&..........&&&&&&....</span></span><br><span class="line"><span class="comment"> * ........&&&.....&&&&&&&&&&&&&.....&&&&&&&&&&...........&..&&&&...</span></span><br><span class="line"><span class="comment"> * .......&&&........&&&.&&&&&&&&&.....&&&&&.................&&&&...</span></span><br><span class="line"><span class="comment"> * .......&&&...............&&&&&&&.......&&&&&&&&............&&&...</span></span><br><span class="line"><span class="comment"> * ........&&...................&&&&&&.........................&&&..</span></span><br><span class="line"><span class="comment"> * .........&.....................&&&&........................&&....</span></span><br><span class="line"><span class="comment"> * ...............................&&&.......................&&......</span></span><br><span class="line"><span class="comment"> * ................................&&......................&&.......</span></span><br><span class="line"><span class="comment"> * .................................&&..............................</span></span><br><span class="line"><span class="comment"> * ..................................&..............................</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="蝙蝠"><a href="#蝙蝠" class="headerlink" title="蝙蝠"></a>蝙蝠</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * ___====-_ _-====___</span></span><br><span class="line"><span class="comment"> * _--^^^#####// \\#####^^^--_</span></span><br><span class="line"><span class="comment"> * _-^##########// ( ) \\##########^-_</span></span><br><span class="line"><span class="comment"> * -############// |\^^/| \\############-</span></span><br><span class="line"><span class="comment"> * _/############// (@::@) \############\_</span></span><br><span class="line"><span class="comment"> * /#############(( \\// ))#############\</span></span><br><span class="line"><span class="comment"> * -###############\\ (oo) //###############-</span></span><br><span class="line"><span class="comment"> * -#################\\ / VV \ //#################-</span></span><br><span class="line"><span class="comment"> * -###################\\/ \//###################-</span></span><br><span class="line"><span class="comment"> * _#/|##########/\######( /\ )######/\##########|\#_</span></span><br><span class="line"><span class="comment"> * |/ |#/\#/\#/\/ \#/\##\ | | /##/\#/ \/\#/\#/\#| \|</span></span><br><span class="line"><span class="comment"> * ` |/ V V ` V \#\| | | |/#/ V ' V V \| '</span></span><br><span class="line"><span class="comment"> * ` ` ` ` / | | | | \ ' ' ' '</span></span><br><span class="line"><span class="comment"> * ( | | | | )</span></span><br><span class="line"><span class="comment"> * __\ | | | | /__</span></span><br><span class="line"><span class="comment"> * (vvv(VVV)(VVV)vvv)</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * 神兽保佑 永无BUG</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="喷火龙"><a href="#喷火龙" class="headerlink" title="喷火龙"></a>喷火龙</h2><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * __----~~~~~~~~~~~------___</span></span><br><span class="line"><span class="comment"> * . . ~~//====...... __--~ ~~</span></span><br><span class="line"><span class="comment"> * -. \_|// |||\\ ~~~~~~::::... /~</span></span><br><span class="line"><span class="comment"> * ___-==_ _-~o~ \/ ||| \\ _/~~-</span></span><br><span class="line"><span class="comment"> * __---~~~.==~||\=_ -_--~/_-~|- |\\ \\ _/~</span></span><br><span class="line"><span class="comment"> * _-~~ .=~ | \\-_ '-~7 /- / || \ /</span></span><br><span class="line"><span class="comment"> * .~ .~ | \\ -_ / /- / || \ /</span></span><br><span class="line"><span class="comment"> * / ____ / | \\ ~-_/ /|- _/ .|| \ /</span></span><br><span class="line"><span class="comment"> * |~~ ~~|--~~~~--_ \ ~==-/ | \~--===~~ .\</span></span><br><span class="line"><span class="comment"> * ' ~-| /| |-~\~~ __--~~</span></span><br><span class="line"><span class="comment"> * |-~~-_/ | | ~\_ _-~ /\</span></span><br><span class="line"><span class="comment"> * / \ \__ \/~ \__</span></span><br><span class="line"><span class="comment"> * _--~ _/ | .-~~____--~-/ ~~==.</span></span><br><span class="line"><span class="comment"> * ((->/~ '.|||' -_| ~~-/ , . _||</span></span><br><span class="line"><span class="comment"> * -_ ~\ ~~---l__i__i__i--~~_/</span></span><br><span class="line"><span class="comment"> * _-~-__ ~) \--______________--~~</span></span><br><span class="line"><span class="comment"> * //.-~~~-~_--~- |-------~~~~~~~~</span></span><br><span class="line"><span class="comment"> * //.-~~~--\</span></span><br><span class="line"><span class="comment"> * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></span><br><span class="line"><span class="comment"> * </span></span><br><span class="line"><span class="comment"> * 神兽保佑 永无BUG</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>个人</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>注释模板</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>任务进度</title>
|
||
<url>/posts/24183.html</url>
|
||
<content><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="Error" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
|
||
<script id="hbeData" type="hbeData" data-hmacdigest="4aa17e22ad18f158419cdbabc629e7a84e4a9108ac14a70804e7a28ae1b3e386">fecdcfecb9c8b79b78911ccdbd3ae5bd4bf1752c3995dca8dddb8bdd5a0e4976d69a3d7b9b4fb12c8307d795a170cb0078efd41b5fcea5f9cf46a5246aca74da6445577771ef1faaee7e4e079792799a4dce2928bfb48a932fbaae7f71af40346ec61fd31eacd31b3945d470dcbead5c094fd98d68ade823544ce0a5aabe79506b4f3c1229f9b29c110d341289901d17ab07837ff1703f7deb801d9fbab496629eeff365d3e7072759d73ba8b12e0d7c9c78c241fa840561791152ddd9b344d8365e765c18857f585daf297f7b8440790aa4597cd1e4d5aebfaf38c43398b57a07feff6ba519b67993c9d42856e65e3c80d6f1504fe6bfca50f71a2a5ed47fcf53c2721b1b74fa7a9e30e7360191fd911718f2c77ee7663f8a413119d2b2c91e6472ef9b7800765baf314a17a04e1f2fc9f5c429b1e20aff33193f102899836bf09da7cd2851078737858d6fc3602335118faf0ccc92fe918a30c305c45c695fb3b03bc7ca564655757136c20d8274c379fb9d5c1a02f3e9f565b3db9f225bbd7cef5cdc2163a3e8aa7780b249e767652a6b374b071eeff8283de18ca781176997daf13b339703b8f073ffa074094b789a1460be2f91f66f5a94e33ad9659382b0d5f1e5a33394845477e0bc9f6477f695ea44aa43a3df0906bd0ebccc5600d9f0b525abf82791bf42391e75ee5e0d6e697c571438e64785a9cc128e0876aa03105ccdc80057af238a9e3a5cc94b51610b096b3ec1c039cbb6faf2c688bbdbaae4c38f66e2afb377150ef0b60664736e244b29470f61e92fea3fd4437e484da0ee0686ddd6d5827425c75f5401e9b1addf9c83c887391868b5d1dcd83fd189518eefc30eed8999d43761e02e1b3c03591e918f62d6b4fc7f543caef0042a35f718d7dc0760040c4e9598788afcdcaf93ce97559a40cd2b5a7f4accb443907e8f242d47f39644d1369f5b07b268db0a62b6ba2619bc945e5ea911ea7a839c2c2d3c3e92dbfcd7ce01b20664c5f927b1f537378ab86e0fbe0579c373fda9733d9552010838575523e45f38331aa90ad5365899ea7547a0acf533c7e1f3c5b84c8edd3de5d138d72cbec5e5caf832706d01ef031bd7cafe6e7e317906b616ba30fca9881c73beb54fcf1537d2005f02986cc00565e0b9ab36c667f2dcd55dbaa26d40dcc130678230628b47aac8e33f91a86e30eaeb59cb18ca3c34c9ee6b3f6c83e960ef0bb2d0a5b83a80a8180cdd89141b0ed7bb0c9bbac313382bfca621f2c1c830dd466041eb8b3f124331b3f55e897672868a97af8dcf1be867e2fd935e865d4ab3c3eedc65293ce03b24f33e37ecd547f7366a495532a19bbc8e689fc78b1858cce3c397ac28c8ff95ccbf8bf8982fca120402efec72d2fdd12f7d8a06d4949af3063a41de5f9017d34a8fc13ce9dc2466f422c87bfda18e84d664801416d20819a51355cd866e3f3e543cedb75758886be7e94fa140aeb1058ec3e199a59a46cc2308368802ae4927c31b91cf22c9accff7eb290515b1c66f7bdf0c69da711edecc01b5d284964b98bf76af445b10fd2146a2aaef1803de1f3d918541e5d93dc0633eb7b8b50584912029637375f6b14b58355012882efabfba00e4143761051bbd1f9773301a2fa1ca8c1abf3ef12f2896cef4ca1656a7bce90a31fa4ab28036c908f972c1948a6dc8f0f183bf26b8ff60076ca71dec60fbe4a2241c43030093fd4dba74fa4635d8bf9c33aa2e09fba28cbffa23bcc7f91ead8c097415d1f9e841fd1a29507e188210ca9fe246d0f5752d7d6b0e9b7c089da220d223a4337099c2ed565b4b5aadbe504baedc18d63723ed7dbbcd2b947b91a35ed41e28ca884eaee3ff71ad6121ae5b91ce95f4242682069dcbe1e602b2bc33f68a9a36daac408973be1eb3703cf280a9392ca6dc6ff9af19349bd56e2b277a8e5a594893a6d614c4149612d71f7291a5391e3f27f14dfd03e17b6b0306fa739f02a95465062822dc5045deee74d1d59ed0fd281f129889fc146858672157a99b82350153d814b5dfcde50cd6ce4530108c897543162c5bce7eeb900023adcd3d42af93a968c2c4084b44e0d250bb29f5cbb1c66fc545159eaab106ca39aa330d03462cead206655f4c8b040dfca7c0ede93e91049295422528ed90e5999f13b0d6538d443420c19ae1eb789d1ebc3783e5e7780b5e7f16dd832971341e5411fe49efd9213b50a9d53be113343874025a6e0be09d14acbd1e171cc3d56c6efef2ad6f7bce0a6f278e074448802660348dc3ff16f5c8cc18da3a477240e5c22c76c6bb35dce5a68224d0786c4ad108c53bf1ea3138ddfb549c6c4737d7f448aaf778624bbee57145f677d71c08a19d8932708e8d9ac138a28cce10589eedd10510811d826f13ebaaebbff802ea0cb3a20c93800e3b1f07bb63d7fc8a0c3d63471899d66d8a34fa9d184646884f54d0f297d002b8418bb0e128bd857e1cac0aaecb65d4ac33c5d5c14671aefb66dbc4563ad647362ad25f3a9c0d920cbb9cabcc6541001eaaa668c0cc80b7d7495b404d3fd4510535d9a9c4075186751a9a8ea1ab652fd0b4eb57a390ee8d35ada0513db2bda83d1644d1a99196c312c0297cf2fcf1528e88095f712019fbc423dcd5065359ec46318dc43439ac364b7e2301ffd434de542325600a9c92db42c75768facddd04f1cf658ce7a878aebebd7d718a18080733619ac0b922e80d0ef24c3d3d219c7a084285d8ed770492153bd3fee4893e3f2566a9efbf444a7b9b947d6a8a2440e4e255ed61377a4d5b3384ba37edba0e962873d7abbb709239027fcd929770ff93eece3d04c4fc660053c7feae7f8d546181a0131eef17f2c63c234d7d74307f0cdaa71a9c3f61ed7260ae201909a7899c1e276ee485dd0cd52cd85f14be7612be5809598da51dbb293ba178b13587c624060800654b4c5ae8e8814f5a373f9230ecbc7ac28905ff2184744351c68cf398bb0d933edab2d559807dd0f06a204146e95c3b73eaf2ec3c3d54285b81f88fa183346adada9e5e46b93dc90cd9fa63b32a4b6380dd7787985423bfac4db3ac03f38840a67c1fafe23962701412779263d591a00f8ddc8718be30af0c1658ac7ae6f1529e47fb4a865f99590fed6bb76d18ea80894ad0c8498c38dccbf81bf9e9070c9d95f5f53b0ff063e8af22705ec78c4f7c586401b821b631461bfd240da3d27e644b3a903321d596a3806c3d06cc43ec63be72869d78d01ae09addd20c2da68fb7ad170a17eb75edda4ffdf99ca9f3546291e0c3e830b9ae9a0d781c41ce9805d1c8378a517d1c40f6d7570b0ef38cc0563c8ce48afbeac4fa9dc4a7e3173fc320914b8a355c9a3bc243ffe1a18a552f4dea0e577427278bd54e35c0325bc9552ae769668c77d9748c0b87d385da9a9ed0c6096245b35365c0c4a914e5eae0c8cd42ef3ad37b414b5a1446897587313b84847e50149c14abbed3c8816eb06da8d8cb9ee06d690f2fc55cf8bab47484d7d5fdfc238777423fa0cca57bb02a9ee0d6ecaf82ff1e7b3cace505eabec80a7920471ec67625e8cdfe0bc408a5cf8be582133cf55a760576b60817fd5bc0393a6205cf39b94194aadf77700c8563754525b3720e80a9165912f628d5833c90cf2cae46c88e68e1a91c3f8de88c3d420903b9b2804366700d54b0c11bc8d639d712dab3c47229497ecdcb8290861d4ff8138ef974d1e37aa959e38da7c033d3a65466167efe3a0009171fdde35f41282acb4308c7871d5e176f6283ca560c88d48df48dd8e28b089d0ed5542ceffdd111c0ad685a4d486ec7ff8947650b0128164b12d1780b53a89a6f97f458a6e12f1ba1dd68580aa05b83de1c97791988c7fc26471f7f01004dccddd1632afade9e39cd854a7df4808335cefe127ff2948225308241015b0819a766ba208f48b6ad5fbb54c8dbc421968c421df81db1ad0c3a45b8fcf93998e3821eefbe7068dfb26f594e8b1b4e61b3842064daed72db23da0445c769a3dd88036e8a83d63c389f3f3aba71aecc591078a9e03e14290cfd64e447622fba4e8bbc30e40fbbddb9a98410576f263efde0748872fdd25f867c9c32dc91f1f07ef58f87c25ad7e1348a37429d94e82088379649a18fda3194464e137ab1845f3d82b6118c7fc5599c175266c1bf20d04b8b67310586f6e2afeffcc8fffae22bf16653868e69de4f18455d7471c3779fd1a002dbaa6bc332d24f7058b31bb6b2eff5171cab2ac9fb66ef2fb9c0b1553aef95aa6d83bdbc005f2e318ec6c235c969c5a02793ac5a97ca7be4bf76d9bd857d88c146854e4ef7926b40a3bfb02841744161acbe73a9a9b13a1d6b4c4d0d0d1b1d8b201efd16c32770cbcb736da62e940b3c2f7519b999c0223ce2f0a003c918369193249e34651f957ec553c700c1023ddba0277b20c58581491bab43632dfd62cc9cf5c500811478ab6d63d0a28fa3daf24afd05bd5ad3fd78b08d8bca38736c195e7bf4dd02c0ebbafafb832537d7d9302619096e2b60efcd1ba6b76297157e175c41b5f834aff26af4f0f6872fb2e32c57be0de5c3c1ee38d650d43aa0f48460db3b592b68dcc09aeee9491c44f60cb69f8242580ee16614bef13eb46c180d536cd915f90ddb4d880315ef200458a10ec7d0c39631232c8f1a76b93d30aa02438b8fdd5c0c793a6e37f6728c5ac6827f8b60b7e639316a286925c965d12e0c0139e0ad130a4d319fedda3c88f4595a3df22d48f23a0e142be042199762a0f829b8ebb85714fead501500c0f5116273d1e4266db561b270d721ae458b80b39814a159a6d94c7359480d2b12ec2a0da45de7e2c0873a4a589a5fc102cfccd9f4af0761258fbe2491b14fe8f631c9ebcb63e96151892b67843473bd2b8ba2c54fd709d051cb18237c4772f111ee075816e2b86473c4667199069ac4f47d62709ff2e401c11a1733fea5b90a271bb1665f29a3fb2cd704f56d8a0bd1f53b56bac298193f9b74aedacea726eaa8b5569559ea39cf9a68b0fe8f17d23abde7dddea203915a41d0fe51dc7ddbe7aeefa55d79efe68e2f6df191acedd6b0260fced8afd2e42c8d94e79e1776e9a34c08c34aa999be7c46e81a3fb840409654feb8eb74b8de08942667eeba591140c5fb6ac9426834797d914711b4f947937f0e4361b66f3ce28f3d364cc409564604df0ef04c6641bfea0d461f4981edd22066803b46bfcc0648a64b19b8ccbbea7b2d7556e4f48015046232f1755e1fd5ef2b0103aa750bc8c3b9a5d78cfd0c8f9fd620c8f0fc500f2af3ca6d6945571f9fc5d0c52f1c3b1cfbb34fe8c6e8bddee7e9946cd6496bedec8e896462ef1e46e60d04e062ec0af5f597ac64b35bf01735c62b52fb66e82c721a0419bf5bf9dcc5b3dd2187df0f8337fa2f62a02415c9a924c00d4181092cd0f6942d3fd257457628aa78d1945e7799e99d18262e3cf5d99ce80cb07d18b194835ae8730dc515821530e1a9e5ee6a95b6f18e474318ddecd8610b073a3efc14f9f7c1380266a9594d866b66a70166c3552620fba500be474b91ff2f7d62120c2437131475628cb8fbdd3b80846df270c8dfafb074fefb5270e85c38377d7398c672f85dcad32ff1b1c0dbc71dcd6e212dd6a0bcf61785d10f4013e4bddcdca16a18336ed16438b624eaecda299e8721a43cbaf904660430b88fe9af7d3b6e6eea5bed191548b1fdd9fc9d44871a036bcb1c4ce5420f6fc68ebaad7a1a8e04eaccd5ab4e6be57d173fc609f319fc0befb08d80c02618cf30fd8f0e8533331d4eda4859aa0d4a18dd624bd85c131c3e8b020cb93ded538c0cc33f2ca599a634ff8609e32b06d34bfbd3a8ac901315483c6298b2d0b9eb8fee8602ffd8d040a22923b3db326ddb44b58cff853714d6948841c80960eb8ad00f834e08f9320d4f999258ad0b6f62c839eee5861aa3717834668b92dfd73a882cfee97412bb9f5d5d62c361143719c332e5e8a2c2ed4757fb0147393051036c38fb2b47d20776baf07fa284ec1779b4726b0f617f385ec2bea5d32cf91e03b83d66f9162f06474f152193a27f55ca2f8c2e2de2090b77fbed3b0aad79eed32a6048f3490961c67f19da1cc44f395b8b8e8baa9de9338232b3a1063d00edf684371aa8660887a3e8a85d34f9419c7c9116499aac68e511ce17553542b5b1375170e77939e18d7154e6f031f169e7dfccf762f6601b965ac9d2d6348ab805d1a029740596c12ed22ab29241fa1bf91328e10ecfb1639dceaad928dfd839fc742f06e889949b7aa0928910cf2178b68308314ccaed2e442517cf0994d9c734fb50bd660445c7e97f1ab834537992323e3029e0dd846e9d741f991879c166fcfd94989777933baf595f286fa7e484e5fc83555f8709600e2587f1ad652e14c4621770f51300c4124273eff57196f54e2abf56aa13ca59666c303d8a09221034a0d85bb15bfda2510217e848a70288505fdd6cfb734e0eb501b33dd7f9b5b857d54ce70bad645aa88a4f1b194ed33bb2acefb8c06381b1e37bd2a314b422b8c6e19b2745d33ba37a82f38126599e106a4384546e5e25ad7cafa41ba08330fc636b2bfc20a288268816e0911c53f420892ff357f4ada19ea35b766f46eba4715d047a7be3902a2c7836621883e7e820986234b821966c178b02543f840ef3677639fdc22f0dbe52b3845b1ecca269aa54ade02fe312d420c5eeb2ba06ca2d0bc966aca65d81e6cb28e6b053caa80bdbde5769e930ec215d3a8ce3b317fbf007fdfd4214aa988735118fecf4326486d0d22c3d226e275dd37df47c05fa090b41bccef5e47eedb562c7fdd87d7e84089e3db3c6860d2dcc1fba2cdf3554f0a5031b8d2a9eff9e2045a6bffa46bb7fb8101f20aff3ef5b2759ea0a7368c5736624bf311c2af4759e632452b0f84e09e0d4ab0782f8bd0bd05a0540905e7b5b8e23c1a772c59a8f8a1758cb78ba9e546d7695ee1f8f22b447a090f4754531a1afd69a90e6c25224ae01c1b186c7b166ea539c548cb026cbbbd0e63ad9993346a45ebd214a1355db4aec4c4752ea4903fb4fd4a8d600a7eb9b11ff92414c8681ea885e7ad329a1f188ecebb96919ad208ee30ca100c77df8d2fed96b4c1729671f275fa2ca4181e6f54d803b15216578f70417580b0b2f07e5777adf3206894aa3bf4547fd4a278ed6753fc70315232cc0bf6b363e988aea7f1be929112335eeecccf76b6a1fb08791b100ff532cfdd376e381655874ffee3fc2e61539e63301ed8a9dc6ab33c3dec86456d843f66e1168771f4f8d82941f628c09b617f863dda4c69b3b0a1a580aae975123ee4f2db955e41213bfa9eeaea7477346e644b969964bf032f3e013330c5550607a840952c012de3ce82fa795d9151879c54900be33d18c4ca2b071f4131565167f11f0667a7f37650ae1279aa72b4c0be5b43a418c224f17f92a5ab21dd7e04176a0c8cb5a5f8161a9f16f9cc828c53a2961710566187b7594e3baa60daaf792cfc9574ff7dd5d79e47c482a4c44e78683f32c85f0a59b6d9c4f02e3550f783d5dd20bca41f1a1f79691a3fe1ebcad30d7d359bc3f17edde78414dc661ffbef4f9a623053158124ffcffda203c7851bdc74388b25d0167f81e4c37967a61a09ede40fdab48402837b1959dfdef042f6a88a1900bd7c7d9684a7f5eec11a3b59df11cef5d6ca034539bd98a6bb0ca397a9fb58b7e05f27831506812e716f7767ee9fc770d5a6f3d6d285022919caa45c5dee543c07be42498dca900c8a05185a94c811589de29af824e489e95c4701a3ddded476a7eec9547e2523704cb5fba6670b5f48899ef4bf70224ed6f55eaab60d18b26cf776ff940ba35957b835ec55ec17d8c87504d67f3a9f947a51c07ebcd5138240bb30634424a835a2fe16af79586408ba907b3c06b5e806c202740800d77ada890c634395c2d3486b987ab0ccb7ae3042396c116c75ea15d0d63cede06fb2b2574a32a5a573c5457d394795fc647a79d17cc5e9d82c395d1086df287676704f25fc7cf7696cea0ef646917d5d06ddf933b7143a2c04a22963c98c57662c8ae0cdf1a44e871aa8e84cf459789529e1840a28f7ff203f44401dc6bc7eaa62df11dd7655134f2b0dfa3cfbcdb41dcce7fb0e0154793ecdea589e2ce5d9769d4a4835a2b84cf5299653befea4ab027cc09c623026b43c94c9dd4864716343ca198aa57cfd603e9f20f9adc370fa4acd272c1218b698ab71c373d2716fafe41b37d03b691f1b77458787a97b0689186228efe4aa313f530f823cad89d3ce1c5e773f8e4f43365050dbb758ff00f61decc342301166ff0530a95d40640cc223b7ff16758f476e2b03782543126772bfdfa5273afae56aea17cab12e695bb50f0dd38ad29e2641c0f46dcbb07e780dcfa8a878a472b345d0f0498c8de8d07a2dadfdd5281c4997bea6041909925811e2bcebd441d393b7cff34c3b04910b14661e1780f66882ffd79a15eb0220c1881d91a186266a3975b748da97761b26e8d392de9908b156a59619b554225529df201a396922837fd046e8f2419bcd3e068784287165c9f91ba7984da6ecdc6bc72a473bfeebbdf64ef3827f4418048763dc39c4bdc3655639745de2797fc37bec1826bc8276a79514095e3b9a72c8b13eab283adcbc7c2014991a52ad0788d5771f3513ffd37f352c6fe9a6956290521916cab10f7e8ccf48e27e7595edd523c98e73712e362ffc117c7feaa88899f6cd738d3aabc68b65fd48f24aed4c8412b36a3b7cc7105a42082c12abd392f47186db6634be697e36ec6a12d376342db9199660f2686d2e1fd9f9db60313ae14f776a50e61ddf6b522f7988189d2aba77826dc18f4741e2a9edf7002e0d343eeeab5d86ccdbecd3d8416a8f90c31bff5c2a973611cd1e52ff5602300db62f805f9f3c95aa1ad984f24689a6f9bfdb4c84c0156eed7fca2d85ee6a6978467e1fe3cf5e78f904c793dd4a7f1b4859f0f9fb2ecfe1b5e0701f58fbd530040c16d6c5d8af7e3ecdcd972d29bb57e770189852f552e3029ddc439f34c1084702a2088cdafe861771fedc4b82ba10c3d396f5cf69ae30f21d0b2cd30926aec3b8d75d7ca063f3b8399689b1cbcb6891b8d715b56d21675d3492a8bdf9c58038593cc9c825936d254c1b61b90dfe6545688a86ac212ef5a72dec0f9ac6487df1844e20a03ed8a2b24ca98edc62bf908fcdd914bdbcdfc0d0b6911e8eea57cbfd3f69ed1d3140411082e823f1216f665c61b5a10f935f52f4af48299cecf14ea9de2f748698d4f33101a61ac84fc89cd14802db976fcdbfa4a4b45c5cce83d062ae56802e5d01d046126cd14354ba9eb8013a754d8aeac7fdc2a38853003f0d1c53e4130e2e4f80492250a30dd0cd9af2cad6094bced96d4b0462f9632aaec65301b78f59b25d0b4a9894cfcb8b10d74af17848d90d82678936d8aebca82322349dbd1e89a391446c2dc05d0b4f2d8f09c2043d7a45713b984ab43f5c0f9e463b1055dff6a1674e8b7b00b81004249b9778e77c0055c5964f28fcc433e467f2309e68980709526765bf15091d40a0085f5ead7af32516e1de8c46b066e2b44da5ccad56bd95695e59b4aeec3f044e0190b1602a9f990f9adfcf120142d062e9329e62f399912e7767aba02d1e0a4d02d16bc5598abcaf0b35fe46028675bcdf31401581c6e85ca7e875b20c82532da64e829fcb45e14abadd492e4c5cf4aa5344564bad25f1d0d89f34c8df671b2a6e9f3b40f56e19f0ca9744d34f93d853d8e8e42f550a31925d2b105a717bd6390b386aeb9cedab203a91fb70c03d5f6252fd9e9cc2b2caca8855fd05ea3bda47f270829d40be6813aee31c7ef78711ab1c3d266cbe1ba1b0b49807486368678aeef6929e2a3fd2037c62de61f796bb16c43ff3d2216be83d1db6563425ac2b6e311300ff5ed1b7f0d3d9a7b99f3d78c66756c918c25fce73578b376cd6081a20a329ea5efbe247ec9c042aa8bef4ffbbb1e57fec69a2164423e4d748af9ebc4ab9494e0784cb3878483383a37453d779f82979a6ca20015fd1692f6355ece199624726cee1708cd1ec23d50775051e3a6bdedc5ce9fbf5040822b3504a492a2efa84f5a561c7a5d8e15ee1c344b06dc358139185d82151ab246365a09a6679f40572b4796acc9aadfe95e9dfdcb5fd38fd2dbf0cd4569a5b60c54dac3ce1cfe911090a7b45bf27b9a33eae1990d6f7d4fb265e8e954ce6d3c4c97df015bacb551866517ab008fa68332010902a63876372c5921dbdafdd75276e6e66bc2731e3cd800335428204ca0303ef5220698f9907dce705c8f87a27990c92c58fd33d0f345c8abe47ceb1fc8b1309baaa9281c74a2171ad7ac8c593e050bf81125dc8b9e0d8ddf842d8d1431be420f98f1945b3fb1ecb886ab60599cd2bf3e7ece6d46fef5b4f4c88e1e9df2fcd03fd1116108ba9eaede9830257e25f23d56f492329da0f54f6414dc20576233c12dfdc7b990409bd325ee95639cd3cadbc011879dbe32399215ea66f1f386091ce5693ff6012b77bb8441dc6b99f48b3a948a764e0878dcfdd85302de4e432212d7dffe1475beff083551d6d0aa76e68d7e366ee65629443dc413d4bef7b4d2ea72e4117ead8ea1437f0c62e233de7e41ab7cce7e9738bd67f8ddf2a3cc63934bfbc7297f71da87750fb917268a028b0c938ceed69e32208f7e790189b746c47448f54a6852ba216325ddb935f42fcb4ad79b2e1d383b08963ea240674243009851fa8eb3f8c9203a0dffcbcc9a808f554c0ce71cb1b8c51d7dfbcca4a38f6c909e4a6aef3fc3deed2611868cabc239108ec8e78ec43988533157897702f678c4ab461f945eccfb69b29ff36c6f9c645d19076953acc37910d38757115b6294383aec2026f939a9ed97b7ce97467d4bb9860ebdf6d5f386675246828522054a55fa55ede8467e333252a5a18cca96cd02b14dffbe8e4aa42bea9274bcac5e37ab4f57d6b418d2910ae5d7be2579cdcb90cdc4cb291c5fea707af74950b986bf84ddee33005a32ee5191212f3ad17f65aa7d5e861bdcfae7dc220b112d8fe45c7e9425ee9569e426bacf709a814a38853379660de69cc59c51ce4fbf0232c2e35f8186c45fdd008a0d66cd2891e7431b5d4468eeace24f23141d07ee3663f0bfaa3c37c1e091c2d4bde3a1981e9fd2ab3409ef3a902f91dc93ae2c2db1119159e270ca8f9aa4a09804b89dfc7d60d507474e0bb024bdf336f061e2564eeafcbc5176aa1c18fdb34de48ba82aeceaaa569529feb20317a4d8ea8f06ab74fcc2ae6b1eec8b6a01c3aee7617566ae4c8d84441d8d60461a87951bfe34c25e988a030d93c359a8fa172cee356bade83b497c827b4548a58153937d20e398f0e26cc38f037e2ceebc9f582cb1cddf834ec61e96d10d155eb5154e1d86fdf95f08bc8790441dac6f97f16ca8c8aa8c6890189e87e670dbac0df660e7a15429ac90f459fc8c1086894be4c85f96276b548ead6fcdd9ad161f1f1eccd7281516824ebfd24b04b726f71cded184749058ba5f76302cbb97ef2c9f8f8bbb96c5595ca63af0a7a8fcadc59dd9ba3526ed57a5ec26c5c30abba2a2600488f0e0d2d2bddd95b3aabc8f97792145c8f0316a6f5e1e4b361929927454dce874ecc9ea6e8fc90499bfd5d7db8af591a0207e53315831aa8cf7e7e65a800f6db95e82e01e6c67d0d595408508bb1e4667ba73ef4666e98b1989e8166297b2086e8ffaf67c872937de4ff12c9d2621e1b6f5f76586549489c9dfb0edd99912ef632e7821bc6ff7f7a9df3fdbf083d478344df38c6b8de45c4b191f2fb229a575ec86508e21db3c5db523f9b1cbd696a3a27d9add6ffe3e14ce27067a66c7368336930c4fd965b697ddb46c6d094c26d5f4e46efebb27ed6487668a7c790a45f4940d791fd44137b93249964e1b85d15af2c4bc707a385dd681039c8eae04b387b8d1e8e8a0f9303e8aa77332aaab30924225e9dd8d53688ed8908a72ac3f2670ed7bac1beeec088d5a753b2a3a65a7bae66173f589097e51f5b458eb1f099506707cac58de02e1f7d97ac0086ff4585e03ad379194cfef5bd83e2f036c5c484aab901e9af56908c8f314d7655c6994bd5b2a1232031f2f59299bf0ff6357ed55038345dc3fe6a8162eb56a5fcc14253b6ac90a2981a1c1651f43c0df952050072df6fcf5099f7fe753f1f3b7903c20d046bb0d5a38ef1b147ced96d91845557006414d6fa7b4b738e5ae0c9304e53aed7f741f77a6af100070e7701c146d8bdc19194be8b9ff2ed13c8f2811b47ccc41f7cff76a384aecd2150384a7ad9dd6c4a687f48cd7fa9d4b285c579ae54502a41e7ae3809fa3f77ed210c3d9b969bf2f89872a40e09d0cb8a243a7884635869fe7dfeaddf4e066692ca16b95ef9085aa29679e176b9ef78a4189515b642bb7a967f0102a02a7485aa50c97f30814097c632419931ea3913d22db2795edb4cc1b879e58580bbebb0244c55f1410fd65e0d9b7c788695ad0c74c4ea6b8f94e52bdff72fb004accf3dd491b192a536882e8fad2fad306dd1e67909a932387568e3578bd6796d15132e8f5bfc86cc8e30273fd4fa23b84a1778974703e3a1d72f9e26b467b4513191fcd9871c93456f3362da6dd675b6a0c5f5fb0aa0fac9aae25646c3bb15db1e4b989f728e24cdd022e5794122d5aaafc40abf939445350ab97ce369b301b44074989a8cc7a79476f80b47a454df0f27b2add87afc0599d4dd531e365456006f6cabda9f7313faf7cae644a0817d5adb41b8c21d799ebc208136c9ada8a291ec1607714604ade26d5854d934310275fffd749f26d5cce03fb2b6ec83c17fc4bbdd1d95ed25810a866f9436919af321094ac036b93e177a923b05703575728b63bf823785978c58b564f6a01cbb3541a88c373233b6b9e010336cb1805d53b27041bc872f01fe27a2bb1b7cb8b695c70daae708574578f5af3dfc7d20d0656acc19d0a6d1f4f6c528e0bfb9321fafd96a33e94b61063e5b1d18592d8ec03b03b7eb68d013f4f8859b4eda91697785d9e0b4c3803ec4441191bc9a81ffa166c02aafab71cdb4310a07f4971493c380f30a8986dc1a4099ffd2fd5e52176020eee0a7eb0098837cd76b08bca361d2c054670f39c1df1817bce6b7582c548c0b1346533bb77e7b2770aee4687e44d15298010e1a0ad7db25f77dbe3205da1a5439013dfb358cfcefb6a27624f0ca8697583595c724ee410250b649d7d378ea8d0b0af066bf57de3c8495936531bfbc516950e0016932f16f2361020d18c478c5f088955f5c42f3b96b0ba5c55d707b64035c49f4216b271f58929e36c4f5f4800097315fd6062cdae35e4f884364952c09ca8295bf6e2e4442beb9c7acec38be1a847f2770dc5ca37250e04d35d62d499a031041d6b63be99ef6df68e6097ae8e78e4ba7b5d473269a3475b8c9e9caf9567eb945ba5f7e39c66ce96aed570ee1ca01e5a28e638ad82648bba680c09b098c5b72e260dc79097f8a8212b67250184a998834d672da6f90f73b31115fbd65e8f9f7c5feaa8e51f3f341fa24c9eb9d0585eae77c46c9c1ffcd4e1ac40d7d68354ffe1d346441e66759a03ac588c46838a28e7c4bffd3f87473da1bd7db16a4701ccc831fb759fd2ec8ddc78e11d4ab2b702fd539b86e09b843854a5ee2b02019e6c7c892d811eb7994ef606008d27d8495079b51dc3d4ef3fbca6217704fd33ce6609830502b71e2cb8eae972fc74e5fbafee547bd3cb1a80ac8f21269a7ae563d9850707037ad235307ab81d6901741ea1277d3163858502ce90a17de9b990ef95b7cb5fa49138df9c154e630ee4bac946302c540e472b8bd764b59edf3cb7f8aecc55f1e0b1ae71df5d0f84fddc243c096d055af5492ad8696fef8bedb0e51ceb8fff40bff387cf505b9000adc1ab773cb2a6cce7fd93b1c0e0d627309fa890268d3bbc29e854bda965a4be6842d1725ca152d8de43d8b86ed30f094c2c56b3dfe1a62d3c8f85c6c116181b790b0b836ad76cfe642c1f9fcb2212d1ac749369c3791f07cf4cb66d1a38ea893119dde44b17d91b0d613937bb3579e25c4f1e7a10b9f06f38eda09d0acc3c6b2068cb8d2ba02f71b8818875bd4be96e3f411826247711e7776ad599719ea0e1a8d1a87a3e61e36dbd1fbd67c629e69b080c8c02708b910ce9ef909d088ad63fad4ad8a4c604e22f52535779ee08cde130928773f7d484f3cc683e71d55d3b70c342e2ce9dee3f9084551f863358cbe14015b5ebdcf54920ccec1750682e202d4d4705612c86717b728fc6326835d16f9be84e78bc60317b949c8b0749284143e5f394f36d23b0f8a02a8e7411d37e4450744446dc30800e5ed65f7bffc453bd770790031c76718d962d17768be2be0cfa84385360a274cedeea58b6d802905b3acdbe384698cd525fc9a96ff9e4428d55728d71f71b09d8bce0c9b50d9c3514499eceff61da6e1161f91c4a78e51440b6c8efc8ae87fd5f6e0efba1038aa798cb84db0829df44a103585e9d466c03c794a9bbe19904f3262ad73a999a42f963afd23db412673c09e8c7151eb007321cd9d9792f105ca4c01d559a372bd995bd54b241f3f129e9b26117212b9d1718054a1fffa4bf117a962b7cf1e8c06719950a083a28c5cac71f2c6fd95e956770e70b8f543d064381710742a0311d6fe0aba18dcd3bb8c7ffaa340e13aa73071ae1c6503a4564a8023ffd78def367ae8f5c9129de06870e4267545ef7d2ee8402e1b58357f69d559daceeb9b2ddc4f1a85775c66e5bf7bdc8620acce6385c795b5d06fa4450f77df56269005e6164e1aa0ad75dd0d04d3f7f26d438037bb2c2016a0fb2265c22e4da143d0fc98df5faa1e1dba5298ab05286a88bba1282db26d1a1ec2c41b70921b53b740989670f01c2b642e694dcf94ecd7012855b1c945f766f44038c56f6c550502dcd1e14ea54430493b8bc9f397c0d9bbcddcce84a00f50e6332db81f9790b92fec1e46707885d8849049e5b0d06537740f6dba37bb81e892b260cc1d7791d9a4a50d0edb2723ff990f64fa11d0c81406738dea2136fcb4d25e90236fea4c24b7e436f883dea2a89ec00bccf56845b43b5740b63d44e839415ef92f8e3f9da99da0feb68243432c6fa51d480e31665ce4764e409d86d377f64c79cde9a46cd782909924ebbd6024df83f515258854be86110011b08cf867f6c5274a650dad2e93af07b62d57f5188882c4ca579374c7823a7b798e0602d77a5c2bd5b2356b6ae3585c0bcf19320304f2e6b9db7c205f8f6c1fe1275b0fc5f01f24fafad4b2157581f7e6ee5d19df45d2bc28f31ad9d71bde3faefef174eb951efb5ad1d2404c6a03cf876766e8a876f00d2454a7e6be715c9c56119887abba11cfde9b11e0ec633ee6b0ec103ae086347b7beb8fb2c3afc15792117b988002b5b299a9296f9f0d3e7ce0fcaefc97e40fd1a80b5aeb67ae4ad558ae62eab4b2573612c86ec7d50389b1f5fac43926644de76681ca1e33a86022623edf71712f36df47b14ee9ed887f17b43ecdad620e4353dddc0b9c6f7dad50bc358ef3bbe838781505c96049f1cd89362053f3d4aa74728f89d03bb77b9ceca7d2c3a98e0b64153a116bb97b9f4c5a60479007e06a2a60ca0aafff41aad84ebfabc7fea8f1cf680ab4a3a2f0950255626b832ef18d44929011d745539643ea256af8d4ee39af9ebd6d3cf0e3a5823afe6a3fff15e338d15e5bcbc248506fd018f4e75c4e8401d1b05e87db2b848e40a0a2227ffb12f5e4096e6b0891383de9616a2e62464061298ff0f3d231122ce1f089b4ce128c514c6539ef720286ffac5d8e70a19c1079c752868a98c8971a7b9927c4aa7d94fb53f701709698644f83d2d65a627523a929aaa7607b04d39376112f56e1a0cf0d4f05667cf9aae36793888a4eae5694b6c6aee9e4ec2c5ea8ad7caec56db76c07dbdd7846269db903f9ef38a204a35209bba49e0eeea5e0cb1d933a6159ad4a41f9b177efe5bf69ab8bff5a8928cf488501908448121ba57bc938b237b038fd169894fd7301309d9982dd2a69238c1e9e76d4f25774cf9498f8ecda8f8932830f2922c8ce1c380d78f481949cc9efd4ffe9061a8c5fe909437e5a0c2f9f4d36e8c03a2086d2de01e98c49438b0014ac3d735235feef842bb6f0bd62ba9dc16e2a7e084c07518dab9abe86b2cbb8967f0f445becb3c4ad2900059e99e2873a630c0d3d0074bdd29fc3a319214f70a6464fcfb9f86e95d2907683ea04ab30a1f134a48fdf70c77a3454c4575761bb617cd379093fe977a93a8d23e3c60cc48a5110c7a933d56ffed41ea3e2488714cd37273ddc53cb997233203d331c81c9c0bf26df3f90812cae6335397bbb769c5e4a74cbfdbf0b2bbf67f540224a171aa89b6df72170ab20cece1f7cabfe842bbbb32c9e62f60ccbac755d166894cf236b271e16dbc667c37ff0d8d9926f3de49cfb356bdfbb7c42137ba981e23572121f3c17573df4d9406a9ff25583ae3d6a1ab7020d2cc7ddc25ad5668e28761ed0d4d044fff7e48315452923be437832ef0fc898a6bcf56db4ac88b2b593dc9ad0fb38020c38e4fd1171fe42d0bdae8fe06e4549d07d213b586691c9713c7b4cd875cc5de14c854621b1ef05b62f20a4d9259d25b4f30c05bd4444f6d9d64fcd43681f34dd36c00a846d2f5b33a39e517396607309852c1e0d65de6233348aa76bc1bca0d41e62294180041bd7e8a318c08fbfc4def0e518cbbc0d3b6e6ae1e64d071563a8b87a525756db9a87b414df5fc7ee4881ff64d54f88fc397d9905589ade6a24419ab7a89acd026dd4b1bd82508d2cd4b28d5baebe6cebcefe640aaa706e3bc5f8edbcdfe447040a15d1ebf0123b27f1a532f6e8ed0c5f4c907187fabde082880ec5c8cac517e1658a4579955d6db4733063229120a4aa996f28b8a16b293aa1980aaaf0ffcf1b1c202181c524738d2198492193542ee7481103a500182b28e0a120495b5cd442e1a14177b9d0355491d7ef5f53371286ff4f74018aa783b07f761a336171ce56931b6960a0bea768e920970af2ddd48e6d89d6b95c1f1fcd178d0f0d5e4ad1be943727f0b846c4e8b37a0055467321b6e1863ede7fd47cba85e289fa0fb43b96315fed04c65f6728b26faa8f3ec1525c41ef36deffb461528df65e246e2d752f41fab48afd803c256a588397c5828fbf9b39a95803f55a249916033799053a825b6bc1b7af8884806ff18808c7fd12ea76abaceb54ef8cc54a407cfff03f40ad9d87275664cc25548b2c0aa9fe0db8feddf9960058eaa183b2ce8d0ba4f6012780c62ab364c0821a476c9f613c3dba08bb8e13fc3dcbbc418be8794c9bf448f9408b8058796663c92e6bf45815326fec5b9b3b1366337850acda96218c047de2e0aed8b6fec0b5f999bfc600ee8c6325021f69c47d60944be182a76609018e7952cd253ac772d88e0522a85a7192198871ca234580d1682d607e87438359c57292715cbc5d08205ea2ad0e5915d049a8c8718a4bec546635a95b6d87bbedc341d425473a165ef6d1923bc6f6dc0001cac6617b7c58eefe99401c02656994530150781b2f037d47b27351518756ec5348b0239336cd113a16e7a84522524bf43bca5b0af355b4e717f504805bf474d697a6a4cd3c118215f6bee67c4dd6f874188631b3ddd211defd9ba4a9e318cf143ae45ae62ceb1f2a18fbbb5fd6167d9aecc6c4f1dd86eea6e80ead2385ca3c15a11b9069d52f7b369153f3c261f05a34d7a128f5fa3afde4c27e063e392137762eab7b4598eaa67c3547fe6a0923eae2f694ebda71d7855eec1119c001dd7aad8ba2215d1118420049cdea0b4d59b0e105878d37f86e1bab72dc34b8275914e975f26285d87f69f31d8e566bcfcf8bcb826de1008fbb7df1ad3f2f833d301ca8bf84e4a7de0c79261d3fdd494a7929c553aac43f622903a52000cd4fd19cd9dd4bfc9ec2c31beb84d89cd150879c22c80aa0590010bc51597a0e98842595c3081b201683cde20774fe917fbc50eed4af42dfff95288cca1a086e30813c7f09d7d4467b85b0b3969e7fc6650fb5a38ef280722f8d0ddf26ebbc506f5a5b10931d4a89574613a16b00aea9eae5413c96d69195c6bf255d3a831390bbda3a20983ffb64472c6dceeb302ff944ba754688d68c1ae7f280659ecaa38a584b128396d7b9e407dd51f8ca708753b0b316e9d85079c639c241b8fce551a3736e8d145dbf30cb09f3ba558a09cfa94fc0f4c798089c7f0624c76c0c31d6881824eb5908e1207b818b16a59964f8af6776959b04feb9b8386c7679ee75896d59577e0a7bd2057e5b49fde951fba58deaf6e255e381a5bc3edb24c6669bd01293b585ec6a30bd0a1a30cbeda58789dfdf766a1ed96777cf51a327582a5f26b188c346645ad4c9a43a02dfa0ff224eb7b15a0ec0338af6bac97205df1fb98c5360c021a7e1194513e2cff7fdaa8e2ce0de5a7c4df6da32250e22c3589b51a9fd2161191e4c72c06cfda9377cebe59ebd9ec4d0fd8a4c9374f0bb0431507cc694183e01a568ff9de44dd2af57783e0d2bd5dc545c8334f87f9f57bbf0bc5c22ad474f0b9426d6d032e4753e140d79c488a7630fa35d6ae75bc8cd0a27c4a986804655cd4698df6489214b456a8025c62feb39fa7dda6353dcb65c9104837730a0fbfae2a42cbd717c78e3b656bb71059a6f3c5a1f6c3922ade6d80c16eafbd1593f1a763ac35819e6634fefd72ddcfaddd60eb3881a833af7da73152f44fff2040755fecd85470c2170d9775911884d7272e0771d218386454ccaf45378f31ccec6167ea9eab7632ca00f31f9f4f465a8ab1b18ed1e2de1c107a76d51bd6a0c2d7c790db3281a8e484e60025cf7130cd1fd9144c07b1a25c1ac95cc7c01e5b56f9838ad23629d9f639ed7110185ad8afc3fb87eb04a0dddd52e945caf6e490900a551fb8b0192ac34bfd5edd66782ca10d4a9dea9486120995ee9e6d9c6e35c5ba04925bf3f8194c93c08b8d29a2328d0693d87d469b7593e06a5b7fee51eb063843cf67174d919196db86ef697e9c8b2a4f4c7ceff6ba37aed916499fdda34829f9049688c87bafdbdf42e50fbdc8511893cb2f5063a2c777e14acdb6121bdaa8af800ac2002c9bb35bf2b1556c52f4727ecfcc1675c16fb0caf6449f2304de2bed84d38ac2066e6cc756ee697632e5d76b034c32de624f1048005d531000ba860c72fc48ef417e7907647873e5df9ab41ff06a7ea822ee188623bcf9ff2b786e1ed13f31337f16c1747b1e915dc22466d5f9c7526e59dbac6568bb09cf492574bbc8e7050096297c4cec3be9aa9bdba0a2f120ad40e00535f6a750f65d10841f4101690cf3db77ab797ba2b2565826dc9736d2f274094c4549562433b3f71ac05617f84613ebbdb3955b62a72722ef75441d9c6c2d99a697a87f5a6e945078b310fb2a3d25ddfa3ed0f63f722b6b58cb33b35febe26f9151a90c3d2899901df45627113b4e5c73b40277253a4a6cedef25bcf273f8fa3b11fa770a0db91d2e4a501a020d625d08a49576ed0e5143ad635ce8a913f2d5e24b93273027d922e3170d9337c4098b060a2fc688724a9add6be27239923a58585ed2832574c9c96174990384874b338227685d4acef87d91c6f94875e04bcb5a672ab7d3fa12f773133a93441cf2bf140651fe81e98dabf9cfc3cd82ec52f8e000ea6d801cf6f95e3d404cb534a37023d006cc6d65a97fd5061d4a6c3841cea09909ec680952a3fd4646d82a08d78b78928370e0bfa49ffaef096f79b9768b1b05e088dad2f1f10e454d7f6ff7bf3618b3455f755bc8d80176cd0c59f64002ce1b70c438379fbd052dc65c52cd173d3810b9416996b15368ec7410140e69e73430827e1bc31347399c417448657ea27b4c6d89911475f7dee576591f53dfdfe7b00f3a4d4b0572fc12d21a41f3141f062c139bce4475ceeab37510cd81dc3878494e73fb9d6a0f1fb618675f5ff85c4fa41769756c3829a083b5dc7b8ac5647812482ec1b12629b01efe5f259969a85287524532fbbd0cc69070d432399c20714d72137eff0cf32d79cba4afd853e64402502dcd9fe28aacf4b40bbaf3248375126f78e2de7e1ae48274ce2c7fa5e3ea0a0790b9347fbd9fdd0c84cd650ad9eb67d536732ec7604f62dbdf1bccc9a56c9dc2d0d022b60e43d8108e3eb40bf3579a134e6fd67bb5ed3a2bb921103c32c3c3e896790da75e3bc9a5c804cd2867d4da5e38ad584cec2cea1a89580b6b4cfe7c41d5da0a0bb1756a2940ae9b8ea15ce2f4219ede7cab4856fbee972cc3b59cf5fe418472a35ce499dce16ecd19d868c96e61318df6099e3eee762ccad061da258ac264677fcdd82292318b80d265aa89f326806de2460982fee3b919205d0950517c2361f04f040e887f3b7a9811bf22a81ea88821a0bd021f06adb7c1d1e60e31db69e8f365a553085f78380527ca1f1ec1e47a08336cee6a23e24df291988bfc297a91ef0b9bda908038eb66591952426a419024b2861c8caaf1ec4936ed0fde4b0c819df28109cfd137f8df628a3f91aa7b8ad25cebe52d6ac6aa2ed1e0fd8eee95a71929c24bb3f7218693705612a72a4dae57d47df6082c5a4bf876755f41fe71e15bc20598917ca871be9ec00753812336a3eb913b69ab1f2c6e6def143f6995919798a886bc3fdc47e87ac58783f00c4f1780f01d53fcfa4e3a158f124bfb99e5fb095aa2fed610b08b11de98245658a5df299764dde4bbdabbc60a76a1381332743cc7a2cb9cfa61e6334b3d9b35f3c4dddf25bf25c7790fa5ac6088a6c7644f1f7762ca911d5de7f957c192c1e4e8f950912ca1fd96ed617809659e4e1c5e6b8bdeb14fb4f744c0dead9547f9132bb0ba7890a716b55d39d54a1c962a56afb849ced3ac4cea43d138a4386dac290d389e82caaaf0a0c1e38570682b39b154ed944cabe640ee164681de2db26cc29e046615737e1acbfedc0b506a6238f977f08688d70377a1008c547d00ae1e6cf4dbb7c25b2ed4d6ac21ff167ab689187d49dd13094a03fbaebb9c706e00b366a3b078f58853be20f73248a9c93c50d5b624c36981b7a4876d8f9fb91d36212dbb3492dc6738cf3742a3ae2e31ae5e70e19887ff74100e3bb05e09cf9842e65e3f974457af014ae3f8a6076b14eb2c79f88989d7b299ec908c4486bd32fc02a18baa786c5308403b6146fa700df03e66c5855557ce34407f863fea892c1c0691e6b5161f04ac688219a834cb39296097cf97b9621f3593ea56abdc899a297931accab997a5674c44c58bc06e0a38902cedff08e1951d24c37263dafb84cc9169649fec15cbcdf8d656ffb320dcff9e9bf9a4140e5c451091ff06805638055076901b09202d623192b42caeda03509d08bf7bcf62cfe003325be6cc569813166c18e502f69142471d0d2a16efdf5c40f353fb7c47c0bb43278ad19a0a10b04bedac2f9256a52703583b1544a8b29bc80d2b503fb2a5bd5a16befdd02aba953528b0dda0c8d73d50ff8adb5ee4f73ea99a3778670603f0143ba1119acdfd56a88efe30d1dc5869d0a08c8f372b1506f66454a38a3227ff5ab4c33fe8fa4d002db5c10be331ac09a7cb9c23559d9171e527765a9fad90c6f83eb5603c07e6342e3bad204b8b3bb504747f044d4cd3959afb100ad8a1a761b1afb91b33b72f6029f906ae64cb19d070c8052de21a0b1fa49543ceed20c03e2c559dcbc0eeef018b4eef5ee0c47474bc6315845bb84d754206b493591a076d99b9af9d0ce1a00d2f4c29dd4e1da45a125b9355dc42049707d4a19e5103ed3bad3bde07643b0e582094377a69ff2901480d7ecb32333d1b351a5a890c7ed02d84a5fc3ed77cd80185cf9bdfa5dc43033a09b5656fb71b13fbcfeb602adf6bd01f8c29d7ec6c9b2f39f60776b7f8f16674290037f2b4f42d4196024b5033b781aa13471a5132fecac25bec197a0e6c01be4c16aacbfe20108e126addeea73ff10ccb28c703b9d0e071323c26be2e44011213b4427320ca6024b6a5acfdea51ba7cb3aa7c32d12655e0ac7ab9e8f35cbbbd78239449b12ecc49c1fbaf3713b64a59bd3413ca9898128c1f0f4993a3a686a15a046949b00197821fa673dd0cd1f79ce904c3479872d934d1bf867d99bddafa4d76611448fa7ba16542513d58ce9ba4c49f26e2608fda95aa5a557cdec68b417dd7e1031324ecef413cc1a5a9e810feb4e6d1ef39fa3e6251e8c67a8594a68a92171ce6b8b33b1d226acab62ad3900c370d9df111607d855a98d69d175e4a12e68d2d80dc50ed46bdd9abb8afd9c51d082384253c9401dc4ec16d8e410cdf41a90613c1c1ba36a13887ffad6a624c799ecb8500faec1ed6d3c55b697618f2de129d07d5448180c2e985f19a55e482fa9978f12bc6e348539517a010d62de83fa14332f8ff48e3db6d0e17396db6a61dd3e92007c03f91e0ad3989f63738e44a109e7011994872f15d4962384b1736a963c6e3d8b3f6aaa93d10adf67dd3ff8f0325a264ea687b16c57bd2a45b0e1e9eb1555c22542c3e14b7e20633d52352d4fb6b423c66ebc91bd26cb4e178d9ebd4dc8d30e5b21e81dea17fec4acb54cbd38582cf9efd68f20c98084456410e7c31b65ad51bd10f608f7bdd3a50c411bdcb933df304ffef702b8d044ef6d749f63a25f0c0c6031a47de2a27817cd940d074510cd67acb00a9b2133af01762c03a2d59478d267ef9467ae0ef00501dd0e64a5abc82e0aa3b42f242dc7da8227a85a2bfe2c5eba79e9312975aab88841d18560cea7b0ab03b06dd1c9d1b58159dc615f406b85e0d52d9af786ea2fdbc89739062adb530cc02d75afda84c1e6a34991cb261e15f0a6c46ea1dc707783c87830c18d4dc96cb9301d029e0e057d97881a59647722439f55e402493fcecf9d8000a5c434e24a188ca059681cd69ccdf81311c1d37e1c136e9fdf18132954d4e2de25769015d8115c4fe29632796187ee4de3f42729d6796c408dbc63968927c6fa75a0fabb02ad5e04ff0a70b4f994e8e8569d186032c15e47ec5d92b57d7e90e77d9befea7f302209767f98175fd23633aba5f2bf6c2ca7692fa76edfcee9099af375cfee78eada52070bc80b8613af3ba0cae5c5febda2c5426c9d608ffa7b7de8c49ea0480f68fd27d5bfb1686d1cb8bb7fb7e4b53a31634eeac06901c6eb9373a1fe43a6f0eb847cf3dc9d34dbd48780dc8cad3644027a25242163ed73cca9a41b8886580e2831b7b0c39fda126d5306be15a0a6480f31967c888f449cedc435be3da41f263d55ad41d53023720a8605750cfb413fbc92ce84242393f69fd9a564c19cf520c50e5b222640ccd27a2d40e0206fadd7bfa8b3881dc2b237428c18008778790d859cbf56fbf0c67e1e5f24f07ea7c5a77e9f4e83b3a68ae9b41ed26c5df70600c051d2cce3806d1d4e5916599e383ea2d82e7ace522385e5b249cb83e1848a906ffcde2895b86a6d841c23e02ec101438b5ce399a17170f9385adb8f502cedb4f2351a7d9ed118e4823ec82b41b570446f3ba120ad71350626988afeb8e4d4ff8d0f7f852fb5e9435f6cb6539f62803474a2c1fac48aaa6acc0950410675bb16a98208c64527e92f0efb353c22727d8151de90c4612d6d1cf7c2837ad9c11a83f7c683ed70f43b919e07bd73667477829a93fdb47560fa8202f619096835c0155522836645631c2853253b347b90a3ddc9a1a4a70b9aa7b3be2e2871244a53e3a1d39c85b6b45727d962c3c127d47fa6842bbec406d90f085a94a918294230d40d110ab591b33e12cecb89afa1fe850c46c220aa144ecbfc1a13deddf2a6a764c13c5449bac01e9a8b282bbe365f179ae4670e1bbdbf9fbdea87f10ae231be98917fde409cad8fbde167de50be60a0a83c4ab2fad595d2be195802c137570df693b09c9f44f5bdb768b1f4da6fc9b313d6e5fc6823c0201922663aac24b5beb137cdd9377f234c6f443aff761263da69f5c744f34f65b45953659a8ad42286e090070d31925f17c444a1ea10416d6f88b7c0ac83324e82378a3510113bb6635fa006987dd458cae1a5db72fa5f54d0aae582dc957951d6eacf4298621b9dd038eac0c6d0cb77dd9281c0f1a07a310cc221e23c3b9e0aabd01e31e6c115ed16c15466ad5e5b083b4b3ca7b168d8b93719b5e82987c8c6b0ae5b7ad6b3cb6e319a2011f84816996ab6c5535aca72a36dfe8cc08d6ca3f618544a9dc25e1056d528ae86f200f7c6fe1aadc5392e983cd84dd23307b36f7aff3d798ef0947a6e6be0b674a304487cf01271e2119021ee7350804789b981ad2d5a25dfb0296389bde9c997365723bb2f21fba3fee22dd15f9bdfb7cd1f9f51f4e043e4e54aa8b4281c1f25a1c838ec7f7b82295a25091e8e8016fd028b561cfea8d6f0a16c030d5285402fef36d8d6886405afc5b15a91c5ec39a98ccc9e4f8a64858f3e056a68bcd37122ef16a8982022adc6c94d2c9b7bbdbd48ba2c87cff94db61fb9d1def57201f1a9bb38f7bb5631f268c6362219d8384f400ee37a76ef019b7ae41ce353ae32021f2f96ffc28442397f62253e03d4358813a646b07b6dd2a4d928bf6b831c2a7b8566007c0f1cc5eb7d19299d74efe3cb19677dbb9492c645621f81eb5eab6b8001db0b690a2940538634acaf6ad80cf621c59549cd2b87f25e7b9c9930194904d53823638e5798280851afc2a1a163fa212a13ebcda8b29b3aed887783f265025dbd400f44d606376458748af0719249d3c571c9800b7a65af831c4eb33c29a181d6316db31fd52ee7bcb8cefd1157377af6975ae80b0cf85c3aef53ee0f0b8eeeaa63c01b991a19e5eca99d113d39161f8351837ce6a7f37f39ba622326a01f979beff59c81be66a2821a8b816ec8e9f82c1b2db9b0d3c4ccc611064078f6256a333fa824ffcb40a960e3bd5d185e318c83fa0fd034fd742ec44d54c49e53f135e56b380226901ff7dba1fb83059e2c5eb8c1a1275bbd430eb77679c8dad78fe073541b9f88aed4cf62714b92223a9872c63e9afc785d295d696ab6570bf9d7a28a9cc12b4ee06a56aa48c95e37e2ff8ecff588831dd5e435a31e3592dd25c22b8c4671aefdc0c529152bb3f3be3862c940c0a262b8e14cd86ddf365d2d5fd56a9c551749dc28e8cc9115f3eefe3dc22c200594bef106b9167fab77d2e4745404e63de7cc6e698684f10b0c77ea70bd686405dfa3e0f6d61e5dc66e4e3836b165d43000c6b6f5be819c6bce6e407812e93e05e931e634477214cbdaf296d51c3f67232e1c95001dc8de0521c6a11e517c4809c8e0e55f9a6a690d8d9188dc8811d52e5e5145b4d8cf60276105f3ea9870e6bf15cb27278b8bb2b0bf9d310a7e218b66181470ebaee159e6abe410e1bf1a9b41696c166f2b57e26ca9f8906c9ab7c67850c7c68fcee93251114ccc68c83990284afd63c1ce63055fce94a0dd6d1a351120826024cd381b3e118f9690879dc6b21572eb2c7ec57e2271f6b56922909d706ae4ed2232a6b489cc6504d90b8bd8880bc8fdb09aab7d1bb21f03fbe064b1faaba5f5f11779daddd4e03cd7d183f7d988aa971c9c1dbafa05933b0574d4617ea8bbc63fe1582778fc1046fca476b5471abf47869e943de01ba5bf631652ed0e348b80b61dd5dc6c3990a1d0294923bac147d76c4975b799eac04cb328fa99fcb0cff091b300589ae1f0c5b001d25d2f0b0d81fa6c496f887776d57249c215f111a72e923df6cb745fa571aeea4107af4c1338cade6dfd42eec1569d527b43420554fe6c7e7cfd434cdb3e4e82d33d7f6f72d5ef5404b8c92370dae1074931d2ac5d23aa9d6dce17c3b8e6f2480418f7fdbca80734a91a2973de1e34777cd1bb9b1cda47444f1851efdb5fbd7c08372c5353e4059ff54ea7df61b8ad903ddb67d08c44b4860853c4245f6b40508b3603ede976f37136fae2326c3c1453334644d8172ae4ade880444d178a19a32e27d6461a6bfed055ca0398bb96f5b76eaf497a75273d8cc1efca4e1dc188ebf82d1a87e1a24b1e71fd88d688adcb4a2b2d95e32b4d74a410ef60956c76718f76959a34c2a78b7c02a857130510553de102ec9aaa6b9cce50b03d73e0d033d359db7eea152342dd0f264f7d1a0711ef2a210511cdd3ad5a7776009c88ddeeaf67ccefb06ae47145514ac9ccb0e301648fea760d1de2170b92ae1bf680cbced2b8a5003410e63be0b7c9db3d08d967fa1aac663d45ba0710f994d980b7d09b6cab8ead91ae703dbe3232ca44ea32c42bf905b34410c4c813b1eebbfb5103d4cd5ac2f185adba01ee3ba7f4a7e149defce567c4cba6800f226bfac3a6ff9b8a0066db2e0ec739181b774c30143b39b54642d60067adafa21bc7c228a59a82202009b8cc81940533cebdc64fbea6396fbe0a93083ce7b49488a9db00c9ca7249b70138f0bdfe2e8897ac85c6bb7aa1ca302678e3e3015d5e3499037e51a1a1fcb2bc098677cbb2ed1cf9ae92039f9160a2054757bf4ff361ca55ef75ab9534660541ad571effd9e79e560a8c85b83bfe882d93e08de369591391147aeaa3df56147fc153f6f0a512cf298ba9328902f74e3fe91e62d8963ddba2ab961a721fee9475c176b617eecdb26cf764734736cce1bc99b32ae3c66dc3301f03c0184b7972880b41c0f469aa0d1aa10498bbc65435ae2248253eb9fd3d0aee5948bf0f328b048938f8d47188eeb70aa510796387821a5a2f9f8ad08ef82b8ad9a3941e53762e77723448eca7686c022e9796e3da871713c238ac8b1f2a5668ffaf5f70135f2323b01f990d7149dd38b185fcf19089041732ba019f8a5a8da9d4c736d8222e6a9be1d338b898e147ac64b0c2911a40e0d42dd28216e55b97220939f770adf01f3c9c9580267d6817bb3e55f0a05517af1b2915d00d3e751476b480c9305e5850bc350f53b5e03baed9e75518175097748642fea74cde54ec8c1e50c1dcfd63a4544cfea676781326845b742840e5c38c35857dbe12d12c85ba0201334a83b553e7be08b49e421583ee74d85582d3393f6fb1c2497d71cfd18ee6ea23f5ac978c8391bbab462e1cbe704ca74047194eb4cae44841b4cceda2881a75e53cba718aa211a65cfef195693e8a5e7aac35703ed8a9e7312110ec00d4dcb796e177b9841bc64ec7096b3117c7e526113f5c0883a3232de57a27d1b4619124109c8f49c5f856166dcc2496f98a54cb09672a3d1d65f61dbc5f8e0365d34d3393b1fd528496cac1af2091820988541bfec7088a331bcb78d28afbbea0ebbeecbad9b37d1da3a81b894936182b45d895630c5775d3ee1e52c4e5136c62790ae9f73201f138d5968907df4fd4aac575f4411c8fb966fbdfb0f17ee99a20f71707627ca94b4dd3e213c00833c098e6a24dd747cde739e1daaffe7350c58298b0a9b99ab29a5c6f0f32fb20c0db67ba51b3ddc7df94e6f20716b35798273723961b10d71bb773258a9334a849da9a40974f097c2f68a1e1c2b18a67bf01917c3f8b1020d58cc386f45da6c530d96927e85c977da7881a3dd0fb254d247f80fa6dc9f66e0d9d60a964b5566522e39fd1b57fbf4b419e10c90d6dd3d7977279a9ae2fdc5a58385ce5f6442ad44b859aae7b02acd5650b2aa1b3e5076c42a8381fb9251fa3360062f25b3b1de0e77504ceb8d99ba40526ca0ddd9c143d2429a8b5cd2f97207a561560d029a08feee520761637de7952b4a3a5ded02f8343a57295cdba9d1f696fcb7eaa1c87919547d5cd077b5ef78cba09cfc4c771fc6f81cab13d57fb5e2113540d8b9b7cf034be95c8d23917e0444f1f6b9cb37f272ef580101f0fdc3c7d5edeba4e75ba6e6c0093b913d5d4b965b1bbba6ed5b50b3ec063faf9aa3db1c162d045f84c78570d9b99e7aec65d7633369c726eede65102d6202503efb15f5e464b33f7cb2f7946a470b07e5187688ab312b7f5d413bcd9fca2adfdb7fe1bef8bc05463bebd1043575ebb3ac2e72825f993362cbf6afd076ca0da1f0bb7c52c92968beaf46bab279d1a46e84e01eaf90916a1e72c851d4f80b7fe82949aa0d15a8a1f658995121ff70c6a41ca03253bbc74cbc6cf7be4c70cba50efd63226a15f9a8c9a484aa877346cdd53a468c0e8808c7e2fe52a4f0602e54fc1ae36b9f6647987071946b59f4c3e4532643afbdd83c1b6d5513c28c25d89f7fdc099be387d1134b3420f4ebca53dbb990ebe15f065939012bc04dcec4e025e2ce3b6d466d102c14f23670b2f538ec68f33a065682b7a633508c26318f4493f29e3b15248f150a64c499bad57ed55a6b26016c88515f8f4e2d5fedfc5d13832456ad9536fdd64659bc7930201a0ab559d30a4f8231c8ad2e2b431ef6e8ea69590ad69c387d58a61c10aa228c7421235fa1bf805665757682b4387c2e62d49cefe810da21ff201565868d857ccb19cc134cac108af88e0a4aef1378ed289ca431f913820ab304bbe1937a2faf39a919445cfc62da3aaabaef9dd4baec1eedb85f26fb40c1bc608d9eca08b0173bca32714283c372851caa6f0d21d815dcfa47adcdc163bdf09b46e2e0aa8440ad131a01c1493330df35b6ee75a8a995ebe7ede42dd466ff2079a7764afcc6845d4d7f8186544814869bbda0c8ca02269768f872f0fe765dbe61a248a1e1d013f0152d6c856ec41bcda5d8815d1e3e52991c7e94c90792bff0ef70e777da096fd8e5cb1cf043127132c54ccc3a6e7a5ce57c4b5fb68470a8d0fe362b572a6511d493da07df9389b65f21e50cf1f0836cfb75f0162a45ac4469a441ba1e2165daaf6a2bac7487ec5f5958c44f5176b468897ae4fa6f2a45f69c137ef18e3f7c4aa93719192116b668e5ecf912c4ec0c44af49ba64399849a18ca128bee43433b057c3e74db377a00bb1c64ddc21dbe2bfa17ba04222cd50cb0b74b2e935ba167b66eef6efa608daa35c77080746df616b5a799ae69e7754f2f2be40555968b11254ae47e7604c7b46451dde8885b9996118b5e05ee71a0d4d68d4e0ff6528577ba2b8dc2ca9604c650d16839590b8a67a447b8ab3633ed9582bfd046f9eaf2da3351cd8117dc93d6ed9edb7b1a5a81b18d92cd79da93766eb1d2661da165bbcf50f6423deca650a9a5dbdf1018817d9b5a2f27124724f400453a63933e82e0f1beb8b71793c309a263e9a61fa5c4ab802223fc61faa3bcaaf0e21ab2f909b17a236f2bd17c42e453c6c92859cac032100564723e64452e556b1869ba41008070aef8877c680835a30963e4bcc5f276e837916aa264c72478cbebbfe1c6a189c4fd5604cbb4d5a6d5e87ed1097e6e77eb598d7d5fc870f83ba70e53a0806c488dd3806d8ce7515875e49165c1e1d36249fa72ba34b0208600986845b149b0e3b126dd286ce50c4de8b6dbe902099fc490b0ea97b0dc934746582876ba1e885d494972b080185ec97688233a7d3ab9c7e82e2af519ca086db9d58a5902790ed1c7edc4fec4d3a906643879e5f623e9f0dd8332f1e4c07f67e89d6bbe299a847d9878beeef26c0aceb35b230e622bd120466cea35a834063a211b5d4cc0ccb8f508f53ad996b053696a318a6ea149a8b7d957f93fdda3b269c8375c87a5d7914e5b78331d430f2910aaa728028fce48e35f8ea6c7eaedba98cd059d6a96642c4aea93afe37fdb15b9ad639e615d993dae592741efdd94fab9a97dc07181d2d9f21da537ff99f12b247758ae6aaa21ca0599805ae06aff8903f9b3e919770448b74bd40701cac7b034ca125a32a05ce52c705a2d708e42f0f226cbe586518ab38a846be999a4f868cfa9f68b25715723c328fb89d311551abb2599fa0d05ce2de487ce0392b3fe6ccccc7ea77e626d65e83eec88836539432dce22fb706009c056cda26737f9c6a3b8353c9476fe96d07d116e3bb8e9ba459ef0a07588e1b7c033cdfddcf539fe3bb44342d30b7abf91ba01a262bc5588c465ed3b8fe1677038e72249fc7a516680e2307507825d8029d5c6bce79aa5f170285a90a50df598510d8de164a55bbcc2a7ee2ef44def83fdc622ecc6a8140ae675ce41ceb064fd0ba180a5f6e56e771de53c5aac738d1fcb475303ed5f209f5438f7bab7fa4ad180a5f868941bc301cc47fcdf05bf4486f7be8791cc2c16a09153a4b196515106fd8d1f16f55a21e9036fe75f9553923496583cedcb69ff0342fdfb15f23bffcca7b018ad42f0d1482bace756860c136fd815e4365ea0a5f1a583c54e7c44d137e3bc739ff845f057fc72c84b9ee651eacde478059f23ba9baf86bdd1190264d0ac81e4eda4218d8afd61da998f5755fe322e3b61885f5ee6a9b3a22c240cc295b34bd7970457fb88ed5acf435642fb3ee96d9a9e9832435522e18f52e70b9fa727c33bc9a85e8aabf6b2eafe7291a88cbc22fa3b97dee4def41eb6c22ce9d9ef3c4791dde268191281de8d20bc78cb8a14dccf9cfb360ef4e9f23a09532ffa1982f09b769fe9955da815beb6cc9e0326dd3fecc558eb51a8bf952b403f314a11912bdb1e19db450075b093012a2f14ebe5e56b34d7181c49fd17ef93e549f5d39c4057cd8915688a0e23eaa33f3a89f4d0d73c9e20572fed02b48c85c85ebd7e0602e08db7fcb3118fe56ae372d6909ffa101378fcdadf0743bc3b02e07c15da015a691dc8249e6ce6fc5e9590a2ef0a0c5baedbda397cc15eab49b0524e2548132d07607fdcf1a421fd39c26547a3e5d943df487d3bef01d11a4b0b9eea757b6121c24e23676d01179f6b5799b39c16dde29d3075f22cfdf99ae080c787b930b415dad946ccb9ebf545d4fe2bf6e3d44b5d857584b324141e410294ae40771b8284f1364855b7c9521b22b5083289ebe6208d8671dccd2d56c546f4767bf50e9ad059d14f2599cc46f22fa541b632d14f8f967156e861080ed43720f5c22ef26d499ac03806ae041c812ccadd18b512a66008ad8bda81b4f8173ce43f64c1dea1349dd84ec9a0a37b005b6970b985388a2a81fb0e7d787aa6b2b8db9a819de798239f4bbd5abbd06781612388bc0a4dba672e154110cf5b6617025fc682f97948508278aff1f27331adc977a12f744b0b31d4c1c34cc564a49d040eb8e1a8a14cf1b964069c40d038c0a195a4b58904bc7de6f5ab3293d1e279bd948fddd6c27c2ca41e3247e87b2f8c52b6922cf19c502fdd2ff4fee7d227519c1d2115f2751374bb3d55d4dc900dc34f506495fd9b3f14e52c0704ca63b49b1708af88adb4240f73f14317bb9117088548061afd367891de57af6fa2b94b39f22bd309cd98bd6d41fa652bb6dc7a166df51d23bdc2a6fb1f277a9967a014bf3dd4d31dcdd64e394dd664a27ebd8c83e9121d13436079f9249efe4a95c70ab73984e902633f72e7b06a81c53e1a895df97343b5517643e2776945649e2667bd150762d473be2f0f9810be15c8d0a6510f57da5b35a04d9c7000f8e9b3dc2cb393843e48e1f402dd06640e37a0a25467c6a7eb6d79fef31ca071304b3b25ca7ce2d5bc4ab95556a887cdbc6fc153b0e9a7a546674ca07b1f5e9f754dd556ad676aa69ee45910f537fdaaf1df3cbf52825f9e8300780f180340a008740d70b1ca261d60fb997eb9d6b1eb441baa26761674962f32290a62450433f5284023a63b6013e3c1c4674d40fd3b608a9496c659b0aba388223dffdeed25eb5808294dc3644f9d5d449a392b280a371aec838999fd8a153b551f3d7d240e3bd0e87921ccdbe05a4655f033dc70c754f87c1cd443403d4e2d8c5a36547768b6dcd98c3b5cab610b9db26d505f6ef0cca03dce86af5b961dcbcb4ac2492f46ff220d39e19eaec978849140ca5775e2d039586f75899e61d0c4a79e596f7504417b017ac66fce12f30ea73b4c2617750ffb8739566bb748963ff4bb92b29047626aa8544ef94ac5583054027f0dcdaf597056fe7e260f39ab08a5e22238dc74b7b6c976adb15b099bea1152f9c78bbdb493fe5b86cea81613fc20ff597273b938340f6bd106d3b3eeb940108656f91d859d23bd9512b0ab2bf596423f8228b344d85e6831ab195a71991b0ed86ce19ba5e7e2e8110facd40fbbda75703e94497359d6e8123033299f4176f3be05d6d1bdb0dd1de64a529d8628cf5c5c7ff713d628edac9777a0359b96237a844a0fe7c875236e2f41f9f0441acda91ad34c5db8a897f46a5669a3a04dfb567a08da65a63aeea02966c1bc9a4255cbff4a2b0c115c28922044d15854fe1f4d7de1eca2b43cdc8555e8280b985f341c94d6bfc00b9b9a85f4bdd2aebbc3fe305cdacc87737a4bd3cd689a6d59985bbebf99b4d82c7b761833ea998f3a748692494381907a854e4e0a440e460cf74698e2e11a44523ecd46a734d61b21639021e5b3111bfdd1a9209c199427432541415dbab05d2fc7dfa72e8053a15a02c083a3873f7fb7a0f6199e247fae0fdbad06562d8c89a617f002fb8e077f0cf861ede64b5ee11c1f5a37399ed757067f130581009c3c713ef6f0adf7c48f19a4fc375e196ca47869da3fa88e059194f0b42a6f2dd278351161aebf407eb9bb4af28d0c503e2edc3721be81a630e2721cabbe59c98a57e3ffa5a1894b21dfec1f47754939f4aa2148dc8dbff274469953f2acac759eaca04d9d19e0ab3d7c41ed62937473f74ffa99555e4e420070be169786dfd3c1b93a9c32c8355c9a9235c62df957cd53fa9551bc989884440d9040020cb37e99f785547dc750a6c262a0553e6ec19abebc51f5af382047347cb04034ecb4519db1b5fa63a7b85377f2773fa59300b0d67a94c1906c5aca37648702e728a70c0a8a9ab20bb94961416bb4328e14536869d58cb03b121293975c3d0586f3c0e4786594f1fb346da42ba5eb850743e4872909ade90d41638360ae1358ce71293b4e89b40e86b5821e20dd9d95924ad8448ea7266fd84f49196eb525e0de1be4f6e535b8b1e8858735726a41e9925c212e79fd1d24ec57caff2019cf9b5fd2db055eec9b9e174789058be9314ba0d8d611224fff82f1bf26cebc976ce919115dacf2a077d4dfd4eb58613b83aeee2d6e137aa7e4298bfaa06dc9dcab7dd2e90d4a7507033acea58bfa10be7aa96b1c3cd26266cbb3f88076ce3fb635bad51297caf2ccb9d08c45eff89bb465eb024629dd1d832ffa0ec27cf7857958a4bfe7418c03e89009106f53a62241595a58a5c96689605c84b4680ffabbc04193feebbf722024c6a440bd20cd48a332baa929178ed1a81deb8134b2ac941ee5dd924e1c857f0c252e2e672fb5d783e7195139434583bdab000e0ba381079cb53beb850e3f338a3ddeb9223e9ae9f52207483ff691ee7907cde4dbb282eb75df35be3798678220cf8ad30169f9852a5b82c9abe3e02afa00022c878e7727e6d4c00fbffdde3cb6701396a3aef8e21468a96e380f63109501e4b9b32a25d5a6fd4cd35fe514192ef44d8ea855fe8333db4954031510f1cc7bcdda31ba97e4d5499815a41c5c99103c713c5b38ed116db440af99fabb8c5c30f39c9559599b842f9dea59e5955bd7c2c0519558a09b4060d6fbddb30489e5aa79a6f0f27145cc908b8ac84d6a2e0a11651786c73056293c0b117e9a131ce920d73a7e66ff3e7bc9429f9f9a30b027c48c5913f09789468dd26ff3de57ecfa1f8f26e43fb610617552a27b0dddfb8cc8f6f897e97d9bbf95145c61362bf6bb5181cce4f96cc4fa5b9667a71a42d3c324023c56e7e12bfb7caf8e78a52ad40a2309843cfd1274e8d6ec8924984de0670d0b438822164123b001a431fed2c3505ff4ab079797b0a6e7cbf9d329e556ee56ce5660dc1c6cc4a7a849e5d22904060e205c95a69212abcd107a02bc68198e297265b67ca356214cddf403422f51a6376676e82ca596f472542d793134f9f320fa4a18b5489de12c524bb69a0e1cbe115e1fcb75dd651d0e10291d2f780a5ae9b090dbb8edc87701dbe5941c3f589416c0d1da3744c2993c0543ce225b5ac9e9d383e661c8f6b0d37d0dd89d16320f18063f77a2339ad75dbb0f487c68cd0aba5f35ba68a28298ab5fdf186a8e7768d0eae284e1af453d430038b45adfb8c9ddb5e62810142f8c968c8b3ae77b9c53b92cb33083308c6261aa8b9cdec3f4edaa9c9fb11c7f05c87a323d0074d3981cc8b6a9706470953ce9aada4de27097a0bf1b74c6d8ceeda38709842c86ab1bae6f3c2109dbaf3a5a1b8c89583f57b4bcaf6f2d2f5070c43644d253a14e25338f0e87533047d23a31785fb5ae618e0a56084497bd28921481eb316b60d57db039884ad714511a2295e59796446838a72bea0b42f2329592b5b8e82303efb5861e3ea9cdcbbee0e7c7766f2a39e4fcded63e28ae633f968e23298b36534852562223a089bca5a229ea9afddc9ec9dfdfa26fb53abf716daa792d7250ba66724dee349fa90b68193f7d3bd027d39b5883ca6f218596d53021777adc7af0da24a93353c5bb3b15c3bd969137faa30c827241275aef4ab07fa04468d4a3e9f2931b981e2c5bd233f120009ae87b22dea7fa6606eb4e8ba9909e32d416da5b41ea52ec01f414f536e707b53cc566b3b9622f3a0b10684f32de9c895baf0b4baa8b511e0c4c647f151287c398782ee5fae338379c09d0bd33f380f6b254e25e6bbde5a4626a477bedcddf2146a53a9dd519c1a40b147b83e784556ae62cceeaea878e289228a21ba22e80415dd8434a65cf8529ccd93a32856d4eeeb759e63e179ccd754909128a2e0be145f39f47dda4a7ea9c60535164ee3e2b6240c8a0d8a460a7e9c3d46f12e4632f1833c347582ed7e1c49ba00aeef4332595553d025938b12121901fbe1e8193a4eff61d8a7c67a736aec29939da37ee404c75928e3ea10a1c4f54a8a37244c53532d2a49c7d0ef2b4469934eac68358c927a23d6e222a2e664d25f33a882f7dd8057d2fbd9253948b7cd6f013460621a04394dea4e5465ef4da868ddebf8d784bdc6f38179f0b86089362a42055582fe07df26d94c161113b063fc29fdfc89104f0b3bd6829c67ce8abe9172ce339eb5bcb813a6fab9542d26f932f29449f759d19fdb17e44908dbdeada1470af2bf385b53f9d0ca34f297da901377a6d934201ba76a242528916a0c181dc25e4124dbf0cdd20b0461485f0a3380c1e6073f99dd9d82add54d19bf23815c890201884ef5a1e31403c5be47c7d4f96be77baae3c4ce158e47c3109b235b84401c311eccdf551a59898ad1465ad20657babb7bf3dddeccb70e43629c4ec3ae606ea36d798f02e2606d83c88f9dd1f555030af3d60e3135eb89f25406f278a7ae852d7d834aff9941146f5f38b006a68b1b2fe9345ea45d37ff50329ef5cbffe190cddc98b8bc55436756fcd456bed1e84a86a4234a61c964b48f911730372466a0c135b394590a30aa3670f2c50654621c047a5d90ac7d38aeedbb8f1bb25f6f37f915d1b1c133261e7e7d45d43545cba9c21d8deec0c2bace88c5e1f01acb3aae9c11133df5533e81a76a00c5a455537d80a3b926236385d9c4744e9a147f6a3c1103e57c8f84fb7cf745813a5856af7a7dc0252644046bf008fd7f384546919e599ccdc37d5d7576572c1c8d6ce069ac67cfdc79775906cee06d0845ac01bb637ad9e5ef80f9a4315e932678a57f22dd0ace5e6cd665efaa4df819a3a417452c8d83781faf81511303249bc8c3864b278fe43c3b5e2d49cebab394f5407e4aac73dfa01436212d59f6d5ec394bb8688eb07b3f38f56ea2e3db058499883885ff5bcc11b93e6c7f67a97bbd82dd0be57ed13a0374a45698ef06000405c48af0ad30fdae7321b7cc876e8760933c1b6022d2868b7c39a1aaf2f3cbe80b918901e11d3b5aba1dc5d55d7b047c6a91bc2da1a51bfa2566f06f1f1d87a5241a2b8975d51b75d4f0abb7f2037686007cb167ba4a96273bf9817d8b9a867e7c4b8b9a0fed1fe4b324eba6b4bd35fc2655d53a193311075d2bc28ef24ecc9378e2fe0d3d4c7fcf533c8d190baede815b0cf5eab6bb43474cea40dac2e8c8022a5b64633b34af5fcb16ae5b9c55a83110ba9048787b2638edfe5635719a118a768386b6b78a44d523dd41969648ae048c73604377cec43f54623e745978ac3da8826dd90844a8d9cc9d59debeb98aaa2c7d09ed72a93b0c95cdce3808652e75df41c72588fa277f2ab55fd5187df8faf4334f6e2ce0b9d85a95923ee2c2d08a8a94f8ec446ca68d4ad264b8c1ff9148af0536d3dddfb4e4e7b62f3526feef218f85a2f4f9bd0bdf76dc35d5066c96c55fa2e811dab5da2aa76c00ff3f3aed484205b748c8b324f2facad85742c00abfd65a9ba41a43270527832eba28ca35ed99e4cdd6310eaff072aaa6bc0552366e65b12d746b8c91bb5aef2a822c39cef16234807004e05a7f0ef9d94d60350b22a1b5147ca2168c36236f0f540cdcfa132c6162c38c25a648f823bc501e4e51b1ff97c99d2031e9d9719a354d856646c9dc210aa5c99b9055d09380309a6687d8b18a8948af446dc884e38cd69fd082f3429575e18cd1673154a80b8c8e8038dab7e65ce559f816d327081a7d1f57cc727270183a7471be1571c17b27f8c3228241bd61bb9ac607f6f8d3ae50cc4dcf1adf4757b47894e9b32ec3551e76db685a5add05d6e75577199f141072ece1cec39bfa68b0c66ba6426ef649c457957b8b74b7850ea9ee5abf10e707cb9bfb9cecc00452c3637f67e46716c5198bf0d70b37bca37340d64aba359b7542d0df8a3441fd7b88b642e37a37be4ddabeb9d3262e723efcdd8436d31f20018648b2448ac80ca31023ff79dfacafeb93bb6fd6c660273be6cf81c70cf6d8e36d59eed772b6eeca848c79a68a366098bc443790db5bd3680158d91fd373be621f82b3222566b1b6b86c66b21f84c5dfe8265db4918c727ec07640a09ebfcee827837cc532d0ed74378e9935d32ea8dddc153a3ba8a0ae05f0caa2a318b81d65a57cd5771d580453eea13b60997bf115b0dfc080783e313ae121dcff38035f04f65f84bfa02080d396ebe83cd255a80a8240c0598d01fe6fe821800b18ee2ee106b6be0db420d447de36bf17c8d30600b49a702ccf65fdb3443bc14d21c6ad6b9278f0cc1dd306e7a059ad72365603e917553c11ca7ccaff6c9861fe2e4becbe3a9bc1b3b27f326dc6774500452e09adc9be9ebef5a48dfdd02da37efc040c3ab35cf178f7ecef6b80818211709a973f8b53d4cb01b277e81405df2b97fe94461ebec637fe0860ac93e6ca405924f3a5969f8880b9b0e2975e93fa2e691dc424640b5f27aa9f3359324f7ca1869a7112700d285be00233b7ff5a4362ed34e66f9b0603a38c2e70950b69d99e985a55f9fa843ac0b086729747a1557ae665e1fbf6a904f2428f123ba9fdf0eaa3f01861d5e0832d53176fe0a99a369ef9a7a4c56a2b1a831b2905fa6c146c95fe03de65bce0b3079c2443e096e777354f45978465a5b5a47b483323d0eac536f8ad2776df125d5219c49e7fadac6a185c60fccd5cbcae2e2685117f69c70e751a60b1360c9fc163a197154118aed336f8e0b977f0359a71e17dd10ba6dd52e12b3480e0564b5cff922be0f7a91b7e9b59dd8b281ddb8502a18ba31520a4955d9fbab444c7ecb00a368b5a8c3915d01cb96baf969fba291beb0f4f96d5d36c5122d289781ca06cbaa6444c3fa704f8d156c6b7490060ce842056ba1d0b168513c39ae1defb410efa48885fa6c6960e97122b246821126e549c8861525e25ca5a901718e7d00185b1e037d90b6215619a2095063694b1d095cc90e9112997c2e421b91c1f3404455557235c2ea46cd9ac9613ec6f6f3249c30247c84bdde91b7fef57c99bf53ddb2a69b8f16dbd7a3c3a72245f8afa5f165b3557b6c52880c33b19e0cc01db4983e28992d81aa3d82f557b465c90169ae8addaf1e214e93aab21986505f69a9cafbdb0eedc1da7ac181f3bc8ffa51f8d99fd4621f3677a95d14d89132388df1f8658cfa5be41ed931a75e0842686a0e9dfcf4595cf9c8d954d7e0dff95279414f09d2f981c3a44d8a137afd2602b2d95c58e1fb03f9609a47d5f2a51f89872b76904980360a52fa223e2e3a2fefc1d0ab4e0d5a932440a51ad8ab5b614b15c1a7339686efffa6964665bbb9d2f529546204e4cf608aa50a4c43f00fad0c1da96ef33c3efe7fd1d45f6a3e5217375ded013f643693f79336261c14d01d2dfe8a3c1b97dee73c5cd11384bc664e10223d34f8c6f5f61f87b84c127251d3a61fefe43b4e1851dfe02aa780dbd45d9b7212f0ab09ad2b778b5b13938485938e410030c738e47c01fda24280e5ef9ba1aab93c9dd8e2032f3b27b861585c8d3497b989a979babb489c306110ecacf890de52f6e205c5b2803a02b79f5abdbcff961b2a3baf4943b4dc12c717c478fc44a8851b63b855922cbadf9a02f1113bb5f246df87eca4676db6c3132dc82b1666c2238f33f8fc6197dabab11f7fb979f61dc400988a2965f07ad3cd56b0e563739fbc44eb6e838a0b392e8fed5e0b67e880a7f74b44d6c44e0be7a932b5c7eab47e04f9f7f9e9149dd4bc024f031637238eab17c03ef91f0926283309e1f88b2b13f03b044f41b459a2ff2a129bdc5266c95c333b15b5996a0171448cc3d0d4a78fa82d96edf308cc4a5b27bdbf3764cabb58bfbeb418c1f72758c2708392e2704f3585f39ada8fc7d94309d7195e6178dc25eb1e2eb1f9af94b57cea413084abda55ac349e7e3a750d8777cd1c3dace4f108d4d6ee6173183016456b4e640663ad61ceacd24d313134ed49d8ea91677f2aa1af7a6616a520bd55197cb8c9023a3f4bb5cdec6b2f792027fb6fa3c78d57933d9048062d034af44be66b5ba14816ec1cd5dc96a6b37ef170af80d44e90fde404e9c8ddb7d4a1a402672ad979e43ed50ec3bebe1c632d2d8ff1b77c0c716c5acc237ce3eb556477e9ec5d9cd2ac7bf8cf6c8ed6700c710bd2e3d96b9bbcc15b0163e1d60469f6170ea08ce32fdc3f6298995d20745814d3efe0f741c2f5d6d620afa8119772b2dc4069162474a36fe3dd25f380870fa11fc0ac4c0d3ec2c4ac59cda4085ce6bc14390685aaed64ed6e37b9ffd1391177a2bc0a156f9344a2dabb7e86904af51d82c03ea33cfd81d1b7341a4f18023bc5fb588c2d0d83da3b3c706df81504652de50c92b91a8e1ead34ec71e738b553a0f1b0c237cf908949671d1d79b2d5b8c7c82e043825e54f8b860a59fccc5ac783f3433cb4ded9d5a7f431cdd231cb8ef9d8fd9d9259c2cb432faa2139f00060dcf21d2de29dd47cb344baca0e27e35a85a341071be9cc896cc3f1ea52bc9719062aed089347b307450d0fc7cf7be0bb963e1307b6c7d8e8dd4ffab215563a75491b54ead7db0f18715cb0b77b2dc1b5e82ddfac6ec764cdc9fc9a13fc1beab995daeefc7ccada238be286e73ad995f8a6c6fd4f8e694ff65b490f23a6de7c3f35b212c140a00b54097c4092184396ac0b1cd58192faff34277858c088c8ef628adcd192e063fe16774359a83cac944da5d2928193f4ba607f85b76e0fadb68c007177d47a4e584c9e2327febdb61609f5348e071f963755b2c597331eee7bdd862c370d810e935e262b7e2098f6f58c53aa819e48ee06f79ca0d47f46f572090ceda7f298c4d2b84b92960af2eb86e15a3041ad4459850eafc0afd1f45e1c2767c009b9348019c30125e434d558bcd79e7f284cfcc746e130e3c12a81fb103f5e0e7a8e3f151769f3cb4ef4d2984c51df1e595564c60394d698a40e4457df352e3ed3800e22df2a873097df6b4f7cbbb75612affaeb86c83b62e0b6f40aea4d615fe8e0556bcbc135cdf45e033ca9a52cb9e0eae6879e6486bfa0a88b245502e4f99ad37c7886d06aa383c4f16cf65bdea28024568ff681e4830275b4537b281bcde5bf30b2ba0d8b59927def2a31bf3313069c1b125156904114f19604a17e5641ab731e220aa56192646c230481ead5153e33f743a07e9388d8445ae2d676365c4fa84a903f0f00e10154692c046986714745a1ca53d2e0e0482e4665792b4d936fb8259602597222377b7cfb3b256293bac7d01bb1cb32330ff0515d7898df16ea719c45f752673a21f149fd375006e7bd7deb28a82fd67af89ad2a1a248fff05551b84e9aafabff8616b4d282531eb92268c278162f122cc1fd1f652d3850b6b078eb0f3637dcf858d5e444b5587da77ba8b8ec7869f0424b435dd7854fa2eb7a20aef1eac4b9924ba1b0463efdc01acc92d5b2cac9ccd929adbd9548bb3dc7a080bc8a68de75b7d0d36b4d4c8ee83d653b127c7e6943f7ed954180451c9c54ff78b66a9f4e855ea16fe90a585abe78a6a5008e74a5c1a3af43b7394533c19f3c0a294d6fe4cad5ca12446627c0b8305c1e7079873c5db2a2c2b223bdcb6fa3a2ae0d8568014a51f83cdd2fc57b2de53d95535be6f199c07d9cdf064f24b254098c1b2d6f44370ceee9fe2ed486c8f949cf1a45d7affdf2dd91df3f381fc0814719392c62e922cd7c58205c0c4e1139c0576a38726656a2d6970b940893ec60bd1aa4c07793599bfaa1ef15e80196941bf94dce397eb960ec0e0907c0cef645487f0c0ac8d7fd2dd329a434a70d0d4405fcb4195814345fae3ddddd605255bb7034856240ebd7c1832018f3596d220ccfb9d8d6ce09c8aae934680ac84e270933445683b92706d07c4b3bab2bb4b21bdf86c2f27b0822a5a3b9207012d9897710f5a50be5ddea7d82d7c219c5fba05204246b67aa1479ab413e28b969259a35a1a4d613d40c254ffd26f4c88c92ed42010a927e45e126c41b6f1e9269b45925f274de49a97f9138874da10eabe0b6ab12b51d85b22f068672e8c0ce4118b2b6bb53f08b21963c58786a2aafd8d2ec2bce58f3e0df587a3bc1c4976d461981d44468dc5bdf38bff1ce886f4186fa2d4597b4c24768df45f7f250402caa3be479b38c9f875f661faf8a77693831c562d46f461903546fc3583232776b8e23696fb19fe790f586bb923eca52ef4a04f62035b8dfd347221a0348cd2b261319b339747e36010a8abb391466c307014a5189e008bae88a9d89e76ff4ef637d84750c9c244fa506335884dfd6c8ddae0c6603b22fb81c894e7d43d8e39098876f9954dcd09fae7f26386986a3d9831446015d21447799dc11e30051175abac4570a66b0b7482b84f1776098beecb12ba2c2f07b6595f9d12f1741c6374c5a46822cb8cb50571f75fea953939cc90125535b47ba36096cc3812385bd936e68ef71289612255d9d8c9045acfa16eaa4f9762c5a53063b662e3403121b1b876d16df1b323bb84d7bf525849ca8475fd80658feb0e5026c55fef9bcc8e7136e9190cb657888699b9f2d58faced5979bc51f5f35a979fabf7f02b5d923df4999191b1b0fa68734d687719b0349bd014974b729e0e32134c936c934ec7c5dc2944a31e5a95fc12c788c293ba013c0bcd13ab8ca07e1237b061b65ab8ff47ffc6c75562cef48efaa42d2509bb986f7c7e906cdde38df35abf11721aee685ce9b141d19ab29a9a436e1507fb2263d234fa5853f23d3a2b914c4b4133342955b74bab53652da76dbb93f6613e28172d90d092520e86825bbf6a21e299a21044222536c273ac60293cfbd847fb698ffbf5ba7670b6c5fec3746e684dc079ddbb7b1ea7318a2190ac5bc66048da768c1d0d3b869f88a3eb331f5998303f14503217e41921fc7fae5a3fe89df9e30ac3884cfdc9f52f325a7be91f3b94d40857c5a7781c56b421907910cdd7bbd227ecb69b8290a6cf34bc184caaa03b33d932ebccdd27dc54d83cd92b6898e69f154353c245e513e9cf077760b12a2dc3d01cf626538a96e223443040508e3add026d61378d58b0483dfd7e96c9eb0d7dc63f360e5041255253183e7335a88356eac4c44f388d168897b32e81fc9881591dac7682d8a159a691eb56d531eaffe3373e87fd4ebb7072d06fb8586387a67d4183875949826d46eda9f65bcb17e06eef00dceffc57c2afdbaae1015e4558269a2150bdb107dc1be5439982eb766bd495eca0dc42fdc349ab056d8b0c4daf8d4f3f70b3ef570ca8dfcef8122dd481b45d915624e7324a25baca2a5c80d0efc52e58d2359f9509a8871af7a1880097e2995237f50d1ee810e9bb791fa711624251cb11085bee4ff8b9bb6c8e679d30608076a1a75c6abc0d81c6c5b6b7f050e5e32b55c703146856d5472dd9df4620b5e775b75b11c8961bba832ad08d2acc8b0398da81994b58abc312adc2e382cd9b8c4746f93d008b995ebfc9e2387d514ab2c60aed630dd09963c189df17a0b045b7ab90005ee404cbece2a0e686a1f094fdbd4a971eb8960854e60cd9ed750cd35fb8db963d91c9ad83bbd2f38a5a9cb887f012d87d0f89d5ddb98d57027b094739a23094d75fea968a2f48d11e1ee40bd7f4ddbed2059d2898065bdb318d081056669a7dc5d5096714cf718aaaa946fa5dfdadffb335c802ab6a77fafa3bfda020e2122420d0571f28031a5094fc2c23d6e599f425a32660cbad3994d4fab6a1a8b56ea110896b241c8d6304ad0f6e923c24c55a0666b903cfbe2ae1fcb80559a9b4863d7f90231d811a019464485d2b6b21595cf5e0765225794fe296ee15202c9eecad75b4501a5ef89c84292bb84c9724145be2003f37f8e0a4143ed391e9bfa123271540c9dff0097af7f5bfcfbdc6de7246b0d3828282efd5e9d06bbf1b872016f4afa9c9b8c817949188efd196f91dca6ce93603683f0cc0b1e5ef08bc1342bb316db33148ea43424f3329ac0f2edd150f8a9292fa5933db77ea1022c1bf5dcfc5fe64cad0f2d5efcddff8cbf2197cc0540838c7e8785f567adcabd4bb32e2d833a8ae998498a83dcc07a4315980bf1391d1559d87ac45f8380b35c2e62a5bc4be818110a0540de56168dd93be290a2b93569342627834fe7d22968267ed432da4bfbad156c9de947123efac53a4f75162b849ebfc84eab808776bdcc791a16748ef0f062dbb20b56e228c751804cd48a010a59769f8f82d675371a214698d132eb494a1e3e89312de7a5fb7c18dd7d5eee460141272c39581610203f1309fb69b86d7616a3cc37efef999e258f6e4574f0525a22353db81b539d7c6b14ce5ac36ebba163b854d2cbf3d6b5017c2024ce6ffe2ff085b20187bee2a0331a8a024f14820cd8694444834eecca5fa0e05487049e77c449e9f78d67b97c963daff47316d6cf57428cda584027c6e56e7a84886c229b759118bc8b2166b8e52d32811744499f82b247f7aadec1bf5cd167f194ae1a9ecd9a38888fade9a588777e89e3bc523386454066729ac79f55014606adb11c3c3a8d53a3e1af938b33ee93abe00ce9faf968f1acd32a72734f10451a52eafe8816ca2887a559447ebc8a4d925f7ee961c9a55658d0c0edb232cb4099bcce784a2969c0f09e110be35e74800b447b57082943090c08d472a99143260f8c0e0f0e7ae2f64d858efac5c4e216cb60f998d8af065c4390b750c9f4afce31c8b43faec4b54f102eb30b5a288f05d015f17cdce5a5852f40f21348d0de9c07cc15a611f31a2a3013a0366a2d662da74d84e51e9f8a1fbe5e8edb83c1986482ecef8cdc17d8fcb673b04bb9734701b769561b2ff93befeef0d0e119cc8f9b550ea69c737586b51a0ef9e9d7ed9c3fbee58773d833fa44f2acf4ee20ed7f1d2b66475f592faa60d8ac2bcdcfb58adc4d72724a34badc441552fe2d5f9d989bcc29a69df2f94103a31be8d4d3edc533f7661fdf870a2374353d489d0719c554ed81a5cfc6de0eed1ec2cdc9a6056efa6d4bee041bb2191aec3db180abf57644261926170181ba0d1ef70807a7b2b27ce9cc69e84bb78d2ab96f1d7204a9b8928e377a0629e3d934ee584d2d8eae48b0464e00bb5e42a6fea496b93366a859f1d9ebb32dfbcae90d24cc6530203898843a9a210e0e81236f4410458afa388df0e3ef94eb5dc3acc1b44fe543aaa87ebdc903c3bc8a8a23fddcf2896aa43dbaec53f9a510bf560f789eb8aad09e869fc5c20e5e8fe8c7caf6c25ed1d37f7d322cc5418a0be52bc051f9e45050b7fefa97dd1000f70d64f37ce70296a75e9d7d728bac837bbd91c9fab06a1aeacd45218cf2df786ac091ebd9894728cf4d9484989ec299974b9602b784fbd5b6b1003369913e930d91d79704c5e8a1e7838ca4c7a74ec76915958ed595f2ce7f2388af26cffb776dcb80639f51869763004530ade770a1ed15cab79f37fc8bdae417a9c1a277bc62ee430519c9c5b850533c29757814b523682e1a575733182a36aaf8c7e75472675a9436df472ad36a26fd6a49802f5604b762c3ecabf4cac8ef87436087058ef71dfb47146d824348da42156055ce7d4f7be000ccb8ed1373b386c8743a9a43fe28b44a258f811791e1f2bb1e3c581fc227abf014c9e4f0bf6434e68f44e0ebebf9b9dd281072abc187c02003a3c7e5962a1d82eaa7c49d30bdb3f1358f9f5ea350b3b069f37056707f37e94c3f6fb80f4d8c37dc2697f9bb541712a25f9ee5c4db7d5e4b308e4f037d0ac2b014fdb97da2327e0ff0e52c94df9911707a5c0d70fc88df89698a8328112f3ac8f7b577d70abbff22f45c0b93972a64241c741e6edf3ce2eb4831cbcde7f56b49467d727b9f0b0db0b90c6f6266d8f94c733104e90be88e523b7f9545208d1eba1275bae467577a46f1dbcc99b8ca025d4c21289da7b1f588ce9a9738b377d4479d2a55553dbf2d4a20751d407bd30fffe7988035ec91a2096e9ccb7011c78655ee59aa31e74e1a760c5e7d2c92311fb9a4af0876eff33a7135f147e434ef07f6a6b1921103038ca336da832d013309d8a1d761c519a14ed1a05477e206798cf20afcf1499ed1e39cde023d1093aede766480fb2192d73833cd43197c1b841e346db7aebdb26af188f87ddccf2649e5a95b296ca6ba82369f31d959bf8336ea3ec7513b50582325840117f22faa56d4a53c31b8e457ad6b187e17baab3105d783385f3a45dcf220ae22eb536edc306a26d6224a253bd1b8b0c090c6321efcaa4baebf2ad251f59f168e88c1cf3f127e02fb86206b10cfac554d376710dd750949f8ad9cdbbcec041e91f48eeac765598dec9eb4e07e9dfa89bc0b5e3672356f952a8bdb66821299e99d0b41779e857b9cd24aae3e9316e108a7c6ee140a5d5c0b0dc40fa7f3d358bf2c27619b9c950ee6e9b0f7a46147625fd38ff16f2587fed0b2765dcf54310daba563ee1c2efcfa413c9f8e44dd9c3dd5c36575ae682b28cc664e122d1151dcdfb4c59c9b639f688999d1557c68306e8bcf1a151eac55f0d6cd3635879c58f4453fe3836112e6d3d75f3874cd14b383e1c9d956ba2db48c140e299660f35711a323d05109e47acdab3b4c60b0d034f9616073af56284fc243d8a40030e6f0eaedaad90442c059a6f52202f1f6caa04b0b30734734baf81aae5b8676ecee68c28fbae1bf17c526f20668bf62de7f3841ef752fd3d3e211331d8c246d84363c7b86a4e7a82f42c778a014a29ae7840f10f5370b0f17264344cf798ae9c77ede5526cf05458b335482d29d645ed22a24d36d4d5e0b06459a62a8e2436f58d1fff5493a1cca905b20504d05f24e5a4307a7d2d42913553c7b10ab48eef48a5cc5009b279386acd32f916ae1751ff520ea795e791a1ecd961f52e44be9950e5d850156bb88345d68af7d9f827388b0fa01b97cc49803b7180f90d7618750be428e0aed2c640647fc8eb9afa1b49d5b2c50e76ecbdd58445ed0b71392d97396eab1c7774726abb47c0fa9244c54a6f1118a9da7bd9a39d59153cbce8bc937d9fd13d2b7e579e30c868855cbff7cf8d4018f0e6375df19d2b13443add4911d6ad37ee41b4950f55ee63422fdee598d041490825ed2858d8cbb6467017aa066a5b1330a85545a6bfe657b2bd18167533ad295727e5f88f7b3250f2492313eca41cc9457b4082ed30b701e618a9eaa5a352ebfad509dee8baa6b45a883aa0118006f4f7dd91983f51efba83debdccd53264212c17f537c0092162065378ad95792703c9aff88ceeb56d4f4f407641d6d6172e62a470e6aafbcb498de9ff691edae40b059016b19c4c72a6571e636ba975bdbb0dd186001b9224ab16568b4737cc3b763a8a19da61ca821d9999a6dcb3962c5316fbb120d508c89d315a8a8e20aaa8703a499ee5abed766341f3ebbd9d691f4bec075272e2fb77ee667bd39e8f7255ddcfadfb5bb6a718dc701905d2008b6a96684b454646492b2c1b771662e57bc8053bb02b2c37f59a383be09b6c0b37b84c1888710311527dcb5a8198ce0e0647e9e51d7de561e599e9e8de578b928e102952761ceb3c560a6e4052d9f0a8d06d4102b02e865974bd8cb85cce5d4d4d355ba83bdf53b29ddc26e467072b5fe5da933a20d9f75251cc790885d979e8eef0f72b1a2eafefd62f7b7f8d5ef9f1de2b61339c9fc6f0e8afb6513757d313111979aef5405ae5ddfcc7454e7820f0d59e8bddb8c09fdab082bf7319a4b37c597f04ec45f613f466d0fc6707b6d1c0be09ec3e70eaaa039cb01bcc1b788dbe4ebad64f651c7606802fd6fba9aebbc52e26816e97f55a4ceef9eed35af90f65f572a106a9247cdc994fa9309bd2f3241e65b4a850d92c6ed1892689ac52758a8a916ddcb8918b7e2a9031801a004a4c4df30795c3c10cc72b00991ccd4403f1c74065250f15f5111d6c9535eb182ddc7e6718649593a6addc667602a6739f422962ae1346b01950452bcc1128071b6d78bbabb8ffeba7c6d6231d83591a122382e4a0121466ffa42c1f3e6a294f4007fd7be280da1fb5bd1c8314ecf7fb6022f76948ca2d257080f3af74e429a2c82a7fdfe2c14d35d89dd1ba2ac99f294c24839d7a7041250d3a16564d4ec6d5337170d8edee2eec89df0a8923e9f0c124672e6a0acd39ed305155680bcc411a948c6175796ec1b4d91708690b1be072501328c264524b1542bc3ce7c486f996bf0676e1c68884b1d60ab4c9534eaa1f6e5600220604a14bfcd1938f78e86588c6d409fb900df548c7d3d93b0f1b0ebf24d79f0b1aacc44fdca8f2b99e1a57d9e3d1df0e976a5f5885b31c5e352db1ce1078f22f229eea47be39eb831d0d85c279e7d623a70e7802fd211317a03370a1cf0fce5b33907a3be952559135e53bb1de7a78b951fe9f0325a6c21ee4ae42c5feb6210b42901c4e644cbab2de50034a35773110849dc982d7a447a97545bcf86e21f9f3829565b3340af929317763052a5f0f2ca616c4d1e436a7a41d23cbc314444c5599a1bb27854799d5be22ff9faed28336b2e6e4f1eee22e4a8e628b6f85be23ff656a600d3b0091d7ea2cbfa2701b72ad8c923ee5d8c20f795f75496cd9dfae1f299769ef00177a7ce66847b6569090e248ed92894e9097500f430a457cfe5d0845905138cd6257fc299ce177fee0cd7dce11cea8956db156e97c7a27e0cc1a18d0f106809be41bc8d7d6258dcdfb367e9af106c21cdfaa8dc6136e9230ec677414b6c9d8d16aa19f2b28fa3dcceaa06beb885a50e73836fbf7e5f21499e3f1613a21a9c74b6faafc795ee11bf5cbb106a85634ea6c07b2ae8c67e5408a93147d67f0ac9b166b202bf52373e60cb19f1157dd8252e53d8504aeebeaafc159632b430e931433f054954709f1b0205ce81d8ae48e8ffb66430a45c778f4b975490fe736be22d475684769a039b7da9a8f07e6d7d1def5b91d9245794b364728ccc2d785fbf0b1e42260ea34a95dbe22cb0a29c1f6d7d8868484f6845f473c183770abc7e48b006674459e2c8e1dc768384e4057fffef7f76be442f28b925cd87ee1705341309a051931ef6b073f69844c61e3be4c4ff7de499ca608594b1a65856fca5688304ab9707e2c4e5e188ec5c43e95dcc41a0518aea148e428aeac96f4bbe88497e25180e47b836457eedc9dca9f3030ee742899d00fd8d8173dd9b39e0b082914834e719d7c24fba7837f4a30cfba0b2fb46cb6a6add3b574a9c88a446fb4af5e0f182780bd454706a3cce4bb19bbd32571a2bf85ddb7c064cf1a5d2dcbdee8052547f013a68e4cfff00245c807c7ee6bd28038a336925de9c59116df6c6b566de4b8fd9acc860e956c8dc19bbe494047ebecf834bfff0cf7cb4ee883ed4d1960f4807d787383f231e6df02431c4ad2bf87547e38ac8dd1c57d349f1591624faafc14e7eace889208995255723c056cf67d40fb274d9012b3ba88ac179824c8d378bdf9f2002e129d2e3cd59f6dcd24b7487b7390d43d1b9e8947151fed4c523da02e254119f01c35f3f83cdf8765d1696d11fb0f337ad1dc1814bb06b707e058f9d32363dca95301dbff6c49519381e83e5fe671e06b54059b46fe35a5ce17cc3b81e58657cf4e190ec5f512bc3cb8b4e2032eb1889c253ad45121da11b5176c6511f84adb49665ec3c87a098418ddd53c6f851f8d9ae5b30d980aecb7e8316e10e92f20dcff34d0852a951218c4dafed8cf0f0b7f49572e6b2d8b7b0b0a28474291b1817cda6eb4f9110cd3170a6637c88db60b55d3d7090333c34484ca22e219a1a1bba634d7590981343eaa877236d41a36b05021fb1d79181f503175146bea135190c8633ddf4cb70258fdd35d8187d158fb2a0dfc3433d662c6367978d0faaffb93a0197c47ba50bf4412a3781423dfb5ea268f1d131759a483430aa671d31825d8b8c10f2fe69b2ee52acd8f3062b0ac5806e4c51466cc0f3f8d7a13e099891d9b4aee981f5e56bdf57957c0668c28772dddcc87ddaa418ab03dc64d52597eec9432fda618f20385899bb6acf5efab291f8cf4c16ce470963dc949135d2be9030c2bdb7ffc40d72980d0ff85223350ee802fd40cb41cae94960b1c49f436efbe37f6410310c1703e69bd6275cc6c8b2faa2da059bc341a9163b6880423b15d4716fa3db6425382cdedd9a6a78d4417bd2640029c5c0be12ea1bb2c9564487845f073d29a674e24afc94e99c8ed6aafe6d328d1a09ba18259ffa84cc79d71c63dc809c8ce7a470f5eac110f2adb3e2b10e5cd30e49b7d3f4a649cc66f8b2b98bd858910281e5b424951b3cf7b8b24f6115a858f624a0b8a214484d11791d771e085d50668e7f1f1e78788ab1f5811d6247549da4314240837fc0a62cc2116222bdca8e81f7804fe90e4711ed4c8e49212f34e233260fce8b6a58facc9d07e9ed8783d7f2cfd18e11044c613d32f3ebd54ccf4a26ae29722c384c4dd01666c956a4278fd3ced310a5d1a0b32c5b93f65e6f2cb0a01204f3bd2d521022fffc24bf06c22ffceef4442d58573e52564e08fbc5439030db5c13aab9851aa3217274d1c0b474373654934bdffce42155952641bc3a34a53673c4333e233390aa20c8fce52f41807721fb602db2535b529a15a1f80f5c8f3a7b55a9c29c0470d215d804ca612173af4244ff1347a550af77ee22e37c72301236298da3b2ebc3aafbebafdc3a3f0d2429b871cdec22604fc1f17f0356f51b411f34d87bac0599d54abc517040fedc68ea30e87ca9b8688c34173a054b512dfd90b66d22aaad83fc3cc298df9e6b96acbe57b19ce9e9ac44d6f3363e4bf04ebcf0dc4df4a05647abab73de1c1e8f56d49d1a7fbff888611045003a411b7181193c909cdffcb943774f50049fa8e4dfbee7b17a608139cba83b26113aba348fa1db681eaba0dfea75a78c7eb9e6908a8491651ea7904c4d6843a672ed89f52c5c8af3891625ec94aeabf4d9b1b1350b15fc523eb974065c245d974296b81d1fd4d05174a5b81509c7121fcbdcd393c5c908e3a5db7e681764ea6db1d5ce41582e8bd35d80b6c709ef6c04d0edf17f0a61219e38d0674c09e2343fae58e25a1dbe575a8f97d5780612246850adf274ecc11a2a12010ab4be4a7f390214b81867eead17d8874219012086076ed4f78694ae3f8e0b031f94a97dafc7d052cfcd746eb5f895d19e2fec2536f4c6f2e0cecb378d1a057fb2521dc3c0399705fa8d664b17720605dcceda4c53467c51f10851b4e15fb95268b0964ce402e03346cd1bb82f3cf6c1f6e172efd8a65f4ee1c9dc57439b30bdf9f8aae52b7b163523c9f1ab9a9d4afc06a520ec42c93cbcbe8cc5cd436efd18f6ad196dc97dd7402633da1f81a7cdfc5cd5eb24cec1231fe244b05077e8451bee53ddbd6b0dee2ab83d58d011c994dde0d0490d348bd2a9385387ef6c8479329429102dae0e7bcee8a81ccd7cb3435e2f44bc7f31ae88b83ce4a210c6a312f9a81adbefec03dd0d9586197caf393e2bc431286f37464fd5fb26359eed8c590c63501ea6ad3e031c8632ad900c9a961ed7692e9340eb2db9e1491358f33560528b2c2477b9b5efea43605a5f59d5f6020ae446532c98cac1fbbe0883951d9f9390d20b812b49af19c272ce29ac313c1507cb082bd56673df9a9cdc9042e7338039fdca8f48b83280ba2697deb2595c92a774cd1b4a5774e5980602a87fd505f878c9e335feca63adb35c3d555c53485df8c97420cbf020450496c3a0263e3541d4406b8b8d024a218de0618db7d16d1975aa6312b50e9fbeb808a47465cf1d8f30c91f349b08e35a737790483d1213453f8887f224dbd1096da6a598474b37b182b1ab0ecde048112fa458896fb98a45a518cbf175f09c7d77a825cad2858c2bc8124c93de35b487d6debacbf4340b3b83ac0c16f86eaa3df8ef86708afca6fba43bc3c84fb9b72fb5b503aa79af4b17202aa260715c6e0925871cb24e6cc49c6a322adefcd34b865490c923de8eb1dc111bf60033655bf3f9fe497763bb0fc5cda18b2e3d54cd0799ccd438aba7fa8c3cdc74756aecef8172680e0bb09024418e484fb21b72cac3828f59bdf911117fc69287626ae8c3313bb80b09ec3c54e3f8331d1341fbacf375e51462f4540c31b99ec71db11162e9751f3c67e2a76d979908500ce43b65f5c0099689f0353a9a7f32633b09bb196f6e56458dfef39705a7cc9b47b2a92b99509556c7018bf83ee15f3c26e28ceb589f4d8b32eb92d71ec43067490468e3c9a9f5a8616728304c48c36e3418dd2c2b4ab95a00c1586c019c32ff194d911ee003cf33aa762bc7f2e9744dad26e07f6060b8d7eaa7acd2130a0c793bb797de408393df650edbb71a1d81cdd0dc042ae8e2015cfe1230ac150adc026a431ce994a47da4e3d1b4115c96310e48d56e0ee42797971112d85a7e516381e7f356285155127fc0542b7738dfc2477ac147a5992ab8a0b8a503e2c48955c61c2d4f6a4d7d97a258a3132ad4e4af6e3d8eedd131609e193a43d7f0e891afa685e9e04018a57487e09dfa2d7f69eea1d4fee05c37c075966328d8a547d5fd6ded7609d2f13983700d03f582677652c1792497e20dfdc097c5ef7e72f7e88c8a33cd6c20b0fd05f23ed6dbb06cbf78df6488a2dd60162af16c8e7b1931e9957af927ec3f888fdb0a3f28a021dd9612c59aaf8c0fd368f4b786e4de260216cb6626a1734fc50963edc95a97191ecdbe329b5caa3d720ee327f946448d8cec1afeeba2d25bd145b7380280dc6cdaada2af0f85cc6f7e977ac59774adb74b02591ecebdada29630e2943b71d4559d563f032f9802b991c909cadc50cd916deac7909ae97f013793e2e092980eda30d318d8568c34d04440e109b336dacb6c013092a4660e96bc42487bf323c5c0c91471c1af0a7ca3455fb404aa486e86d97f9cc65527a0abe8db7c87e039ac00d88c6c86e0a8487221c512f3328363127690bb5ef49ea65c0cfc8ee2f4fa30bc6bb051230202bccda6eb7bd3c77052aa0dd3b04842d41213323cbb1b7753ac9ab652bed0fdb605ed44dd9afe7c7acb65c2af39b29cb761d0d936c25dd5a224d3802f547ca9c3968a5b1434365bcd500673333063b65799422da8e0e3791913c6c676672ac365c3c734a02481398311f1aa6753f20407c05b1633bdf0636e139e823da9bc59f7b4bbe48a67689a324eede2a51879b4ee4146838065e9d0d5435d0d4fb4c6909aa5722a1b5289baf4102561cb7296b82df8ca0cad691e4c60cfda058ad084866b039ca0f57d193b9d1b55f39d0939e7ef44f5d2dd77b2857bf0fe4b1808b440e9b8a443f23ca7cc4d61ad2bbe8261b0386cf1d4721fc41d6820696ecd72e19855e525311301faaceb5359dc743e6891bb0b4ff66591ab6c4c218c22d9417faa8e0acea2ff716771853ea9e16664703bef687fc80dd2052cf309259f146bfdf37bfaa10b7d278654d05ac31757a03829f28877faf765b57bb656de2392192de69ea945a561fa8cdfce065d8b3f6ca98f41c77cf1e3561eb8d6daf1e90246f7041b1f78ce9292984a9246c6bb66b86c53d67f78e46d6020d29532d45041a924528ba0685c2f0eae72ba1985087fcc2c0b9796d345606fc0e25279fa13f77b6c94465729c3d4ff703957bf698b280fc01f090ba9fed24d291ec941cfbf15aaf772c02cbaa7a51ce0954b684b36dde8f7d7cff74a9ab2a92dc57c6488a89051eff0d45ae68cc7d60b76c6dbe4712b67fa3aad60ec32dcfc267e29e93580738ba3850d1efdf4ca8139cabbebda54201660e7596f86afafa9b3a6a06189fc18096fd40429d9f34ea3e352050745aa6e98ee9574d11e4f5024ab7fafa45c60dba89efb38443d8ba6d00878d074ba52948ca257b34fb440e150a9a78fcd5ca524e71d6a75ba58d37319a9e379343e447d287a5a4d978ffa4079c11ad3ba9c613575e21471e1aafdd25740ec2300c73ddf247fdc247479b4765b360dd061080971a4dd32155da0643c9480c57264a0289cd4a6e8e93d0e0b87f80b3051707dc7a81e625dbc66e073af5997267fa30f15f06a76bc9ae14a10b4b31fe8d5c0a329517319ac391e19a2b052617f6b1dd6d06b90fedfd478d52a34f38f47d2d00ed51ec7468618f439301e1d205b74f539cbccbd13f8ddcc172e75cf47457641a3ff146e5d9901de35913de4256a0388748716165c1a8338c5dcacaa257c55006f2917e70e28992ec4e8f4d53776ef9ce1181794ad40a99b39b8fa3e78b3dd157a80a0a7c72e16e9dbe81bf0ff24b2d69befd2d3bc4631a155dc05e1b1e9bbc80daf75506b3a41995dfff77a3e05366adbeaa20fe45277fddb2ee7d3b33ad14ab3e31f9390db81faff47ff30afab73d784927f7b8e8789acc791c34acca75d7a4f22ac02387bcd9216038b8714d93c226cd573542794a534f05e40d6b2d98f0b2d4601ebe58c4dc7d34e8903ff2933eec9419ecfb1223fb2093bb5da269b7da1e34866afe95f1acb31235f345d68d6b6092b20985419beb4790479a3f38fe34f45cc0956c799a72594140a245cb76b89fb6623ce3f0b0d467d3f7da012d56f9027640e1fa240c66715bfb14b49a8b16350505d65a0408d33979393ddf3aa29381c0a02863556d09452f643ae69df246454738acba5cd9d68e5074013f748ed0e095f9c145982d289dba5c92e4a38af6b30f04eadf6655bd1739f6cccaec3426edd2cf5d0f4af8abe7e15a5c9018521cb1afb010d843ed9aaa98396075534fed4133eead06a9d10914f74638facfd773f7595d01e617e4aac53c2264548e209b26609a0caab1a46bbca1ce008c6bfbb5864c854bf0250ab92195e1f28fbca620889572750f4dd7aa987088e92ce847218be1f5cb87ec3822b4d608708f46f781fb076b9b5bdcf8a88a1080aaee3b5f02b72ffd29a3bfc30d5167269c982f0f34a258d65ad5bcf44a1285f72dea64ba5339a5de180580ecf1cbb3ab9ef8ee463023f76b50e8f2c83d0ddb06c9e4a6dbb84862b1bb33c717063a1ed1f8c1d3961f6519e0a0d835b3177d9c9de0ee57f6e67cf55346ab4245b46f87f45f472f68ccf1e425a10c4b7dba48657b2bd68e782eb2a6ae403a9122c9b3bbef2a63bd47d4a7dd63539908d34a9da0d8035f2f0d126bc195306cc42f51f61a4aead721e7332f3a210916e18a4174a44d9efe81b6161bc2cd3e3eb9ec4890ee4ae3be5f9fe449b24d82ce846d6148e20e76634e8dd10b6368e67db7c8ce8fe46a99643839824a83c84a59bb1ce1b170756dffb3f29ff1b40854559e54585b8e10cca7b3ef6fb4de2d98c8fe6331628d835cad1fb81ef0d35edfc6d13ce1ada320e86c95e5fa51e00cea68281429af1ee0c41185c60917fa385e1438241b738a878fb511b59e20f2da110afd9e19bedd546e501f3c98d3a4e6aa365bcd2906fb07ae5d0f530d420a9d8c3b3d08a0e82430ceb7ea25f0ddfc982e13106c6b2bdddd08f94dbf7b582e0cbee85f680b9c3b5e874d3cb04ab5cb70ea60fc5bd35b29c49f5b4418fb26993b2de734b81e5c96ba40dfba5ef6780eb23bc9d79f341b47981c25c470d8ed21aa1bab10e1a2d883a4a2812505364e3e6eb1bc7337c9462ec0ce10f0f96a806d50e440b4b1e95c2718d3a43f4021a50020de01a36488e97425212b8196818f00f9e542b07995d784c56c7fc3a95081acb58eb1a97d41ecf10c486aef19b4ad2cd0d5719c3df2b83463a1583bdbb04b3cf5e7bd4e4fa4305c3b249713f8ee52cc4e2bfe4f0ab573cbf422e0bf417cf2428c8729cb89b6e61480b1e1f278ff2263387a522c0d2d07cbcdbb61bde813145c1e2b9dccf48fde7c61596aab0a0eccb7bbbb6dbe969829071fbb70e2dd56749410d7537835f71ba77cfeedde57571e5b87506cf9cad7fa3be4335d11426fb21d6a8475d29eb94ff79a90e39342f6b0a16a1a7622340b8fea6d41fa480d77cd6bbdbd5dcdf8c931cb8fe16891418a971357e9a8f040312296012ab540b87405a72a23f0755b2ef92b3f5fb917e6f5aca5ef61ec996f8215b97b29bd58e543d311dd609c9fad66c373b52ba9bbe4b23e71db790b05f66e21fe319b0832d2807d3f37e16d4724438a645172cab853fcef392c5ae7c1c0c0cb47b3f6650e64524edca03436db7fcff3df2015903a6a08b23f034ac733f4d550a3d75cfa3881fdcc5ab372cf2818fe803fb45f45529adcb097f564ba249fab1d1ded827e64152fb5471fd6ee3991606f10989031675b6ccf32a5b6f9b3927e060de2a73588fb8693ba48d4811b2a668b0163df0775e87c317076d6ea4483c85a169818ea2618a8abafe7735d6880e05d14dd4554377ab2113bdf39825e99259499220974b88e8f68ad577eada96d8c9db5b77c646b48c42fc0d14a2d9c1ba0abca0b81b62b0cbe37781637a0fa3dc9f014a0f853913dc6d88e2e554c1db69d3247ed80752fac456b18d9661905861d0bdaa4a1e4dcc13bc89ea5ba5c525bb4f469ab4b86db49a04d4276a7037e09280748fbb0ff7e88728061152314d1ac7391d91925a8d19e47c72310174d432900c7f04dbae968ecb0bfe2c4696a157a125a49b1d70ffa1bf94e9f054645b3604854cb7098b2011d53d673cc066f29dff83542952319a7ca2423ea999d6bae31a73103b18968a1578fa4b0cddabc589a8219e4b5f735a32bb721f0a24af017a241a9810faa3537063d2b473532a7d424a94bc491e768af5abd521e9517e8b5070d588f6795166abb0d764c3e8d519a249e445a04cf180b2d27fd1ff8508e0ab3d1f17e8fbb8b6dd5889fcb45e7ac6269040e5c140f78024fef940709807a621a7c0ccda060d2a529ed9db1d4c30614817f3f9d3a42830ca47b91e6588426124d8e0c854d85b9d11e969b0d40f70bf2e82c4dbd9453aa8362438b3ee6ec5126fa0788f793128d01c242f070c0128d0fb35d48fbae0defb559df2968c5a6cf30e39ea43156935305ac8fad353264de0a8a7b34fa97126bcd8860466a7280226e9ab2ed9b3bf2c1c2c491a00402fb1eb373e2fd51c4ca49aff14cc9fa8fa29a41421014866150ca71e9e6f78e59bdc4b72e3153fdf1007c369cbcfb1dfc20340723020bc89c2b6ce7ef9735866e38f65fedbe80d522584b8989ddf1d68687b776714d94579ac78bd033215c083cd7aaeaf57f3cbc345179e5e9f7af9625fba470b6b2caf2a0e51589c4743e00356f463de62b8e1cb0de9bad9ea1e67cb671709eeb42919454eeca2a797c9c029c2e542a2ead347cee30bae80675dc43145f824f7e37118ab23e546ae8111f70cf1618525c78b4c599e0aedee01592b2fa163f40290660b27a64b6ea893a38c630460159230c72b4b7b5dd726e395e3b7da11cb5c408c5ab35b0794d206784faa6e6805c3ed1dc7e01a0d80941cdbd55ac2d7a352370c5847225e654b4cfb9f3433236e8f7686628094e3e91ddb9b423100d89deab8bacabcac001e3a086d683b90f1c38f9d0aa89747afbabd467278f27d002e8407f71622df76b869df76f328bb9c3002a6c30c768ad37cfa6fb0e777e6e680ab79e726592b968c6e5c916fb08d818f220caca6f8143c147c121ce2414bfb349427020252c7dbd6f4b3b9706364eb39a08e7ab0805080a6b46df1c3bceca6e4a83d65939c1eb22f863c30d106f1807bb2a2768139a71165533d03b16ca4dc1a1c99aefe314ff355b5187726cf68e0992b238f6556366827f4b37ea029cb6f1a6e184ef890ff280e29b9e310f886b1779f2ef77b0ded2f67b9d61af333e6a646efe67acea49b13a1456ccc81bb30e133b1d302c412ac19d34e1d6df7bb2e0b1be9b2f900b94fe78b87caddf330d5b86ac2b7a90a4783e3090ab7cb9a1ffda7bd881022c35c2db16292930020507a1facbd61300854addd15eb0132910f975dd4e58c8a0bf5a5a6c36dbdd1f7833ca07b23f4fec11505eb1dd64956078dc5e2203b3411c38b823964c1796f32e013f3bf99126d6c263c0fa039b3b79d258453934e0826a2aba697ad4703c954c7b2112a327f7d015ca2a6afef062a1a9bc12dbd632fb2c04a1baed6a4cf26e43ed6a8cba2e49c83c34d6a176535fbbdb22d574585e20a93927e0b31e41b69ca2eb51c70fd20b5885f41410fe7f78218c88895ad237041e9618eba15743b08f27190492756dd104ac8ea7bc21501082585e560a3cc1a7d3237f68d19b0ebed9f1b828d3b70dabe596e3eb2f73c0729d14903f887aa827f82f10d33bbb87e3b502efd58545a25cbf522d53db9379c008c63e34b06d028edc5efe5b62f6c5e85a2212f8a50b4a9808017202b1569e4dfaf137d6bf5a5e501f1a9b759af6e200eaf32410559508d420c2bb965c8584397f0359e4828cb5fe57d14fabfa75df99e161bc62af48988bd5d891b2ab4fc98ed681176711667919e280b62c44e1d91faed19fc533e28558278ff658e83ac55adeda6e0acd5ab35103234eb8bca8fa23a8ae9b010156b81209ae475919218628ed4d10acc21d4b41ac2e9956ab31c22bd5deb94758bdc3a64e110a140184b0f2d6af5cba44bb0a7473d7fd01c4cd23692457d0f66e20cd9971a9e8e4c7bacd2755e63b3aefc7d9b5bfceb5e008ee21faf2567ffe339ce62d221d2f5442e587d721f8c787a850dc5b29c524a30815bd1102e60914e7e781d6bb9ae183b321a1075a789f539a577529c46aebd0c9bc6b476b1c75750c3dbf4ba37ed39599961a0dcaa9600dff77874699207ee9161e8cc47c931637bf6fcfd4593ea2765f743d97832c7eee4ad35644e78cd36fd143a4b2b2ad0b13d33f87cf0524c067d69bfbfda144727265cb615e8d98f511bf16bd6a72c5a30855c0fec1ea9861b320a68269c82e24c5d06521948c5ed8887a4df41d1bffcf82444ba033562c2674fca6dfe2d50b4d743a31da4581b9e21e2da8d02e90e00e57e68b1c78b13f549c36c7322c6c35990282728a14d3843da7851556de79d190377183e8454f65c18ce08f2e0492bc4d745304f2e55cdf3a23907d7a9ca28f3a81851e1a9462825f42097ed17ed41684a17b3eb2d3b41a6e1c6a6bab7132bc15c3f636dcd7a29752bfc3167d7bca6ba6d7688c893fc551dd48840001110781e940789c11d9b36690e4d0e25817ba12ab10835a45606e26220e8fcac56a361c85fa18641959de38a839daf767ccdbf0dbfb4b4bc0c65524ada8d394039b37a1ceb64e9b59aeec7f0a2e3f1b5e6b8007c3efed917a9bb477754ab137b16e8f0c9d12c19ebbd51370853dfab9609700157e70f92851d8efe484b3ada1e7145bd99f22e0c3d97cd8a8a936391b1961aa138dcad01bd07add6a89979b3bc4183ccb3cd977fa42a273487cb95d368f933dc08d624d6098cca5b85af1b1c933a6e284f649cc3916a687eb4127ea05e8e02b600f10742501a709e60604bc045507efa1676498544edcb41e3712bf6518ee2711f978e6aa32823b376fd3cbe71c3490cc07f779bca3630603c3b98445bc69c77ff7ce763ff41f13f4a30bfb084586d605288794f6b5904ec2cd16bac3722372f4d3de3f43500dd5f142073e71966e8df47fe97f554656b3003a2a99fcdf04f6dd030dbbaa339339722026b3bc3b1eea9779aa63268828de39ff7c6c8b04e0d0b47e96da27ad904ff662f76e2ab945b0c27ca884d2b3b8064eef539adfe9dd0956bda2dfa8a207a89e7f8243725ea9214eed7b53805b8e8e2588a5e9eef4bee5cdf3146f7376630fb787b6f52932b88a80d4dfa3191308e294876a4163d875660bfa394092f4be4f7cf76c2ac9d3db1b1204ea92063ac2484f6fa3b26e504de527884f1057c5c06980a856765c897d44cc8ccff71cedd324b634b4bab6a04761359d6b272662e9bda3d292e802465618be9b53c654c2b1d790d26ee772f8c09adf32a7e0cf03959a049c3850d7222a6a8f6eb748b1f8016c361a8d1c1d87ad3966674d14ad27b4b97d72bcc67f6ab637c15d0acc9cc044ff429f59ab44bb867e44c5ce59b4acaef3195967bdd9a80bbb8fbee1a116716d21e7ec84fa4da5c32d7b303e911a0597b77c95665fc6f21d77a24999d13bb79e9eb2e07706fb6bd5429571a1dc93e841acf5fb46c847769891612590eb9adb173dee49565b0038d62ec220900e377cfe3cf01d3c41e3e969dca2a5ee3d75036f76b643d28f0b0752f52e4b380a51851c0f15912628b617a5fda7d2e90c54250c77184c151ed7b1866b78e850e77b1ebfe4d0e2910a30c4d7d4da6882b08c236b0c2b203a8c4f0a3d7b465549238885e807f0931dff88ef853268f9160792e05faa547c1b5a5f0deb3566505952cbb5b5c146fabc147a15948493fac62b3b79642e22f31d027137642e5cdca863ef150c269204bc9b4699e5cf7c3e656ba62e4708adde7b0a021a2e810c7f1ff0083164bf9afd7b4e31d12abfd3830b6c716f9c88549df8ec8b7bbd395880e6841f4fc02ea97b17a9c9b5ff7fff11006fc4e202f13f78b020ba793e11bf856465bc48e4b79621eb72278802f37d04e2c266bd7f6390c2b3566967742e466b9ff74e212c49fb68589305e0cab9c603991e788688dbddac5ed078573edeccad89716e457a96befbd941ff3fab4c18fb3eb4159722834259bf34c52cffafb854e6830d863b3f4bf1b2868eca12d0e68e91a287907929ca11e83551f4e29bdf6957e47bfdb165e4432622056ca63549aaffbfb964b8c0cf7acb624177273d1d270bccaeeb95488e6d8e16d2fcbd625eb51b592810b8d4544ba20d1c0f3dbb230cef649aeae8db420af1eb5ecf03ec61f8892491fe047ec21b0c620c9a720972c8efe08f833fd76eb869399cf0ceab4b108e1acf23b04d6fed3611161249f7785fdc8c595732531a56e3d4ce2771b072fe4fd7d5f165bc50b1f1ff6995a56a12e19e804416a5c13a8f388bc698bccb6ad5f381380f58ddf63fa68c419c558b6cf7dfa76c51f45f8810b2bf5a769ffb4d5aa1656ff6599a2e3da5066141be739a5884ce671117ee00f6b709f067c358a2ce790da6848ed5958826615da5bc4c5469f7922f1560a28b0c574d755bbdcf777822df1f9cdb8d129a56430e0873dcdde4c0678991c5b991d963aeeaaa0145bc8f39177c2db54423a15edf90cb39a3fde894cdd8908601c97418e072cc6cf151be53f70b55cee8031d7ae788acd97c078aeeae3f54ebe8cf206ee0f17383ab0574127fe0fa8ca44f07e4c9bd6f9325093a9f4297becb6915f5756df74807621c3b4bed3ca51132adc9dbd69dc6b0585b0bd7e934d4111123e5c87c1719323060bae23d5f8eafad8ac4e290d261d831646a26d3c6b5eea28259f50835bd8af6e64fbc1f700bf8a28c675a265c9698c269c1f488448373ebb648aa21c07499298a71707f6a0b551c38e4c31963f696c92efaaf2e43ab7a9db403dbe014ed1aad147af611b0b8d8ef491c976283e5dbefc7067477b37e2800cda400a5a5dea020649c4911ce076b95b94000b5d47570f6b50b6bfb1eae4468bb8e111db17c9f9465a38f93b61e1f08df6ee7668e2fdc10790c3fbf30db32fe72125f1b61897ccceaaefdca8a04a59f43033c1e8a2b14e5f81da85b29877f50f90337c583101689c5ac6bee3425969eda7c9a288767bc6fca5bf464a1a2ea4b979b422ea2e99d93d545e87c0c99159e7378d78982d7116257ea29ffecad332670d12769f11c13399e85651430e9f9826330a5033f6e818a06b06580108674fbf54f6de4458766f239fb012484d04c6e45253968f7e8e799e3145ccd34adfd9b73f6010fb3110eca341bbce705f45b13c8f6a5cb20a44a5dc88018e49b56d287007c6a268ac78576cc3766c243428e9ee9e95438b53e673754bf</script>
|
||
<div class="hbe hbe-content">
|
||
<div class="hbe hbe-input hbe-input-wave">
|
||
<input class="hbe hbe-input-field hbe-input-field-wave" type="password" id="hbePass">
|
||
<label class="hbe hbe-input-label hbe-input-label-wave" for="hbePass">
|
||
<span class="hbe hbe-input-label-content hbe-input-label-content-wave"></span>
|
||
</label>
|
||
<svg class="hbe hbe-graphic hbe-graphic-wave" width="300%" height="100%" viewBox="0 0 1200 60" preserveAspectRatio="none">
|
||
<path d="M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0"></path>
|
||
</svg>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script data-pjax src="/lib/hbe.js"></script><link href="/css/hbe.style.css" rel="stylesheet" type="text/css">]]></content>
|
||
<categories>
|
||
<category>个人</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>任务进度</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>对象存储服务MinIO</title>
|
||
<url>/posts/36397.html</url>
|
||
<content><![CDATA[<h1 id="一-MinIo基本介绍"><a href="#一-MinIo基本介绍" class="headerlink" title="一.MinIo基本介绍"></a>一.MinIo基本介绍</h1><h2 id="1-简介"><a href="#1-简介" class="headerlink" title="1.简介"></a>1.简介</h2><p> MinIO基于Apache License v2.0开源协议的对象存储服务,可以做为云存储的解决方案用来保存海量的图片,视频,文档。由于采用Golang实现,服务端可以工作在Windows,Linux, OS X和FreeBSD上。配置简单,基本是复制可执行程序,单行命令可以运行起来。MinIO兼容亚马逊<strong>S3云存储服务接口</strong>,非常适合于存储大容量非结构化的数据,例如图片、视频、日志文件、备份数据和容器/虚拟机镜像等,而一个对象文件可以是任意大小,从几kb到最大5T不等。</p>
|
||
<p><strong>S3 ( Simple Storage Service简单存储服务)</strong></p>
|
||
<p>基本概念</p>
|
||
<ul>
|
||
<li>bucket – 类比于文件系统的目录</li>
|
||
<li>Object – 类比文件系统的文件</li>
|
||
<li>Keys – 类比文件名</li>
|
||
</ul>
|
||
<p>官网文档:<a href="http://docs.minio.org.cn/docs/">http://docs.minio.org.cn/docs/</a></p>
|
||
<h2 id="2-特点"><a href="#2-特点" class="headerlink" title="2.特点"></a>2.特点</h2><ul>
|
||
<li><p>数据保护</p>
|
||
<p>Minio使用Minio Erasure Code(纠删码)来防止硬件故障。即便损坏一半以上的driver,但是仍然可以从中恢复。</p>
|
||
</li>
|
||
<li><p>高性能</p>
|
||
<p>作为高性能对象存储,在标准硬件条件下它能达到55GB/s的读、35GB/s的写速率</p>
|
||
</li>
|
||
<li><p>可扩容</p>
|
||
<p>不同MinIO集群可以组成联邦,并形成一个全局的命名空间,并跨越多个数据中心</p>
|
||
</li>
|
||
<li><p>SDK支持</p>
|
||
<p>基于Minio轻量的特点,它得到类似Java、Python或Go等语言的sdk支持</p>
|
||
</li>
|
||
<li><p>有操作页面</p>
|
||
<p>面向用户友好的简单操作界面,非常方便的管理Bucket及里面的文件资源</p>
|
||
</li>
|
||
<li><p>功能简单</p>
|
||
<p>这一设计原则让MinIO不容易出错、更快启动</p>
|
||
</li>
|
||
<li><p>丰富的API</p>
|
||
<p>支持文件资源的分享连接及分享链接的过期策略、存储桶操作、文件列表访问及文件上传下载的基本功能等。</p>
|
||
</li>
|
||
<li><p>文件变化主动通知</p>
|
||
<p>存储桶(Bucket)如果发生改变,比如上传对象和删除对象,可以使用存储桶事件通知机制进行监控,并通过以下方式发布出去:AMQP、MQTT、Elasticsearch、Redis、NATS、MySQL、Kafka、Webhooks等。</p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="3-对象存储方式比较"><a href="#3-对象存储方式比较" class="headerlink" title="3.对象存储方式比较"></a>3.对象存储方式比较</h2><table>
|
||
<thead>
|
||
<tr>
|
||
<th>存储方式</th>
|
||
<th>优点</th>
|
||
<th>缺点</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>服务器磁盘</td>
|
||
<td>开发便捷,成本低</td>
|
||
<td>扩展困难</td>
|
||
</tr>
|
||
<tr>
|
||
<td>分布式文件系统 (如MinIo)</td>
|
||
<td>容易实现扩容</td>
|
||
<td>复杂度高</td>
|
||
</tr>
|
||
<tr>
|
||
<td>第三方存储 (如阿里OSS)</td>
|
||
<td>开发简单,功能强大,免维护</td>
|
||
<td>收费</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h2 id="4-分布式文件系统比较"><a href="#4-分布式文件系统比较" class="headerlink" title="4.分布式文件系统比较"></a>4.分布式文件系统比较</h2><table>
|
||
<thead>
|
||
<tr>
|
||
<th>存储方式</th>
|
||
<th>优点</th>
|
||
<th>缺点</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>FastDFS</td>
|
||
<td>1,主备服务,高可用 2,支持主从文件,支持自定义扩展名 3,支持动态扩容</td>
|
||
<td>1,没有完备官方文档,近几年没有更新 2,环境搭建较为麻烦</td>
|
||
</tr>
|
||
<tr>
|
||
<td>MinIO</td>
|
||
<td>1,性能高,准硬件条件下它能达到55GB/s的读、35GB/s的写速率 2,部署自带管理界面 3,MinIO.Inc运营的开源项目,社区活跃度高 4,提供了所有主流开发语言的SDK</td>
|
||
<td>1,不支持动态增加节点</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h1 id="二-MinIo安装教程"><a href="#二-MinIo安装教程" class="headerlink" title="二.MinIo安装教程"></a>二.MinIo安装教程</h1><p>使用Docker的方式安装MInIo,Docker使用教程 <a href="https://jasonsgong.gitee.io/posts/19306.html">https://jasonsgong.gitee.io/posts/19306.html</a></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取minio的镜像</span></span><br><span class="line">docker pull minio/minio</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建并运行容器</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置用户名-e <span class="string">"MINIO_ACCESS_KEY=minio"</span></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置密码 -e <span class="string">"MINIO_SECRET_KEY=minio123"</span></span></span><br><span class="line">docker run -p 9000:9000 --name minio -d --restart=always -e "MINIO_ACCESS_KEY=minio" -e "MINIO_SECRET_KEY=minio123" -v /home/data:/data -v /home/config:/root/.minio minio/minio server /data</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>访问: <a href="http://192.168.200.130:9000/">http://192.168.200.130:9000</a> </p>
|
||
<p><img src="/pictures/image-20230818145600002.png" alt="image-20230818145600002"></p>
|
||
<p>Access Key为minio Secret_key 为minio123 进入系统后可以看到主界面</p>
|
||
<p><img src="/pictures/image-20230818145721071.png" alt="image-20230818145721071"></p>
|
||
<h1 id="三-快速入门"><a href="#三-快速入门" class="headerlink" title="三.快速入门"></a>三.快速入门</h1><p><strong>基本概念</strong></p>
|
||
<ul>
|
||
<li>bucket – 类比于文件系统的目录</li>
|
||
<li>Object – 类比文件系统的文件</li>
|
||
<li>Keys – 类比文件名</li>
|
||
</ul>
|
||
<h2 id="1-创建一个bucket"><a href="#1-创建一个bucket" class="headerlink" title="1.创建一个bucket"></a>1.创建一个bucket</h2><p><strong>点击右下角的“+”号 ,创建一个桶</strong></p>
|
||
<p><img src="/pictures/image-20230818150154249.png" alt="image-20230818150154249"></p>
|
||
<p><strong>创建成功后</strong></p>
|
||
<p><img src="/pictures/image-20230818150902795.png" alt="image-20230818150902795"></p>
|
||
<h2 id="2-环境搭建"><a href="#2-环境搭建" class="headerlink" title="2.环境搭建"></a>2.环境搭建</h2><h3 id="2-1-创建一个Demo工程"><a href="#2-1-创建一个Demo工程" class="headerlink" title="2.1 创建一个Demo工程"></a>2.1 创建一个Demo工程</h3><p><img src="/pictures/image-20230818151929679.png" alt="image-20230818151929679"></p>
|
||
<h3 id="2-2-导入依赖和创建启动类"><a href="#2-2-导入依赖和创建启动类" class="headerlink" title="2.2 导入依赖和创建启动类"></a>2.2 导入依赖和创建启动类</h3><p>pom.xml</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.minio<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>minio<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>7.1.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>启动类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.minio;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.SpringApplication;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.SpringBootApplication;</span><br><span class="line"></span><br><span class="line"><span class="meta">@SpringBootApplication</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOApplication</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> SpringApplication.run(MinIOApplication.class,args);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-测试案例"><a href="#3-测试案例" class="headerlink" title="3.测试案例"></a>3.测试案例</h2><h3 id="3-1-上传文件进行静态访问"><a href="#3-1-上传文件进行静态访问" class="headerlink" title="3.1 上传文件进行静态访问"></a>3.1 上传文件进行静态访问</h3><p><strong>目标:把test.html文件上传到minio中,并且可以在浏览器中访问</strong></p>
|
||
<p>test.html测试文件</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Hello World!<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>普通文本 String 展示:<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line">Hello freemarker <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"><<span class="name">b</span>></span>对象Student中的数据展示:<span class="tag"></<span class="name">b</span>></span><span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">姓名:小明<span class="tag"><<span class="name">br</span>/></span></span><br><span class="line">年龄:18</span><br><span class="line"><span class="tag"><<span class="name">hr</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>文件上传代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.minio;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/18</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootTest(classes = MinIOApplication.class)</span></span><br><span class="line"><span class="meta">@RunWith(SpringRunner.class)</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOTest</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 把list.html文件上传到minio中,并且可以在浏览器中访问</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">testMinIO</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//读取一个文件</span></span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"C:\\Gong\\data\\test.html"</span>);</span><br><span class="line"> <span class="comment">//1.获取MinIO的连接信息,创建一个minio的客户端</span></span><br><span class="line"> <span class="type">MinioClient</span> <span class="variable">minioClient</span> <span class="operator">=</span> MinioClient.builder()</span><br><span class="line"> .credentials(<span class="string">"minio"</span>, <span class="string">"minio123"</span>)<span class="comment">//minio的账号密码</span></span><br><span class="line"> .endpoint(<span class="string">"http://192.168.200.130:9000"</span>)<span class="comment">//minio的地址</span></span><br><span class="line"> .build();</span><br><span class="line"> <span class="comment">//2.上传</span></span><br><span class="line"> <span class="type">PutObjectArgs</span> <span class="variable">putObjectArgs</span> <span class="operator">=</span> PutObjectArgs.builder()</span><br><span class="line"> .object(<span class="string">"test.html"</span>)<span class="comment">//文件的名称</span></span><br><span class="line"> .contentType(<span class="string">"text/html"</span>)<span class="comment">//文件的类型</span></span><br><span class="line"> .bucket(<span class="string">"leadnews"</span>)<span class="comment">//桶的名称,与之前的minio管理界面创建的bucket名称一致即可</span></span><br><span class="line"> .stream(inputStream,inputStream.available(),-<span class="number">1</span>)</span><br><span class="line"> .build();</span><br><span class="line"> <span class="comment">//3.访问的路径 minio的访问路径 + 桶的名称 + 文件的名称</span></span><br><span class="line"> log.info(<span class="string">"http://192.168.200.130:9000/leadnews/test.html"</span>);</span><br><span class="line"> minioClient.putObject(putObjectArgs);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>执行成功之后可以在MinIO中找到该文件</strong></p>
|
||
<p><img src="/pictures/image-20230818154409682.png" alt="image-20230818154409682"></p>
|
||
<p><strong>设置浏览器输入文件在minio中的地址可以直接访问文件的内容</strong></p>
|
||
<p>设置bucket的访问权限</p>
|
||
<p><img src="/pictures/image-20230818154858988.png" alt="image-20230818154858988"></p>
|
||
<p>设置完毕后访问文件的地址可以直接访问到</p>
|
||
<p><img src="/pictures/image-20230818155021308.png" alt="image-20230818155021308"></p>
|
||
<h2 id="4-封装MinIO为Starter-以黑马头条项目为例"><a href="#4-封装MinIO为Starter-以黑马头条项目为例" class="headerlink" title="4.封装MinIO为Starter-以黑马头条项目为例"></a>4.封装MinIO为Starter-以黑马头条项目为例</h2><p>黑马头条项目gitee地址: <a href="https://gitee.com/JasonsGong/heima-leadnews">https://gitee.com/JasonsGong/heima-leadnews</a></p>
|
||
<p>在开发的过程中,有很多模块需要使用到文件服务,我们直接把文件服务封装成一个Starter,方便其余的模块调用</p>
|
||
<p><img src="/pictures/image-20230818155501495.png" alt="image-20230818155501495"></p>
|
||
<h3 id="4-1-创建模块heima-file-starter"><a href="#4-1-创建模块heima-file-starter" class="headerlink" title="4.1 创建模块heima-file-starter"></a>4.1 创建模块heima-file-starter</h3><p>导入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-autoconfigure<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.minio<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>minio<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>7.1.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-configuration-processor<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-actuator<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-2-配置类"><a href="#4-2-配置类" class="headerlink" title="4.2 配置类"></a>4.2 配置类</h3><p>MinIOConfigProperties</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.file.config;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.context.properties.ConfigurationProperties;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@ConfigurationProperties(prefix = "minio")</span> </span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOConfigProperties</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String accessKey;</span><br><span class="line"> <span class="keyword">private</span> String secretKey;</span><br><span class="line"> <span class="keyword">private</span> String bucket;</span><br><span class="line"> <span class="keyword">private</span> String endpoint;</span><br><span class="line"> <span class="keyword">private</span> String readPath;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>MinIOConfig</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.file.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.file.service.FileStorageService;</span><br><span class="line"><span class="keyword">import</span> io.minio.MinioClient;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.condition.ConditionalOnClass;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.context.properties.EnableConfigurationProperties;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="meta">@EnableConfigurationProperties({MinIOConfigProperties.class})</span></span><br><span class="line"><span class="comment">//当引入FileStorageService接口时</span></span><br><span class="line"><span class="meta">@ConditionalOnClass(FileStorageService.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> MinIOConfigProperties minIOConfigProperties;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> MinioClient <span class="title function_">buildMinioClient</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> MinioClient</span><br><span class="line"> .builder()</span><br><span class="line"> .credentials(minIOConfigProperties.getAccessKey(), minIOConfigProperties.getSecretKey())</span><br><span class="line"> .endpoint(minIOConfigProperties.getEndpoint())</span><br><span class="line"> .build();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-3-封装操作minIO类"><a href="#4-3-封装操作minIO类" class="headerlink" title="4.3 封装操作minIO类"></a>4.3 封装操作minIO类</h3><p>FileStorageService</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.file.service;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">FileStorageService</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传图片文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> prefix 文件前缀</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> filename 文件名</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> inputStream 文件流</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">uploadImgFile</span><span class="params">(String prefix, String filename,InputStream inputStream)</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传html文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> prefix 文件前缀</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> filename 文件名</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> inputStream 文件流</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">uploadHtmlFile</span><span class="params">(String prefix, String filename,InputStream inputStream)</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> pathUrl 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(String pathUrl)</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 下载文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> pathUrl 文件全路径</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">byte</span>[] downLoadFile(String pathUrl);</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>MinIOFileStorageService</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.file.service.impl;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.file.config.MinIOConfig;</span><br><span class="line"><span class="keyword">import</span> com.heima.file.config.MinIOConfigProperties;</span><br><span class="line"><span class="keyword">import</span> com.heima.file.service.FileStorageService;</span><br><span class="line"><span class="keyword">import</span> io.minio.GetObjectArgs;</span><br><span class="line"><span class="keyword">import</span> io.minio.MinioClient;</span><br><span class="line"><span class="keyword">import</span> io.minio.PutObjectArgs;</span><br><span class="line"><span class="keyword">import</span> io.minio.RemoveObjectArgs;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.context.properties.EnableConfigurationProperties;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Import;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.ByteArrayOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.text.SimpleDateFormat;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@EnableConfigurationProperties(MinIOConfigProperties.class)</span></span><br><span class="line"><span class="meta">@Import(MinIOConfig.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOFileStorageService</span> <span class="keyword">implements</span> <span class="title class_">FileStorageService</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> MinioClient minioClient;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> MinIOConfigProperties minIOConfigProperties;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">final</span> <span class="keyword">static</span> <span class="type">String</span> <span class="variable">separator</span> <span class="operator">=</span> <span class="string">"/"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> dirPath</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> filename yyyy/mm/dd/file.jpg</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">builderFilePath</span><span class="params">(String dirPath,String filename)</span> {</span><br><span class="line"> <span class="type">StringBuilder</span> <span class="variable">stringBuilder</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuilder</span>(<span class="number">50</span>);</span><br><span class="line"> <span class="keyword">if</span>(!StringUtils.isEmpty(dirPath)){</span><br><span class="line"> stringBuilder.append(dirPath).append(separator);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">SimpleDateFormat</span> <span class="variable">sdf</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SimpleDateFormat</span>(<span class="string">"yyyy/MM/dd"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">todayStr</span> <span class="operator">=</span> sdf.format(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> stringBuilder.append(todayStr).append(separator);</span><br><span class="line"> stringBuilder.append(filename);</span><br><span class="line"> <span class="keyword">return</span> stringBuilder.toString();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传图片文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> prefix 文件前缀</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> filename 文件名</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> inputStream 文件流</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">uploadImgFile</span><span class="params">(String prefix, String filename,InputStream inputStream)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> builderFilePath(prefix, filename);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">PutObjectArgs</span> <span class="variable">putObjectArgs</span> <span class="operator">=</span> PutObjectArgs.builder()</span><br><span class="line"> .object(filePath)</span><br><span class="line"> .contentType(<span class="string">"image/jpg"</span>)</span><br><span class="line"> .bucket(minIOConfigProperties.getBucket()).stream(inputStream,inputStream.available(),-<span class="number">1</span>)</span><br><span class="line"> .build();</span><br><span class="line"> minioClient.putObject(putObjectArgs);</span><br><span class="line"> <span class="type">StringBuilder</span> <span class="variable">urlPath</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuilder</span>(minIOConfigProperties.getReadPath());</span><br><span class="line"> urlPath.append(separator+minIOConfigProperties.getBucket());</span><br><span class="line"> urlPath.append(separator);</span><br><span class="line"> urlPath.append(filePath);</span><br><span class="line"> <span class="keyword">return</span> urlPath.toString();</span><br><span class="line"> }<span class="keyword">catch</span> (Exception ex){</span><br><span class="line"> log.error(<span class="string">"minio put file error."</span>,ex);</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"上传文件失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传html文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> prefix 文件前缀</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> filename 文件名</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> inputStream 文件流</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">uploadHtmlFile</span><span class="params">(String prefix, String filename,InputStream inputStream)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> builderFilePath(prefix, filename);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">PutObjectArgs</span> <span class="variable">putObjectArgs</span> <span class="operator">=</span> PutObjectArgs.builder()</span><br><span class="line"> .object(filePath)</span><br><span class="line"> .contentType(<span class="string">"text/html"</span>)</span><br><span class="line"> .bucket(minIOConfigProperties.getBucket()).stream(inputStream,inputStream.available(),-<span class="number">1</span>)</span><br><span class="line"> .build();</span><br><span class="line"> minioClient.putObject(putObjectArgs);</span><br><span class="line"> <span class="type">StringBuilder</span> <span class="variable">urlPath</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuilder</span>(minIOConfigProperties.getReadPath());</span><br><span class="line"> urlPath.append(separator+minIOConfigProperties.getBucket());</span><br><span class="line"> urlPath.append(separator);</span><br><span class="line"> urlPath.append(filePath);</span><br><span class="line"> <span class="keyword">return</span> urlPath.toString();</span><br><span class="line"> }<span class="keyword">catch</span> (Exception ex){</span><br><span class="line"> log.error(<span class="string">"minio put file error."</span>,ex);</span><br><span class="line"> ex.printStackTrace();</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"上传文件失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> pathUrl 文件全路径</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(String pathUrl)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> pathUrl.replace(minIOConfigProperties.getEndpoint()+<span class="string">"/"</span>,<span class="string">""</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> key.indexOf(separator);</span><br><span class="line"> <span class="type">String</span> <span class="variable">bucket</span> <span class="operator">=</span> key.substring(<span class="number">0</span>,index);</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> key.substring(index+<span class="number">1</span>);</span><br><span class="line"> <span class="comment">// 删除Objects</span></span><br><span class="line"> <span class="type">RemoveObjectArgs</span> <span class="variable">removeObjectArgs</span> <span class="operator">=</span> RemoveObjectArgs.builder().bucket(bucket).object(filePath).build();</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> minioClient.removeObject(removeObjectArgs);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> log.error(<span class="string">"minio remove file error. pathUrl:{}"</span>,pathUrl);</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 下载文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> pathUrl 文件全路径</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件流</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">byte</span>[] downLoadFile(String pathUrl) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> pathUrl.replace(minIOConfigProperties.getEndpoint()+<span class="string">"/"</span>,<span class="string">""</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> key.indexOf(separator);</span><br><span class="line"> <span class="type">String</span> <span class="variable">bucket</span> <span class="operator">=</span> key.substring(<span class="number">0</span>,index);</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> key.substring(index+<span class="number">1</span>);</span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> inputStream = minioClient.getObject(GetObjectArgs.builder().bucket(minIOConfigProperties.getBucket()).object(filePath).build());</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> log.error(<span class="string">"minio down file error. pathUrl:{}"</span>,pathUrl);</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="type">ByteArrayOutputStream</span> <span class="variable">byteArrayOutputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ByteArrayOutputStream</span>();</span><br><span class="line"> <span class="type">byte</span>[] buff = <span class="keyword">new</span> <span class="title class_">byte</span>[<span class="number">100</span>];</span><br><span class="line"> <span class="type">int</span> <span class="variable">rc</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span> (!((rc = inputStream.read(buff, <span class="number">0</span>, <span class="number">100</span>)) > <span class="number">0</span>)) <span class="keyword">break</span>;</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> byteArrayOutputStream.write(buff, <span class="number">0</span>, rc);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> byteArrayOutputStream.toByteArray();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-4-对外加入自动配置"><a href="#4-4-对外加入自动配置" class="headerlink" title="4.4 对外加入自动配置"></a>4.4 对外加入自动配置</h3><p>在resources中新建<code>META-INF/spring.factories</code></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">org.springframework.boot.autoconfigure.EnableAutoConfiguration=\</span><br><span class="line"> com.heima.file.service.impl.MinIOFileStorageService</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-5-其他微服务使用"><a href="#4-5-其他微服务使用" class="headerlink" title="4.5 其他微服务使用"></a>4.5 其他微服务使用</h3><p>第一,导入heima-file-starter的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-file-starter<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第二,在微服务中添加minio所需要的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">minio:</span></span><br><span class="line"> <span class="attr">accessKey:</span> <span class="string">minio</span></span><br><span class="line"> <span class="attr">secretKey:</span> <span class="string">minio123</span></span><br><span class="line"> <span class="attr">bucket:</span> <span class="string">leadnews</span></span><br><span class="line"> <span class="attr">endpoint:</span> <span class="string">http://192.168.200.130:9000</span></span><br><span class="line"> <span class="attr">readPath:</span> <span class="string">http://192.168.200.130:9000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第三,在对应使用的业务类中注入FileStorageService,样例如下:</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line"><span class="keyword">private</span> FileStorageService fileStorageService;</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.minio;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/18</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootTest(classes = MinIOApplication.class)</span></span><br><span class="line"><span class="meta">@RunWith(SpringRunner.class)</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MinIOTest</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> FileStorageService fileStorageService;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">testMinIOStarter</span><span class="params">()</span>{</span><br><span class="line"> <span class="comment">//读取一个文件</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"C:\\Gong\\data\\test.html"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> fileStorageService.uploadHtmlFile(<span class="string">""</span>, <span class="string">"test,html"</span>, inputStream);</span><br><span class="line"> log.info(s);</span><br><span class="line"> } <span class="keyword">catch</span> (FileNotFoundException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230818165138917.png" alt="image-20230818165138917"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>MinIo</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>微信登录</title>
|
||
<url>/posts/45572.html</url>
|
||
<content><![CDATA[<h2 id="1、OAuth2"><a href="#1、OAuth2" class="headerlink" title="1、OAuth2"></a>1、OAuth2</h2><p>微信登录使用了OAuth2解决方案</p>
|
||
<h3 id="1-1-OAuth2解决什么问题"><a href="#1-1-OAuth2解决什么问题" class="headerlink" title="1.1 OAuth2解决什么问题"></a>1.1 OAuth2解决什么问题</h3><h4 id="1-1-1-开放系统间授权"><a href="#1-1-1-开放系统间授权" class="headerlink" title="1.1.1 开放系统间授权"></a>1.1.1 开放系统间授权</h4><p>照片拥有者想要在云冲印服务上打印照片,云冲印服务需要访问云存储服务上的资源</p>
|
||
<p><img src="/pictures/clip_image002.jpg" alt="IMG_256"></p>
|
||
<h4 id="1-1-2图例"><a href="#1-1-2图例" class="headerlink" title="1.1.2图例"></a>1.1.2图例</h4><p>资源拥有者:照片拥有者</p>
|
||
<p>客户应用:云冲印</p>
|
||
<p>受保护的资源:照片</p>
|
||
<p><img src="/pictures/clip_image004.jpg" alt="IMG_256"></p>
|
||
<h4 id="1-1-3方式一:用户名密码复制"><a href="#1-1-3方式一:用户名密码复制" class="headerlink" title="1.1.3方式一:用户名密码复制"></a>1.1.3方式一:用户名密码复制</h4><p><img src="/pictures/clip_image006.jpg" alt="IMG_258"></p>
|
||
<p>用户将自己的”云存储”服务的用户名和密码,告诉”云冲印”,后者就可以读取用户的照片了。这样的做法有以下几个严重的缺点。</p>
|
||
<p>(1)”云冲印”为了后续的服务,会保存用户的密码,这样很不安全。</p>
|
||
<p>(2)Google不得不部署密码登录,而我们知道,单纯的密码登录并不安全。</p>
|
||
<p>(3)”云冲印”拥有了获取用户储存在Google所有资料的权力,用户没法限制”云冲印”获得授权的范围和有效期。</p>
|
||
<p>(4)用户只有修改密码,才能收回赋予”云冲印”的权力。但是这样做,会使得其他所有获得用户授权的第三方应用程序全部失效。</p>
|
||
<p>(5)只要有一个第三方应用程序被破解,就会导致用户密码泄漏,以及所有被密码保护的数据泄漏。</p>
|
||
<p><strong>总结:</strong></p>
|
||
<p>将受保护的资源中的用户名和密码存储在客户应用的服务器上,使用时直接使用这个用户名和密码登录</p>
|
||
<p>适用于同一公司内部的多个系统,不适用于不受信的第三方应用</p>
|
||
<h4 id="1-1-4方式二:通用开发者key"><a href="#1-1-4方式二:通用开发者key" class="headerlink" title="1.1.4方式二:通用开发者key"></a>1.1.4方式二:通用开发者key</h4><p>适用于合作商或者授信的不同业务部门之间</p>
|
||
<p><img src="/pictures/clip_image008.jpg" alt="IMG_259"></p>
|
||
<h4 id="1-1-5方式三:颁发令牌"><a href="#1-1-5方式三:颁发令牌" class="headerlink" title="1.1.5方式三:颁发令牌"></a>1.1.5方式三:颁发令牌</h4><p>接近OAuth2方式,需要考虑如何管理令牌、颁发令牌、吊销令牌,需要统一的协议,因此就有了OAuth2协议</p>
|
||
<p><img src="/pictures/clip_image010.jpg" alt="IMG_256"></p>
|
||
<p><strong>令牌类比仆从钥匙</strong></p>
|
||
<p><img src="/pictures/clip_image012.jpg" alt="IMG_256"></p>
|
||
<h3 id="1-2-OAuth2最简向导"><a href="#1-2-OAuth2最简向导" class="headerlink" title="1.2 OAuth2最简向导"></a>1.2 OAuth2最简向导</h3><h4 id="1-2-1-OAuth主要角色"><a href="#1-2-1-OAuth主要角色" class="headerlink" title="1.2.1 OAuth主要角色"></a>1.2.1 OAuth主要角色</h4><p><img src="/pictures/clip_image014.jpg" alt="IMG_256"></p>
|
||
<h4 id="1-2-2最简向导"><a href="#1-2-2最简向导" class="headerlink" title="1.2.2最简向导"></a>1.2.2最简向导</h4><p>川崎高彦:OAuth2领域专家,开发了一个OAuth2 sass服务,OAuth2 as Service,并且做成了一个公司</p>
|
||
<p>在融资的过程中为了向投资人解释OAuth2是什么,于是写了一篇文章,《OAuth2最简向导》</p>
|
||
<h3 id="1-3-OAuth2的应用"><a href="#1-3-OAuth2的应用" class="headerlink" title="1.3 OAuth2的应用"></a>1.3 OAuth2的应用</h3><h4 id="1-3-1-微服务安全"><a href="#1-3-1-微服务安全" class="headerlink" title="1.3.1 微服务安全"></a>1.3.1 微服务安全</h4><p>现代微服务中系统微服务化以及应用的形态和设备类型增多,不能用传统的登录方式</p>
|
||
<p>核心的技术不是用户名和密码,而是token,由AuthServer颁发token,用户使用token进行登录</p>
|
||
<p><img src="/pictures/clip_image016.jpg" alt="IMG_256"></p>
|
||
<h4 id="1-3-2-社交登录"><a href="#1-3-2-社交登录" class="headerlink" title="1.3.2 社交登录"></a>1.3.2 社交登录</h4><p><img src="/pictures/clip_image018.jpg"></p>
|
||
<h2 id="2、微信登录介绍"><a href="#2、微信登录介绍" class="headerlink" title="2、微信登录介绍"></a>2、微信登录介绍</h2><h3 id="2-1-前期准备"><a href="#2-1-前期准备" class="headerlink" title="2.1 前期准备"></a>2.1 前期准备</h3><p>1、注册</p>
|
||
<p>微信开放平台:<a href="https://open.weixin.qq.com/">https://open.weixin.qq.com</a></p>
|
||
<p>2、邮箱激活</p>
|
||
<p>3、完善开发者资料</p>
|
||
<p>4、开发者资质认证</p>
|
||
<p>准备营业执照,1-2个工作日审批、300元</p>
|
||
<p>5、创建网站应用</p>
|
||
<p>提交审核,7个工作日审批</p>
|
||
<p>6、内网穿透</p>
|
||
<p>ngrok的使用</p>
|
||
<h3 id="2-2-授权流程"><a href="#2-2-授权流程" class="headerlink" title="2.2 授权流程"></a>2.2 授权流程</h3><p>参考文档:<a href="https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316505&token=e547653f995d8f402704d5cb2945177dc8aa4e7e&lang=zh_CN">https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316505&token=e547653f995d8f402704d5cb2945177dc8aa4e7e&lang=zh_CN</a></p>
|
||
<p><strong>获取access_token时序图</strong></p>
|
||
<p><img src="/pictures/clip_image002.gif" alt="IMG_256"></p>
|
||
<p>第一步:请求CODE(生成授权URL)</p>
|
||
<p>第二步:通过code获取access_token(开发回调URL)</p>
|
||
<h2 id="3、使用教程"><a href="#3、使用教程" class="headerlink" title="3、使用教程"></a>3、使用教程</h2><p>由于微信登录需要企业用户才能注册,这里我们使用的是尚硅谷的密钥</p>
|
||
<p>当前项目的启动端口设置为 8160 才可以获取到登录的二维码</p>
|
||
<h3 id="3-1-配置文件中添加配置"><a href="#3-1-配置文件中添加配置" class="headerlink" title="3.1 配置文件中添加配置"></a>3.1 配置文件中添加配置</h3><figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 微信开放平台appid</span></span><br><span class="line"><span class="attr">wx.open.app_id</span>=<span class="string">wxed9954c01bb89b47</span></span><br><span class="line"><span class="comment"># 微信开放平台appsecret</span></span><br><span class="line"><span class="attr">wx.open.app_secret</span>=<span class="string">a7482517235173ddb4083788de60b90e</span></span><br><span class="line"><span class="comment">#回调的地址</span></span><br><span class="line"><span class="attr">wx.open.redirect_url</span>=<span class="string">http://localhost:8160/api/ucenter/wx/callback</span></span><br><span class="line"><span class="comment">#前端项目的地址</span></span><br><span class="line"><span class="attr">yygh.baseUrl</span>=<span class="string">http://localhost:3000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-2-编写配置类读取配置文件中的值"><a href="#3-2-编写配置类读取配置文件中的值" class="headerlink" title="3.2 编写配置类读取配置文件中的值"></a>3.2 编写配置类读取配置文件中的值</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.InitializingBean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Value;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ConstantPropertiesUtil</span> <span class="keyword">implements</span> <span class="title class_">InitializingBean</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${wx.open.app_id}")</span></span><br><span class="line"> <span class="keyword">private</span> String appId;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${wx.open.app_secret}")</span></span><br><span class="line"> <span class="keyword">private</span> String appSecret;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${wx.open.redirect_url}")</span></span><br><span class="line"> <span class="keyword">private</span> String redirectUrl;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${yygh.baseUrl}")</span></span><br><span class="line"> <span class="keyword">private</span> String yyghBaseUrl;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String WX_OPEN_APP_ID;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String WX_OPEN_APP_SECRET;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String WX_OPEN_REDIRECT_URL;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String YYGH_BASE_URL;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">afterPropertiesSet</span><span class="params">()</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> WX_OPEN_APP_ID = appId;</span><br><span class="line"> WX_OPEN_APP_SECRET = appSecret;</span><br><span class="line"> WX_OPEN_REDIRECT_URL = redirectUrl;</span><br><span class="line"> YYGH_BASE_URL = yyghBaseUrl;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-3-生成二维码和扫描二维码之后的回调操作"><a href="#3-3-生成二维码和扫描二维码之后的回调操作" class="headerlink" title="3.3 生成二维码和扫描二维码之后的回调操作"></a>3.3 生成二维码和扫描二维码之后的回调操作</h3><h4 id="3-3-1-生成二维码"><a href="#3-3-1-生成二维码" class="headerlink" title="3.3.1 生成二维码"></a>3.3.1 生成二维码</h4><p>生成内嵌的二维码</p>
|
||
<p>返回给前端的相关参数</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th align="left">参数</th>
|
||
<th align="left">是否必须</th>
|
||
<th align="left">说明</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td align="left">self_redirect</td>
|
||
<td align="left">否</td>
|
||
<td align="left">true:手机点击确认登录后可以在 iframe 内跳转到 redirect_uri,false:手机点击确认登录后可以在 top window 跳转到 redirect_uri。默认为 false。</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">id</td>
|
||
<td align="left">是</td>
|
||
<td align="left">第三方页面显示二维码的容器id</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">appid</td>
|
||
<td align="left">是</td>
|
||
<td align="left">应用唯一标识,在微信开放平台提交应用审核通过后获得</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">scope</td>
|
||
<td align="left">是</td>
|
||
<td align="left">应用授权作用域,拥有多个作用域用逗号(,)分隔,网页应用目前仅填写snsapi_login即可</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">redirect_uri</td>
|
||
<td align="left">是</td>
|
||
<td align="left">重定向地址,需要进行UrlEncode</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">state</td>
|
||
<td align="left">否</td>
|
||
<td align="left">用于保持请求和回调的状态,授权请求后原样带回给第三方。该参数可用于防止csrf攻击(跨站请求伪造攻击),建议第三方带上该参数,可设置为简单的随机数加session进行校验</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">style</td>
|
||
<td align="left">否</td>
|
||
<td align="left">提供”black”、”white”可选,默认为黑色文字描述。详见文档底部FAQ</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="left">href</td>
|
||
<td align="left">否</td>
|
||
<td align="left">自定义样式链接,第三方可根据实际需求覆盖默认样式。详见文档底部FAQ</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p>生成扫描二维码的后端部分</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.atguigu.yygh.common.result.Result;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.user.utils.ConstantPropertiesUtil;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.CrossOrigin;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ResponseBody;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.UnsupportedEncodingException;</span><br><span class="line"><span class="keyword">import</span> java.net.URLEncoder;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/20</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 微信登录的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="meta">@RequestMapping("/api/ucenter/wx")</span></span><br><span class="line"><span class="meta">@CrossOrigin</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WxController</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 生成微信扫描二维码</span></span><br><span class="line"><span class="comment"> * 返回给前端一些生成二维码的参数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/getLoginParameters")</span></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">getLoginParameters</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> HashMap<String, Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"appid"</span>, ConstantPropertiesUtil.WX_OPEN_APP_ID);</span><br><span class="line"> map.put(<span class="string">"scope"</span>, <span class="string">"snsapi_login"</span>);</span><br><span class="line"> map.put(<span class="string">"redirect_uri"</span>, URLEncoder.encode(ConstantPropertiesUtil.WX_OPEN_REDIRECT_URL, <span class="string">"utf-8"</span>));</span><br><span class="line"> map.put(<span class="string">"state"</span>, System.currentTimeMillis() + <span class="string">""</span>);<span class="comment">//原样返回,可以没有</span></span><br><span class="line"> <span class="keyword">return</span> Result.ok(map);</span><br><span class="line"> } <span class="keyword">catch</span> (UnsupportedEncodingException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> Result.fail();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>生成扫描二维码的前端部分</p>
|
||
<p>JS部分</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> request <span class="keyword">from</span> <span class="string">'@/utils/request'</span>;</span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</span><br><span class="line"> <span class="comment">//获取生成二维码需要的参数信息</span></span><br><span class="line"> <span class="title function_">getLoginParam</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="title function_">request</span>({</span><br><span class="line"> <span class="attr">url</span>: <span class="string">`/api/ucenter/wx/getLoginParam`</span>,</span><br><span class="line"> <span class="attr">method</span>: <span class="string">'get'</span></span><br><span class="line"> })</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>引入api</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> weixinApi <span class="keyword">from</span> <span class="string">"@/api/weixin"</span>;</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在mounted()方法中初始化微信js</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="title function_">mounted</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="comment">//初始化微信js</span></span><br><span class="line"> <span class="keyword">const</span> script = <span class="variable language_">document</span>.<span class="title function_">createElement</span>(<span class="string">'script'</span>)</span><br><span class="line"> script.<span class="property">type</span> = <span class="string">'text/javascript'</span></span><br><span class="line"> script.<span class="property">src</span> = <span class="string">'https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js'</span></span><br><span class="line"> <span class="variable language_">document</span>.<span class="property">body</span>.<span class="title function_">appendChild</span>(script)</span><br><span class="line"> },</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在页面中微信登录按钮绑定的是weixinLogin()点击事件,所以我们要在这个方法中初始化对象</p>
|
||
<p>向后端发起请求获取生成二维码需要的参数信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">weixinLogin() {</span><br><span class="line"> weixinApi.getLoginParam().then((response) => {</span><br><span class="line"> <span class="type">var</span> <span class="variable">obj</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">WxLogin</span>({</span><br><span class="line"> self_redirect: <span class="literal">true</span>,</span><br><span class="line"> id: <span class="string">"weixinLogin"</span>, <span class="comment">// 需要显示的容器id <div id="weixinLogin"></div></span></span><br><span class="line"> appid: response.data.appid, <span class="comment">// appid</span></span><br><span class="line"> scope: response.data.scope, <span class="comment">// 网页默认即可</span></span><br><span class="line"> redirect_uri: response.data.redirectUri, <span class="comment">// 授权成功后回调的url</span></span><br><span class="line"> state: response.data.state, <span class="comment">// 可设置为简单的随机数加session用来校验</span></span><br><span class="line"> style: <span class="string">"black"</span>, <span class="comment">//。二维码的样式, 提供"black"、"white"可选</span></span><br><span class="line"> href: <span class="string">""</span>, <span class="comment">// 外部css文件url,需要https</span></span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>点击微信登录之后,页面上的效果</p>
|
||
<p><img src="/pictures/image-20230421203717902.png" alt="image-20230421203717902"></p>
|
||
<h4 id="3-3-2-处理用户扫描成功之后的回调"><a href="#3-3-2-处理用户扫描成功之后的回调" class="headerlink" title="3.3.2 处理用户扫描成功之后的回调"></a>3.3.2 处理用户扫描成功之后的回调</h4><p>实现的思路:</p>
|
||
<p>用户扫描二维码 -> 点击确认 -> 会执行回调请求(请求配置文件中这个地址wx.open.redirect_url=<a href="http://localhost:8160/api/ucenter/wx/callback">http://localhost:8160/api/ucenter/wx/callback</a>) -> 获取回调请求中携带的参数,再根据参数获取扫描用户的信息,执行相关的操作</p>
|
||
<p>扫描成功之后发起如下的请求:</p>
|
||
<p><img src="/pictures/image-20230421205258647.png" alt="image-20230421205258647"></p>
|
||
<p><img src="/pictures/image-20230421210454720.png" alt="image-20230421210454720"></p>
|
||
<p>引入httpclient(不依赖浏览器发起请求)依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.apache.httpcomponents<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>httpclient<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>4.5.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>导入HttpClientUtils工具类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> org.apache.commons.io.IOUtils;</span><br><span class="line"><span class="keyword">import</span> org.apache.commons.lang.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.Consts;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.HttpEntity;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.HttpResponse;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.NameValuePair;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.HttpClient;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.config.RequestConfig;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.config.RequestConfig.Builder;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.entity.UrlEncodedFormEntity;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.methods.HttpGet;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.client.methods.HttpPost;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.conn.ConnectTimeoutException;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.conn.ssl.SSLConnectionSocketFactory;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.conn.ssl.SSLContextBuilder;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.conn.ssl.TrustStrategy;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.conn.ssl.X509HostnameVerifier;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.entity.ContentType;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.entity.StringEntity;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.impl.client.CloseableHttpClient;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.impl.client.HttpClients;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.impl.conn.PoolingHttpClientConnectionManager;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.message.BasicNameValuePair;</span><br><span class="line"><span class="keyword">import</span> javax.net.ssl.SSLContext;</span><br><span class="line"><span class="keyword">import</span> javax.net.ssl.SSLException;</span><br><span class="line"><span class="keyword">import</span> javax.net.ssl.SSLSession;</span><br><span class="line"><span class="keyword">import</span> javax.net.ssl.SSLSocket;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.net.SocketTimeoutException;</span><br><span class="line"><span class="keyword">import</span> java.security.GeneralSecurityException;</span><br><span class="line"><span class="keyword">import</span> java.security.cert.CertificateException;</span><br><span class="line"><span class="keyword">import</span> java.security.cert.X509Certificate;</span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"><span class="keyword">import</span> java.util.Map.Entry;</span><br><span class="line"><span class="keyword">import</span> java.util.Set;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/21</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">HttpClientUtils</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">int</span> connTimeout=<span class="number">10000</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">int</span> readTimeout=<span class="number">10000</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> String charset=<span class="string">"UTF-8"</span>;</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="type">HttpClient</span> <span class="variable">client</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">static</span> {</span><br><span class="line"> <span class="type">PoolingHttpClientConnectionManager</span> <span class="variable">cm</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PoolingHttpClientConnectionManager</span>();</span><br><span class="line"> cm.setMaxTotal(<span class="number">128</span>);</span><br><span class="line"> cm.setDefaultMaxPerRoute(<span class="number">128</span>);</span><br><span class="line"> client = HttpClients.custom().setConnectionManager(cm).build();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">postParameters</span><span class="params">(String url, String parameterStr)</span> <span class="keyword">throws</span> ConnectTimeoutException, SocketTimeoutException, Exception{</span><br><span class="line"> <span class="keyword">return</span> post(url,parameterStr,<span class="string">"application/x-www-form-urlencoded"</span>,charset,connTimeout,readTimeout);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">postParameters</span><span class="params">(String url, String parameterStr,String charset, Integer connTimeout, Integer readTimeout)</span> <span class="keyword">throws</span> ConnectTimeoutException, SocketTimeoutException, Exception{</span><br><span class="line"> <span class="keyword">return</span> post(url,parameterStr,<span class="string">"application/x-www-form-urlencoded"</span>,charset,connTimeout,readTimeout);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">postParameters</span><span class="params">(String url, Map<String, String> params)</span> <span class="keyword">throws</span> ConnectTimeoutException,</span><br><span class="line"> SocketTimeoutException, Exception {</span><br><span class="line"> <span class="keyword">return</span> postForm(url, params, <span class="literal">null</span>, connTimeout, readTimeout);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">postParameters</span><span class="params">(String url, Map<String, String> params, Integer connTimeout,Integer readTimeout)</span> <span class="keyword">throws</span> ConnectTimeoutException,</span><br><span class="line"> SocketTimeoutException, Exception {</span><br><span class="line"> <span class="keyword">return</span> postForm(url, params, <span class="literal">null</span>, connTimeout, readTimeout);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">get</span><span class="params">(String url)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="keyword">return</span> get(url, charset, <span class="literal">null</span>, <span class="literal">null</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">get</span><span class="params">(String url, String charset)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="keyword">return</span> get(url, charset, connTimeout, readTimeout);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发送一个 Post 请求, 使用指定的字符集编码.</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> url</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> body RequestBody</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> mimeType 例如 application/xml "application/x-www-form-urlencoded" a=1&b=2&c=3</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> charset 编码</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> connTimeout 建立链接超时时间,毫秒.</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> readTimeout 响应超时时间,毫秒.</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> ResponseBody, 使用指定的字符集编码.</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> ConnectTimeoutException 建立链接超时异常</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> SocketTimeoutException 响应超时</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">post</span><span class="params">(String url, String body, String mimeType,String charset, Integer connTimeout, Integer readTimeout)</span></span><br><span class="line"> <span class="keyword">throws</span> ConnectTimeoutException, SocketTimeoutException, Exception {</span><br><span class="line"> <span class="type">HttpClient</span> <span class="variable">client</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HttpPost</span> <span class="variable">post</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HttpPost</span>(url);</span><br><span class="line"> <span class="type">String</span> <span class="variable">result</span> <span class="operator">=</span> <span class="string">""</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span> (StringUtils.isNotBlank(body)) {</span><br><span class="line"> <span class="type">HttpEntity</span> <span class="variable">entity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringEntity</span>(body, ContentType.create(mimeType, charset));</span><br><span class="line"> post.setEntity(entity);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">// 设置参数</span></span><br><span class="line"> <span class="type">Builder</span> <span class="variable">customReqConf</span> <span class="operator">=</span> RequestConfig.custom();</span><br><span class="line"> <span class="keyword">if</span> (connTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setConnectTimeout(connTimeout);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (readTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setSocketTimeout(readTimeout);</span><br><span class="line"> }</span><br><span class="line"> post.setConfig(customReqConf.build());</span><br><span class="line"></span><br><span class="line"> HttpResponse res;</span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>)) {</span><br><span class="line"> <span class="comment">// 执行 Https 请求.</span></span><br><span class="line"> client = createSSLInsecureClient();</span><br><span class="line"> res = client.execute(post);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// 执行 Http 请求.</span></span><br><span class="line"> client = HttpClientUtils.client;</span><br><span class="line"> res = client.execute(post);</span><br><span class="line"> }</span><br><span class="line"> result = IOUtils.toString(res.getEntity().getContent(), charset);</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> post.releaseConnection();</span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>) && client != <span class="literal">null</span>&& client <span class="keyword">instanceof</span> CloseableHttpClient) {</span><br><span class="line"> ((CloseableHttpClient) client).close();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 提交form表单</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> url</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> params</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> connTimeout</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> readTimeout</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> ConnectTimeoutException</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> SocketTimeoutException</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">postForm</span><span class="params">(String url, Map<String, String> params, Map<String, String> headers, Integer connTimeout,Integer readTimeout)</span> <span class="keyword">throws</span> ConnectTimeoutException,</span><br><span class="line"> SocketTimeoutException, Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">HttpClient</span> <span class="variable">client</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HttpPost</span> <span class="variable">post</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HttpPost</span>(url);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span> (params != <span class="literal">null</span> && !params.isEmpty()) {</span><br><span class="line"> List<NameValuePair> formParams = <span class="keyword">new</span> <span class="title class_">ArrayList</span><NameValuePair>();</span><br><span class="line"> Set<Entry<String, String>> entrySet = params.entrySet();</span><br><span class="line"> <span class="keyword">for</span> (Entry<String, String> entry : entrySet) {</span><br><span class="line"> formParams.add(<span class="keyword">new</span> <span class="title class_">BasicNameValuePair</span>(entry.getKey(), entry.getValue()));</span><br><span class="line"> }</span><br><span class="line"> <span class="type">UrlEncodedFormEntity</span> <span class="variable">entity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UrlEncodedFormEntity</span>(formParams, Consts.UTF_8);</span><br><span class="line"> post.setEntity(entity);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (headers != <span class="literal">null</span> && !headers.isEmpty()) {</span><br><span class="line"> <span class="keyword">for</span> (Entry<String, String> entry : headers.entrySet()) {</span><br><span class="line"> post.addHeader(entry.getKey(), entry.getValue());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">// 设置参数</span></span><br><span class="line"> <span class="type">Builder</span> <span class="variable">customReqConf</span> <span class="operator">=</span> RequestConfig.custom();</span><br><span class="line"> <span class="keyword">if</span> (connTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setConnectTimeout(connTimeout);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (readTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setSocketTimeout(readTimeout);</span><br><span class="line"> }</span><br><span class="line"> post.setConfig(customReqConf.build());</span><br><span class="line"> <span class="type">HttpResponse</span> <span class="variable">res</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>)) {</span><br><span class="line"> <span class="comment">// 执行 Https 请求.</span></span><br><span class="line"> client = createSSLInsecureClient();</span><br><span class="line"> res = client.execute(post);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// 执行 Http 请求.</span></span><br><span class="line"> client = HttpClientUtils.client;</span><br><span class="line"> res = client.execute(post);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> IOUtils.toString(res.getEntity().getContent(), <span class="string">"UTF-8"</span>);</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> post.releaseConnection();</span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>) && client != <span class="literal">null</span></span><br><span class="line"> && client <span class="keyword">instanceof</span> CloseableHttpClient) {</span><br><span class="line"> ((CloseableHttpClient) client).close();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发送一个 GET 请求</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">get</span><span class="params">(String url, String charset, Integer connTimeout,Integer readTimeout)</span></span><br><span class="line"> <span class="keyword">throws</span> ConnectTimeoutException,SocketTimeoutException, Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">HttpClient</span> <span class="variable">client</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HttpGet</span> <span class="variable">get</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HttpGet</span>(url);</span><br><span class="line"> <span class="type">String</span> <span class="variable">result</span> <span class="operator">=</span> <span class="string">""</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">// 设置参数</span></span><br><span class="line"> <span class="type">Builder</span> <span class="variable">customReqConf</span> <span class="operator">=</span> RequestConfig.custom();</span><br><span class="line"> <span class="keyword">if</span> (connTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setConnectTimeout(connTimeout);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (readTimeout != <span class="literal">null</span>) {</span><br><span class="line"> customReqConf.setSocketTimeout(readTimeout);</span><br><span class="line"> }</span><br><span class="line"> get.setConfig(customReqConf.build());</span><br><span class="line"></span><br><span class="line"> <span class="type">HttpResponse</span> <span class="variable">res</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>)) {</span><br><span class="line"> <span class="comment">// 执行 Https 请求.</span></span><br><span class="line"> client = createSSLInsecureClient();</span><br><span class="line"> res = client.execute(get);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// 执行 Http 请求.</span></span><br><span class="line"> client = HttpClientUtils.client;</span><br><span class="line"> res = client.execute(get);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> result = IOUtils.toString(res.getEntity().getContent(), charset);</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> get.releaseConnection();</span><br><span class="line"> <span class="keyword">if</span> (url.startsWith(<span class="string">"https"</span>) && client != <span class="literal">null</span> && client <span class="keyword">instanceof</span> CloseableHttpClient) {</span><br><span class="line"> ((CloseableHttpClient) client).close();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 从 response 里获取 charset</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@SuppressWarnings("unused")</span></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> String <span class="title function_">getCharsetFromResponse</span><span class="params">(HttpResponse ressponse)</span> {</span><br><span class="line"> <span class="comment">// Content-Type:text/html; charset=GBK</span></span><br><span class="line"> <span class="keyword">if</span> (ressponse.getEntity() != <span class="literal">null</span> && ressponse.getEntity().getContentType() != <span class="literal">null</span> && ressponse.getEntity().getContentType().getValue() != <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">contentType</span> <span class="operator">=</span> ressponse.getEntity().getContentType().getValue();</span><br><span class="line"> <span class="keyword">if</span> (contentType.contains(<span class="string">"charset="</span>)) {</span><br><span class="line"> <span class="keyword">return</span> contentType.substring(contentType.indexOf(<span class="string">"charset="</span>) + <span class="number">8</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建 SSL连接</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> GeneralSecurityException</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> CloseableHttpClient <span class="title function_">createSSLInsecureClient</span><span class="params">()</span> <span class="keyword">throws</span> GeneralSecurityException {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">SSLContext</span> <span class="variable">sslContext</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SSLContextBuilder</span>().loadTrustMaterial(<span class="literal">null</span>, <span class="keyword">new</span> <span class="title class_">TrustStrategy</span>() {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isTrusted</span><span class="params">(X509Certificate[] chain,String authType)</span> <span class="keyword">throws</span> CertificateException {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"> }).build();</span><br><span class="line"></span><br><span class="line"> <span class="type">SSLConnectionSocketFactory</span> <span class="variable">sslsf</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SSLConnectionSocketFactory</span>(sslContext, <span class="keyword">new</span> <span class="title class_">X509HostnameVerifier</span>() {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">verify</span><span class="params">(String arg0, SSLSession arg1)</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">verify</span><span class="params">(String host, SSLSocket ssl)</span></span><br><span class="line"> <span class="keyword">throws</span> IOException {</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">verify</span><span class="params">(String host, X509Certificate cert)</span></span><br><span class="line"> <span class="keyword">throws</span> SSLException {</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">verify</span><span class="params">(String host, String[] cns,</span></span><br><span class="line"><span class="params"> String[] subjectAlts)</span> <span class="keyword">throws</span> SSLException {</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> <span class="keyword">return</span> HttpClients.custom().setSSLSocketFactory(sslsf).build();</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (GeneralSecurityException e) {</span><br><span class="line"> <span class="keyword">throw</span> e;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>Controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.yygh.user.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.fastjson.JSONObject;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.common.result.Result;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.user.utils.ConstantPropertiesUtil;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.user.utils.HttpClientUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.CrossOrigin;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ResponseBody;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.UnsupportedEncodingException;</span><br><span class="line"><span class="keyword">import</span> java.net.URLEncoder;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/20</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 微信登录的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="meta">@RequestMapping("/api/ucenter/wx")</span></span><br><span class="line"><span class="meta">@CrossOrigin</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WxController</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 生成微信扫描二维码</span></span><br><span class="line"><span class="comment"> * 返回给前端一些生成二维码的参数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/getLoginParam")</span></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">getLoginParameters</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> HashMap<String, Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"appid"</span>, ConstantPropertiesUtil.WX_OPEN_APP_ID);</span><br><span class="line"> map.put(<span class="string">"scope"</span>, <span class="string">"snsapi_login"</span>);</span><br><span class="line"> map.put(<span class="string">"redirect_uri"</span>, URLEncoder.encode(ConstantPropertiesUtil.WX_OPEN_REDIRECT_URL, <span class="string">"utf-8"</span>));</span><br><span class="line"> map.put(<span class="string">"state"</span>, System.currentTimeMillis() + <span class="string">""</span>);<span class="comment">//原样返回,可以没有</span></span><br><span class="line"> <span class="keyword">return</span> Result.ok(map);</span><br><span class="line"> } <span class="keyword">catch</span> (UnsupportedEncodingException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> Result.fail();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 扫描之后回调的请求中携带了相关的参数,帮助我们获取用户的信息</span></span><br><span class="line"><span class="comment"> * 登录成功之后的回调方法</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> code 临时票据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> state 生成微信二维码之前put进去的参数 原样返回</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/callback")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">callback</span><span class="params">(String code ,String state)</span>{</span><br><span class="line"> <span class="comment">//通过code、appid和app_secret去请求固定地址换取access_token</span></span><br><span class="line"> <span class="type">StringBuffer</span> <span class="variable">baseAccessTokenUrl</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuffer</span>()</span><br><span class="line"> .append(<span class="string">"https://api.weixin.qq.com/sns/oauth2/access_token"</span>) <span class="comment">//请求的固定地址</span></span><br><span class="line"> .append(<span class="string">"?appid=%s"</span>) <span class="comment">//%s占位符</span></span><br><span class="line"> .append(<span class="string">"&secret=%s"</span>)</span><br><span class="line"> .append(<span class="string">"&code=%s"</span>)</span><br><span class="line"> .append(<span class="string">"&grant_type=authorization_code"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//拼接完整之后的地址</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessTokenUrl</span> <span class="operator">=</span> String.format(baseAccessTokenUrl.toString(),</span><br><span class="line"> ConstantPropertiesUtil.WX_OPEN_APP_ID,</span><br><span class="line"> ConstantPropertiesUtil.WX_OPEN_APP_SECRET,</span><br><span class="line"> code);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//使用httpclient去请求这个地址换取access_token</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessTokenInfo</span> <span class="operator">=</span> HttpClientUtils.get(accessTokenUrl);<span class="comment">//json格式的字符串</span></span><br><span class="line"> <span class="comment">//从这个字符串中获取openid和 access_token的值</span></span><br><span class="line"> <span class="type">JSONObject</span> <span class="variable">jsonObject</span> <span class="operator">=</span> JSONObject.parseObject(accessTokenInfo);</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessToken</span> <span class="operator">=</span> jsonObject.getString(<span class="string">"access_token"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">openid</span> <span class="operator">=</span> jsonObject.getString(<span class="string">"openid"</span>);</span><br><span class="line"> <span class="comment">//根据access_token和openid获取微信用户的基本信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">baseUserInfoUrl</span> <span class="operator">=</span> <span class="string">"https://api.weixin.qq.com/sns/userinfo"</span> +</span><br><span class="line"> <span class="string">"?access_token=%s"</span> +</span><br><span class="line"> <span class="string">"&openid=%s"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">userInfoUrl</span> <span class="operator">=</span> String.format(baseUserInfoUrl, accessToken, openid);</span><br><span class="line"> <span class="comment">//发起请求获取用户信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">userInfo</span> <span class="operator">=</span> HttpClientUtils.get(userInfoUrl);<span class="comment">//json格式的字符串</span></span><br><span class="line"> <span class="type">JSONObject</span> <span class="variable">parseObject</span> <span class="operator">=</span> JSONObject.parseObject(userInfo);</span><br><span class="line"> <span class="comment">//获取具体的用户信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">nickname</span> <span class="operator">=</span> parseObject.getString(<span class="string">"nickname"</span>);<span class="comment">//用户昵称</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">sex</span> <span class="operator">=</span> parseObject.getString(<span class="string">"sex"</span>);<span class="comment">//性别</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">language</span> <span class="operator">=</span> parseObject.getString(<span class="string">"language"</span>);<span class="comment">//语言</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">city</span> <span class="operator">=</span> parseObject.getString(<span class="string">"city"</span>);<span class="comment">//所在城市</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">province</span> <span class="operator">=</span> parseObject.getString(<span class="string">"province"</span>);<span class="comment">//省份</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">country</span> <span class="operator">=</span> parseObject.getString(<span class="string">"country"</span>);<span class="comment">//注册国家</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">headimgurl</span> <span class="operator">=</span> parseObject.getString(<span class="string">"headimgurl"</span>);<span class="comment">//头像的url地址</span></span><br><span class="line"> System.out.println(<span class="string">"昵称:"</span>+nickname+<span class="string">",性别:"</span>+sex+<span class="string">",语言:"</span>+language+<span class="string">",城市:"</span>+city+<span class="string">",省份:"</span>+province+<span class="string">",注册国家:"</span>+country+<span class="string">",头像地址:"</span>+headimgurl);</span><br><span class="line"> <span class="comment">//TODO 将扫码人的信息添加到数据库中</span></span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"redirect:地址信息&参数信息(用户信息或者token信息等)"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>阿里云对象存储OSS</title>
|
||
<url>/posts/6319.html</url>
|
||
<content><![CDATA[<h2 id="1-官网介绍"><a href="#1-官网介绍" class="headerlink" title="1.官网介绍"></a>1.官网介绍</h2><p> 阿里云对象存储OSS(Object Storage Service)是一款海量、安全、低成本、高可靠的云存储服务,可提供99.9999999999%(12个9)的数据持久性,99.995%的数据可用性。多种存储类型供选择,全面优化存储成本。OSS具有与平台无关的RESTful API接口,您可以在任何应用、任何时间、任何地点存储和访问任意类型的数据。您可以使用阿里云提供的API、SDK接口或者OSS迁移工具轻松地将海量数据移入或移出阿里云OSS。数据存储到阿里云OSS以后,您可以选择标准存储(Standard)作为移动应用、大型网站、图片分享或热点音视频的主要存储方式,也可以选择成本更低、存储期限更长的低频访问存储(Infrequent Access)、归档存储(Archive)、冷归档存储(Cold Archive)作为不经常访问数据的存储方式。</p>
|
||
<h2 id="2-使用"><a href="#2-使用" class="headerlink" title="2.使用"></a>2.使用</h2><h3 id="2-1-使用的前置准备"><a href="#2-1-使用的前置准备" class="headerlink" title="2.1 使用的前置准备"></a>2.1 使用的前置准备</h3><p>(1)申请阿里云账号<br>(2)实名认证<br>(3)开通“对象存储OSS”服务<br>(4)进入管理控制台</p>
|
||
<h3 id="2-2-创建Bucket"><a href="#2-2-创建Bucket" class="headerlink" title="2.2 创建Bucket"></a>2.2 创建Bucket</h3><p>点击创建Bucket</p>
|
||
<p><img src="/pictures/image-20230422210404204.png" alt="image-20230422210404204"></p>
|
||
<p>填写相关的信息</p>
|
||
<p><img src="/pictures/image-20230422211448747.png" alt="image-20230422211448747"></p>
|
||
<h3 id="2-3获取AccessKey保存备用"><a href="#2-3获取AccessKey保存备用" class="headerlink" title="2.3获取AccessKey保存备用"></a>2.3获取AccessKey保存备用</h3><p>AccessKey拥有对阿里云提供服务(对象存储、短信服务、视频点播服务等等)的控制权,要妥善保管</p>
|
||
<p><img src="/pictures/image-20230422211940485.png" alt="image-20230422211940485"></p>
|
||
<h3 id="2-4-查看开发文档"><a href="#2-4-查看开发文档" class="headerlink" title="2.4 查看开发文档"></a>2.4 查看开发文档</h3><p>刚开始不会使用的话,查看开发文档是入门的最好方式</p>
|
||
<p><img src="/pictures/image-20230422212508029.png" alt="image-20230422212508029"></p>
|
||
<h3 id="2-5-入门案例"><a href="#2-5-入门案例" class="headerlink" title="2.5 入门案例"></a>2.5 入门案例</h3><p>创建一个SpringBoot工程</p>
|
||
<h4 id="1-引入依赖"><a href="#1-引入依赖" class="headerlink" title="1.引入依赖"></a>1.引入依赖</h4><p>可以引入一个日期工具类<strong>joda-time</strong> 方便后面生成图片存储的路径</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.aliyun.oss<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>aliyun-sdk-oss<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.15.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-修改配置文件"><a href="#2-修改配置文件" class="headerlink" title="2.修改配置文件"></a>2.修改配置文件</h4><p>入门案例中以下值会直接在代码中写死,先不从配置文件中获取</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 地域节点 bucket概览中查看</span></span><br><span class="line"><span class="attr">aliyun.oss.endpoint</span>=<span class="string">oss-cn-beijing.aliyuncs.com</span></span><br><span class="line"><span class="comment"># accessKey</span></span><br><span class="line"><span class="attr">aliyun.oss.accessKeyId</span>=<span class="string">LTAI4G4SV6WtST7UYH77XXXX</span></span><br><span class="line"><span class="comment"># secret</span></span><br><span class="line"><span class="attr">aliyun.oss.secret</span>=<span class="string">X9KHNYgztNr9MI5Zp8JffXXXXXXXX</span></span><br><span class="line"><span class="comment"># bucket名</span></span><br><span class="line"><span class="attr">aliyun.oss.bucket</span>=<span class="string">yygh-atguigu</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-创建读取配置文件的配置类"><a href="#3-创建读取配置文件的配置类" class="headerlink" title="3.创建读取配置文件的配置类"></a>3.创建读取配置文件的配置类</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ConstantOssPropertiesUtils</span> <span class="keyword">implements</span> <span class="title class_">InitializingBean</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${aliyun.oss.endpoint}")</span></span><br><span class="line"> <span class="keyword">private</span> String endpoint;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${aliyun.oss.accessKeyId}")</span></span><br><span class="line"> <span class="keyword">private</span> String accessKeyId;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${aliyun.oss.secret}")</span></span><br><span class="line"> <span class="keyword">private</span> String secret;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${aliyun.oss.bucket}")</span></span><br><span class="line"> <span class="keyword">private</span> String bucket;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String EDNPOINT;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String ACCESS_KEY_ID;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String SECRECT;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String BUCKET;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">afterPropertiesSet</span><span class="params">()</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> EDNPOINT=endpoint;</span><br><span class="line"> ACCESS_KEY_ID=accessKeyId;</span><br><span class="line"> SECRECT=secret;</span><br><span class="line"> BUCKET=bucket;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-测试案例"><a href="#4-测试案例" class="headerlink" title="4.测试案例"></a>4.测试案例</h4><p>以下测试案例由官方开发文档提供</p>
|
||
<p>1.通过代码创建Bucket</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Demo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">// Endpoint以华东1(杭州)为例,其它Region请按实际情况填写。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> <span class="string">"https://oss-cn-hangzhou.aliyuncs.com"</span>;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> <span class="string">"yourAccessKeyId"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> <span class="string">"yourAccessKeySecret"</span>;</span><br><span class="line"> <span class="comment">// 填写Bucket名称,例如examplebucket。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"examplebucket"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">// 创建存储空间。</span></span><br><span class="line"> ossClient.createBucket(bucketName);</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (OSSException oe) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an OSSException, which means your request made it to OSS, "</span></span><br><span class="line"> + <span class="string">"but was rejected with an error response for some reason."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + oe.getErrorMessage());</span><br><span class="line"> System.out.println(<span class="string">"Error Code:"</span> + oe.getErrorCode());</span><br><span class="line"> System.out.println(<span class="string">"Request ID:"</span> + oe.getRequestId());</span><br><span class="line"> System.out.println(<span class="string">"Host ID:"</span> + oe.getHostId());</span><br><span class="line"> } <span class="keyword">catch</span> (ClientException ce) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an ClientException, which means the client encountered "</span></span><br><span class="line"> + <span class="string">"a serious internal problem while trying to communicate with OSS, "</span></span><br><span class="line"> + <span class="string">"such as not being able to access the network."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + ce.getMessage());</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.上传文件</p>
|
||
<p>以下代码用于通过流式上传的方式将文件上传到OSS。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.aliyun.oss.ClientException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSException;</span><br><span class="line"><span class="keyword">import</span> java.io.ByteArrayInputStream;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Demo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">// Endpoint以华东1(杭州)为例,其它Region请按实际情况填写。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> <span class="string">"https://oss-cn-hangzhou.aliyuncs.com"</span>;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> <span class="string">"yourAccessKeyId"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> <span class="string">"yourAccessKeySecret"</span>;</span><br><span class="line"> <span class="comment">// 填写Bucket名称,例如examplebucket。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"examplebucket"</span>;</span><br><span class="line"> <span class="comment">// 填写Object完整路径,例如exampledir/exampleobject.txt。Object完整路径中不能包含Bucket名称。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">objectName</span> <span class="operator">=</span> <span class="string">"exampledir/exampleobject.txt"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">content</span> <span class="operator">=</span> <span class="string">"Hello OSS"</span>;</span><br><span class="line"> ossClient.putObject(bucketName, objectName, <span class="keyword">new</span> <span class="title class_">ByteArrayInputStream</span>(content.getBytes()));</span><br><span class="line"> } <span class="keyword">catch</span> (OSSException oe) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an OSSException, which means your request made it to OSS, "</span></span><br><span class="line"> + <span class="string">"but was rejected with an error response for some reason."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + oe.getErrorMessage());</span><br><span class="line"> System.out.println(<span class="string">"Error Code:"</span> + oe.getErrorCode());</span><br><span class="line"> System.out.println(<span class="string">"Request ID:"</span> + oe.getRequestId());</span><br><span class="line"> System.out.println(<span class="string">"Host ID:"</span> + oe.getHostId());</span><br><span class="line"> } <span class="keyword">catch</span> (ClientException ce) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an ClientException, which means the client encountered "</span></span><br><span class="line"> + <span class="string">"a serious internal problem while trying to communicate with OSS, "</span></span><br><span class="line"> + <span class="string">"such as not being able to access the network."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + ce.getMessage());</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.下载文件</p>
|
||
<p>以下代码用于通过流式下载方式从OSS下载文件。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.aliyun.oss.ClientException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.OSSObject;</span><br><span class="line"><span class="keyword">import</span> java.io.BufferedReader;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStreamReader;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Demo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">// Endpoint以华东1(杭州)为例,其它Region请按实际情况填写。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> <span class="string">"https://oss-cn-hangzhou.aliyuncs.com"</span>;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> <span class="string">"yourAccessKeyId"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> <span class="string">"yourAccessKeySecret"</span>;</span><br><span class="line"> <span class="comment">// 填写Bucket名称,例如examplebucket。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"examplebucket"</span>;</span><br><span class="line"> <span class="comment">// 填写Object完整路径,例如exampledir/exampleobject.txt。Object完整路径中不能包含Bucket名称。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">objectName</span> <span class="operator">=</span> <span class="string">"exampledir/exampleobject.txt"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">// 调用ossClient.getObject返回一个OSSObject实例,该实例包含文件内容及文件元信息。</span></span><br><span class="line"> <span class="type">OSSObject</span> <span class="variable">ossObject</span> <span class="operator">=</span> ossClient.getObject(bucketName, objectName);</span><br><span class="line"> <span class="comment">// 调用ossObject.getObjectContent获取文件输入流,可读取此输入流获取其内容。</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">content</span> <span class="operator">=</span> ossObject.getObjectContent();</span><br><span class="line"> <span class="keyword">if</span> (content != <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">reader</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">InputStreamReader</span>(content));</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">line</span> <span class="operator">=</span> reader.readLine();</span><br><span class="line"> <span class="keyword">if</span> (line == <span class="literal">null</span>) <span class="keyword">break</span>;</span><br><span class="line"> System.out.println(<span class="string">"\n"</span> + line);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">// 数据读取完成后,获取的流必须关闭,否则会造成连接泄漏,导致请求无连接可用,程序无法正常工作。</span></span><br><span class="line"> content.close();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (OSSException oe) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an OSSException, which means your request made it to OSS, "</span></span><br><span class="line"> + <span class="string">"but was rejected with an error response for some reason."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + oe.getErrorMessage());</span><br><span class="line"> System.out.println(<span class="string">"Error Code:"</span> + oe.getErrorCode());</span><br><span class="line"> System.out.println(<span class="string">"Request ID:"</span> + oe.getRequestId());</span><br><span class="line"> System.out.println(<span class="string">"Host ID:"</span> + oe.getHostId());</span><br><span class="line"> } <span class="keyword">catch</span> (ClientException ce) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an ClientException, which means the client encountered "</span></span><br><span class="line"> + <span class="string">"a serious internal problem while trying to communicate with OSS, "</span></span><br><span class="line"> + <span class="string">"such as not being able to access the network."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + ce.getMessage());</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.列举文件</p>
|
||
<p>以下代码用于列举examplebucket存储空间下的文件。默认列举100个文件。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.aliyun.oss.ClientException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.OSSObjectSummary;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.ObjectListing;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Demo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">// Endpoint以华东1(杭州)为例,其它Region请按实际情况填写。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> <span class="string">"https://oss-cn-hangzhou.aliyuncs.com"</span>;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> <span class="string">"yourAccessKeyId"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> <span class="string">"yourAccessKeySecret"</span>;</span><br><span class="line"> <span class="comment">// 填写Bucket名称,例如examplebucket。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"examplebucket"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">// ossClient.listObjects返回ObjectListing实例,包含此次listObject请求的返回结果。</span></span><br><span class="line"> <span class="type">ObjectListing</span> <span class="variable">objectListing</span> <span class="operator">=</span> ossClient.listObjects(bucketName);</span><br><span class="line"> <span class="comment">// objectListing.getObjectSummaries获取所有文件的描述信息。</span></span><br><span class="line"> <span class="keyword">for</span> (OSSObjectSummary objectSummary : objectListing.getObjectSummaries()) {</span><br><span class="line"> System.out.println(<span class="string">" - "</span> + objectSummary.getKey() + <span class="string">" "</span> +</span><br><span class="line"> <span class="string">"(size = "</span> + objectSummary.getSize() + <span class="string">")"</span>);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (OSSException oe) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an OSSException, which means your request made it to OSS, "</span></span><br><span class="line"> + <span class="string">"but was rejected with an error response for some reason."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + oe.getErrorMessage());</span><br><span class="line"> System.out.println(<span class="string">"Error Code:"</span> + oe.getErrorCode());</span><br><span class="line"> System.out.println(<span class="string">"Request ID:"</span> + oe.getRequestId());</span><br><span class="line"> System.out.println(<span class="string">"Host ID:"</span> + oe.getHostId());</span><br><span class="line"> } <span class="keyword">catch</span> (ClientException ce) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an ClientException, which means the client encountered "</span></span><br><span class="line"> + <span class="string">"a serious internal problem while trying to communicate with OSS, "</span></span><br><span class="line"> + <span class="string">"such as not being able to access the network."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + ce.getMessage());</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>5.删除文件</p>
|
||
<p>以下代码用于删除指定文件。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.aliyun.oss.ClientException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSException;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Demo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">// Endpoint以华东1(杭州)为例,其它Region请按实际情况填写。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> <span class="string">"https://oss-cn-hangzhou.aliyuncs.com"</span>;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> <span class="string">"yourAccessKeyId"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> <span class="string">"yourAccessKeySecret"</span>;</span><br><span class="line"> <span class="comment">// 填写Bucket名称,例如examplebucket。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"examplebucket"</span>;</span><br><span class="line"> <span class="comment">// 填写Object完整路径,例如exampledir/exampleobject.txt。Object完整路径中不能包含Bucket名称。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">objectName</span> <span class="operator">=</span> <span class="string">"exampledir/exampleobject.txt"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">// 删除文件。</span></span><br><span class="line"> ossClient.deleteObject(bucketName, objectName);</span><br><span class="line"> } <span class="keyword">catch</span> (OSSException oe) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an OSSException, which means your request made it to OSS, "</span></span><br><span class="line"> + <span class="string">"but was rejected with an error response for some reason."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + oe.getErrorMessage());</span><br><span class="line"> System.out.println(<span class="string">"Error Code:"</span> + oe.getErrorCode());</span><br><span class="line"> System.out.println(<span class="string">"Request ID:"</span> + oe.getRequestId());</span><br><span class="line"> System.out.println(<span class="string">"Host ID:"</span> + oe.getHostId());</span><br><span class="line"> } <span class="keyword">catch</span> (ClientException ce) {</span><br><span class="line"> System.out.println(<span class="string">"Caught an ClientException, which means the client encountered "</span></span><br><span class="line"> + <span class="string">"a serious internal problem while trying to communicate with OSS, "</span></span><br><span class="line"> + <span class="string">"such as not being able to access the network."</span>);</span><br><span class="line"> System.out.println(<span class="string">"Error Message:"</span> + ce.getMessage());</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="5-项目中使用OSS对象存储"><a href="#5-项目中使用OSS对象存储" class="headerlink" title="5.项目中使用OSS对象存储"></a>5.项目中使用OSS对象存储</h4><h5 id="1-文件的上传操作"><a href="#1-文件的上传操作" class="headerlink" title="1.文件的上传操作"></a>1.文件的上传操作</h5><p>controller层</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.atguigu.yygh.common.result.Result;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.oss.service.OSSService;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.PostMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestController;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.multipart.MultipartFile;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/22</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 对象存储的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="meta">@RequestMapping("/api/oss/file")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">OSSController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> OSSService ossService;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传文件到阿里云</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/fileUpload")</span></span><br><span class="line"> <span class="keyword">public</span> Result <span class="title function_">fileUpload</span><span class="params">(MultipartFile file)</span>{</span><br><span class="line"> <span class="comment">//上传文件,返回文件的url地址</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">url</span> <span class="operator">=</span> ossService.upload(file);</span><br><span class="line"> <span class="keyword">return</span> Result.ok(url);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service层</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> com.aliyun.oss.ClientException;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSException;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.oss.service.OSSService;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.yygh.oss.utils.ConstantOssPropertiesUtils;</span><br><span class="line"><span class="keyword">import</span> org.joda.time.DateTime;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.multipart.MultipartFile;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.ByteArrayInputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.util.UUID;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/22</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> OSS文件相关操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">OSSServiceImpl</span> <span class="keyword">implements</span> <span class="title class_">OSSService</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 上传文件</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> file 文件</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 文件的地址</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">upload</span><span class="params">(MultipartFile file)</span> {</span><br><span class="line"> <span class="comment">// Endpoint,地域节点信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">endpoint</span> <span class="operator">=</span> ConstantOssPropertiesUtils.EDNPOINT;</span><br><span class="line"> <span class="comment">// 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强烈建议您创建并使用RAM用户进行API访问或日常运维,请登录RAM控制台创建RAM用户。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeyId</span> <span class="operator">=</span> ConstantOssPropertiesUtils.ACCESS_KEY_ID;</span><br><span class="line"> <span class="type">String</span> <span class="variable">accessKeySecret</span> <span class="operator">=</span> ConstantOssPropertiesUtils.SECRECT;</span><br><span class="line"> <span class="comment">// Bucket名称</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> ConstantOssPropertiesUtils.BUCKET;</span><br><span class="line"> <span class="comment">// 创建OSSClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessKeyId, accessKeySecret);</span><br><span class="line"> <span class="comment">//生成文件名 生成文件名的策略是日期/文件名.jpg 文件名由UUID随机生成</span></span><br><span class="line"> <span class="comment">//获取原始的文件名</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">originalFilename</span> <span class="operator">=</span> file.getOriginalFilename();</span><br><span class="line"> <span class="comment">//分割出扩展名</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">suffixFilename</span> <span class="operator">=</span> originalFilename.substring(originalFilename.lastIndexOf(<span class="string">"."</span>));</span><br><span class="line"> <span class="comment">//得到随机的文件名</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">prefixFilename</span> <span class="operator">=</span> UUID.randomUUID().toString();</span><br><span class="line"> <span class="comment">//得到文件名</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filename</span> <span class="operator">=</span> prefixFilename + suffixFilename;</span><br><span class="line"> <span class="comment">//将文件按照日期进行分类 日期/文件名.jpg</span></span><br><span class="line"> <span class="comment">//获取当前的日期 使用时间作为目录</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DateTime</span>().toString(<span class="string">"yyyy/MM/dd"</span>);</span><br><span class="line"> <span class="comment">//得到最终的文件名</span></span><br><span class="line"> filename = filePath + <span class="string">"/"</span> + filename;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//获取上传文件的流</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> file.getInputStream();</span><br><span class="line"> <span class="comment">//上传文件</span></span><br><span class="line"> ossClient.putObject(bucketName, filename, inputStream);</span><br><span class="line"> <span class="comment">//拼接文件的url地址并返回</span></span><br><span class="line"> <span class="comment">//https://edu-guli-0306.oss-cn-beijing.aliyuncs.com/81ea0d8d-0e52-4749-be58-6292410deec6.jpg</span></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"https://"</span> + bucketName + <span class="string">"."</span> + endpoint + <span class="string">"/"</span> + filename;</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (ossClient != <span class="literal">null</span>) {</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-Aliyun-Spring-Boot-OSS"><a href="#3-Aliyun-Spring-Boot-OSS" class="headerlink" title="3.Aliyun Spring Boot OSS"></a>3.Aliyun Spring Boot OSS</h2><p><strong>[使用文档](<a href="https://github.com/alibaba/aliyun-spring-boot/blob/master/aliyun-spring-boot-samples/aliyun-oss-spring-boot-sample/README-zh.md">aliyun-spring-boot/README-zh.md at master · alibaba/aliyun-spring-boot · GitHub</a>)</strong></p>
|
||
<p>相比与上面的Demo,这个Demo更加的简便,编写的代码比较少</p>
|
||
<p><strong>项目说明</strong></p>
|
||
<p> 如果您的应用是 Spring Cloud 应用,且需要使用阿里云的 OSS 服务进行云端的文件存储,例如电商业务中常见的商品图片存储,那么您可以使用 OSS starter 完成 Spring Cloud 应用的对象存储。</p>
|
||
<p>阿里云对象存储服务(Object Storage Service,简称 OSS),是阿里云提供的海量、安全、低成本、高可靠的云存储服务。您可以在任何应用、任何时间、任何地点存储和访问任意类型的数据。更多 OSS 相关的信息,请参考 <a href="https://www.aliyun.com/product/oss">OSS官网</a>。</p>
|
||
<h3 id="1-引入依赖-1"><a href="#1-引入依赖-1" class="headerlink" title="1.引入依赖"></a>1.引入依赖</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- 阿里云的对象存储的依赖--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alicloud-oss<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.1.0.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">type</span>></span>pom<span class="tag"></<span class="name">type</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-在配置文件中增加配置"><a href="#2-在配置文件中增加配置" class="headerlink" title="2.在配置文件中增加配置"></a>2.在配置文件中增加配置</h3><figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.cloud.alicloud.access-key</span>=<span class="string">************</span></span><br><span class="line"><span class="attr">spring.cloud.alicloud.secret-key</span>=<span class="string">************</span></span><br><span class="line"><span class="attr">spring.cloud.alicloud.oss.endpoint</span>=<span class="string">************</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-测试使用"><a href="#3-测试使用" class="headerlink" title="3.测试使用"></a>3.测试使用</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line">OSSClient ossClient;</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 测试使用阿里云上传视频</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testUpload</span><span class="params">()</span> <span class="keyword">throws</span> FileNotFoundException {</span><br><span class="line"> <span class="type">String</span> <span class="variable">bucketName</span> <span class="operator">=</span> <span class="string">"gulimall-0611"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">objectName</span> <span class="operator">=</span> <span class="string">"test1.jpg"</span>;</span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"C:\\Gong\\data\\test.jpg"</span>);</span><br><span class="line"> <span class="comment">// 创建PutObjectRequest对象。</span></span><br><span class="line"> ossClient.putObject(bucketName,objectName,inputStream);</span><br><span class="line"> ossClient.shutdown();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-在项目中使用OSS进行文件的上传和下载的操作"><a href="#4-在项目中使用OSS进行文件的上传和下载的操作" class="headerlink" title="4.在项目中使用OSS进行文件的上传和下载的操作"></a>4.在项目中使用OSS进行文件的上传和下载的操作</h3><p><strong>服务端签名直传</strong> 使用这种方式可以减轻本地服务器的压力</p>
|
||
<p>参考文档:<a href="https://help.aliyun.com/document_detail/91868.htm?spm=a2c4g.31927.0.0.44193d70tJDLJb#concept-ahk-rfz-2fb">https://help.aliyun.com/document_detail/91868.htm?spm=a2c4g.31927.0.0.44193d70tJDLJb#concept-ahk-rfz-2fb</a></p>
|
||
<img src="/pictures/image-20230611214209712.png" alt="image-20230611214209712" style="zoom:150%;" />
|
||
|
||
<h4 id="4-1-获取文件上传相关的签名信息"><a href="#4-1-获取文件上传相关的签名信息" class="headerlink" title="4.1 获取文件上传相关的签名信息"></a>4.1 获取文件上传相关的签名信息</h4><p>获取签名信息的接口</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.thirdparty.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.common.utils.BinaryUtil;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.MatchMode;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.PolicyConditions;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Value;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestController;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.text.SimpleDateFormat;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.LinkedHashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/11</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 阿里云对象存储的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">OSSController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> OSS ossClient;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.oss.endpoint}")</span></span><br><span class="line"> <span class="keyword">private</span> String endpoint;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.oss.bucket}")</span></span><br><span class="line"> <span class="keyword">private</span> String bucket;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.access-key}")</span></span><br><span class="line"> <span class="keyword">private</span> String accessId;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.secret-key}")</span></span><br><span class="line"> <span class="keyword">private</span> String accessKey;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@RequestMapping("/oss/policy")</span></span><br><span class="line"> <span class="keyword">public</span> Map<String, String> <span class="title function_">policy</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 填写Host地址,格式为https://bucketname.endpoint。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">host</span> <span class="operator">=</span> <span class="string">"https://"</span>+bucket+<span class="string">"."</span>+endpoint;</span><br><span class="line"> <span class="comment">// 设置上传回调URL,即回调服务器地址,用于处理应用服务器与OSS之间的通信。OSS会在文件上传完成后,把文件上传信息通过此回调URL发送给应用服务器。</span></span><br><span class="line"> <span class="comment">//String callbackUrl = "https://192.168.0.0:8888";</span></span><br><span class="line"> <span class="comment">// 设置上传到OSS文件的前缀,可置空此项。置空后,文件将上传至Bucket的根目录下。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">format</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SimpleDateFormat</span>(<span class="string">"yyyy/MM/dd"</span>).format(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="type">String</span> <span class="variable">dir</span> <span class="operator">=</span> format+<span class="string">"/"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建ossClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessId, accessKey);</span><br><span class="line"> Map<String, String> respMap = <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">long</span> <span class="variable">expireTime</span> <span class="operator">=</span> <span class="number">30</span>;</span><br><span class="line"> <span class="type">long</span> <span class="variable">expireEndTime</span> <span class="operator">=</span> System.currentTimeMillis() + expireTime * <span class="number">1000</span>;</span><br><span class="line"> <span class="type">Date</span> <span class="variable">expiration</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>(expireEndTime);</span><br><span class="line"> <span class="type">PolicyConditions</span> <span class="variable">policyConds</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PolicyConditions</span>();</span><br><span class="line"> policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, <span class="number">0</span>, <span class="number">1048576000</span>);</span><br><span class="line"> policyConds.addConditionItem(MatchMode.StartWith, PolicyConditions.COND_KEY, dir);</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">postPolicy</span> <span class="operator">=</span> ossClient.generatePostPolicy(expiration, policyConds);</span><br><span class="line"> <span class="type">byte</span>[] binaryData = postPolicy.getBytes(<span class="string">"utf-8"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">encodedPolicy</span> <span class="operator">=</span> BinaryUtil.toBase64String(binaryData);</span><br><span class="line"> <span class="type">String</span> <span class="variable">postSignature</span> <span class="operator">=</span> ossClient.calculatePostSignature(postPolicy);</span><br><span class="line"></span><br><span class="line"> respMap = <span class="keyword">new</span> <span class="title class_">LinkedHashMap</span><String, String>();</span><br><span class="line"> respMap.put(<span class="string">"accessId"</span>, accessId);</span><br><span class="line"> respMap.put(<span class="string">"policy"</span>, encodedPolicy);</span><br><span class="line"> respMap.put(<span class="string">"signature"</span>, postSignature);</span><br><span class="line"> respMap.put(<span class="string">"dir"</span>, dir);</span><br><span class="line"> respMap.put(<span class="string">"host"</span>, host);</span><br><span class="line"> respMap.put(<span class="string">"expire"</span>, String.valueOf(expireEndTime / <span class="number">1000</span>));</span><br><span class="line"> <span class="comment">// respMap.put("expire", formatISO8601Date(expiration));</span></span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> respMap;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>访问接口之后返回的数据格式</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"accessId"</span><span class="punctuation">:</span> <span class="string">"LTAI5tDDwk18w2S7w1KF24oT"</span><span class="punctuation">,</span><span class="comment">//access-key</span></span><br><span class="line"> <span class="attr">"policy"</span><span class="punctuation">:</span> <span class="string">"eyJleHBpcmF0aW9uIjoiMjAyMy0wNi0xMVQxNDoxNzozMi43OTdaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCIyMDIzLzA2LzExLyJdXX0="</span><span class="punctuation">,</span><span class="comment">//策略,加密之后的结果</span></span><br><span class="line"> <span class="attr">"signature"</span><span class="punctuation">:</span> <span class="string">"n67QffiYHceO2Hf7g8MDXgWsfpw="</span><span class="punctuation">,</span><span class="comment">//签名</span></span><br><span class="line"> <span class="attr">"dir"</span><span class="punctuation">:</span> <span class="string">"2023/06/11/"</span><span class="punctuation">,</span><span class="comment">//上传到的文件的地址</span></span><br><span class="line"> <span class="attr">"host"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com"</span><span class="punctuation">,</span><span class="comment">//上传到的主机的</span></span><br><span class="line"> <span class="attr">"expire"</span><span class="punctuation">:</span> <span class="string">"1686493052"</span><span class="comment">//过期时间</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>前端相关的代码</p>
|
||
<p><strong>前端相关的代码可以借鉴一下谷粒商城的前端上传文件的组件,里面封装了多文件上传和单文件上传的功能</strong></p>
|
||
<p><img src="/pictures/image-20230612111805518.png" alt="image-20230612111805518"></p>
|
||
<p>出现跨域的问题</p>
|
||
<p><img src="/pictures/image-20230612114314757.png" alt="image-20230612114314757"></p>
|
||
<p>解决方法</p>
|
||
<p><img src="/pictures/image-20230612114238391.png" alt="image-20230612114238391"></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>云计算</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>Blog</title>
|
||
<url>/posts/32696.html</url>
|
||
<content><![CDATA[<div class="hbe hbe-container" id="hexo-blog-encrypt" data-wpm="Error" data-whm="OOPS, these decrypted content may changed, but you can still have a look.">
|
||
<script id="hbeData" type="hbeData" data-hmacdigest="f9f47231f29c282358147a8211bbebf51aa6cead80bea3469ce71f946f43e8a8">4630436162ade97ba2718b7d0c4b3b6351ade09e539dfebeb5402828e29e64b0a0b2ead7a0c81f3528efd42c4bfc7e655935b90390beec5c5ccf50f5f3a3563e45d1f555dda462394b8c82f9043703f54de59a2ca3a5bbb6bc689704128d0a6067d3be4e5c3eb82b8067e74d8125c16e07f5f15d7f3f372adc47c1a377c00579cff85b784f261447752a71d685a50588cc6433036a80e1d497f4c87c43617e42cbe3b4d149640fe864171d7e17467b1f141df8b3b1de8df2548eeb701dd5db5a6ead180f31c15c6abc494aa506618f9fdc12e1225b8597f89f07e534e0443d1fa16ca96878a7a445b4dfd10e9eb343edc49a509d269abf209bc3cc97ba1eaeb40045677ef6fceaf0349f1ce15913177a9cfc47a11551b64019c4d92cba0b7db5794bcb6355a7f6e406a7fbec301fd714898fe19b59840597f09fae99f282d4401730a358ff025ef7e3296f5c41c7a7184e622b00d13e3d16bf335ae445dc342b1ee87a3d47321cf18e199790b827981a77d41c0aa696e88cdfce9e2e06b17f5452ad26549545ed3602d8989f8abdd00b6481ad74853e7a6cd860f417704521ba9a60d5b117d4f295a73ea3bc1d0de1d2fed9710ff6d1aae73f11bb60770a8e4a5f0f7fb2e0ddab6d9d49ec7f8391ae29c37812a55397f4149e5c37f9b5936b0d3b971d9a44d3cd16b574374ce9594e83859a77e8671dfbb440d736a21a93cb3237955ad03987b6022cf7064b6163272291d74eada9f87fd4dc1a93b79bbdc43ec2b4a779fe35770d0366b34b87bb7c5ab042923536579f80699ffa35e27fc413caba9d27cc41dd07eff83b626e0078b4bfa95d600983c522ef7431988697640620e8efa8cc454b151ef55a27a4ad3e293be9ee3c68c2e61146fde809506421054e7d8d65be5bd755303b39d809acd1eef9b0336d1bccf8686e67d0baf7097fae5e069877d816675563283284602839fb676ffcaf5d108fad00fc7cf6c63e890f7f0aa3bab6ac0be87ec8088fd5dddf51215ea57ee81c3b86e16ac72137eec6971f0072b0b9893904a10565e1273f28357ae490cfd4a6c696b8fd28fba8b8a955881d48366674a61333bf0ce392d838ad6546ef8efb02aa1d05707c4dd278912478df761fc3d3f987c04c586382816095111f2af58da70882450b93c92e25564a6efa4b92938e03665deb21f577e86cc5e64ae743001dbd6910197f727a1d87d6125720ca355c14ab5e14694dce6d6321018a7ef7eca990005a136cd5409a437f624306296f88fc89e074839a6088c3d13e6f44da74fa514d5ec77993684ea2ae517d6e4a24bab36b90522660b1989929e4d6434f5b906e2ae364895bd62d6aed02729ccbba3eeb17d818e87409a7240d6b3bd27700191d91648ccbf9b565d678adc7136bedaa2c33f7c9ca0b19090a6a2cebf6651683ce2fc6e6e1535c873931784d5734a8d2c63c570837e24e5be597a1595d81a6b19aa2da70dd33b72b5e4fcb205540b6835be5b6b7d2ab9f18e8a47cfd89802b326418750166af6e3b8bef05a67687835afcbe3f8a5e4b00084a222b0d0960dbb9c124ab099962a36fb66a7534ec638c31c302eeeb33ac1a05a3565c807fe0d8bdca89efb151ca4494d0b0ea3bcdde902b07fd37d00e1d6872ebc7de6dd5393155fa87c15c29f5445206dcc51ebea1c276e54af83b253cf892e1993ff646f909cffb51618544e58d2447b8e238764eb6aa29d15a5ebe535e79927f6a22e0e7b8e5617aef92bc734d4fc73f905ef2dffddc1e9e903a9767074054b004f9f41117f3bf2769201028b5c6bcc154a86ce66f380c6e6290a3a1fe6f22e73d4db0cc7c596aa786750cf5ed6d768fbf1e512bc9193d9c3806df389269707b3c587948fe5905d864866bdc5e6f4d5c8b0972c71f1260cc96889dbdb95a56aa22d38e97c0bbf3ee6647ca7ce4f1aa9729b294e4908b2c19b3717b59c579d2f1278ada4453f3277570708e990020363e6781ecedafc5e55d30cb208c6393ebdde52cf17babdc9f5bbd82d223f7d6aa4021ea54303c1703d2f95cee23302aeb55290a22c63d72636eb248ec22796036517ce93d042d4422c38165ea860ffb2def6097acdbf8b95cdcc2ceaff42449ea73c6f0123a83385d46a942f197081f29761b4185ec47fada1bdd74390461bb2464f5b783869da299e6fc1630fac81bfaeb92d33c39981146b382e0b9dcca83a50dfe486f0aa1aac933d90bae9892e38bd359da17bc9581e055aa592d8b0d1b50c2569bd714a05e08643f775a197fe0784fd995e17dccf5e88a64d115de2d093c2ec4aae4c8f95ad8670e12a583306147731570880dd9908e419350de0e78e1b5e59541a5cb6cccc34da09ce20b50d36aad79ba3f723a45de80576ab991ed6041aeff9e15419135b2af3d43fe2301922c034156175f2e73116ca7cb4c401c654152a62b0964a5ba618af72d47dc79247f864dc8b327895a8896e5d7829cfa421d40e69869ba7b3f39ed81a8ef723c583a5f45f283f0709289262ef1ab717af051ae9810c3a1cd087bacff693369c3b48ae17689cd8c97f43a4c8b2c21e438bb6a1bd3b771b6811ea047311c3b4a3f894aa4cb688e542885feff3374d203530b1ca6f234519ec04a4a09f8f8bfb62fbdbc39552dc8e394e7bffaf3404916ffa2351925cf83d7892f8700340003b276634eb9e4c55b100eb12fcbe06966dc67cb05e20be71d3c211cdf570128376b13e1695266ba84300ad4e7a677e49d95438bf156a25e76457aead1a861f9c12c9b2715dea37472332f847ffdb447ed466cabfc8de7670755b295e43d732453eafc588a55a763b9b97c0b8c7e42cfd91f2d97aa3a3ee699139c3697f5628a533a68b6e81fdeabbfd5ea32fea705a4d54fa3e4851abb46c205b3d7745c6e590bd67e911f18fee216075695ba3619bf79c0692238ed2be7b21cbafe3d652753d7dc2dec0160b470b2a37f80b14774b4255c350d466c8d6749e049d5e2079e3b6b8ce7f6e12cca17137701da8d3e3b9dcd9e58f65076940c7f1f3f3d7f89a4e591b47c9c58af798638dcde199b8ed95ca922f445a9770d22b2415ac6d338cfd70c44424492e3e07690558629e4686110d1ecebab6ae828e9744bd3fef11953019d99c02102053ccf0e78ff5c4f46db34f2b3bef0736cf4f57e3452d61a8fbdb1dfbfbf7f347218cedf9d25ed03b19b02e1b66e30cb27e4815c6cd72a55839a663389ae3e862c55f5caa105fc1fa54a685653dabc0418452ba2bd24aa38e379e43e8ec72fa504884420f6160e13f69f1ff6ebe67b20c18a4260a94ba8e3a5c65731cfd3e7593d91a41fca4fb0afc5991337bc13979fdbdbc12a1ea81f54c35feeca647aa1df3e5d5520cae783eee623dd8d65678fc4c4611f12321bb9da06f75225db5a46664b79aa3fa0b7a10ee9170f1335b26fd67977e750c77aaa7ef55242bef0080c4e4f7c9ccfa31020b4b73231120178b1bad2e2d4faea2ffc59c71bddde0377e0ee3717a1db59c7cbaf2acf712759a004250216d0e93d2efe9423e9d96810ba7f43a35f227fe71314d0a20f5f1abb66006efce6daaffe645b86863117c224758f06e5815e7c36a06c4b2e22e80e2e90d012eca4618031f3a4d9033efa6886233330bb6c2e27be063a037388b2f196e8b006e397210b3f6ec4b4f92986e3846d53de62423bc7d31e15041cebd9e61d6d91eeffb5256df77fa0e640d85123db06f8aebc1535bae3b261c97867e1b4485623b5f815040f3615c02554a58edc78283df8458897b93ef7a90185bceb1c184ba0cc5574edff7ea96c86c9cad7fb54f25f4bd73a0864720c3e2902cb45faeb8e1e9bb590ff7d458f786cd1e4c9c284563538cfdba2c040cc8ca916e2268219765cce914d887e07767cda274af5fba1a73870fc738847b7d008453c490d9169e41e2f1d4dde486a53cf66b1fa3f4f9923a579fd6c3621aaea466dcb7320982fc66d93e65a47be7d48a4b87ed1a9c44042e5a7fac8d578abedd04d3c8244d1231d0a9f33fc507dfc344b81706ea5aa20e7830f9a058ae6c6e6e0fe03a35909d6ec0f02cd53719d0e7049a98d32ded83068f77edd8f91cf6efc7a2f317e00f3ac5bc4a819dd470e6ea809cd8da284f71861f9977a2048ed2055c52a23c006b17fde0a7491fdf09b67f69959a24c0ebf7193a2e5df415c82d9bc068d7809acd63eba84d967185e75017f75e3a0f91991a55d344feee952931427eb9143998a8072bbf6d18a4a8b78eb904dc334002da0bca3ec971e98f96d1047f8d1ab0359a72761c0cdaf3571e6640231978fe3c9da8b80f06dc7a17d69404388ed3912a40c4b2e5631e4b75a1f70348fa7ad3c204d27d960cd2e78fb1fed109c0a8a3de8370376060172e217c89d147619b9153bb1e58977f8032467b93906ad7a03a01d9b9be38de03fa78bd775ac550da0c5a9271e706b8164be8a69f614edf5005abef05c04d680444a1380dbc8da1e28a826f49c338dfc07da679298ecb2f6b1da0adfee72734fec4e36ca37e7befb26fb0c04c482462f75acfe8949d883f64abe387e52dbd7d724ac1eae6bd0f37bff88867f60b95a8272221862e326a7bc73c7bdd9fb47ae8e7da32c54acef321eef10d1cb90760501f4df60f3680b4e6b996af03548a0a012e86b403cf19995c3d86a16dab2334c698a4ce96ca7af6fe6fc42d06a15959a13e227534ba74db3b409a41fdfc38470dd4b3aa01308d16d92c884631ed20c14d5ed4152f063c7e5255a46d2333d015c6f3828118602b91b081c4b0a34439ca37684381dcbb5d851159b81278a78162552e9e94e7b5ea8eb04240569ae5e7e268d80a387ad771a596139335264f2c9ea6ca536cb5de7ecf41c6e02c39ebc862daca93d7adc98ca2ce8efbd01979509727c897c0f4f510d2c682a1e88564d14cfa9f8254cfc427e0ab74a777acf9685fb8c2d5da31095bf9059ff6a75abd27a53383fd1bb432e089309f5b94e70abdcf5649ef7aebc2f8b5e44ecfe3b1be12ffbef0f7143cb858c7aa7b9f0d9b50418f1391de97f0bb5d3cd3f71fdb44e1165dbe2484e02ca1d7a871fb955b0282d5cda8854f482dc50acf1ec8fbf710c44455eef0469cd56b5486ae3a789742744cb862bcb0f40b708e9de46c3fdcce68601d38d4649c6ae3815c3f993841e31f5ab77ac5fe983102c81d24c5832a9162a2480b22b89f4f89742b449463dacfad26f430504707db6d7b226f7c15ea98c54b3989a805a9074695cf05a91ae9e710208e7bb2bb1453a3223b542ab78986c6ac3a781b99a29a9b2f256d6d9af4574a33d0b1a3f1fbed8042402d76350fe14aaf23475a4070408c9b882d9d2280c3987f44b558dfcd65826ee952b2eff07fcc41bd2b1ad50d0af8f1ac9ae00a123d721af030a51a726ba9a512e5d96f7c7b288809c61cbc0f70c5c45a0edcfc6c656eeb08ab8743f8bf1c881594c33720b9d439dc72dd53c87bd95bf568de1c07f225c29a72f34e436c25e3dee123a9afd6122695c929de39136348aa1a5a669b17cc34a358a3c9f4158edc469d87bc2fcc8f9c25c4243ee75246730860d0c68df22ae3f45a3e2a8b8fe71b9f92043da7e80595e3e0432ac57f539454752a9e694101fec888d9e35504df8d77f098a674221093d2b88a598f0239c6e2d88f96fb70a47e6300f7a1918c410aec6d5a5b9f56835263065202fa5a69d06c5fb767d724d30276c270916eb617b4cde4190304f2242fe057335118ff42272e871775b52641cb991dd495578e7da202309fc76e829087b7739f46d803ce4b6cc5698f55146a5cdc5b8a8238549f1e39f13773d899aa7924fe28c93479f067438cc3987ac8b1f15ade4f72f5e66f0b5368de39c618c85dd5d5f0c93dfd22726640af2d5a117b3780bf7ce7a9d11b491bf78d8637986cb22065bfa5915ef940fe6379714d858830d00f225a5de530a0da4c9535a7b367bb17f4448763ce1118ef9227b4e3f1301e71ee2038582ced900b3c82ed37ddce187f31f6717e7722ba74e58bfc867018073d47f99b79cd3abfe4e3f5a04b46393e699b573daf27905a10004f590e4f404c841f2213e2debdc09fdba4e224e3f21e3c7fbb6d536d613e155fe0581941b7adec68ab56548076e811cb08d3146df43034b0e003e96eb6f3441c2f04d0a30cd1cfe9f2c9817aee0424429fddc4cfa5faed985c0734a611fcb5465b45cef58baf3e820bc08d4335d4f1ea994480780909be1fe8f097dcaea8e0f1d966997d23171be1f930f3835a698eae8216f5d5189776fcd7edb841840f8ba49a2576d85ebdaa45f9195837db131751a63bcb2a5dfc604e06e91ec8d4f1c5bf9ddc19eb9ed51af5e1cae5b71a3d44248a4e1b6c2919381ad516bcf32e8ec71a4368043ade6b77f8d434bac4eb8459c2e41b4729e954f3adfd0e55943e2a0ee27ca0028d67ea4cd95807bfe1cafb54f7a71cb2529b5c77e5f98d8f846fc510e0df4c3f6af34ba1fe78dfcb371b336286704fc51f48a348abe2d0e16d8bf30156ce28f495154ab523309544c3e59a863f32e3dd35a11174b4d9f9258e4b0195affa0d894973309a601d5278313a4fdb3cb81d721ec39c9764d6b6df6c74b1096cf6588787a43a35421e226f396431c2a2126f3317e765ecf015a40461f7b36add109d696c6511775974f69b1c4f920cbd6f24dbc657ba6c69d3bbfc91ec54502d27ff2d0807289b8e39a76f8b2554c63ddebc367df4a9f2a7b58f189580a734ea4d04f4b379bd1045282b5aaa479fde69f1625a44be834e788070b0eb5783fc750a8e6b7a17fa6c818073ddfd0828fa0341e84c9850d4ce7cb247c23191bf0eeceb8ee67b4f87ef7a23f6edc46afbed02c977a1a04ca1fba096228ebedfb01578e46b1d7393d450483716680801d1cd785aaeccf5679ad0453262a8ceb617b263d8d51b854225b05911ae42829cc2039d33c4b344feaa25a41e26b93bc1df2197eb48bf4add852f1d89af351886172f87e5964146fb116dfa448a794a0dd4928cd44e719bb51d3df8a57f528cfb9fc990c6d63575dd2b1b2f2b369ce81217b9853d8681388d47b88ebb587b827a7d2154076ed5bfb66a4706066e0b80d000f8f1ddfefa58fa46c5d6b9ca15df56772da21a1f7251fa4259ac465c08859e2fd5945e861ef73d382a4923f97e2982a8b79e62d37f0c606e97d1c511297b6aaa26dd4cd51d1114a95aeca303c4974a24fcadc1cf5e54437ea87bbd8e71208982721e415c45c7fabdec3f897c2156cb8a488e418c895f390fcf72091c1aab4b2f9ecc1d844d325976a1238a9d48bcba036c53201643bd2490bc5f303db2a89cff913879075419559cdcf0c3b104125487fe6e431910673f21427b5a800aac13c38d1c7fec4f76b23485e7b2adfab12f48e9bf64b9d85e3080ea9a97d23930b57d89ce4022e87238c879619ebac0e21b127d966dac51afadcf3c6edff78e3e72975cf8c452ca17129ec28417341cbdfe1dd0050b02fe0de31f8917bb22cfd1d649aecd6410133787fd7e5b3012698031711de568085888d6511829cbf0164fd12de367a303f6c338e232a0e7869bee9619989d8cac7435f7c91c017c6da81733c664a403e3c2694e92eaea143d2e95cf0f6d6fb3be229460a8a54f99e12276b14c9e11c98b0611690ba14334e45ff3dcd02062f11170f64b734c85fd9cfc26b8838742493c80db82b77e603376ad4055c25451b32001e349917536503280882c9f81f94acff4a183c00bc9692f1cb4502457808415e337eec810346186c2e12aa02f309e7a079e9edc1fbd5caf28d9830bdf7f2d3a9922b55641f953d687f61b10f01dbcfd41655f21f9fdcc597f6029c64811991d48ec67ae345d00464ff5e99bb959f9b3ed333ca5b52c90cc7dd4b11eef029a008c436513969749cfc0ac7a21348f7f5d623310ca0891e6e8538bca558b6b959f1bf1e1c8b7ef04588070b16d930908a358b0b46f04fe24f0e769e51eb294c1c11d2e6e52cf0947711eff65a0ca9c790c4b2102b818c5b62a001ff463d7d4b7026c45778a5b9a58699bce0577e04ce464ea8c4f5c84bc3a9958cd7c3a1c6b0b66ca25b797a7d39034d5529324550a3d2a716f26b615312bb08143044731de3714e70084dc2b9313313d18cd276d5df6147b5676f81158a5f8355e7de84f0d3e5925d66675657891217181f57fb28a253c91dca96140205b8feb994ae684018f964d2a6f5d82b92efa27509dc3b4515053f82b7b07097ad580652648dafa2d7749702c8b363b544fed17de5acfee8bd25be4902e5d8d22609cbb2711327549f0cd411dc9e07e6dd211fa418bf6cf55f0338ead4905a983ffded7c9fb8afce1dac173b6880fdb53ab359a2ba6188fd3b1531e4917d53b0552eec280e28b2cf16a4805efb8f0b625a53036d90641d180702892d7035392358791d9a8e82b546ed4aeb28c25ff4498283f17f799f04b1c90fa3c0a56d1c0db250389551226414965da70b922c4c97cbdebdc7ac755731367b1f298ef1409dbd9a0cd3e44ce1ed157fbe9a0c8128a6eeaf0ecd372e4c7e071673068ed03d6680b32695ecea72f03ee4dd9addbce0fbc45c599697f4a7db0636dbd226bcd620b54cc81af48cc23a43aa62781dabeb5f46c05fe68adaedffc5c4d7c48a4fddf71adfe06f69849bdcf5e02c59c77cd7c2b4aedde5545c6c60e881e629c3b68f657d5b42d9d0aeab8481e94ba8ab8bd6b22d2673dd6db8a85f82aa062082e9d2180ea0e6bd71c53b7c7f7f5ecb378fb1646340b6a7104d291b47cd57242ff1bbaf3ba63603a757792ffdc6e85edf0d577efbf97bb812a700a9f2d02478fd0c06a6265f064d67b6c644437ebaadd2ff7c29e8dd9248cad9a4218c9a8fa4136ca087ac12b38a5d93e5f97167604699d8d701805eeef40a4c6b6606fd3e19e61d0c206bb32867b17d7bd8ae2128ded11266ed7a6c29df271c1ed45ae4a0b80c850056ea490dca42e40ff3c0ce9b658f0c01b460fa7e3f7ffe86be4c05ece4f4de09d07c89a97ec75d3fc5b773b0c9f915efa0050a6bc6db9bc4fb68936fb514154e833fe7a6d897df56c90ab446ea991051ed8153c95a92efed000a868afb20e9b764f759c72ff2e186c4ea28a14965f2c853ae2fa2f7227a4c3ad9cfc90a3019b0616ed36f2a75c24537f0ee8c30a6920c8937a7adaeeac94ba6f6e5e787382812ecd8c33986636a2af9635d712b193b92ddcf3d6188dcc4238de6637bf81b39ea2731fa317219412bb41c6d39abc907a2b2147ba00793a9e52bdd03b866aa3f941f30a3b3de8620358a39e02ecc9045fb794ec148c649ba0e8f3919edec068b8390d4e7d87fec9b14c6a21e6dea96f59294068663bfc16df8591bb292fd8451469b672c30fc6933a0accf5bbb0d4f06beaae19a45ca30fb11d3e8de470d7f6eeacb53582fb199a487a2137969a4893e38ba4f59cd53d01f1e0db4409097f5eb96f160c2c606b4e69987ef4e1914640a993e4e78fb5d55297b5c6723fe3c7f6fbed6110889f69798db488decb9e7fd1e5a3eed344aa10fe3fef82f02533fc9c97f6aab0b52e2a291f477ca295aae0742eed3f3ffb302f66cfeb0da9c7e80f9b57e98c5e41a2a7b07d79911038474c2138c1c3d45e56d8604d48dfa536dbb2ac03f1573779920a1199236ee54b3bb7180b673cecc91e9e352af4db491d8f768ec125e59aeee04d5c32762963d9952b07f56ee1fb9fa93bb6a3f0c6783365fc058e1c20806f27e2965eab55bc6218dbbaf1c3cbbbc06ab84d474e3aa35e110e79dd7e94ff673d955e27f2689711ce82b2db07fe014fbca17ff8b559e21fca37f18d6fa55da78f8b2c78d96661dc1340e6ff98da9df86e484bfcee5e712912244d76f145e290b41d3e8d7cfc20c949eb5cdf17355d7d03441053f2a36bb672895829853ea459b337f66b6b17e7d89415145f1d78761250f71ee59a40213a89fe5981c2e6c8117756aabae881084b26fc79bae84edfa0d10d716211dbb1850e58c39664b9a66c3f8b3a0712c8a34968e9343f41c76ae45b68c28a75550691aa71b527679979e912f15862c11736ca3e6299cc77e9d0f62b7f4629e38fade81eae62e65b6e48a3fb60b027903c711fdbc5ce76ce3be19b2ea72865838a5cc97781296d0998a749cb484e7944fa9ebc5aa3ee8433535090f86acfc94d57fa560c16ae4949961fbe10ae6270cc0ac47eefaa25fdda4d012f9c1b0fd08d01a4f2a16023b3579354792eb5e09791203de9e5093ba08635b08f185ebccb9e88b69058d785f4129b915c89858742b5234d67eb945f6f40753445ba112b6c99c06f4194ad31895e07b2175b92cd8b263e8cbbf597f983ad439236dd231b1f2271ea4b777abf2545ce9aa49bcd15e520074aebcf874c9e965539a9134e52a4eb768d750c4ec199c205c796c509a91dcaeac24ecc6ddbedc5d1885bc31ba5b12e8383d98cacdb835e6c63871a45a6510a960b1d0960181806c623b943e0e2106ec360b2823498b6a925dd4cc0d41a3f883e08f6a53f850167bc23bd367e4da32c1ebc4e65c5f52d1b7405dcae2111ca8e338eb37655d20a8aad59f7afcf9e5042dece125dfb5826d047d0e04360c4252e84fee58855a7dc5e0d67df6689843a02c95b117c350a87779950443c4e727e07041021835e0baed3d81adc78f6e86e4e561360b24dd606f0fe0cfb643b1b9ace464a4937bdf43e7f1818b4d9ad9de68cdb35a121d99462a536964464ab5bdf558e17c0e6bec3b7d6a806e697fe5fbb81988e8a9e242828beb08835c1ffa083705635162679e2b2a16544f69410def8c87309214755197288d086ec5595d2c27132f45f1d90abbd977d7bad639a64df5a5200a00edbe65d311e3e582dad2740c7dea3bd5148f62506e557786b44006b22c60f2212cf4bc65639f42d8e7af3577f1e7bb1301bd07025c4624c13704d5d4136ef50afb3b401ad73fcfd66091f21c13ac17831c1874d40ec92ef5f11e26eb667a1e87d2b6deb3357b5b9ca3b0a872a70f5bad6a98869f55f94449a27acdfecffc53988aa357893ad4659269a627507d850f52c4f712bc318422f0cf9bce7bbaa101a182ca86bbb9e715a95098e450fa5d4cecd7fd0acd681bd996dccf3569253e03cc06259be32cc35c5fdb19ea92b603b96eaa427453d0dfdc7375a353249c77d7d0fdb71ccbdb948424f4358a700bdee81df1ba6d9f4accf48afa36a393e8bcf498bc2315f491c5569531fa2f0c661ce188722aad4a605186612a908b0784c160041164d4c6a6b57aebe21536cc4f522a647cb89b81e0c1a3323cf599161dcbbfd966c5d19477178739779ef72d0c18e7aae7fb0626d2faf2cb57fd410c32341e796e779acefc55522e8537f66b8c9bbde056906b66d81270a266f3f472371ba79956d9f3f77203d91e1957cd0690dc0cc767bb18acb2d7f9778483fb78de3dc7e3ec3670988cf43b1b4558aea0d544dd71f0bac1b787c629034fdcde87836142b0e670ba5102f273807010abcd30f8c680c9836a00de7adc195211c6d2de34aea0e46cb8f698339ba4bd59bf1fc1af607eb649bb7ab22179d49e68e73a6c7a2f6e15c7bcbc2de203b1cc11f09a5fb4627c41b4869548d7085a77c0878b372f6b692c6fbec9b742001e992db1ab531c7e29c9f17f2a0a5b00082da5f9878fa4bb7359f3b5ad5495f2ea6b24c0cc18700687fdc2f1564ee48998ac5096c9eeb57fa50a7256c8736c264d86cd11b5ad366a900fd85dbe9f8b5b727bada78789c20d4d2527029247cbbcc911d7ac0a682ff95517a9899ca3c5915e7faf142d8f8bcc4e52149effdf1f59f272dbdbf1cf648b604f1d1ac7facc2ec957d34c08b92b750c56f8691d66520c048772426ce949c43082bf0ada296fa440704c2a132b7866874dc98c5406b9ddebdc90dfdd8fc11322e77c40a08d833632cc232687d34fd3f83643af7cbe01a2b17685b68f4d4a7730e377d450d1c301485108e5d7df02662f5be9df0387b23645468586fc08366df9a79a311c4b41ff44b2cc93341cf4581b8863381c31c144e8821753082aa52b097c431ff734d79e14db384d34463a676cbe434fb951927b460a599151d072beafb8be61dcf85224eb4f0b4a3f1f2c3a71b117c42cea3c11a3b5bd6c75304704ff5a36cbf180dd4b4ed148fbb5fab8ccb9125d77bcf67a9c8e139d409592999f0253a5a76c3cc142edf3f6330fd9056804caf0ba46f79bc07daf7cb06795acb60e351d92eab0c44d91adf6224d6632088ccce491c1eec0c45849043415019a14c249e40ed426bdb3c103e81a220fed28331cc63693eb8b62894c6d91f082f042f9bcda9a3f5cca48a2673f961e88e1e8b5996e7abdc7bd9449a29b2c0d2cb61f285c48f48ac7297678babe7cb59a295763158df747fc66da3dbadec586acb81c6ebd1076160e7baa30cac4c1e27e0b6624ef3ab045f1297bb9080231ac9b6b31e78c6186cb7f338e4b7f54fe862acd4ffa4cf6c7c715a88666665c35d0bb2d73576a30474d603c449f1a84d9be3eeb4dd15ba88cfb55603be1e4755d03a86ce02fb1f259fd5b3956b30536210c9a3a0932d81895407f660cb4e4fe66701598e6d5ada8ce323616780ac133015021e7a79949e807863e021c42371224e3b8f94c3e09c55cfa2f1939eced652374196c77aa61d40100ef3814fd617eec500f7a4da52fda7203f93891f33ab636452f101a6cf130c0cc22ee8d78bfc0c60a5fc632041e38d6a7d2e959fb10844f37546b69c972c2700f33ca4a21920b081be15804962d8fde6f2497de420376db20d51e6f0d72678c12c374cfc8594aca9e32a90362aebd743cf03c87a5d804d6924199d7fa3907235dc7f086d386cfe42808f81fe551d1e62598cafb8a027842f1d1a6c65cf99fd092c5f9bbcf1bf9d9bc7e56b4d2f90005484d259570a47a26250171ea0204e6d7fd75f086fc49b3de2fc06ff62e6767d41a284c93b9e8d42f98405f121413a0fdf2134864995b6c28b8354dce4631d80647c38710399dc5b46abbf11ae2d63bd5d3fc1a420677bc2a0e2b45a37d9983fcdccb7745d41c424de7f0b7cb626003b859447dba9152252c037ca72c4388b9ae582980f1dec00d526427e45180883c7768565493b3f418f481edda0c72f4c1974856e6bb80176191b4bfd1fd2b4f9999623dcd1a27c2e679e24e5bd2a0d5090a310cfba5085d8feb21cae68af41326a8becc47f92f85a6dc328697d41f5fe1cee9b0ee53279976bb2951eb65f09216a14845928cc2ca808fec3aa36b4b8cdeb95f6fa0667cda8a9e69a57dcaf11d8a4351f19fc632dc3129f457c4c3a6852a529a68a6df1b390821d198a1132cefc7b3fc4f2d9797a69428c600067316c06ff3e3259d9389b19b5ef423f026446dd79a00164f74e167ec11dfcde394f0beae525e587c1553930952f0f0678943488e3bd41593b34df424030f86352e53eeb6547f50ccfc798fec852dfa35d56afe4de903135abe321b43838247fdbebb0c2bbbaef524b476be7ffe7b7657e7cbc107614baa30f756087d847ff18ce55520a3236912f274bff1b1cdf9648f29fc989fe7eae82cf8355e0683f3783b208b043e8039a4ffc001635a0ca79967a0a774531f3335e8b7cd96ebe37090d55d128c3772521cd98133a0ebd7000c00429149a5e2f4d5852e33707c3dc78a0d4e5fb695e996b0c69d8c863ba53f367c0b71516773d928b9cea0ac062e79d2c0da4a7d02768746833a9b17d1ede8d1f56f6cfddf974998c5885e95813870c2d375ca23e7e1cfa8deeb3fff7add196413eebc0670ab7980523b33c28014ea6aad77066de7c0e356d8205ec133b62669914141415bd756269a3641764c679bebced2f2f961dbe62ae77459a01e0a29fef24afa79467ad69fafd9be603ea3f5f4ceeb25a08dc332c2f28c5e8453312aef93571ea08f7e412accfbc1106723c731c76a39d4a34ef4c3e9191606f03e82f3d3120d794b3dbbfec97f89b2d240d9445fe2948a02cda8afa05e533d43bac51cac49baa106c758d120e4acc6cb9cd7bf5d0aad7518cccda122d6523cfd9b633c0d58368ba915d3bbf89b25c62ac22ba6016456493aa0cecc253b2bd990a0776bb77a5424d893ee9f4afba01ed6d952d8c228a682723ca3bee9ab27a2d7048fd6d5f00e81568cb6813c936d826f15ee6a375b2ef0b3daf8f0adb0fe6befae7f6565519f5285ad935fb79b7cc1354e1c0d19a8edc95710330b73a784e58527e4597e4e5dc46134f55d373c6da33e8a9c54a28c818f36c4bc49816c37fc66b1b63ee47f605750ba0d6e71ec1dfee7d1b0e1b28a4fad56238689da1a6b3dcd70ad248dccfde75ff745e8fbceb12e9033caf7cf323e16ed491467f659dd6fd56ac7a321cfd4064014eef7bbeede96b8e5c4e25ff3ee3d5f67e28da65fbdcdb0117beae242cac7a7aab405ce409975a3a4eebf93b0a6914f6faec85a3d6ffe699e2f64033b607ea698d0d84343ded5d6f2c552f7be5b46c3bfa9003da5bd7d3d937a0d40f2e1144bff27af1cd2556ce2c1ebe459ab207a412d687f0a530d6a3de8eb2a69975870c0d43b30497e091ae10850f9607c05dcbf1aeca2a58a566046e4ab3712e0c805d8452434b45abe8194f73a9a6e8d1bd0958f6a62dd685dae2a920d16efad595e21719ee4fcfc7ab92a4d28f301984566ee0fd21fd6a0307c99cf7caf7a274c9549f65625086bdbb7ffa0aa344af12cfa9d101cae210d023b7a79a1417256aef3fe22ebc457c73749e5f1abaf26fa0fb0ff2776491be9e1a2ba6cbc183eef62dc7b953e17f939366b83c34ce34cdb6d5ac387d816d4b34ddcfae27fc9c59ebfd3c73bca4a2ec20f59762644a68cb0c4315fe89a893ac052f8848e8743573ea53e046d8c3e1bdb6b2ab3ded66056c87d050b794666f1a43e39ae8cb275e68310c022ac55078c9e18a8084b8baf77b6ea8b2dfc092241a7094b7698a3aeb16023719bae7334a2c33f446ef93a46ad3b220cd27e3e0e3f8edf365340a77ca11611e457481c6063ae518009c5f3935023f18f3160046565caa4ec783c2d7aaf3b386eac0768a6558ef69dca90590c89fd538aaa5702217cf2779183de8964d42232482caa0999c7a58aeeea1b29d7f194077cc798272bd14d004ed7dd7bcc939b5ff85a1620a10bfb64394693fd6f66c52191ce4ac0c77e18a49e6bb5acf12a23c7b20a66f97ac03758a2065d322fdc6a1ad5aee7183a0a4f90d57cd836d66013a1853681ad141f92b45a62bd38ed4e223c3584132b87c460fc98b553f3de2563e54fd6f199b78c761dbf5b7a89244271980530cc4cef4b0bd97aac8dd7d631fee218b6b148df417123ce671dce0ea3be6b15bbe6632e5272d26572fcb36bb1ef872c859f54b6fb7577dc5aff683f3a2ed1e9f230cd0aa9bff71fdce7bb157589a11134f54a13802edfa73314e007e7a2bfef6e34109d600eba3d6607052a6cf732a81d48105cb96840646b22f3af6cc022d061e92836a3ee9a2e88e0730086026198e3652d3499f7da0d781155760dd5a06ac9219027b854a6dd4d345d138d08d9b922ab927cae474758b7984262da6cdafdb008e2c2e306792318badf7d314f5fd79c4e556745c61a4069c8e712891ac762111e77920ccb9bd92a5e882a5a9f7447094ed308cbf999b4c0033502489dfd3e16058134922cc710af99841b87d908a825be0afaa93b232879c8ffe5c220b4a7c00a8b840018dee3ba1cedb965c489c61341e9b92bb9829e4c92403e817a1819b135c10f33448d9879ff2e5ce87fe8920dd12e68d29cd20d30e9c33b9e6f6750f2d717e0b33212cb2fcca7381b485777eb9743e92e4e7d5dafb56f283ac2cfd89f9c850bda8cef557cf956fe327c20bfc71c22616d928e837ec5971bdd68792321f883e1b5be835e5985df6db98beb6f7b7ffc6a223a7219932f6f7a6ac4e08d2fadc1baf4e6e00d959880b7888af9b8fe676b3a67e72319667fb317c7f98d014c0d1e2da561570432762768b950b05abf08c984150471c3faa2ceed6ed99e80a757ad3f27ccf81fcea13931c343ce31538a058882f05459444d9091e1ac85b1dca69a4dd7640a1de23f59017f5488b6922b39c0d5ca8dfe62f703d8c18fbbb66b7df5f94bad09c81edf4d5f9824f1cca665ea281479e01cdaa2600569def3c571db284a087e8771534f4ee83c49cce83ad98de9f21bb26b887e06ab1d10f245480edcb17c7342b1088f476603a608ed65b2190553c284b8e587c25f870b24507723cb5d04b0905e25b19d090acb3201d25ee1aa5f33fdc4645743a93537f518c3c400c7ea8510bcd9412e1846d6836d0bc45e4e2058b286c75f59391e3cc188343640d1f62b31af505c8a4575c67c647737a78ce3a99572b10ecf8b48413f81f49c00ee341e1c0ac0d73629bd018ccabcda2f6c4eff18eab79ba35aac4e46542dbb5882eaa04018df0717fd49aba4f75f70777f8746723e93332784069f6e09903c7b71e37aa9eb0d584a5dfd3700f0d226acd6ced99c5d1fe5dd2535ea5e26a3a8f0612964a498579e6518e1a9b60528a9ae32f97e0e9eabdfcabf929a187ed76d2380670ac78ba843bd2ba558701e729082469693b046dc9b45a86fa3af6bc2821b52956813fc66773173ca5096829a1fe2ff0f6149953b6b778ef824e79af6e92a2c13b01c5bce8b03c8c368bf61af2d41c53edee949786174ca8fa0b2b7d1cfd8f724b3561d00e8fc6f8e099749656e8905377786b752953ea935dd3115ff82c5a43e1233b138b45ccb463f5a49bdf0e53aa7713bd3d0682434ece04226fd2793658fd34df9ea5bc3c869ac7d8b0e17ca4d68ecfb71060334ab8a2337ae75804c24157fc3e01b8e180047c77d055ef5cb0ce5df523dc892acee9e586ae03a2fbe07916fbb5424a2001298bf914abf19ca0e784d0fbceabb27e3f3dd77ac06772b8dbb9943c525c93ba8ad581978e601cf19c733b02c2ae6ee7318d0e191b8fd6a3a367358d40d33701b377e65c2d0f593a4e4948270c0440c5e83e0b98776b63398d14b726bbef98a8c361af4261c5b5ff8e908923dbbf109002e3acdf70ce24d8b8edc9bf3b43ed53efc8603220235edcb0758f317e1b7e9a7b20f960b11da9670de28f6fa0fbc40ec36fb004cddeae4485e995e8fd84be9473a388a0c035ec378495a4c3022c9a223a36834fb82e420de717d5a168c1cd8e82fe5c47fd8661db46e41dfa84f51637c2fde3584b8efbce846c3836540781c9e4af567d9de46abff80372fff46263cd08c0a26a404e52cc273692544e0ad52bcd4f6967fa413118ec86390d9f74a99320f24ccd67f16483c00515f833fb05dcf16f54c136ce260ebe27deafebef19b798c7f7075f0456105200389f4e1843df33da6e096fd71cd7c2f6a30d0d594b89f93622e58f32ef2f217049f84d74d5690ddbaec52aa823a1c2968f0521d18811f476a514a039cbd118142d7576836e7d71513155eb6788b5290bfe94ee0c6cf55f7c7dbc8b8866a302108244c9916c550a5b437d290a2f6d0ad7fe13f17bba5b8526209763e4e157eef75c74851233d0361a0195b0dcbb38a3a07bb5778edab9e08c501fb2bf7e8aed81c4197706459425b7c2f7f765dd1d5daa3aa73a12cc9f9cc6e31c6adc23b8b1771a605e0f7f43d4377aa537f230a2b8fb7a49a0077779d37f972821c699f114691abca4618e6697e5faa3870dca1509defa2e5c23547eb03a5fa78bc26d3453d8d9d458114184e2cf81971af9bab5812b33cfa12746acc998b224e44bd9a0867e5a3a449de687de1e741b2cb7401c4266fd11f0aa47cf57b9f9fa76a81d05e2ee2415df19370d8a91f167bc27f9d067d084f49e996d9119a0c557621b0970b41d4e89ff502c7d292a7d1ccf1a8471a7b33b09d6d88598d0da4d3343ad45a5f975061fd66784c9e913fa74004d8fd2f55f50121106c5fda97a913b90ae26f66f6d27775b76348827bfe1d774baaa09cef6979b7602ce706baef025de72a52c790a63064ad02555aa0bda14df97b25a35b13065fe64819bbc57dbccbd6d7930a089e412654acc413a649256cc16afb00f68d003e2716ca1931d11024a67204200f6ce8a278b60c0a2b55e1585481dcd08181a72a7267e588392b842636d57a5404ba0ea0c27804d6a3d9b395293cf01f4d201b154e2ab225ff3b7a56382e59be4a489943229762749300e01cf6231cb465f9a4916e9fe828cb86c88b45bc4fb94eab4493b1e10ac60c1d853d0a1e385b542113323a6a5a53537f682e1da92965cc784d95135e2b8f7eba656b16a6cccc91bfbd8f717ddab9286847ab6746c158f160bc15632ff9a5b3f639980852f1a99a5973bb3317248b00537db59e22d6e6eb4d7dc7b5218aff618a428a42dd13dd5e2294b076c2af55c5e01251168001f1e034e2e5e8eba57ead50e98e143d97fd65bc0a48fc48f7c7b9081325a42a025f0646f71fa2aa256d86acecb448ba656104607b766c2eed7729472a5cbbe9ff4b4337789b926524a506b3a937761688ad7ed9d1a6ef18a751bdf09b906cdd6731804c5df8559d5561136979776cf8c186679dd5527edddad19277fc7fbb8b4e77b338e8efe5c7fcef184b5ae62660fa1f98bb6fcb5f7996184e98ea4df67ea03abc2a936f541c6801a1a851635481d3e356648fc530a703474619bec49b72690da3d2876334ce175ec427bd511f73a2605a455a612af5385aa57abe8f195814b8ba18594cd8e128d370d62619f35d6a03df056978e36649100cbcdb54b85b4a3b7cb79fb64b01251fd0da99a4b32a509531638d4376634026606e8868bcd759930ee2fd195ad6a3c7be37ea563e37dc76b4e8f6c882fcf038ec38c4b985572cf04bc9b2dd7d6d00100e28b84b9cdf8e6daa0d9dab812ebe9f141457aeb56d6d8589def5b90440f22a3a875a49b2d1e95ecfbb4cc93ccd1747f98d13c19d2fd4cacbca210c47d468234adae1d701c9aa4a74c1f70d4f47698cd82689d0f67137a70b06aa0a1105595ef3c75e5b124957b09409d05b93a8fb7f8c6729ee0fad1edb540681263b370ccb21fd1f0e705107f7cc84f7c783059c6438e1910cb3de1661db61bce20043b80cd4d354e36575ae874c7e5c0f682272c1e6a56464e0ecd8f3de3650b9f0ecc5d21f39102ba6886d95e305baede9e1db11632b3ccab157d19aed64f44f4ddb8c5701c8978ee689d0ea98c80259121c2aa8e63402981df95c5128f30d319509a81c9b21c0ce0b6174539542222556a8175d234ee3db6ffc925b7680d9dc98438c8c70ffb592f3b778a465f4245259ef6243b85afe28f98667dffb388bbc5dd96944cfbeb08f4ad71c1a3fdaed05250ef65ba52c0777927554ab33e147f10ba22b6930c1adf68413d51157a508597a040f0af0e79b47519e8acb0e5605574b4f9ccb1a516874e132f790bb52f88692aaa37a6fbd9f7ab90f50fd952e81092663a4486b741dfe4b4e500025f75b394dbf0cdbcde7e75a8d1cc4ac6b61dea2452ba127bf2fa8a8cd2657deb29a525c428289c1e5a9dfa887bba56192ce6a4d47d19c23e761cb3112d82bdc6643f230609affc28328dfe8b0dd88d779d901527d542c533fc9d45b79abed0211c624ecd04f350bb0dc5a25da8020b57e5460b71638766f0487ff673bef0afb4b1828fbc0e82356459fba7123933cb04a6639f76b5f9f5bbe80649f46f904afd46c1379232fed373c020c0f42dffacddf1c274ab758fccac1bc5283d9baa95c3d86b754cf0c344d8a4c04ec3df4fc5078fd75c022122255e5622b5edcb812705af3992c7165e56c5cf41f2a0117b50325dd13e4829dc71803dd88c7a49209752785aa6f734672a385bc699164251fab63a11bedf550baa55ed55ffe9dd61d9d663b7c58468f034b7f73f160cc690b96932b1ca1ba9ec9523a6fc89532894435da99349cdb6b9d45e3cc3c5889cbb2c7509c33ab56b627a966767424556b32e32c85c80cf70fe6d2beb5555461748728df644bd2751cab210b8210058dca31c59f1360426f68ced41dbcd87029eea7e33baf78cc774247a7fc5644c38462546a1fb3b35260f40f0c5ecd62282c60c59db889fea4553192418fc5b959432e62898528353f399b15848eb30809cd5d685cadaff9f38039aaf7fa223c0d40876c65c0a76fec8b4e29acee82e5347c8da25c225f7a8aaf51a113f9f1b4514500adaa31487d4d90b6076d7b7ce64f0bf67cc1c102f8d569a801b963e610ee7941dbfc80aa5b00e1a45d5c3e6c249ff6d696d5c36997e54eb5c0c8ce0e9ba88e6c001f0a97d3b45cb8ae86c0cbaf0dc995d25485656f1fd0a97459258e38983dbfae1d08c9e5d3e001f4d44b870ea6621e13a48988335f484efa0756fac2211f92049d38e08e7b52019f955be32909f3a7044dce52176f6aaffbb774e957e2d5933fbfaf083fe1662ad64b66b2f7d380c77589f7372c6d38dc617d86e7f2e9d81eeb0b5db0e367a9d25964acfb3f4ba819ff71e70a0bcb2a9a386db6788d06f350502dca8c957e9667eb9c0addb488f8d842b8cbca553789533a9bbf753371653f82d1cf30774f3a4b5f57b457f0696c8f2dfa79809827aa725144479ac9b22bd67cde3ca55b529c93b55464bcea8356538ec7be51f21a975ccb0a2dcc469ac133439da7c39e177313b6b7a9b9210d76218125f3e7c23b0d03c0e66c70eca0397b3d99d7147f1b55191df347b06af64a73037ead685b4e776927d68329e651d3bfbe2a79ee5aaa934a8140c72f65eafc681a47f470253d459bf9c845984e74b76c2985f9edaf0f7162b969c29d37d43dd473f0db0e9b6b1fe7a8f15fe1444aa9214382ecc625ed5e83a21467cafe51fe40ca97d05970c67efa3522a238d9f413963c5a5c20d74eac76f07e90fcf64400952eced034cb0c589ddca7a80a9d86e2314f9ee2d5427026dd3a581c3fa42c334511d003d4635f7e05ac478d52bbd0dad780d4d116f4e634425087f681835dfff61b87b450ed610e0b50fa629df4669f4948617dd6461ed0990e9df67aeb347f0e83e0384607b7cb731bd0e96b3fa96ac137628cb5f42c981c66dbd3552d7129d4b10812b35cc897fee8d44fc519548ae21fe36cd8e87edd79e6029255677d197dd508957460b85833bd854b0f1c856ec7f251905c32d169f30ab6fe5d460e41deda7df4c5ff162cf7239d74681d6113bea564a8f707d638f6be7b44f3c42b5b7921f9280425666a4832925fb8f80e60c4da77611b22d664a832047f3e42e987847da7797d7190f903b79765228e2e5c7b185b6ff5499136fd607964419fa7f804aaa9abf9db5f53d09a6c5ac79f780e6f32716f7ac0b6df530f37bd21e4530f902513a13a363b85f12a82f0d2eb456b1a775df0242eb53c47ae85dad916a3beeb36e2d8378731a97faf4d2a04630e4f0486988fdc6e924e2b4ded467f0a7f412338163498b421d76337f75507c40b97ec6320fc313fe7909d65bc8bfa6b22cdf07e5be26ec9abacac3501674d3fbb713086d2e940bc15cdebc0c52f18a2ce32b0592bb939c10a4169c448ba46e1d72994acfeba0bbcd38541b2132b627180abc9e9f792affee5c616bddded2c5635070fa06f8bc082662f27e40aef9f876daf98742ce1934919527566da0489be5428e59654325a327394ad2675de233e261e768bc4b0fa94698537045bd9c60ef8dd8259bff8837dba1fcab58fedd4997060d8f5ca5e4978cb8c90e74dc91a13fde81302f5abb3e1a801d2ab0b9a4a557faf1352e6cffe048bdfabdfedc8140fcc67d9095c6f8196b142c543fc1614945a2742da674da2df469a957ed0daaf8d18d2bcb5850733d0deafbff70e32fb68654053f1a48c2458aed89d50dcecd88f45a1fed53267637dd8652583b82147a1cb95e45822138f427fc6b53374ec41ff4972c9748efb661abb6af001af3b0d671f14a5975bcf80b9a18e2adf1c3f075fdd1b57eb076f579f7edc901038d96dc1e264e35fdb33629ad00dfbb30e4d2faf977fc81693003424ec573ed75478ffed5108627b374df7c076f0920d799419e9eaf883c8a08c759134351f668b66dd27035aa76592301e439addc128cc871850c108f6e1e65fc938ce23d103c6b9ec610c56be6b28beb957d6419caf52f5e52753966d40eddbd7739bdf955b116e74be6a5cf0ff2bca2a5fa05a560e3cd3b96b88d1e42d56ec0e81ee0cbe068a5faa22c403f97cb3d16ad04cc761a5ea4dfc07d636936f9c37324bec62e95772cdb7bf3a46547b79d2cfcb12f0de0f67e3e49161d06bf79281ece7977a06f8656167202acbacde18ea16aa77324c9fa4f0e4436e9ab1724eb0f702d77597e2d5580b6cb4b18bf81e67e4b5164c5cbd0e62d92035453fe2335c3cc174c96560eb9579619e8a6b85c19abe3aa1849ff1200ee19c4a655b28afc60f588c2179f575b300ddaf4b5cc0cf1c2545c16f8c342d5d6b6023c93cdface6661306b9df7b04ef8f4e0640d90c6d7678431bad18f9b3fb53dc65e1e850406add659aa058e7bad1d6deb41fb6be5066bb4e965bd7f544a0b98bd7cbf357a4290a1db7793ac9382a84993036d1fcbfc3e9024a700d94a058f7fe34f217c51e2d529b449acff15d3aafda4837f66d73a3cb642fdb20f49f50894b9921ce6a8df87e4b1296981b783f2b44c4d405af9fb2ce10118fd3a3a18ca281e57e7c0fbcb6542201718697dd15e033464eefe4c465b376c26274badb0d160d259318f2b96547d0a8848ff0977c3a73a286e016c795bd37d2a77637c12fc1a345d19295682607c156e95cf6eff91916732b9fdab642ba2395452a57ffd00a706e823b14db3f6f2fa2a7f0b8451478a9c06ea93f28aec682b60cae3a8421f89a4ed13dab658e9205d060358a4a700d3cb362a611e84d93d93ad737e4a6934e6ecfc3c9dda50a86892bfe998f0401f7f8f276467220ba2bf08b53abf7f1dab0f7a344fffe85f56f4c710c0cb87d3d1cc79aa3eda39125ecf0d624baba268b51e9f732b9392e0a47a15868f56bdae993687eaee29f26365df23bd3b3095e5f3ef4d8bf5e9edaddf1f4ddb805659a2b7f283397e1e5b5e328d84610da27b46d716a491c6c439d000035deb2facc6d195f6fd2e7ce5873d97de8423011815921d07509cc3488afea0c5b3a984c0b8df7f265fbbd657f07c3aab56a2f9b6504f6b872a3b21a8b548c12e64da5258f77df7d181cb13bdc81f775ff19e704ab964653e86da833790097614a70b4afeca529fae6a7f6ef42f380fa2eeb9fe498f10cfaa2b120e19b7f3a9fed43f1f424ce91b086fa619449613775fa565552439bae10e0ee4fe86342866db5cdde38cb58153ee8f80bd51f828e2a3eff54eb154df7161263cabbbcaa9b1ab094d3107b953edac2b74d7d017ef613a0764c8dd4917f55a9fa7b4eaedfb918598adfe08269cd554a80abd0ee312a1169d361332577effaeab3eda06a7e24b45d4688a799e505a298da6f5bd8d2a3e29aa26b1fbca39f276b5f4f5ccadd4f4a6db748ee2caac31d6e6542d618849ccba5e12d8d8f8483c6f83b4ee2db25102331640f1decc1e57eb7ceba1f2b7b0ab01f6943f2afa17e974b34d07f03cf56e9f9000253f8590e08d9033a8d4d1a010a0e68c093e6fa60044e6dfb85e8449d60f75cbf7e33c0299c142bdadef5533d173fb5ecfb5ed5335f0fba333b749513fa298a9b89eefb2e413f4adfa82dc3c26f42953b2174d8b5147340028d943263c92935619dd84efb7f6c67741f9b7cfd8dd2e507c340ce13877f5c1e1933b868aa3c4b32d9528a2c948a497380ec89eff98a05bbf3c526bdd361e08a36ffd322bd60eb902d257a4cf8e9db8934f66f2d8ba9c23b895b13bda27c9ee68d2428e7fe276416f5ab0f287337b6065342680acb60eef8943ed1400e92556124499be1fd01a7543ada6a9d674f547c4cb8b43b5283c2484922dfee701b46ca26357ee85e59263b8579de79d77f7ea905e287e156fa4e119e948ba9479bb4919b286c495708fffb646057b4b00523a43a87fc7f184ada2dc84be4d309f8bc2afaf4bc7ba51bddca9a86f25de78d799f5d0e1e696cadbaba945aac5c45594628caef6c7d50f77999bd6ccb8cb562afa7d4b8787cad4ada67f38a4d95192dd3247ae8763a2834570b65aeffeea25190e324efb045bd462119699d6da0f34314d137f61209cb42d0b72f74f672b4452919fda6c15ae6700c929c23d2d2b8f1695db865540030880466b35a41f04c33d58c98a38146be5f2091c0a9fae3d9ef5430ebd1a908234ad470ee50f82df13822d697f3d2c145c519d5da2222cb1edac7abab2b448236c04111b59f006a87d2492c3a7035f9680f1b85b923cbe0321b9b0925c53b091efe2512117aa922e0a037cbe97df9b783de8b733f733c4f8621bd9ff8b043ead621907990a9163ab67b86a1fb740c85635de0a255f2b33b3f7796c05f09ce1a68401702521812675020d2853d53a0951f7a7beb66e4f63c12dffc6b8a984c59e5e8d6d42306bb42d93626094e5b9adb75c709fd9e09c4fed8a60194852be1b13ba1b2ac6ae777f3fab6a0764ffeb394b7ec1a61ecb6dd369262a612451d71c51b0e013aacb9bb34419116e2e70bfa136c53bdd96a527953573da0cad6356b17e550c7758aecdc071528fc9bbe340efa8d3118becbf6fde2f50aca87edf84b8a96daed5aa1fadcf48b499e606b5722387bb1d04b23f689a3e46dedc61404fd0add0cb5179144c3c54e67ff9474031cf8d9b9b713b2d32e558a9dbb65e9d0f45beea8e437247236084264150dd787d6f5efd1413c8d93e2ba1f15f135d6f8b884c0ce618e9413f815713d24557411df48bee4afd21def0b4653d2f0240d227dcf755f1a021ed914b25097b3aca338470e9ec2ec69f2dbfee4dfe797e3422c33fe373f08c173dc7d14291f84b19f7e78018a9e804f55b468c869257d888e2171bceea070e149011e57b0ebfc0e6d43f5a69a0f1f4be0b719d3bd8004ae4faf310edcee59248c4e7863597fd3ffde456b3facfe7ef1e7844a2992cb8946c3476d138f37d8f9fe92c9deb1b0698d0b8e00d7afac928dd32d59a6f890e5834d173afe549aa2758c05edf67b4188b36b817fc541417511983129744f79e61de20102c643786625dc8a0eda8ae92844b55c0da1d85c12a5dfb576520d62df78a373ed9a97fd9b91f1e751fa3dc0855c657982f6779d513ef221a17fe36a7416c681848c601fd6ec824544327f7675a68400633ed2976b90e871db8262a0fc00a839bdcfc26ac700dd977c507716ff79ec6c0676186ea486d9017da83b199029853ec429e3d350bf07615d5ae98d02f47c2adce2b907bfebf4cd4696a6fc5fe37fb17ad50acbfae52cd6fc0c69217990ee10a38225edd3864ac92c87d0374d6bac325b3507518a80fb2c66637b072641dc6ebbf6cbcc21d1390cb9cb06c89db0dc78b0f97b17b2303cc3f8cfff0fb66fb5bd2777f6ee20a8c2f8666327adc590634e82b1279c19dd70ee36758235aa7b43a7f6df7b62d27b2fde005ecac036a355dee692090e7b853b26810df631ff38f5d02ae042bea46297ac4afe1eab69b98ae85efa0d06f1cb6247775a4078a9f1971a77c785a0ca99a33295e21f480e95b8e24482501f307909976aa73b20dd751c72a3231596d5eeb2a2e1abd330e55a2e8822bfab48b505992c7a80efbfc91e967244cec190ee0bdd8f9e20451b0b134c05b4177896da2d2ab8ba0b822a69043a17b32aecd33d8eca7f77251bfc6c467cd60e19c16a3b69d186b38a547264d9d75093e640f4723ee6bf3d9c42dd22666d6a605dcdb5369a7787959f181f567c87022f235e080084e49176bb213b0fef89bd1999343d9e195cd81de451a836915d07c0658954c5947ee6dec876de63faafecc699c55871725dd02907cd8436c3f165178307ab9682c63136110761fb630c09661eb1869e7bb8affd02c53433948a7270613f7d27bb2eef10e45a397162612616a66b7f69a6e959fadb1e6ea5957d3847568ce5b7a32ada92527e0ec55ad367d46178d398c79e991affb671555eeaeb8079ee10aacfbff88683bf6c778380efa37e42b3ba5aec819788adf5cfaa703c4fcc875583e0e6582d4b66932f96c39c2c53db78e8cf8e093b6dd648a705d3bb5dd9a1093d52f9645e8321213355c3db4dd02074c92eb266161e8b790793d094944a2356f8658b49e25657bf272e08946e2669e316891def54e206a929bfe7c9d6e0c32fd15170f1e808d2d258961ca3697ceeb227d3b9f84ce829e30f55ad34a1fb3219e5d103108276b1073c0a8bac83988ca2c1478cc8266cd16c4f1d8d730b41aacfa8b25e7ec08a51224137d359e56728f7f713470b1d19b838f67aeb88f24bddfeefa79e61e56fbd07c769bddd4c517bfe74cb139dd608ac40bc0db4cd63d9e6d252958e8606e40f802e6f9eea9d9818973bb7aa725c011eab09519431cee2df6167daf85e4d2c5b836e32b36e7a0ae454ccbdc7b24e200e073d4fe954fab164c3dd8f3eedb853ae3312611b0b41373fec23a0b08e992b292fef323e2a4fcdc93b51b67dd2f7442253d5e581f3f5765ea17345adee496ed1c9d07b063981892124f683fa616c6f20c328f2b0c1c2aec4634d6316f97c686564a40cfe6c98eaa21691b1b7df5873b914aaa417aaece839f6ccab2e862e803cb02ce073e8465bee35ab322a32226400d94eb691cd8c841c221d66c4d371913a1e729a86e6315439de3a22d6c6ed40c51ace72c1e2419d9807ec3b05b726fc3c245066751b5f0539994750eb992db84c2019a31e96a056c4772cf0dcb76a70e7053f1ccd671e0ea18e3aa5295506ae06e71cf697594ef27ccb9d87875a50b6d3a7dab50af2f3933f6ea1b723395560ce20d4e73953e30127c6974653b9569b23c7cf659a71512e937bdeff5d5c0d8edad27a0b79c473a2d7e6387a66b1b6a52981016f0083f6f7b1aa94e3ed0100bc5c107e6562e3ecd4fd16d566ecd41e6dc0c0067c7f173ed5fc4f8eaa24823b69020fc4a243c3459dcf8be7bbae695d53c9a6c56a45e565cb04daa5bb469ae1ccdca96f8b1902943bd621059ecc8b3b4941d33b2c8e6db5cdbdde136fb98a85e5f0d62d6c34a741356fb77c881ba009ffcdfbfb039e3f72eafbd9ea9b67ba31b16d79528dd37c960b4cb8546a1456d87818d6f9ba24ab1a104662dd7c373e6c618b90a9990c0cd4315fc4d6e0ef0258ab328692f5583eeac23490b0dd95b8e19fd4efe9b7933a1cf81f017969be1a55de43d573eb9cc64ce06b8616deacdf553a559585cb8911397814ada1be9f155b72de09d67abd1b7b7c1d12179c26ebd4255706b20cc9742d13c0dfe6a25b2ef2b8b0834204ff18d9e82b0c48ad9f78332e7142b239f7e388fcd122c8d1ea7d7f399958bde0a051c91fff176283c0abee0b5ce56a47ad1cc4f6c0ee97795f663f198b7230d459b4102a8f6d1c22e6159566e022f8010eee891468236623f6ebed5dfba4c0fa6b5ad95de67fcaac0865d328eb330a6d2f16de1b8f85a9353209e018582f241e988c4ecc3b171301d723d5de09886c25835840c64108a4b639159f1b6e49a9cbe1e08476ae974db7ca3205c2337abcd46835ee5127c37a1c8a7d28312f741ee375d656dad4eea648d4c4065752879b1e7dcc88c8c8ed9bf914ac80a864634f0e8a3ae074ce3e9b1d954e6a03c16db10945ad3a1909e8689a1a0380fd9dc5e52d5831addebd90792aaa791a654c68915cc01cd14b49faaa159e4c3a12439e5aeef765d7c3892fffa230bbfb8be3d28a694012109ce60d98b37a7ce2b4bca0478b093506baf7890eff718b010898a002446086c0420947b663fb5a97227b31e3f295d348effb35ff4ace87014de658e3cfdee68f9f8bad094329e90301fc63d5cef4da51390254e7dc76aa707e1495df7cdd705950990824d00dc7a66cd9229ef5270262cc63e3186e66d7b7d748c57770373b745f313bfe57886982e58937a27ec94fa5f9a9da21c214d6086098988a0cdd9df3310e1c4dbe2200c738a3ccd6c769ffd73e43c6b10450cd585d9652a32ef0893e790ef3738b5c52c455a9b280544d0610a0793e493ad2ff5dd260a89e423f39dcf510345066793695d1213c2099034352391252602e92fbdb1b8ce3035e2ff3a6c80af017d95542b6012eefd15e7068da856832bfa0abb21faa534e2cc4c9a87843dae63fb8f6ebfdd540168d7b11a7834e9ab8e4be7cada727979cae2ed5754d53ef7b36bc705b18fb9f21f1a7fb778a15b56aedd94d8b6d6fe4f9fe752f3063362cbdb0ba101ace6e0828f1882937dde472bd91d7a47edf8d7e00bf0e4416fa1ac095632d390cba78e6f27184c99a0874991d13b64a5d7085b9f44c6e551ed9262ab2312adab631c78384d3e4034c624aa9185ca720406c848aae36301aa28843456f0c44ba2c2a48fc93db534f36991b1bf317ca23e373e486d99193578b5cd728f7f6d3545b04d33c6240626aeb5a786006994c9c9a32e3004c9d76a148518c9ca775f63f8e53658e33d7e2bc3ea2f11ccd6fbf5df57fabd6177510a909fff54187bc8a3d94958282313e67c7a11d55ff7d400a287cf89b1200d443360247f6acd90bbff527e701e8161373b67570af5c98fc15531cf19e6c131e8e52ae78427972b675d86067b73292fd09acce0e09e3ffa9eec7a8833b9705b9de4ac1978586b083f7860586143b03930f724ebe70249e510d5bc68cdbc4bc4d3cf7f92881a9b6c61c0cf207a3fef69dfacc9b0c634da67fd2f96d255b577432b9dbf888bd410f1bcacbfccc1c10ae34443889dd37d0c03ffd6e49d524ec623b3cca25bfd02d9e8316915a09a6548d5a2eec5d823d22d3a109a5922b901f5a65883b8f0da256235beaa1d98f1862df2b1c8d35d238859699d51a17150f15061034cc1796c23a1639fbd272497f815e5b995f4e6aca405c0c514ec1336988e4b41953c810b4ac47c187aab3314fb08ab3f8cfd006d0bc652d93ef20f5688f7b5f542108b893928d1ad5348420722603ba6c11af805de89647a978fddada0aaa3984cdc5e4027eab5af0c3109a7bbad76007880ddf01325143a30a10160764dc734506b68344bc75cb4104fde474e8ff503b9a1cb4d6ab40315cd539cc597e526af1d3040e04269b7aa42cbec38774fee237ebc4d6cdf4dfea2bc2a23133c01cca66c5885f68c6a18b5beeb58608083c2aeb55d819ea16d1f06a9dcc27f920118a31371c6c5333cec8733c72e36b00db8eccb778fb093e3a69b14cd8e3a25c389f88d8984165e8b7116d17fe18d2c0d2687b64eaad29eb1faf99d5c72d5376fb98c2fdf1d54cff3c5cb98224c4c03632628726747f4cd652504c5e9a1689d789645d333388886df15e9b8219e1ac0b01297dfd692ee78c681f7d082e71be9e513cccf0969fbe00cf39e2ec32d14d9fda19c88e66f7ac1f2707d11a6e8b0acae0f4e1c5dc2021800e5659f5d755143e028d507ff137bd50925894bd6c60352215190bcc947ae923ce04ad54412737619854539c3999551eb0683e08b38cb22a35bde58bf803703cfda947e013bba4fa3aefaa24eaf7d829ed6aa9470f24aa86398a761449e0114994d58dced7864a141afce756bf0a6ba1ab9673efeea5ea5ea75fbfdd49399a28da8906ace4b41aba30358ab52aa679af5a931ebb3e7332534c938dd3f821c71533359acfcf43dff5f8c68c5af3cc59995be44dd7a452415cd75038be4dc13ef656ce4b554ba7c994b79114bcc5fc851f8fe4a95d0affc819e90c804d5ca2b362f34bb5d8a5e3659e24a415cb4b85b1ee7e2292ecd971f42385ed5a5c558f14e11b46936228af0acde7ebef2aedf4f2efe2721515aab4b92c5761b21e797649e54386bdc3e6302c73884e723e6242747779a8793c5e761a846235dd10916839a263b65f0a37926292dbe092bc2e13474dbf8c4b3d83b758b3416c40983a63d9cc5117a0d13c215b9a1132da70e97de16769f9fe84afc780551502d5eac7b7722e97dfda4b81bc24d2bb571eb48888cb32796ebfb3dfe4509aecc38ff5e12c86927a3f995bba091322440cc2a438081ffe8d1ba11b4d018134d1681d174219ae4f2be19039ee393c36541b85ad7cd7f35f515304e874eb7e1d6a6776a6ea14fa5616a49219494b7a167718b47de43a99dae2533f72b97844a04e2fc2171e72fbc6edc2e78886c370cd0d9e70470f579163cb553a2911a452827cd6d1e42c16633a35aed7f0dfa026f61e49855b4e585004dc8856a65cec0c7d04e26e22f5345823cc814a549fbb282466aebdb6bba7d30aedaf4debdedd1ba65d50158e50ec1cc47b734ddec0a19177e1153ba2088ffb12e3ed2bb23a15745f528605f7a7c14509f4637e8ce124d928c03d5b2aad255c4942dcacb3b6f9f905802513987910ee0a7c5c0181ededd1b3156928f1c84e2f1df9ec1eb342540d9d14e959bf4ebf22fd695ec76db10aab06b688757371ee35395d01d4c743f24437b742a30de2761ef4050a587dba102bcb97b72608c4e15e48c7229d07725348e57e02e9e1024372a465d9ad11b64e92db879c3adbc789fe12d5c12c5a6d9323d5d39987361103491da549549312d3f21d69fdc15d8a82cd7e41dabd1708313b78694a76a5b19bce322ae0d9ec86981a9e1f0c9bb49c70ff0689c88e884c6d4a85dbf91617cc616a8597f0beb510a53cf32f85769393658bb66f019d856af87ae54a74e1ac9662803310a8c6b33e073299b41c3afccdc19bdc0603b4d9bcbf9abbd8cab3f4d3758161791e546cae4cb9fa4158a17319363700463f8b0d3f20c4fe06cff72ca4e1a8fb40ebcd7bc32a400e5759f5224057647d780b33252e1080c0a2ec2c52ae6dc296c688a3acec2109a9972278cf22217bc83c785ed15cc50a9db428d5b37cfb0511d4e6ef772c987d9d2dafa5ff737e9bdbb8f1f2988d92dfd1c2d896f629f944ecbac86ba5554dcd8e5c930bc3fd777b0b27f7dd68e41766f1ceb01a0da92752cab7b6e09185ab42d05596a0b8f739fca6285663e9c36812dc05f726799802d7eacefeefc1ddf7d275a74b939820d3d2a66b51e37d93c392a34fb84f08d4c7c4fc6c3b2bfc94a6207446df72df57ea086cf3fe1694923d4031aed7dba4761372f85ef175fafaf9436af2f9e4c8cdc7bdbc10a72b2b25ed84a8f496927d98333ef0876e94d0f5d57943f3658e6f59afed828ea0a9cada1697c8c7dd894b95240027824e6ebcfd6b9d89bb8bd80cbb2810b5bd4d79fc9bf0dabebbb156bf1fe7028ca0b45d8f39ec292787cff3007b632a5b39049196b3a1ff876eca797b06d3237421805f1d85c79d6b284e91a1f602177f3ded7caa531a2b31fa49c27b422cc5d82955b904dc472994a51c470da2461e7116c07c170f3c43b05e171822567431092e2bb8d8d6518689a32355936f0b942db806f7cc930efb0bab8c3b97e4bdbc899021baa8205e33476acf22764ff1c24aa4b43d6fcff77c5c18ecefec591c732c3cc04dbf684633822498e4d876b2b6143951f8b072c90252389f7c72d5d4bac7674cfcdc97397a94541e6c203adcae79d08463d76f9f0f3e3e33b4909521bcfc25d8e669091b4a204c60c0237de822012d23ee27fa03f87e728b4ccb3a0196404bedc0a4ed284b7e4d73fc2c93a15fcb53957a03c14a49719dbf2c1ef6b19fac9061972cfd23f9b66a18bb95c394dd1ae2cfe42de8b766cca8320f5379b1f967c022f6d8f0239866558a33c23647338f0d49b880196b9bff53f9623cc24ef8e6a524d8e8a03c7035a47ff8d78f3aae44fe37e0ae97be5b0e04720533e5ce239669718e7d8fa10b951951209309c2657f4c341b04b71e1e284e0ba8677127b94da94d615113f23a27f60136da6e4d948226bdc3c76927da804278c3ffb2ba10b7877cf57aa577300dc0d3b87de86856080a3357f9a04ec0ec7f1c84b8c22c97ecf9f6dd35cc074a0065e0601ebfc13cda3e054bd35d859a63f9d4089891972286bd3376befd85d1658d6eb7667669d1158b14397e1c4f93c7925f7897d9be871469a774d7d2966b923855dcfbc143f1206c1b943c38897308d76cce98747c10cdb58e04b360e719b0508fc3d804530724d2d96b44493e88616a3358764ecde4d6fcaee35939cd54ab72cb1aa00f47d5500da5b62cd42f4092336b1e1404c29f03343e6dc272671ab3dc5d6f34607cfcd2282c8c6c6144e0a24213c5b1114987679ad2170ed4521c4c2704fff69341698b9d9f28d94689945fc4fd749a01e110dfeb9148fa52fb989cbff2682341886098ea0a5a33b762d97ae5ec3654f6deff424a3b4274952fdecda985a21d951a683c6f8053fcdbc398bc5d4513d86cb9233d72d185c7a17480801d6a1a8fc340bb263724fa282b779c8fde08acba02f66bcc3dfbe42f5ef86d696aaa4eceffed0fb7086e45177f07cd87a375c0a147250ef9134ac383256c148160285e2ccde3b90a3864ab55b10aee93ded7a3fbb00354367091cfa94ed40e8544d5807d443212d8884a141c6a34906704c2bbee04c3e3ceba66b8f600bcea2f805e3c3da61d266e331f0761c14e5b1d2c7a17dd3a5caa1281332e9f3fda1b154e957bc34008f42321bf2bbc0b2a1f248a4d44c52badcf61bdd4e0592774d6857b036c8eee38dd85f0c8ba5119bcd0c569f45e207d4ad24f20d8a276242f4bf79195f82d4f2d55c6a3bc2a7bb6d5c17d16bcdc9cf0850fdde5661b9c905a5aa3e98aee94ca61e407b2c97402f7d050ae3616dda09b7eda3dbb0a5b5cec2c75ccb095f7ddce5feff57ee18f7cba230197da8182eaaa87a28ecec3f77982999d093ad6eded0482d96a75b06225ffec2d4850c4f621330a3e7d9049dfe454ee59da9a89ec58608e7cc34cd6ddb567c584da105672ed6d9cf40b3575b7ee206b1c5a64dd8fc6dcc8f6bbf8121ec799f54ad4f6827df1c0f782f6a52ed6adf5a4f3a2afbbdebfd9edda8b16183ed35441ac24ea901ab4e2a100b360aac3b4c356fbf8e265755a7b1d4432ad5c62609d38c780c7485bf8d659bac449862c0770d13c1399c2d3267501ad991ab852de19bea5ef5e13902f9707f14826f2379a770370bc80fb1417c14448367d5d45b69c920831e6529e0663de57c6cd97109af97e5e093cd9b54a653c14227cf91cea1c41493f034957b2190205350712524cbb1bb21bd6bbd1797141018b036e84193a406f60756ecc6a4a7ab4e0067110221bb0df0529e11c678227801d77e516c81060beeed62f513a734da5b7da88447241532ee6e36ab0a091fdd7ef1686abb078641346ffaa7fb79db23e3e0755f43c6e36fd5cfe3c5fbb407e94eda4531fb0a9b7d05e7b94aec7298db19bb759d82d8fd891659112a645f5c7936fd4bec2a6ac0c0843e307bec53e3b91f1ce33cdc2f1684865cc79f0fdb81dd9d29d528a7820e85799a276094b40fde60407ae4edf3aba7e64939fe6721fa1243d480d8f15ee86cf54a425e11cab861fcb157b5f6b3cef69dac5da50594362f2f14ad51705968552a2f00f25395c7e3662a0318926fe1821af48481625469928f71806a01ce8671a92365e922e46ff4f5bd501dde82afc2c59e760f6615b44f1df733a802dd9c32029b7f1236ae2d9865eaf1e884b05dd541e2593de2a0d30d9a1fb6cf3752fb8557f727c7f4f1925805f2668586a52d416151fbe6a854e7b1ab135188d8aa0b54ee1edc300c6a8ae7f8c5791fb0846ae6f5f132d80359c157394b19b198c8c0913f0416ee522047d580d6e6568a8d1a8db97e6588a10fe834a6a73e9eba583d98677451eab0b671f5dd10c144ba7d400d00235a0d70deff095cffb65fd3db2c3b729b28e9312544582ad7489f0ab7c33a86e918b4e2f65bb2c87f0a1c186b0078a005e374d6799cb52bf51993c0e562a330efd9b526e603b60416069af6aa8ba10a7a9e12295d54b7465f5e10543737e2e1489901a3cc8f660240c2a68c633b77fb3e20a03be51c96c0e8297db4ee53cb1b0b5b89cd872612c5581e82ec33747539508aa4e5c0e86241c0f5936dd06ed388e2a86ea0067f542fce4717302cfc8bb13f7a7175b7cc1ae475b21e5c805615aa55e7a017ec8edcd98a5ab8675387bc18a769eb977a7eeea10ac0d103392b7f27ec0f5d176a50cc85fdb06ec33b14c19eb4e8bbe10f7e6e0e7b2acac4d452ceacbb10ef886959ff3462d6284fe401e289a64610e0f63481ce6c67de18ed62083235fae3a63cc3f17d67925fff1815169de8c3b5e6c398d5e7c2c21eca1d5de15d0f85cb48b46b7095dddfba4f09b8b630ebe740432273e5c90d5f429d7df73b50e878e5b734de5f318c024b638748537e2e9487c2dbb3b09cb4eb653abfc3e867c468681e6c8b038ed873f436353915add66f4a7c6ddda8a8c6f271efe9d2e97d1417b6063509783b8bc205efc37832d49d627a6e7b2d576df77afb29f961ef8dcf3f03de60ee082b5142bf5b98318ed03a338c3e30a546ff011d6abc0d859978d9244dd479cbf838f5c1c752085046f34dfb6eea91cbb06b52d2226dd20655d06155747eacd313f19b96fa624b328c77c13f610c1af7fe15a81694b9cf3f98d47f9c7770663d77461453d941f4d3f823137c9b4c661323050679b28123893a96cd08d048705b6148c47e0e4aba60906a03efd834782bce7663381598de1303e1d5721666f81abcc694d10cc163ca4ec9b56cdb89c3442a613f677262bd5410441a0870f70aba39222cc68297cc87800dba5735121e267c2493928c33a468362aff0f70fc0485923c676a25e83d364979ee6ffa1fd5fca69a64f46b6402d98765f46b677e5ba9fa0d6435512c413bfa822fa718422c282dc7462e746659b09c4e1113ef3a90c21e12591e147583cabbbe9efba8eaa000b9386bf946a1f463585275f83ef28ba9279db68d38ed89a41bfe10a86db681758206dbada4671023a4ff67fda2027da649de9551f722ff643ac780bec7f8e72d9fb863e80d841e4cba774f5f4715cd9a8fae344038e8640e5dba2adb28ed0b21f007b656300e40777ebdcaf905bab7730ec128648ff4f4205df585e9a4598d12b769b251faa4817c4540f23db60164a6acc68da8d473b3ee2ea4c4bdec2deb901ffac14072fa6b925219e48c1e0d46f38b85a1c4a63efb9bd159462e82e126f0de405b41df203227d359c8dc20b805268e00cd996ed5857275504f4bb8df398fa63e55f53e760528927e282837400b2b61949676e35818ddd02d4de5dd6d3c294bfd5056b7656636c9dd56214bd088fac2ca9b01779a137cc8c9deadd2011ab4915229e1cfc212e0f0a47a90bebb52bd9c54812cb8d6ba5144611eea0c8476f41a7a69a5f760a7982105e00ab2d636425a6b109d2d8357c42b485be062e173108e78c0c4460cd41321e95654b9992fdaee8a3879edd2c4e8b9e21f3de05244132f4cf4f0df52fca15c1d90a94c1ac31c822d5fbf9e7eb5dab4bfb5882632e7000cc133e6a542f7995bef696eabfda9f206714cba7ba56aacacc21331414d8c73d067192ccae3c08639d7a1c23387afe7bd994d3f8955932e48f702c9cf18c96f318b693b5935161314a7b755ed2d04cafc3e2bc25d36ad5fb3c508bd97f18d6e2c8a9d8e7cfb585defc51eef78b87c9f985dbd58db7e015fddf12b3082debd6528e7df347b4fcbab9a7d9a1bc2fa28e3d33baf058c3cd02d1a9fe1ddc87c1c804ba8211c16050516a7eb1c1f233961844a642b16e8395adcd025996d22d00ddcd6f03cc8eb660f8357c4e75f7597a3d9e10ff5eb26e7eac343e8c8044c0d920c057766b761a505d9c7c0d45ff45e30a2839d34ed4338a3d5e4ffae6afba1ed4bb9524543de702bc7f96cf783a9e89b0267b21483775eca4442568f02205ae49abaf81aed13e89b817dfff5ce32adfdee02cb1d60d46781db94f2d8039b283f19e172d60a58798b3ea0c2ad3f9e21a6b104d89e2c3990a079fce9fac561811fb73ec71054a06423ae50a992962aa30b56a675c90fdf768da919b25be64d66b31106eb58563dfb387a03f2327e4b85913bff77a2a6145c1e5f87e2e290199e84cb308cf91050f0e2daa32afdb8251c7e3b5c8a2589b45f4b543f592c96ef826b09ad0e91cc3617945926b0190410b26a03b9d219adc4c33578696a76e034bc2450e7d702c76d845998904a1b6019cc2c70cad23f8934b6a163c32e32527dc4581e70642c898ae152ee3080b1d930bf1dbae76d9ce8da0838b41c4514e088c7c1611714ab6b858edcd67dcc89455e0c4f86bcc217d9d3bb8816b55bd13151efa444213021626b4c97bb0de016689890d8ad0068da4fd76de5fa4c82a54106542c414d210a2cea12a44149d601f4bcc5e2387238ea16a8d3b9fe593a17470498b389025e0a5e5008db6c44d27daef9a3df26dbbf020d307b308fe3af839d24029393f503931e928e62331253a9ab6f45cc1d36041c2d1e7157a96a0f5a66787d225100515834152b62767725a17f2ed58b910da814fa26007d1d68c49e9f1681ed1fb1978171f6b356f8bc879e10847ba723468ab30f988a2b21bfec3274d86e417be51de33431ca1da86697defecf6514d04106abd64e18524e0e588cd1d3ef83425586ed795165ff1c81b37c6747f9d8e8b7c879aa10ae92b728037607d9e587a3fd540db86a3a079ffaed04ec04a69b7820ee526815abe50cd89876ea1cc5cee8da76a30ac7b62a509e04bd52a478e2d534341b1c963bd9c4e65c71829c3da23c6c2e76eb99e77d973df0a48469c551391cc5381f566dc967f420fbc8087acfc85521bc6076b6af7bfbb48c7afdb29d18d7fc8eebdc8ef72b0811701054e955b80f88796f37670993de981cdf197f8d2c8e0504a3a5e343fb42d721c61b4857c713c258d4ea7569d5808b6a048c46acaa9f4796ff3a1becb2df40f3e5a8502d0caeed63b782530d65b81d81f8dd6766962d9e50506b99780cc18e773000ad8d521081a6dff34d10d200bfcbb37e80a7ac9d513093146f1dd8c99cd60a1526a0a5043240d30bca2613ebd6c8755b07053c1159cddd6f0507b905f7092eb1aab85da3c144e8c53f866f07da82d834e9c7af846b055bd6010f9e32a508ebb859dfbc9fa4cc1c2710985d7bcc7a11c045ea4f602f16c3342dc3840dbee821fe5c27abe2d18dc9ad02facb4c6c09a2e63a7b06080cb7b2c742acaf3509cf4bd84bfdde1e362cf737dfc573bacbaba9ce59135799f80fe0ad7348c2e5009e9b284826d6a22c7e63f3c78a40d1c4376f4d953abead4bfe6b3a3dda957309014e7ade47e1d05ad03d011f7567f879f9af131ea8a97b5619d716310c59428d5cff6fdbc94708480b8ebc909ebb7c02e5d4c7bfde704badac953bfadd46a5a2656cf663da18973ae103cbe0bc124214eeeab9b6a2e68d0f02710a4dc747562e57bc0fcde35b5d645507ffb3eaa8b5a67a078809bd81834221713bffb3519210dcab5c3b79ba0bde510028c9a1d454504318d963b4b4b728310dd2ae190a2237410e69d81e48004deb495749daa0177870dd47be8398568c80423b6fbfd0f5626960800b5b42a1e6af90599877920bd7df2b75df25e86b8b8d9f92f6b5535e48b05c1aaeefc54ba022209624ce69be2675bad5f60a728d133c9f1ddd7bed9180c5a8951213ea2dc1f1c0cdd033ea9ae9350a61d27f4fbcb404935bffaebd2914df313ad222ac6aef8fcd6381e8a5ca845257522e1f8c8ca10eec02c2d3567ce3ab8bb820d1e2055b6d70c66e055a962f4a89be4be63ba5cfcc151f7f536e0f861add5e9626f708d81513aa5c05b2645010acc57e3f4c8b96da81b64a1984d996f6c7a5269a55473623a7c2f0db07beb19efcf99011aae8bef8e4d47a43948f4a1643e88edd1486830b627e21ccf1bee05a85217f2cc793e5cff10cabf41d2adf81b571e526ea8b640a57de63112765b0be8a4feec421fe30cb28b11bb353bbc6b1f3aa41a3d94bddf6de89c80db8928276e16b19568619c23bcf769f4fce3111fd12fe68242f4537ab4d0614135c86a28a756aff04ecc7bf597f7c0eb0b0ff2786fb5fd1d3bafae0efabfc6653e30cbe6b5705cb40da9fe0b6b0f659f5fafa05d0bc8181912c120d1ec9c1e47b1da84608ed4873005ba7f87f9c7d85908266d298e6e9ba947a1cc31760fb28223f3d66196393f817a9cd11908747a54c293d95fb0394e9eaabe6faca0751890105d052e2049028dbf92ae66373d49b23583b0f1876a6cbf588d1e6928a3ae73b05758b84e2f86e892325fdcd4dae37493eb1faae3fe14cc46033c679d6bbf0d7f0ac2090789b83936598005b5479018bc97b7c247b051cbf9e6f750e55c6439600afa6731bf37862ce2af7785b4bf053f288030f0ac8cc30b5010152cf298a70c63936cd3982d46525c66b66f96131d7f0bd5222472b30a1964882425e74acf184a02217935ee14dbc3ff9f1df2110e31793654dfc4ea76101b5d4902178f62aea675980b516dbb44b7adbd4811fafbe9c8f00c2f4822b7e942c5ab62132b50ff4734d232dc627a8c1a0a9d2df7f9c4fd3ec5ff1e6fd9b5cc946edef2c147b738ef7cc0dc720594331b0b74e8c7b9601546df67796c0a7a4984270e326b2dd23a3ca494186f48a66b8df1c1314a6610034f8c2a365c177e10bffdf6461473626eda6d44bfad01825dac9a4dc857c4e796f5f4dc78d5353c1e6a63c34ab9df0a39ec556c452553dc781247191a1d977bd0a8f318fad40a26388e6870a107fb2fb61b20144624365b9a7c221cd8779b02f9f9cf085b804813c74a11994ed5deccf95da8f4e417a942d992cbf16289735e8907081379c7bfe9b43f3fb1d5e1c8963d4e013ff6534888e1fdd5a8ddb0ac2c7efd2417bc150d2cd5df9ef50174b603ab1af74e28ee61546361b8e2902e8d4e4145110ffc24e16672f67032064ccca231834fd9f06b355a91189d81d06af9f2242a9e6666f423b5c269ce492ba785cf22758596b2925afdf20a2decd669a9abfd04205d4921734288a2d9b5f115ae914a9f0a32e8d65ddfb85c92713152fce56b2287e79f7b402ffb7580ad67c80a47740105d4c9fd6a9f111803984937e9589eab77ff9eb35593137243af2229ab9536853a4722ea941fef09b5c34d7c18079661f2c3e02969c002729772a4ed0feda4b6d56a11a3684c28d351d6f462d9f92f5e640f10030e8583407dd136ba4d2130c88f067456caf8ad83f895fee86920ba3501d84327dc26b6526bcb893c56f808df7adefa4686003d3f14fdb8854924c4823b0c1bfa649e25473fe7715e7bbb8d2aebe5390086c9c37d4270ca38079dd0d2f744672c71089dd6a391d46f1eb114bf866a6ad2ec356f6c56b0a695e26bff6fe773be36b870185dae616e8c4c500a807ad0f95a546f142090e63549ac5ff0d2680832a9dabff0916f5a65567a68ccd360cdcf58576598c55c5e8a453bc942c5276ab72310e6a4fe8b56424dd14835836fdd701bdf26712ca68ad8006b8717d4388fc91ee3c1f5fe97ae91c979581929766579695dcc37876cb1e8667c6544d3f098456bf6dc0dbebef768a4c8202a7c920aa0f66c902d50a98f77b884c0e03e854cf3b59ebd9d862f4708a619ff710fa5426c289478dbd99be46f045c0f1950be5f637bbb3a598c524c43de748fad9f1c4a847a9229f3276d17eef0367732f14ec9c01f1692ea2c268df02b1b92c19194eb5a0d5d18dd0a278ce8c4420c8280ff5bf49595a72ec667df1a9d534f9911a3a9bd40c6caf3fc4bfcc6edc01e31685c106092b9167a26a600ac17c507a04417ed98c0a767a18e87bb0fc43c3f782752556d48150411fbd2c35510e714a218fd153e721ed8cbc6e3494bedf58cfd6d012baf7e4594b47546e89e8ecdd34e47077bf2b6db23e4cd5841cedc38742cdc03c1c7fd7bcf31e2049bf8444e440195a6e508731e53f7aa7f7a9739847ae46e508367104f9a4dfaac2b25b19cb42f29f6360f8266c074e383ff2c1494a5f84f1a9ba12c68eb47d0733d620c75c74091eb6f7c2ee611aa679977843efa9d03b17c21d9a859cf7d1cd7b13a42d5089e1651f0542d6de1af3ea26d148a118046613190571454841393dc615aa4d69b494f22672606db6605a79648f5d6b08b0118c3bf48f24a79450140a152f36f26302df1984f124346178889e8d7d514a0cbdc1430428b10c774e572b0305efd2ab5f31b5d592c11e55c58b991485dce63c50454a83cb29870e863a4daf90d80a78cebd21dc9e6c8467bed3410a9cb07520b2e24007ea3681fd52dd5acc330fb7dcf73b47044f3f91f4a7c344b7baa03faebf8e709d695eab1566397a187c8ccf4521fdaf867acce29abfc0327004f3a0af7d15636cdcbd7f1f7cd87bcab012079332d7b76a5dd16a710ed6a30214f3b893209bea90f5af2f647baa99c2e0f3e79bb8def9902669e4daae5be4a37e43ddc8d4fbf2ec541e67bbec8d55274ee3f4bd6ec1e7e57664411872df6c77ff5ff9b889541b5bf24617bb96cabc918b049a713548b84fba26a4de0e81247e348c0d46ad5656a99035071b923d3d8dc8d9722081831767c08f688324b63e1ca69ec1357712218cce9b9caf1172bf08b7416aab58f80e16286e3725f6eb179c47f883c2fab08c4a4ffbf2bafe26a80df738dab25379b3422dee6b2eb0b4fbfc3a6e6ae64b83aa6d54df538762f8fde104fc6623f86b68f631ea90daa2be5c75cf10a4c5b54deb9455b28450eb21663fd7881c01b8cb16ef03324d23971098a94ec484c7d9eb5c791b2221fa51ea90308b9927fe8b190944346caaafd7c17420f118aaf4e38078e2ded9a21c1d205506116c814be70784d668ce7a4a6dc9e4b2ded78ac963c17b2430ceb0f0bea54651a3937b251e50619013b5ce5662627d0540abea5bf92d5b4578c0497bccae81f32ce1c8cf8a46413a5f85652e20e7b7e3de165d804d7ded1ea0bc9914e8b77bd6da434b80e89dc716c8b83400200bc0baa2c234b35b62e70918ddeff3bc648aea8ce58a8843ea15b4acf779ad78201e3d85d74c3fbe534ae4ddcbee9575952bede9104b739892e75deac1bdf2c1a80e617d80f2247951955f9294a1d999b72fe07d24dade14826019a75fd67117eea08701954ee25a3ce251d71af15a89f85ef976d2b8bd342c0d47ee51ab5b9a15dbab542a075e441cc25536715e6f6cd0715e3bb6d2e38aae03e140a6977916cdf4a96317b3c8a30fc2e446d7e1552b9e6cfbe092eef13506b273711a67f6ce107811fd92e7d0cb450eff4c64352375e44287ea1bbf9d1555cebef6dc0b639b4fbc6a86b650434e77442cfd83f11c11c66cab10dcfd317f15c7e33edf9c32e737347127224180e0beb268ed6d6f5a8e4ac0f1751e89e1c2c4c5274ada6f8180b435fcafb6b1fee31f40e6a8f2660d62c27e71fdbbb570ceb203c5f6588c6222d07d71527dcb264f300345efab30a89fcb57a514d9c7253a26fe844c4bc10f5770df94b93dc0516b365c40df8924a810c9791b4855cae73947755c3bc6d230092000fc181faa056eba0d28d231d40f65e832009e39d9802b917bc5104f1be30b9f90e197051689570fadde070992c4d2489d8f9ac60d2c626585344a9eab5a7fb25a166be4f6f3b48a248e865a1f6ca90a7f1d0ab15ddd5e3f38aec97db33dfe9c75a934263abbc655797f7a053c0d3677f231b21b98e045388fb810d0f8de4e7debcc245f6404545452cb977c94f3bbfc1398108f083fff264d7e02d28e636381b1fba84b5e3456a44d8f96a9d54f82e71e91dd7af6d378b330b83fe11a34891cbcbc36e5489a05840b204991e2508d799b8dd551bfa784a1d01d61dc8986498936855777851ea46e139f0a6a14f98945555e5eec9d3966b446932fe46871fc60415d0a568b83aec2001a598b61e0644d52697202082a0cee010394d0aca847fbe60c6e19a40973916bc743e44c5499ea74114f8ed00521288fb3ef8941b6a74c9a4e48408e38b6a2d214b3e9f16c32b62bf2535430a06faf110a87d1aa092db650e7a94e832a34053ba8cb43336a3d1488f8fe213e050c0fa5ab18202543e63ae0d986e4ff769912e0155066bd08caefb642486294f4c14caf837819339580f885a042591f7b4323080850fd5c31d5a3d462d3562a0189a724a850d2f5023efd0f3060fc69a8a7b5389d3bd75121178bf7abe57b9111b3f71cb5c3b21f89989eece62454dbe3b2d7f976782535821231b1dea6a75884da77335b0167eb9b4d54f514143773b1df2d9e6dbbca2824145ac2eb55ec55a8ffa938620745de4399741647efd7b0cfc6a5fb88f8248260989729d446b70da470d304fe82c3ca1fadcbafb7a2622bb31b66e6f5dfc0a324d344f64e7ce4b346ed269c5edbc85da7e6895683ba3d0910249f8be3f3916f8cba82438a67b30794b7a21a0a58b14370f7ea26804f472a657e57de2017d503326f10414578f6e33a3132ce175d75f9055d0944f64930cc611dc96ebbaa03066216e20a9f22ac839a56075518b9fd88fa930bb7726e5d7dc8a0802296d340ae9db0e12c19bd80516f789d7ac57d57eff700e1bff75bdf11c557d90d162834dbd80aa2e3f61fe949e026c1d0d55ad84f81536d4993589bfa100e3fa666a324bab79e6b2adce2e9de0386ae41fc2a7ce8e29d7720e59ac7431116e200f607a3f4e049037ef2ed960811b4a4a1e04fa4d0950355750ec75126da55fa375e75ba33de9fa65e0f91909247825b872ace00ee7cbda612a3f013dd33a426131a5bc2ee76a54d0cf51a4a6de30d50f955449aa6949e58f462872fc22d7b11d5428b1ad7983e1115c1181b2e649fc514ddc9f5c93e0aa0652b9ccf82be4266734d3c81a309931f9db303f5c94ec4c1bbbbf6de6089425d11a37be974420119c7103f0cc378f7b2a15e68a613712859262d3644c673b31d0f4fce2b53c4da00cc374c6612d05b0050c93a255dd5e1985d033de13e76ea097ddeca6b85f45895aba109abe8226c0e27bcdf4b118e7a47535dd7dc5e7703b6aac26ad79a38124de771987ec1725a6dc2187b65373c8b7d10816329d787197e0b5b11d64510ec47c6724b5e855705d6668ff8fe6d59911ee30c152a7ab0652259a77490f75995d24ce70d8da55ccba081aad1ed6056476ee819c6fd1b9c55a5a93d3d8cf495a054eb0ad5b8e26f504577b3904cf89b7ab1725caae1ee1848c55601601a65d3106ae65797703009ae26a7e42a94afa1b37c334c81e5f478b64d2125e57770639662d7d2b987e4c83d0aae1ccca96f7129382a142ef1868cf1bf0ce315c4ba21cad153f6cce8d7be2c7593d4e7b793baf4b306e7d6a92f7df7320d735084114598d4f9eaad20d75d640be26c8cefcac694d0db5f10394959770422d333251489282cb610bb8e69b6a0efe50d846c78d42f7d4bf4c40776a84e5a4a7e4e691bb5e5a5fa157fa279a4ded7efe187bac07800165c44f55969aa99a51ba0d3b795be30e149803bf4f87a136232057e59be60ebe783651a66ac253531bf8d37faf9badd69325b3a0799c59a608a8120f38bfe67569750766b027b4668750f757da5508369dce4553410949cb8fe1212532271d57f956022a04d80640b8ede77b89687b97798253005c40c8868277b10d7700b861a28461e7fbbbc5d690eca259c7be1ffaeb1f1aec926af8476875f8984313fc6bd9aa62b78f7f288b607f928e6f73fecfb53c8faa1b36f0c17d73c2ffe4e113a7835ac8f4e1a18c461eb8db164f03aa7e014d1d96eef921df3eec2796f88792c3a0300da63bde3d625e48715e2ebaa3624c059e9826a9da3e935acc9190f6da316dac9624014468a256cbda05fbf30ac8cb3f9ee68362fba525b00bbd1e25c407c093eea8d6bd7dc15e2cc52ce420bb5715bcccd851392e6e7001f28a3b8c2755f8f44d039341bef615dcf5303879b5e54d5b16beb5744bf58d5fac2835f56765ca23a97e0c7235b74e7e4b47524714ca65e833af0a0eb5337184c871dd0c945a641c400350d4c3b9e0f2f7c043859ead595d0fc2121eedd719d7503b4fbbf2043bfa0df8755f4a669d264f510e576959905abb1416983505581f5a48610c59e3f672dd3c188c8060639e17206f063a084f6cdf54e12e8d5aaa40550066098905e59a84280d55075af300b40a7ad07eef393c901bafc983ae4021d3be489a09957ae22e8efcc1c1f268bc5db9bccd7facb85d53c64c3f83339d1e4c469073568e64014f0e08c96cba12326e88b31b73d10123b8eb57b5c44fbe7444cbd356a44ffff2ce359b7e496c6676ffcfe69478db104c5f15255dcd4e59db0e57a7e21d52441056d8767d083ea7492c17addf7a8b02cf4a5346dcba05b75e65b8ff9ac9c1efc2cc6b7f094dcfd438d6d79b6f7f7821f83106fccf7b6c8409133fafbb80c6f4a43a475fc9194ed630689de7f65829c1ae4ed6cbc6185019f1beff45483e0965e9a5130881fa7014af9c41cba322ed6576623c3470a853b244a32055fecf5f304084ad83abb39a93c78c28f0a2bde92f12eda0b4ce14e60f20b18ebd7b7cc5b5494602c909b17c8b459fb3a5f43eb8615e4ec02afd08b6a9109b67b557f2574e6bc49f58d6727d3c5d5ab76b5a48b7fb74ee45ff4ce555ae2fc31963fbb862c1ea9e57562d39fb8a899042501d6861b9af8f61261bbb66e9f4ba94b7eca31b4d3f054a6944fd3d6d28bc5caa9dc441b2bd746c675ab0adc2bbf0dd82061d3d7eb7d6cf7904e77e8eb699fca46ef54921de4f08bd5015e71ae47d9e42c62e17da1c4df1ca82f3771c863e5dbe0eb8728ea280e03862349f5a033280e134d3fa4dfa11f3a9efad56014b6445a15bccdfc6147b3fe2f614d79e7096442b19abe7018bf47f03f79862e7950f3837278b3184003647bae436561b9a96a35d70d9ed6fb8badb350e6369449ae64a3f7bdae2d356b8ba7faac0c55fe8e082a72f3b29c9d3398879411628d142b4e9bafd26fc13fec647cd62df5cc3a56196ab305587b801264bee350d5d20ef90a4b95da1b926e1c381d8ceec3c00335fea3f400351875c21f31f21bf1e7645be345a00ab255976805a699a62beb04ff621f494b5faa11aff33a0a62b679086df74ab6c225e72903f9b47577cf78a0300db145785e47e4bfa0a6df9f092ef995d973dd078fd36e262058d288a1123176324e11d13584a58901f473ffc56f59771e1b1af492aba640da14aa7445940aec068a21dda280afe10688da11417a486829bcb4a7cd99ccae6673ab44dab3611f2674abb254a8ff3251db9a48ea064c10f45e314315f1b6ef8e0318023d45fb0969d664dd042093ef242036f2c5778a97c6192f2bb54dafc926f3e88d618e628a47c88065a371d5d41813d99ad6725c5228ea7c1f47bfb1d98ff5927d9e3034e20ba86ce5f5c89843279e501443a6fe9f513585f6691a2dfd57396bbd3868f65a83403bc2d588fd689c710403a8624f9906040ae998abb210bd9b2694ad7b8dbe68a1e86ac03055276fb6ba64c8a1d91d5ad09f9647d4f60af9f8c3631fde8256d58a899f3d22366f8c3420bb465627ea739a907f84a819694463f19a0ffc730aeebf2e2cb375c85473d905f85b16059c75dfb903937ddbd5620a0b6df91c6ddf59cb43cc3e26abfc94c78eb4c97d675859ac6cb2d844e617f84c6328fb765d8a8d50db74b20de596ac417d9b06940a3a94b0b85bf5a72c720749e7ac067c48c8bc259c97c908dcb74f4ce3a52d87937bba0b6d651e68a38e380c48cad4b65e5e1abad52160c62faca4ee6c8fcce603dfb242c3ac90c45043cead58822f6e4527edacfb70a91d7d595f54211d5c3bbae9fe34baf559add3486bf6b4d72ed2e677d1f5a2a201c56703909212a4e1f15a487ef2446b2ea23b99c0326fcda959664ad0f440427a689210f6a06b6bf2c31a889320c8b29bfe0a50dabcb4ac3cef7705e41d14bd0a8b4aea75547053cbd39d3f539559715308bece5a21597169826cfd2acfc816bf69223c5d39003d7f2ce56ed538d98a765d47b67aee94f8a6799261e3027033129b110f4351ba1e7d4eecf92152df24e947b34082be201a74ba0bddbc214954a9e8b21410dadd2a7662839771a955fb732a7c33dec2d813ece9150c32187cc7edac4f927f572a4b4fc75d38db797cdfc4cc3adf24f437b2a8646e077a63184e79552d7a23e735aa95691682dc92bf7e72a2164e6bc82d4a5cd8f15bd5f551fabd7d30494b3672bd361ade329e091c59f6bb1820196bfd49cfbb799840ca569880594c9c4ff34fac4528374b979873dede9a1e958d8359ec6fcf3bbcc5b7600ac14531268dbc2e2241af6e8affc6590c2c8c27c94159345090c092789c4524f404928d51731bd0c2a17e9c77d09d1e1e214ca4f846a31e70af85fe08dce5ca89c1609caa691131ddc8845da288ab73f1c903798cee2b4dd1bc6247e5881d4d6b66e2d7b2b1fa4259cd2799f529403e373101327788ffacd8bfe80afaa4555a1455bde7f9ddb752951c5e9f22e9a910a8f3cde95e1fb51890da8552f617edd012d3ed6173adaf72a53622357b8e1225e653e9583e21ef997d75661ba7da6495b387bcf47dea002c71a14470c2f7ee83c9a14743d33cc3f138107981a130d0b9a7fcb425437bb91892aa0737607d1f5e323122567fa8723701931d3fc69dc81b04c4b97ad2b5a3a7372fa609895117d289f223fabed1d6f4a28b0e68e63c477dc35fed55c3b4267164d88b8ec19b81be0260c0eb3cae8ed64177053488b07a417d5516278845a1149d8581140910468bd908382448a06474fc026070b9e52084b1d00148446c1a8ddc32fdd9d710be49d34fd03fd2001ce35efe6a058ff8fda4929b4d07b48d255753661653bc897e5c18c7148265e2247b3d6f1acdceb0430aa9052346b7fb0673204b5c5fa3361c8bfc821f8af5a52c82fd70cda596d0f54a2942cfcc7e321e589a9230918ff71c322a8aa08136d7034a8cce952b6c1d4122efd2000bd97bb4be5157e99214b56d86621d054884cafe01ac0d68637de7564a35e331a800155da66d44d0e8b2edf158f1beaa932c5f72dc0836ae8d45f557c0796b0546bfe3a51c56b3f272088e4953cdf1d862964ceba423bd9f6a2432df74ad498cab82f4bbf4bcd2bb42645e125d4605da88040710e3405f7f29288ab5bc6af9df21f352e5f0f8fc15ca7d7e498c54b01e191bb98f93121fad899ac7a85708e0fb3b7b151de99f315ea31a4bf40990ccda0b64c3da70a45373af9f0e291f0d495b03bfab7b4ff7f1566c1ff74247549d39aef4369cbea2d9eb30a19016354c4403ae369a925c851e4ffe6a1db2ee8c41469f07517575f9dd93df73872dc6739e5408dabcad7a179fb1542bd8d58db91adcb1b2071b42724f8185cb7a7027d3ab549f8b164974cfcae27aaae74663591975b5d0c00b08a5e496cbe7b0ea8098250e0523db67da431cfc1cfc14543ca467400a8149ab3af0cd8a0d0e317471611fc9b593a8eac14875a63a162c0be0f00fe4fdc9a9bb1cb8062f8d8eddf9d51102746d21e75902faeb525fe267d2a9d70d1b2fc04857214ffe919aa1154cd4664c82a27abdbd091d7b1a46bf1842aa4fc92399beab482b72ed8676eadc89bfd929d1930b0e3a60593ad7abf5bc596816f70a34724ce3cb928c2bdf470f7a7e41950c4a6a1d99af979ccef5f49cbb73b547593026de99c2f8d725f139e36edce50d58bc7e2b16bce9caccbd11c39d122d52b4dcf8a59137326583a9b7433fcf8d11a9d459c12ad48196fc5fee5ccbb3ba9a21847cb3983c416e757015f1c6ea0a8bf080d6285374d0cb1d6c3c9d7dc6c04f386da3a5d967bcbe1e56560f557c15ce5c291c9f14b3836ea9b6b639cb7dfd4b08315fe8193c0d01243bfc89e6b58bf5dca7f57e45087159a2909e3d3b79720a788698f9f15036f924632377b1f3cfa049deeb212e848f0679468daeb6026038a38a7b68846ba9110bb4b984628c8ed0e34553645e112fb1d228fc2082302f15ea807aefced8f66e3bfd8b12817f95cc16726d761d61e8d68bd454b641f1aee6b21041f1cd92db44882c704d0309c5b258c8b05de34a597d3f257f0afd41bf79625bc176b3b28aac373a581645b5f21bc1a065260093fb1bed0531e9cc37cb1ccd09a32bd3247f84d8fa91182d412a47cd683b8a83a6f363788be576126b9ed651d09ec68591317bca66a543b98e4e7925e7a2a3b5b8b722e9735ceaeb90d4d69542d0fafe2fa1b02c10c47ca882e9339e86a85d8e452bc3abea59450696bc3f469570d9056a64cc1b3991d1197e78490876fcd5bfec9a034d91897450e8ee23f674f700283cf03e373f0a6441faa8eb34aaa3053e3e091bf87b9f24e0851c2453ea299c9d43ee44d08d8c1a92238fac5ab8c6c596501754a8b6b14812a314df26756cae6f933f30d8d2ee7bcb6fdefcc6febc3357be869b3fcbf340466b8430ff630d2a2bfba52a9b075a21178c18d66c88cb6ecf82503fdc4af4782f129ecf4529e1c1dc2069a96f65d4736deed486561f9048159353205d8290534bd27302e0eb75bbf38cac689b4f74f13bd5616da1eb3f4dbb855e602ddf680ce9483bb51f433222e776734f31d52e578e4910b269a3cd1033b4f52a1e2a999d4a3022a50efc2a8043df1fbdbf587bec500227ef31369633723dbf1b2a66312fe5f471ee8a1a0019c45b0f909da84addf75145a06e3ad51ca12f708c07aef26372ce376ad0d1592b76f4af7ab21fbf1d256ac0e7b782ef633efc58c1c2a35c1b686e93f305978d5e6c6db656eccad81ed722a61d60f0a2fd26848d72528ac42389fb0985524e36e734747c120e4a3f23726adb9da16e1b169c38ae82c1fda31d3fccfd94b3a904c27fc40ab8a7474a14eb90aa89124b5187cb03900593323e062549669bbce4e2cb031e1d800ab3b6fd04e4ed7eb2ce4dd2383a8a8ffe7bf963b583a3126afccaf96f1e24d983858110f63927ce0e9fdd1c4f9ef6039a6ee06c8e5c3a70e40c12fe7ee63cf235e17886fb9a2dbb9d2a464346c713482e3daea7850294733af5958343c312fcb268eeb296e819e44f61efa0a6c42ae64c55d937898c0867e9f69783b4854de08f654983d1b8d764805a75def5b365871ae38d9c9c32dae3ad7138000d0adb6053e35720006777c11ea1f03bcb77bb08d9e24212aa30b1890e621b3657af930ad44acc58cc980c178a25cbbaaf038fca88697f40b543d8ce732fbed66b83903e33178d6eb62de095462c0fd54234f100de03d6e3caad4145e84626d88546b145316694aef219127c9114d46cbf564baba0187a4d0ec8bca3fafc60e12fffe7f78bf7b27be079b0805f2dfc43b7b6880f770b07dbd8ad3f3a5c3d5a2ef754448b3fefdd25749ef62e5da1cbf51c922bfe9bd1f5214c1c49320ad1c61f3aacef4ea88b3eb8e7e0575bb35450d407d82b0677a90af679833d50c4fbe8d993eb37ba4c2194406f14c9eb2899b6be20d664d06e8a4453d68542e9bedcd44c10508345fb423852682506d2109e7fd29c8eaa3f37bd0935882433f881b3431ddf00ea498bcc3b81cdf23518bd7f56653bce08afda16966832a209e3778275b2c0382b52edc9bd2df019cbd784474588d0384ed7412c8199ccc5909cb073b77dbffd92e45f651dcf5e7196de05b0a5524e8d4a9fac69c6f337fe6943ef31d0866138a8d8308accde4c2761915421415558205437e1dd3b2a0a57c518372fcb276ec7390874726eed89b3ea5cc73bcafe952c6f7dfeec15b9b1754760bab909b9b8579d0a21af700f73ee5f0b9e63c8407e35bdba41be6d85bf9366736cd9d7fb9bab09569a1ff2fc75d6b161a65399b9cf1736cdfcaff410b7210d882535611cf811c5828eac344628e0bbf62f24324ff33b33aecd4ff471c8c23f3d49ab72aa505027777a4b6a78ce429519a010a82623b9b5240bcd836e04dba77a1389d7fdae2937352d2cca0fea6be25bf039326263c20973a17ee7ede0fa7b3b70f46fe3e3773a5635a220066f076df0284ff690a0bc44f6d30d432adfcad16a89706a145f9cab3aa0b3df38143ff93d5ba33f393bda3bc21f667f0f191f4cf56f2f60d301cb3ce81c76dce20301b3abba1422c480946d418e9775a619ececc389d6a0cb68fbce2ae92379cc51685a8bde366253050e6abce287f200c689d757a1bcefa63f27f25212fe646900c42a314d64f7245d205984f82c7710fc3749e0253654f3c32dbb199eba12e7b6f65ef26f3ce11a2cf43c6f067ef1bf5ebbc10c07a3b40043711cafd6b32f17bb7f88d29a983e1baaed61c38d76facb9b8e9874c1a5105ef2c7084c03e6ecd35fd7acd4a57313f11789e07dd39d69e0f67b310a910c995f938aeb07fd3feef52636608fa2030bad1c23ef2b406d068e424ab86a39a33692f539134c0a7d07760c5ec3da6fcf7768fd471bb0008064dd946cd5b5fd0438a2aa12fb1f1bac24dabbe48b1360a10a36e6aa6f6731bc07042dcf7d889181a4d91d4b3c7b6a6cee1301e509f339cb5b5867133802b813dc0f53787a4199b784795596a9903fd0b2a1b60537fa4080005e77ac334f11b1e8530bd97c0d0fb2042d98e24da67ce689c22d0651640c18a22e7a0522f4053b818be2a6087a729dc60a58f6feaa8a4d9bb920c75f89c0e804785dbbe8df9521688707b2ed6ee65849c20e9a062fd1647765f7fed7c90fad5be514f92f5d0550476a630a2722ca111ed5fb987b7e24785dee8a55d7a370987ce038981c1dd9ced8c8a50f63d948e692e5d2b7f4463dd9349b5555ad7f31e9cf45c257956ff154da81a80e5ce348df21c6978ea167b99accc4e52c5df4440ab29168491f09660a99c2a3029e9aeeb49cc6b3b2834f84982626421ee555c18c36c16317c3b6267cce66ea0b2467895b55f8e3b460007dcb5859123da1405ddff015e2fc6550b14ae56d849b787c1dbfb3a19c926370db96bd1f3135f64eed00a01afc0df0af48fc39f6869d7f83cdb680dc354f90796db79ab22b1f46dab8d83b42da7949aa654978f58c09ff479d9ef70a7e529a5fb6b60ae91b32bf94457c71db35c3a2a124ba766e03ddb072bdc9bc93b2517687c1412231abdb23016336d5392234b5b11c80c850b7b8b5633fee95c2d97059d9aff98742d72ed6721f8864fce1e4696136723c181fb1db36a13b2b6bbfb387399f07ca65e8454bab6d878f65e8695509d66bd318881bef7a683fbbdcf503ae86ba4efb57526fac2c0eecf17236a4c3a42fb55d9b70d7a8d2de8fca4f5d0e37a21deb34513acbaeb689f5304c4a259f3ef2bb14bb5f2134a1c5ed4bf0360a453be543887e2e7e592381c4065f749c7fe9fc22e8a8925dcb628fbe2d84dfb06c81dfb94add886f720601c448bb391c9d3d28f0d404878da8df9c4dd880ae885acc7cfdcd0b3dd0c49d83560cb01a62796b2d74388cdc776d1b9da8f3d8168c2195ca365e93dc836f8ffd096957af02672113722aa412689b30e5551056b996fd599a9a823a2bab15eb2db60f2fb26c30d5c11b16a34f309d9556130ed17044868052130f6a56277c18722888d089d0b43962d8e08316ad011d5376c987838a0621455db8386158a244a64a18be3bc471d9be9244a4a99f4ea035af888d98aba7df6105e7630c24d62fc52fb5eebab9516c8d48c7945cdc39720ad901f624af85d45bb897503847920b2165b05cf7fc869ef594f3084274cc4fbd1014963fdfedb0116841a31973987cefe2031e68c470cf604d25a5303e869e3320720ec89f8c14409ebb2082aeb0abfabe96c57283d09a27121125b2c4bcf82654d474a56f4299e82c461d4828c6accf2274cb10de1660803ed3029d8d7aac43bd5cfda2665664f51582325adedc616ccc2fd45a5b2670c681428b320b182389955e38c40435fdbbab6bc6c8863b070670da41f45e7d03a8d8d1f907f4b59098e05a3c7d2777dbe2b6f3cd2f46b477338f24a3e4128eeca9167578e38e7ce9706ae41b081208f987a8cf47a5ac9dbbeae5f0bdfca068aaa10eb172ea9bf878abd164701222c0c0ed0011e4a476d617f8b4a33d73e48060994c0ba61c4e03981345b18f344a21ae8dffc1920356f31849f9d45b8d2d0ce514069ea659344dc0ae15c23acd763346e86ffc2250a7198c0411a9da13b1c27ac2b3f3e568742a2fab02cd929109b35d264a89efaed6c34ab7e50ea27287c9945506bf8b7f3de05a63cc1f6490a0c8a7aa7a469605df6c1da4a6ac70df3c23a8867f3cc44698ebc225d07ffda1c91ab4acb8baabf2694e2b907fa186163ae194e3610869fa9e77e39ed45d57005c3d5bd75ef3fc6925b84e34219da4c4d1c237d3f87a5e73d13125acb24d646fad00ed715add7086624105d292e9159fe42df6feb7eec3039f14873ff7f4055f794d530ddd8e5bb4f4eaf13d4cc838ae3e5d7b71da021c41b24618796259f99056deb3d0b952948d0c29bded57203f8f2cd83df85ac237a56628bd45683884973d3a31415d802e2089c1f1250a1fb59c34dfdffb9b6d62b62bac236637c8176576533fb17ef4bbf2ea058fe3ca81f9f20d037fda9f977163f40f7c43480b48c34804d39e3bda5daf55f35209ae3dede5bea4c5e5b2e56c250e05c21201ab78accacaa6ffa952b773179e79458195cc0390ad41077c02f5c33c79ee3ed103270981cd72d7c5d7cec652a5570210a8eaee389d6cccc163777c045cad61c36c798659e6c62401d21e0d2826b0ef30b02fa5ea7837d285b955a4a02d587f88477b4caad7fa090f969f66944591b59f8e45b18fcbc179e3287348677ec026099aaf7c8028e87855b4e56038884e19d6d06cc05ce02c523de5872ea52a3a3d4f42f6512d8ded70bc8932319e8c23c23c1b32ceb0f1895dddb0ee5ab40e335fe02ef27975ecf3f6b29b79f0ebd04ea584d99e80f37dddd41c955d518c198905dbec4dde6ff59003dcf24ef6db22999e0dec9e5d1cfc227aefdfecc7008b730d04e713e0ad11f9da829b7abb9b6267553435ea3fe36e1f05dae3d415bbb5142fbc018299d594cdb8b2bdf699995956810d8fbaa4300e651eeff8fdf6e930d8541f5c828f35b13d6af2385429c7463598a6e8337ddf6ae9a56eb7669082b376c7fb2f3e041052a91dcb714c939715bee37b05e64fd353ad8c24f466e5bf22cbff96a2090f474afb69b8857fd09a887750b8a98e7800303cf08076723754fc9d7699be44c4565fa7ef7830255bf96b51378e500eef19ae0a63237be7f4360e275dc66af084687df6f156f4752c2f46330f396a5ada5a9807cd516699a47041577d2c5b614c7c7f3333feadb9c752bf5067ecb82040c342502f93a01e3a0ba522bc31627f397c72a2a20cec17e99eedf3036447f4a9977705a2c7d7a84c7715188bf62fce9fe1e913af31d631427bde2dd55331c6dea3b94201e63a0c72eee0ded0366d17dcbb7c8ee4c1652c6f30890489241fd91f38980a3c1526e7d9c3d887ea5c8738aa81a2ba74b155920cd10aa205eafe2373b38c2a2c8b8018ed6179f2bec08efe52494477dc2378ee12dc7b4f805febf4a0f7152a2aed140d34fc102355ee8c7f18ad1d7b1203f82a6e2e69a2f4d4714479004fecc95b1d16f2c6db642ca42eee99ebda137e52e0eedef08dc9ac7a51d99b6524261841419504ae9aa8fcab121cd6f82a2100b734105de80331ee538962f3142c33e9b0b9d2749a42c8d8e28f26eff44c11aa1bea3a732d9b990b01c8dc3f5153e01548d8ff8a4b6347f30c5f15965b25c06d7e5e7e4b094c4417431d2ab2a02950b36c0d6f8b38822d1f29da315b91eb96746dee51c0000d148cf280d387fec06d84137d8d4983289eaff831e758665ee0f6b9bf5f282f877b4142acbcee1445fcdc23642cf6bdb35080a13595e4adf555ac480aef5e8014cff1bfb414c4922b4b940998d2e4634964258f97bbb85c8ad70db2a06f74110928ff1875639244746a4d7db5cc8fe5eb3c381c99fe011047e4c45cf994361a651167cfd11d8eea9702257889fc04b805978a9ecfdb12ecc21954bf897445e809013821abda1062c6d1e23f699c3a69f690b8fe2a3573ad587804ae860b3b34fd90987d06acd39a02450689f54a4e95a0af41a13c9c28ff761ac815d2828d23079395ca2095050db4d8047473cef2c98ddd6922c8b9b7bce5f381ae77bcc96f7cfae39a0fb4c77b18e82b750590538a73cbaef67174c4f7c0400ce37c3358f70f5abf91add83879fc5f3bbab8e5bfd96d9d658becdf00142d00f1dcec2374e1c279b163741bc9833da5938b9f01f09cfc4bc6c2e445530c3cc66b52a54d988e556d17fe86bd50ea2b34acf8665f70620fb629136298878183abdc23ff80bec54b127bbda646f386ffd1132fcfd9dfcec1e37e0090b591cc96f6d06b10f566bfa972a2ab83960f921e3e1c16348546f54fbbdcee4f15b464eeefa337fce31f733d2f73f7922aa9a5fe4937d34cb9b07a50883fbf606448531878787c5b19b0c1388fae15499d819e33dd54e1b11e672cf2e092ccca49271d2d040439a0cb98a6eae36919561500880abe3fb82ece2b9503024e99f84c2659ddb0ad9b906dcc2ac3642052caebe74c17fa1d348e8696e16540d1d2ce539f76eec4d748cb4035cd732ac882f7593d4b8f2618a39b6e1191ddaa2b204bc0010dcb9510d59fb99de1df7a689ca922de62c504c31967d1ed92951157a3c7f0d78a9aef2cf7d85793ecf9363101576225f4e04c18f917cec2af631ee428ba0ccd5fa992503e939f16a19b6a7f1641a781a2a583e9188762b9f5a37d42f7e0bd7ce11a8a4fbb500ef4c34d1777bab6b78d5622e649115688054e869a16451a03e09202be9436303118d0c9879b22ad695cd8a116de5f79200c7f60ffe6ba48091dd438dd363dbbb679b55d3748d871bb155208532f1efa03a58d5bc396779db99fc93e8c0f562e3e301c3a9f36cd9057d901926f92569e7eb41c4de4294acefa086cfb354e2e795b38ecc5020c8688cbce1a8c91d6754f1bf1e5fe78d479dad22906ab9bd1cf8258afb8373dbfedb04531b791b0dcee7f287f4356c3d6b4ddad7bcab5446ee825554166fb428a2851013b52eeead0221477b1efe6f1bd8117d39971529ac26120b82a223086c5507dfe7e6f3ea30865093dd8db57e426b7f510b265f614eb3fd18d8eb50a5a8c6d1af0bd50e3ec98bdf68bc844043fe2f197967b72d74d527365ef52059d290068713fed07d665722e8f447ad05bac6e41239f6f409c5a9f842564a096537a319f7163f7e3cc60e9fde42c04e083641a2cd2734e43eda812794c07405bd25748f540827ed97a6dd9ed1d8816b32cd27997e9c8c3b325b4339284113a151292b7079655fd57f3c85be6d2138ac9e4a360fd142c57fee363deb2b0b735be50f5912c98ab051957f5d281218b2a0d2f79cb9bc97203a2d2dab675f25e9642081c162905908591b91c00c0f3b3ceb73272e69f67befa241ff3d32632ef8fc9803d50afcaf5484d3a4ab3f6acd47da855e571a9a5e0cb8d20273ebab3b26664e15bce1a2f1e1549485d387e1982212eb0cd7b43562f8456f883b988abfe39faf30d627f295622796a5e501ee44c4a786a6da03f79e77528260d4e834842f3e49a87dce917c5e2d6a126b0076ce118195cedaaaa2765ca53d59f01f5f8a36e0653194ea98102af1995c816372a7d48f5d1ebc0a1222262ad1478d8adccaf7241a15f9d7a3fd3c0aaab584e893572b0f88091e7e3e2774519213284857216009fba690207c796240128ddd33304abbf9170b7080f50881e12b2597224ac3918616c7c4a4eac5f5180094c99c186f0bff02c11c857bb06cdbfe52f2e66024e63e1d49cbb55a27857edab8f02926e5f8cb9c03d0ae0235f323b70047f86383cba8b9d74ee77a12c40a24cb4e6d3e232f99ca16fc0f06743a7741a4acda1f78cc653aa756f7011df4c635c5b8fb0ee7c40ccd47cd9ffa551e30553a1d7f36bae3177cdc1a16cca6c4dbfe08adf4eb7b7f4bafbb798054d26c19779e852d9dda9a1498e57c42d3a615733cd721bee0bafdf281d579b78f07e25a310ff174613e618afb56087b8dd68d57a182c4d5445666be4d804bbba2e14af083d9f8537952c04eb92a93f909df8127f22f8e3a7fc578878a7e0f5162eee873944182d1179db821b1610200051b52e8afa452abbdf32d5247d8b44104783f3d4a61e7db8977c7e1350544c0aea0f1a64e1f2a13b14332a3741c8fb6eeb406c1e1962f42bfb0e47a37b76c48469d71a8991a231a2804da1302deb8acd9803a7cec7312278e0ed6320fb573a225160d6f57216613d5edbcbe9c873415289c92e6c8abc8a31317df6fb23944395d88733b7be3837cbb40776e09b075cf987f91e77888494732f712409251b5f42b38d060d8532c9411e4d4039f1ca85ae336f9c4874b46d3f35201333f0dd0d3615b3a44290e1f5c5f203fe66cb417a32cb4f6a336fa9af7e3a5f52850d996e846830212a34102e9853050ae77b7f84fa32a7c29244a8458ac31d603e18983a4dc544b6551428f831edbec25e52be1bbb732f1f3f8e81ec3364cba25510eb5808a6e9c5621ab9b7171c064628a886e1d4336d5a713d8064dae56c09d621c803b1009461f3aa01c194b8d548250da564a58ae34b2709939e25838595085a899c1f61ba9b4c462db1d33d7f48b63d88f7024019666d60b0a58e116f36dd5bce3e9f61fe23672f1bacd9f967ff080a6037c1f53dcfec6be3b020f96c6bee3e119ca93c8b651f134a42410fbfa996f1f16fae2ab30f222e9bef83ffcbdd285f1a7e9300ea88a3b735e7b7435e69dbb50f8caf1a5ad2af6c60deca520d8b600da7b21c5af55c130f7037eaccacc211138e78083b3bfac166ad91001d1bd91ea2ff266d38bce79379687b4eb37ecfd941a66424ffc2daa0c9ddb15b5260212696aaedb83d260f7159b71a15067e79278c7adba6cd3b7b7222fc13449426e19ec5ea9077af2c541b7bdd387a7dfc6716136d8e0587a99beb4a188f4c0594cd5c1d8e60e9c0b44e9d1d665883782971ecda147c500cdc1a56adbbdc9dca674cabcbac59d5a20fa7ae8cf540a9a2a29e0a9fe71aefdd809cee30ccd9427ab0ae23d58db0a38dfc05ae0f945f72989e1b2ec718e4b244ac2b647224b18954a76c132a6c5de9c1937f7283be695945d74eafd400a46aea47095e344bcf256a690a0540d214cb36fcd52bd4f21bd6dbea7ff7ca4126faacdbcb1bf5ece3edf50bc953e3ba4214707921f365213e6dd1c94746cb96d45b7942220e7dddecd297a131d6db6d21a2608a37809f8754f304e7df6ed2dcd3c93aafd05c8369d04e80d8832a4b28929db453c9b9be4be1b4115a5d67e732ea8fb923378e9ab25955c62b68a27e69cd1b8bed9c0fd418db2366e2d8214100b84a927943a925979abeaddebec514decb671bc4bdeffdc2816912cf8693921098a945475d2c28b1937952535cb1bfd4d2257177e2f98b58b127233a22c160eaed5012d3a48e76bc5de59b687cfad10d8d899610be9b9c3894f0dc6598ac0bb85b569821e6c2a65db5afbf283a51e5ed52b02baa0d6907c34fab4724c1f5f01b988c14d45baba47bd285fb1a023421ba2eb6467ff138f2edb2d75ef7bd45131ce6c2a2ebb69e06081e550d14fbe4dee21bc5376ac536b8f5bf16311095bc8117cd9179670097f5423e717153e02d41d75192625ca2a0e46b3ebe48473b38a294968093c43f55cfd81441f09948803701fa3dc2fd80f172380cc82aac7c18826f50880f38ca3e05d3fb303073982cf6b91db5d1f23c0520a24442f125fcc3f75eb92c75d4c3a15fdbb56d1a4e11230937f876439839bf748e2f187e46614d190b8ba712f99d41e8d2f61faf9dcfa488ffc0d543724c3025faaaac35942aa96d58339d663c81761c833ba870cf1be857a15df3361c1e9fc8a0d6569c7a1d1f6e01bb5ef25d79573e2e0d4d99994524454e6534ac012224aa613ff174bf8379917e17d56a9919822100b9faa46cb16d1150634aad3f478a0a232870cc09507f0e51d52876491ee878d7ad94cc532bef4caa560d9ce976fed60afbe34e00e148d8d5ab1ca49c64e9e59767dfad51f1e7a89591b8b9d2077c72106287a5eeed1d22f55e27cf175f657aa49106c34878cacac952ce7d71129fe2bf3839bac6b3e53de286da4435a267138273d59b8bb4e49ba0328248d350f4d3bad7dba5318bd40b5d86e6d7654063b0cc86ca539db072dc4b5aa48dbb511b75c91e0ff1c47c715e56b24897d334d7c5ab87e938c0f5887ff3a9c11f3adf93a3d3e0530ae73a2085ed86989628ccff946895e25d1e0850098b3aaf1eb3922b7ae853fc213039fa9e25e58b383b886e415322136e01a4c1ff4e01271e4ff3d379921311d347ac37ab58ed311e16686ec82507f202caea4ab1263a0fb51945038242cacbe770c6273f15c61b792537537292bc3a118146f1f8994cea0abc87be11f172d98f289d155905d0ee4202d6ea0b871ebde22a6c81883ccff81f104e027d4bb836c4203a9fbd609ca1ebdeb18bf73f116820fc9cc798b4e9748a7e9733afb260894a8953782cec990b037784656d1f81111d5c21d647c66d638927597f363d1fbdb4ffb48eca633579bdac8605c75206282a267583cfa0b62b030d2997cde56f8fb3b7224df70daaaf1f2fe1d3e7963991984880d8e3fbefdcfb44f2973c8d0a6844188996471bd099e011dd6b764ac7b5b9fbf0e32393d5a18c79d0e146cfd717f98e9bc8cc9673bce39b6bced8acbbd5354aa4cea857ffd57324cd49f2e1ce647160e1bd3675cc9a7053883c26e405bdaf415acb251f33b05cac6c9520fe9bfcd71eee99b4d090bae64488fb320a45a0693812d05ea74b874c117e2d743c8bb70ade616eae6909d06b1f24af777b42ed90299ded3f2428c7a8b302bcc7a509b17ec270ac058d8caffbc478c821459572c0a4ecfc10a357398cc168520d3cce172739a44fc9c90133967161a69a0ea1493358a5cec98e1f4910da71b3153848c9addf7d3ecc76f8ec36a619b7f46914d19457497b37e240a5ccaf211c8c33c662482921158849ce785ec0d18e0fa09a34a0fa295c89a9a261271dc5d9bab4266644a57582853a79ecd7cce35f5e565c4b25892c94fcf3c9d12bcb9b762eca44c7721f527ca6a2747f0af33622b22cdbfe6b20196c122bd43592fd837cb239c0d2504092800351e8d9cfb5502b00420fda421a4f70e05f03449dcff80fa92fc0a67f5c31c4fd7be2650ac39200badf509ba41ed236ba03c4b663d9274888edb42ad60a126bd2b5051172bb4deb11a3996269b4f5d7685bda04e5dd15eaf8f69ea3b2fc3245f4e1e91751f3df62f07a95ae589b672c17c24419692aca9d27a6d4be83c1339f5faed7be59b1e68a1eb88586663fa0bed92af7a2c5899513facf596858ee2bea37c01f5d0ca757354ae07e1fbaf147de9b54f798fb37bda9f8655f7eecd641f6ee8a5ed3f2c16e6c244f35187ab1b586a2b7f2019fe6b520cfe711bcce59f4fed559c14c111e206f17fbc5846a6d64c3a67fb75ae88c6ac726cfe07678c4795fd607473fc4c9ec444c1ef2b511a2a37299225ece7305383a7ceeb0c7dfc70206a2a5b16bc371706d3a3f7db3be8de162466df36191f0331c74c60ae31a794ba7df94036aafab2ec7c4c6ef640b0b6c68b3c49c8a362cab683e3a40225a9ab0839218828af8bde62dae9b286627a72d0a05f871dbc4cabd3a041596d81e56c278af1a684ff3d5d5324730460d5e804668b0e3bb711b2c7586e83951b9f770e53fc7df99f673a3f00f8c3f01c9a31701edf350c18ac289013ee4313cb5b4060a2a116eb3ab9ad9ab0f6c6b0d0822608e7966153b43eff8e21ee433c561b6f10bb68ae440922cbe521db9fa680b6297695ebea23df367803235b49cd9ec53a2099769d6672d9cecdd0fe8a2c575ebe31e6a9d9f3aa86424030ea0a2ef7aa81411c380d99ebdda50bbab461c75ad9439be5764023b0625a5d878d74dfb40fbcca41b7e248977fc328bf70fdb29f6896a8f6a1372a226df4dbe7108d9ee5dbff20e9371a3adbe7759b78fcde4f839e53bcb006375e7e29bddc7e5f559522049765084da49aaf0de7ac57319b29714e34da338a5fea41dd13a3e69b79bfaec1b2a1836026c8dd07142760ee50f2fd561b21f6f765c291d99ee1eb0ae428e0ec43bd3ee40e79cb815e2553045b59706de9bb867e65d8522f3c80b5fb42273c9ee9dcb8dd6e62ae16cf6b1d7ff616b0f5cdc5e534ca41218c1f19630185942c6161d6af2b398f89deb8cafdaccb9c7526eb7ebe791a1403b084cd4e12ed0c9ed0c8681b3058f2cd2371e8b8a3d781b4e213b59703a0d04f586029f97efc59fa4c50bec794eae15455c3bb8f9b9eb904dc2af8d699c7e9af73efc097be31a2330e8ed2fabd58eef674e47f73fb462ba9833355113355c2774b4c116aea8ca35ad63689da7d8184c39aee7edbd75916a3f988ed6558198fdf54770ff3f89719071dd32691e6fe91c4bfc0456292c3e0d16b57cc74fb95f56d3ca4767b1aad0ffee67cd50058bf299d22164bb13ca74c75b24d9f3ed37b10d088e4164666f3f92ee371feef86d54d8c630e20ad13629629faaed8710ee30f45dbba744f612a132b6434aa2cb284aef8a4234edaf11fe4ebd9cc5a9938b80faba81a76264ba8bc2e748f9438bc19c7830418b7cbbe0fc69524785d44850a6768a50f09c5fef8b754296c7387580b45eee67a62e85ce425f274d45397170130cd6d8d5a523d0436aa77936aaee57c61c0f8c68392af2ac9c094ad1bc7ba8ef2ca9d4cfbb104f6353d3bcb43e42391e238aa0b35381fc40081eb7641bf8da29e864d55dbdd9fd5f20478a468f3cacbad698ff074ce1bb44ddf88eb91b2ff5e79ab56cffd5c7f07bbdc178fda969a00fc03d3d6e4b009ab8517d0685a55b9aa470afcef62a3b0259a3401d9d89b7fadbe7e6bafb174ee62cc8f6ff72aeee879c1bab0bca845e69afa1058cbafd0624d83e8d51ba48e653790078ded7429e11dc82eba677206412319bdc827a66c4c40043e7a3034b0e8cf794ad648c478ca4fe90a1e4845acb5b7306cc4d68b48c63cbbf3902c363d026632b98cd70a2c0f3e600c4ca9d5e6828a153450574ff1ed849d1860a48af9be85167d0783f7819bc5f8fccdd8265a5a5083f5ec62b91f736f43be242999a50da3382c615a6298ebb40370b90686bd684c463060d1bdc49c512f7f9a989effe52b5aeec2713e3078f885677115c2cdfb6961c0b64990015021c4bc600c6e9b53d2cc62b364e295fbf82c27e241235d6acf33e2a8fc2d87960d2fdf0299e2c34eb8351a64371a48a9294a0ba28ecc2e61d32e030e0859c45005db2e2283cf4e1be8913599ebbfddf78d03d0bf7d613678594ebaf9f3d1d8a0af609e55f54ecaf9f07ad03387d725ac6d0c9b31e43967003856a975c7ae69adc830c12d6d493990b227a9fba470fca10a0b734be324f555b5f5275987279a98e4e19ea6b4c698ea9aacc5f5b63fe849147fb02345efdd7a8e594221bbb99e0baab20ddf032c498156c82e149e25070d10efc772584ce43536affd591fae7e3bbac6b4f5104e141807ac23e45ea48ca4a0515e3835da995d1eef28a3daa4102d83addd95020e44fa9de2e285be3ac187f4d21f7266c65a51ac22fa44d7f404625b8fe6e6cf314207b98fc8f1e2ed060e64dd4c78b5f0721b90fc88e0f6550f5381554599a4115395d844aa851f8b0c70654f5eb51d975c57da6f8ea906fc2434b01ce0fd3bf82845a878d49d70f0dde346efcbcc35a32113c4023bc27de7a7b998f2bf40d879b6455aa923004db2a27e90023357a81d0d56415770bce73d6932d3d0228894fd7cc869c4049d1f883456a29093723333f5a58ac6a214bbae67ca9874fa2bedef5c471703220be72a4764735ee6631c4016fb022095cfcdc778020cb3a012367e3d4fd4c38bcd60bfb4b06fce4055afb6b7c94603b69ab89f5e17e0ac2d17df4a1e7b86626687821867a9839cce30cfe8c382ef45b5b3ff8a94f5650eb32ada58d24e06631e32487ba1a874a07e05106c93e158ec54617c5753fecf825252f0f6d709f2833ed8b6ffc3e62b9944cb13db3971ef0d260ce30b5a11fa95773692c380ab4c0b26ea77891323592596f477d69e940699655e4d7b90e7a2af2f3465ffc0022467bc7f1c4ad52a54a9be2756cf8c87962eff9634ca5c8af1c42a2b074b389c30df7f2c0c65f62b37597fa17b52bec8bf91ed8c59921fa13ce35db68953a7115fd514c4345111179cf11796642633a5cff76a35f2c64e0755fb57f5c96bed0466dbb5b98265ade4c6bd7b783e3b8d5d84cd537548614f4d92369695fdf1b106f14c263f296a390c9170ecc6df5423cd0f59403a235d6e856ce2d9f783fac93607c707fd343ddabde1e8eedf730c8a56ccc28788d99bd239e1bd400fc09ee11e252fa8296d58987e5035c9a92fec7f70f50aa4abca9eb648caaac1a64e428de96e1b0ab49c0a9167ceeb8d7c3622912c6be76ab7e625be3f5ac1b41289ac289a7e5193335bd9f0495a77849afd89ab41a17cdd1f1589e923271db68e5322127e34710fa2fbf1dc24bd87ae53229173c2bf8dafcb757745c86b54932c9aa58495bb3c8e29530d22c0d1298c44d8497208f770bdd8f4dbd629f19d808f0034ce18e0d8becabb2d5268bbaf5cd8cc0b52400697f4d3c4f0ccdec3c84676554bcc67b2aa229f22ca8137ae1349f69c116fc5b980e333cdbc10ac75d89696f75fa666e07adefcb13e858fc5a36081dcdac19108c726b8c34246752de9b672ae85cfe8aacdfc00643c6abaff7f5fbec7fb08fbbacb7115f550ec90abc7c8c32f2ef5d06fc0d25877d773734716c8785d2671b008fbaa748fda222b3164e35686dfbcb9f9e4fd4b293f2b176622531e525d800f7530561f40f9aecc67a00bf80cad2d9b1ca0a5bd2ff550330c9c8bbe239b1965b2f1c90b54b30d00b11415304a9be61c25e41aec6695d825948fb1fbf53e2d88cfbe51263662e4c936551c8b1feeabb0b3ced19ca75a23b2976958bebc84ae8098641d368c35b7556e188b4fd3c2490657f25d01b075a60a50cc385b9c8700c0a0e0fe2b7ec966aa1402e9e8fd9f7afc4f09e4a1f3af41f18053c2b28723c9d3a4f47b95ee6b1ac90a814a184722121b4e4c83364051d1dee3d8cbd880c7b9b9acfb2655e8464308dff0673e91e5e5e5978ea336713ba069c2a4c8a60abd8be5e79eb2e8cbeaeee5098a1f7c10cc32226f912c431bcda6eb4dba4d44ef3a202d033152e2cd8e60c0d2f90010f25ab12a4e6d8aa9135e8430bbb8b328d15faf1c5e6e047bddde80368c9e26660ed3d457301088cb0ccdf6ba526aa576ceb56fa4f94cae240bc01cc2af27b9575c1783b353dcc30e206419c2d7cb02e61ff2f231a2b9d83d5b516611412a2e9efce464f02d3784c6d2c18c0ce276ed1253fcd0c5e2c8a1b8f9d7adf4d3041638c4c587c62181e4c31fa746ff7052d986d1fc8711cb4627a743c0cc4c637b81241480fd41d76751339bed7fbfb2dac4389eaa6b511884b8500e096530226d9a6235f50b98fdb0284ea60a6e3a4ed76ac1fad1b493f8b44e4e73b239e85f9be90cf1116abb563e9c407bf79cc48cfc835d310df5b4af1e932b723abb32bbbf6563192708e2a4d71ccb0d793fc630cf49e8c5cc529fb37a94bff64999043b94a2a1d61d20857a2f26799879b7ad676d1153f17d87de9ec64344e8a91daec9e7765462f38b6704f575c16c97411fb7963fa65151c20d2ee782056300cce1b8fba08dd2a743f528139299bcdfb86dc3d2d4dc02b3c35ad6212ed6725be4cffc660e4d7dbf93b58f974929493d9fa7488b26352e4939113dda91e7767fafa78316c3a9fa52d67f7d0629c66d89b51655b435ac27033958f16e34ae05fd9f48558dcee26db2e6409d6e0008e03d7e7437356e1071fe7358741236ba209d058e3e7af0a52b79666bb374adeef15568d6c342be0d3b65ae6de1b0f011741cfbc7f56c3ecc26d495d88b04c75ccc13c6413a281d10b1761a00454240627ef760e406f797867ece37c09f05007fc6d39a3cbb6530ec28477e6324b9a95dc0fec3791bf7310090d52056be20ceccb8e4385b9325b1303f858c9ef90b9eaefaa57d640b7e6a9d834aa67671e77b53dafb6224bf54468650ef6b96fee37b422c5b431ea1174ca8706693d2b30924cd77c3774cddd670ddcb84d12e9b9ad3ea42476adc2abe688f87991d32d56730d205471a9608fe7897ab3b7609cce96521a92168554c146e8fdc9cd120518af1e51c048b02b06aca3d5285b7e76d81b0d7e20c6419c00cc3f8c7baff913c7423359272183e2af81b3b319b91174daf7a60abcb0b95f2283c61e1f713ddd5804e566ff407968deb882ae81b0b9a5bb081b3c006baab536530ff3d2fe4a7a68efd049e53a353f867db36195264bff79efa99f95cace3729f54d72f0d37ac0fb824b2531b72feac3f722f8ef00ef42cf8a69e54284f650457a0694fef27685ba8503dff972b7a9215368692274c7943e3d20d637521540049e4f2b304390265b5b2f57253827d5644f335f2c44eab6338c55776694fca49fea378d6b747fade9530a3b3e1b4de58011cf98a707076a242aae2f7b8559451076a9b4ad48e381617cc59b70144f5c0e1bc3466ba2e182113c68e74b451e92200b1decc6e8be470039efb1f4bc9715dd233e10a13c02945a301c5bf93b1bef99d13099a690f4194e76f0c246968715c916ee22367f53dbf03e96fd96f0a7ee4f4c706e5a263d19916dbefd92ee34608d3570b8428e86a2422d3f33e2125d05013e8ac8fd9c27d78ab5bfe5cd745697843f5bea414157afbd41d62c0b78ecbffd9c12366a507a89cf32b56ec63674a421817c22817fc8f08325511e2cc3278a5dad3638c171f266dea37eb3e739707573fac5bcca1444626b331e799582c805061b917a276aba343f8ad0518bee8bef674803908d6f2b76511b9ca88286239ed2f01237b2436a2493515196eb0b5589e5d83ab36b796501c8979d737488479be37415911350cfb282ed4d01e8f89627bde2899a0a4ffed08c88b46b79619fd5704384dcebfd1e1247a090306bcc2c551510c78e2d6109ee46b11ed2dd3f5b9384e99578fa7c71346d366ddb3762067a7e7604e92f1e0a2be8a46c82639ec6d7ec55dfac3326c6508576a5998e4e5d5aa993acaf6f998cded88fc8f72db87bb89ca568948f6c58afaaabcb3d1e194d1f4fa612ad79a79a6d1215be8de216043ec24498c3ff265b63a9b3f93ca29b75d58822dc7404280d187121672c794712881901c50a15c035bb1f6834b84c200a3e726dd558fca19acb17f9963f5c6d8eaa3ec53e6a116c165fe89b1dcdcb88b24a0e4969c03d6e03361f8b8445c1ff3df47aaf9b31b8d3be093b831a08d66b9e612ab299f297883701dd2893ad851bb92e276abd79d5f2b866b5891381419f851471c70d5a22ab404af31d05b5c42b205ecb58efeea1173772662f79a33bfa962e16f8ef51f226de046b470778ed07242806fe7360c642bb7945d070e575db7458e788856ee248fde6deb69cf547f01c25149fee5cd3962197b5394ad01574a2972c31b15ba535f63ead6d0f37fb98fc99b99d7b67eb88948b73c1a3b5859d8a98c7f92df157895a6e667731c42c0395c2af0c12d2a7b3eaa35312d3f9e330af2054003764a8963f57be1245d779e2f528be35d6bf8e35c9f7af8c73424451a06286c5f6f08718a91346c69d0ea89b900fba1fb5d7d8ce3bbaf3e26a417440cb96341552b411db24f382566d2b29635ef528893649d8d8be91e4485fa6205a777eb609663e87bbd94d24e232f6dfc3007bf7cd704ff12c7671369c6194912ae9e4bb54ffbcb3edfbbc70c77ad08b22e197b79dd426a06932132060fea9e85f064fa098be3a9b2b80776e909235ba5b14ace1574450fca9309f140ceab7f664d514b8056dec60775ebada1664aee5ff5b6f2a4924bcdc9616238f68e36b1c0e98fd94d9eba7d74bfe5b2a073abf2656edde7d13eb32f3c01b7a47fc83c6ef8e8268b5b77065a5da1c6c27069de7443cdcec19bfb980d45caf09e2e89d55dd70ca5c225adcbd065acae632079bc3baa00ee3b6fd151b4a19a1ffe975791e7466384343d5f39ff4af2270ee7672dad4d94a4c794b3e3767cd426aaf89a1c8e2ee9a565fea7339fdd2d8e637f0ca1670288f7b09188cd5d8d39828e9d63af02c5e15dc2bfcd3dca8649fc60369b2c101d6bb74c4e5f83c14785fcb6f01669a5ec96ad2004114f9358ae53745a6aba08710982e93f318a1fd920e28f9ad6fe8e6dbe3837cfca2895b4ebd43778a9439eaf02bfd6b948a51175be6ffcc2cbfce041cb2902f6c70e5bccf3e70f69921a690b1df496803028c041f1b7277bbb323676234f93395863f4be8d9b2da374196608b0e49c8647989a1c175f88d9c4a5a42362fc01b2f82ccd5ee006c199dd646c989a217836c8c042732a63e54591053839126a5c2a25087a62341a29ddfefee87b7d1bb47c2ab3fade943a5b99cc725b7bde42c79120f09d46cdbff64fb52aab497fb03fd176ea014b0f726e109ab30c2a013c9e20ea0d52783b4b659d05d34dc348cea1816e0f032291f7acca11460e9877dd3c31162cd212720eb7b0e1a3994b668b3b0537abe7687e99e43d616e12f0914ddce26c92e347e922dc8d7ee069c9fcb239b746449c75389578d6730698043cf1ba7145e6452f5db721b52b1a98faa1a9cc5c29d88bdb2d6acbcf5176614e2631272672b07d9acb83fc39fa418c04eed584bdb11124028e1c7bf6068172676c221865ce838ff169d6f0726f8b31a52f8ced07b483cf54ab99a0556428b943c6393d80d8d667f7e65f3979bfff0da6752e7c7c96990fc426d67b7542c2f7d2f62f38074a885f8248c2ce61594dbb04c0707225fd9e8ce2a35a557efce91d74a971f321753691f2b2419e6da6cb16e5b7bc48bb13058f651cc2e828157e60662a0ba36ffb2ecf44ab186de814f4184b41cc725e114a7a0a8ffe5d179b126c8e27d459aab47f0e0fbf93ef0499c8a6c015f1492291c660d61caf14cdd15f34bed32b72b10ea26f4f8b7829a0054288b17c07ba881a29caf51f81d5d46889cdf23141abd17d9f0427aa5f60c6e4730d3ae930c7bcefa46c7c8115e9d19ebd54e0a20358f9317eba9e1dd6d75627cabe5d5add29f1f040206ff158d1bc591e59fb25778e3e8137ecc093664b2c5dde96a34a17d0c82ca8bc1490b079a8ee3629ba52b04b71080855bb1cc293816bd961988cdca13c999ae4cf383c51d07f4e72027a42506843cd4cf48cf9ee7aee7afabc23b2b667708af591f579e47a9749c8b403d9facb283483e048c62ffc3e0aeff75a77c4c27bb9d2d7ddfbb321b1787ed9e9d431e96a926c674a413f67b7ec9282b567e37b32e2a3d8384e38d4fda7f2ecd7b6864f330b0a4cdf371aa4dedd66b4fd97ad79abed3e5fb4f04184c2a2b89feefd4bd1a83f2f50d2d163da62d8208938490583ff14891bae91928064e618d42b647a5c157894c91f280d744bc382d7b46b236cb236cd7b23fcd133aa12c9981fdbaca6eb306fe5af978a0ee426903927eb796ddfd2cdd6dbc9b42ded6c1cee7f532b01fbee0de43c3f4821d72dfe8afb2f26056ce9afd2ebeed8fda33dfdd25a24d83d0cbe6d1eb3a83b80b234073494962b0337f6d8cacee24f2b98ea2c7527193007c4b2f2793186dbbeb7e7926cfdb91a3787489698bfab4d8ef80c12ed19be344b706892a2357169237bc1e1074fc7516ac3805898e5c7b27340c1a74837819c99b70a8bcb87b7949ef8b9b9c32882fc579bef098ec50ac38ae9f2a04da5f05aaaf4851b6a5a6f0cd1fa4d06c8b5961df900560ab25d0bfe840d7ebd91f18cbf8f1ffe78dbad5bd22c59ef8782813351a5f654cd04f13da562f62957422fb72f9058aafb5fa690cd7df9b06386dcb951921cda266877dc662122828771d45216104af9c67618f53af968f3693cc98ec566e421da3df221f4e70bb7991bb91197ad43f52d110b678e99eead6ffb5f50182e785a2c905a0266f69251561aea602d45b46259f9bd5b6f77ebba7b1ccb209717c6c4e7a3b042d5bdaa5b1e02802c3b5c993c408d90f9e2e38be7970ffe0c3fbf583825aea6ae47e340fa462f545ff7eb1965260073c8eac7bf124e7c2951d3bf22b98e4f62f9e87ca656a1caf0f8cfb7604091b8cd675bbf60790509a6fd35516cb78951f200696e2ce6feda61e391fa736575a1c7a8c3ed79b66fe12e337f1aed8f4a3be5edce445d7996721e2fccd3320776aa6004a08a267de0b8f338deb89f7bb6a0a95e37602ff35da18b9caa00a481cf3211c21a62efafcfed7eeb38cb5aa6b8290cad60b54b1116e7b7944bbc30a7d188f7d512ca230094ff96436971e71ca4b74ae2cf12542461df27108466c9d09133f625271398b6d855fb205a880332ec1192c2a31e1e98ed430833797fafc4248284b7a39f1373f6b1ac7976687a96cc7ecf530dec1925b2a6a33f5dbd2e46433322069e922de21610562d32197a13c9b1aab3b686f8fd102238efb9a3eb4d87d89d7b1a36e3e57e92b287dbe3d46ba789b667730226efc12a33d439dbc79279ead223f7ee94a8c80fbc793dad3ca7c87f4bb00ed2d1db083aa61f26798684439296671b9977824055772932e21bcca8b104b63bcbd2db9ab3f2b98c79defe4e4c44810786ec78f8b1f74c7ab490bed8db8e9e678f4c750da8a30930f73c491973b689d63f0f7dcfc9bebc06eae9501d9098488c3c11f587557d18e26cfb587deae755ff05d052d95c46a412fe8911764d6a7c9d8c8e21af2b96dcf9f3f8945acf3a0362e549082b7b8a2677c49c73a73d57f391f9cb3ebf56c297ace7a9a74cee0e4ca964884d517f6be7f669de51dd0cc842ab6073fd627c832e488c24716b80693ba661f6fa7298a0fb4d1d1652994ec1edb0efd58803ceee29535f678d09b34639e6a381ff06bf9d028f62fd24ed990f66426c7c0bd430eacdb3c69cd36abe20839d7dea7ad3f770ca7a72c23ba7fbbf7ba2b6ba6078950f689b5f0c99bdde825d4fd0911ac88f6cacfbb7f01b0cd670cf74c6b544b98c2517eac5f0d09d04ea3d717588a9b4e2c5df52e1fbc247191bfa9d60420bc3e856fda4edfae21c8ee5095fcc88c1efdb2e4c4104ca88035b7a6eaf8def089723868e8122e429438fb32946a1ffc5aa833e603335f6b89b220fef4a31f969e0bd8600dbb2e5eac323d86763fa6cba689a557be959c8d89970505b99d14d598dc0617418b7816cd69336d0610857cd313f4e56f36af0fd37e9554d35cffe35041fedab0fbc29b5dc217de8a842860b8a9f37eee2244155e2bd33d9d1c4aaa7f019d6b2bd77ce00f091b200c5584c6c7f49055e4969bd30c3d1f50368aa3e885838e006a53cab9ec2964025397c13cd58b334e2c13ed69575e59d9c1c497f576ac6221891c3cdb2b832f024e559ad736cc924c725feb75810b877b4b49a24689a1720487be0ea756580c77c798227af952d378c90c224c045e21b7da7e9f0d2f0a9597f65816e1e1819365361fadfc9a73bc1c65a38181adcba98d1006edf18bbc4a5e8902e53da35d4bd3bd62aec3b4f4ea67f6cbf78230c18feb667b3c59eedda9783a40071e619bf59c4e631be65f371baef9bffa3ab0a37712914195a21ba641773c6079313e0b2142c77edc0dd8e3171f723746afe7435560702550a06956826b59cd82140828e8e55a9810d06a5e197f4c35a19c5fd920e41d308c45e6cf3626e28414a134982058c0b4b2eacad3b280ef2582eb398d9606a6729dba1bba4f2bf820a87f2e5212c284eb517e0ec7db3a9475dde7320a850896ae21c894bab0ea7a0a6e4a4a6ce832ad50487eb0d22f993855b7df5d1e92379067582d1bb1ece1859b0d0c8ba809cef781e03d96f8dae512e31c04012aa28e5b56572971c3ccc251acc4b61d5d68067803fd3f899bf02e6025685de6fd376e10da29d63c7d20a505b4f2e6724c811ca1b82d1d7407611f9b7e7b0e4541993e717144b965eab8ce0f0765716a23cf514c6db0514d3130242a62af1c0a4bf5b078cdf1efd3c7de756cf423f33aa45fec2cfd5749c00ba7a4b6bda7d2db1e688b8a5698e829c0220878fbda2f138d505ed4c23906fe6380becab2c5ea9f4e9fb8911b60b3ad8d2bd791def580113aab6dc5057015f42cc92e97be8bd4db875e30f4f5360ff133463022a3d5a1388b92a42f5a0e9e55214633aa174742ae257dbde655d677b6d8d7ec511572293732b4eef760ac745e095494e9679df7ecc6e0fa3175e5dfae576bc7d039931a1eb3d5382101052ff5239feabcb9b5d19ab881b4f4f3f887fec5e5fd34f3f487a1c47c89243735ffdd9d13c0617dda00cd5cd25a14e871b865affec49540fb828e9a0cfab79ce840936276c19835fc756ec625d610add116a37501dba050b9753da3ed2b87e090a1b5e4cc061aeb3246a928ea43c2194a1e544e2c49240ff119b22b03c2a9a6331624dae72cfa48babb97db0e914be18af714de91c3f0468ffcd021e8cd13dfe60b3b9eedc6e890b698b0df7eb791e506c965ab9f71b4639ba1d1ec391154116d27efde74e9f6c9b49609e993dd3f908b4879e57bd4fd4a9a0431a43968b99ecd97aca951eddf053461ac9aab4bcdcbaed088aeafcbd7e56f6125c38a3ffe098f36f3c61a7358a850675e984686dfdc7ed5a4dda68b05e2f7d2d051c195f552f921c3d63922fe960dc2180d7ee4f772b48d12dfde42ab79d23f226968029acac9dde8c60281067822188a0fc9f1de5db770c664406210d1610b5a9c0d3e0f9a3350b1e469f762790085cb29a3542fc39966cf40d0f2179b5cfcd8d301d93f4a885c7375f6340cd8af728574d988a626f58059bc0dea0c3994e1ec26df9b4897fccf69ce4dfad6cc2f7957927e9ee7e5190bf2bb78021d909eef2b354995b7cd9108e1d694837f01f0b42e96088b87a1c9f148d8335fc8d855e0707648c956feda254054986f411b9f00d6d41d3f833e3fe3a61729fda07335fdf17db21b8a33e88457e704567add05d13e0d72db03edfb45f22d6d4c5e3201a0ac62b121733c3d69e400d0a5b84d3216654a37811292b5e386ea02e1a3fd0324c1097393810a40be8df35c5b6d8973099be08eadb0888e5a00537b164a0d1f7340009a10f86b56c12733d396e81f076b0e99bb1aed7d695ebc6cf56878129c87377af0a4de33bb2cd425e761cdb4e319ae6c46a217c03f7201f06bfa6791564bf00c9b8bc4abf2e9f3c50aca19b1b4a66602053b87975dc43cb9d5c360249a472520fa6047ed8acfe3806b6f8ccd7a4daacf8dc703558af1d9b61dcb3e80048d1d97256ff9da51b3662677ee9f425e88d636ce9e8278652352680cf6b5979cb21c69b4d86361d8d0834d40b608501ebf5dd4434bfe0af2976a664e23daf2738a89e8b78dd6044850f4f634f2b9b8e752007e0275bc266f469fbff4cac2b19aa37384b9a885f770f339731366ca637b98c6bfbc04e98828a3aa3ff414d83d41b6bbe00a4069c44f5c910f90c1a736f70dc44c4f7c65cfc8c3471127a1e7f720f3cbd786748af0414869f61cf7265932fdef745f840e6628644b2f46ffecdc95fa71fbb67bddbc8e529a9f2b7325254ccb07812661372ae27ac2e103a0c389971731891e1ace56a48a0a82a51baf849e7b2d13d2ee61c3dab3d2902ff4c20abbb4c8718d16916ce6c8423825fa769e3b776869d6f2fdc3e6686cf9214f9c81a1e7f618deb726d5207ed8e49de967c79d46fd7c009bc5f01ca247ba76424875bd6a7205593a72268b83e084abb1ab02ab82d4548bfd9382de6546da8eddfc5d7f3cc62a9ca8d546d4165eb38b4481c610a6085b1d30782a7c893c732d3c4f1810d2a454f1d7c905eb94d90e11e21a8522aec1432a43c5baaabfaa7abf40e737b0da6712dd290a9f30c9cfcc0c5e7ab435949299bd941230e5501a5cb0be9927e49a9b1d06f3649d7d4bd8ad5545b4913656803f60ab77614a482f775fa96cbb4911644ba7a02e018c2e2729efcc3f61f2f58db446f864ec2a093b6bb19d30ca547e34cf9725730250fe7b35167010e2bd3f04e284b28c4d74ff0f39f5aa579094d3ca70e48c952fea2a6c35af95e3701d86db8ca6c44716ac045c1e75de3149ab0eadf45919c195e9e5ef18ac2e2872817f003d05d3afc4bed458ee637dec470f16214d82558c5970f153040f3eebb97579582865dc8c7dc9630690a758a93ffb2c91ca15c0dfe8d4492cad75bdd7de60a65ea02fdd172d7d486fa7ae28dde6d58d02b6bfa0d6c8dfeee424f771befc88a04dfc70d6e66fdf8fbc30b611d4ad5ad27ef733584e01683dd54989fd5f7aa9e6d3f43db1ef80105e0690b36519dcb73e69f374d7df21cb93655c271b5ee7802e9b2b81bb7cf8892870f73e8538dd3e144dfacaf764f92fc23faf55c70e1de5b5017105237ffb0cdddf2d0f24fe2ea017d6e344a4e053f16f7d741b6c123aa03e64588c5df5154a84c0d7f695ef94d5f680c517e9c00758713d7e9ad73992b804037c48487702bbff40b34f6ec01c8fe4a3a7b4e606e642003b916e842b825eede32745e1c2f37932385992452126b8e95f2fc17684ea7995d80148f43a0414527d53a4dc4f05dc160436fe05edc7902faa5642649f64347e462e879ec13c63936171d7cbe1576fffc6c7b5d8f2f8a281fcb71bff9e4f1a8dacc93695b3cb3a54719677bf0a6978157c064229d949ae3aeeb0f6f36122c5928098b35d5f145d2ed90e63d25a45a05873bd33bd105ae903c56f42e0324c78f787f9af25b119a7aa860390e94be23941b96e21ca60e848bcaf2250fd201d6de6186ccf23a2ea3b143e73d3213e735371e69ec26f9622158131ac773651fbc66ade2eafffc08856e9713b145e0d5cd38423bf98f18015aaae8f97a8f2e81955a9e4edd97c92291ee50426d57784d92f44443af000d85546ceef25820fb3a290dc424fa7d36e4e63f8ead71582b7ad09b4bdc5c726f29d2261b75985fdb5f824cb875056258833fef15646d9ac51e5f5fc4d036c6e4cba9a3ad93751bb008c67573e1e3b584fee0a8814798ab3c14f2bda9554c096afb8a1fadcafd6c4377ad2aae1f848acf0aee9e2fa912caed770b4bffb498652bee2d74ad680b59b6f644544c7e1e1b4be44c40048383df203eb5fb182c251fc1b2050f2ab791c3c4104e9b1fd2f2ce696448fa0628be1cc575f760927949e1c57cb2a39a793b9a6f2a26b289ebb9132656726e02cb3d4f18c3475314c67a9c94147129ea4c1b7f4928d84423d3b19d6f028c6edbfe271f5ef3c6d04c873c31990640c7f38caf1c0acf5bac501cdc8ca918896d511119543b5c34bef9d4c73279545b10802333aea1beb600cf56717b79e86840703ab78460ff020b58741f47b7a963602877ddb09d8b7f2990e16c29233ba2e4ac7a6fec1deeaaf428ab345557f316ced9a238dd21631c9c0c6d13c2ae1fd2b00589e1d0ae998ef29393b5a4df7dc89d18867358b2c5982f21a6aa87ed112ea7348f340646aac7c0195013d31407573a7ae9241dc3cda02e51c85a6215ef37483b1a4dbe75f857656fc598a711d15c34646e4f826628dc9d96ab94b3cbd641c0e71879bcb6395935557387413a6796c8442ccffc5f98ef802a0528dcc9b113f233384c154a00a6e9c73bd99cfcb3469c9b22a3aa7607bf8a9ebbf8eac94772963648b663b3cd953094b04b83245b5b326bcf1237c70818df7ca53a001ddc93bf0485403db4244b31f0700aad75dda63c835084699fb8c3ed69c8deb8866447a9d03b340954c457e2e260f85d60654fa9ca7f6ac9a5de344541ecf675a196edb7b46235aa8d09d8623d968507d5041b74d4eb21cfb28a912f11c5e8432a134c26df4796bc4c3cdba8176daac99ef02dcfceb310a2b65e23968fbf95cd972280156d9f6347d4a76e07efe14e1e97887e071d2e076361f4237fcd4e18c2d38429b8f2a761416652570462025dbd599db24800f8c5ff91aac05b8dc4dfccdb08afd1dead9a1b2f879456607e83488baad590100b8803c111755db3a86112a10caf213f825b3ec673dbd13cf67724a0ceae2319b205e2a9cd17282ea143479569a3bc7c189d311a460617fed1b77fac303d7e3920bcbf225a6a92bef3897a9f572e0436075ee8f1e4262f793efae394328bf877d9fc091a8a8157046f9ceddcdb99c364015012c98a4862fd78f14d7f76fd604511cf152c9bffdd3be53600842d211327473298156142b9259dfbb94737d42babaa4f3634402f2f5fd3d8dd833b5141ee58510bb5041ebdef1e58e0eace6f4d0c1ad1b6179d3a548a33aeb981ff94247f39ab773f63b7915cab40d46ab7e6048cf56f3b1acb9ed00b6309706a7534daaec8369dafe1fdc2160c07e65ab56bc5b6d6ff9d1acc103c63fdf4b9d788b6fa9e3f0bafc967ff74489e82a533b7e5d4af4fe71d04255787a845054b3bc4f2c631b2dfa0c3a13c82027434d15e99a03455be3aacddc2ec3c1275c7701cc9eec38bde596e0d957d78962c686d439e276c74b3e545f871de58e7a1bdf49da9f3e0033ee85d91b33e5db16fb0ac022a58f1462a86ae332fc1f09373e3f2483036b3e19c0a8d24114fb22a7bd6568e7ff79c04e77aa535aa07a1e337b2a06cb536dcba24fbe34b5cf90484b8b7494e85b25f1bb45c119709e9234b7b083edcb3c2538e503f5df26e97647ed1712426c1246aa63160cb9e84d4e516d1e893852029f3931fd27e350245d9fe5f3a11e4a91ae60ee9adf8142a0ee0bb618cbf30f285cd4fdb254c1f64935acd421c5eb77f05a055e94ddb87ec78f60f47df9f87f4bb6c6b67180e18b1e1aa4a732d6062b5c3933f4f433e08187a8aefa9b62cd68dfb44b9c8da8c72047b2d2065d65dc02154107874c5adc6dfebd8d0227ed98e82fbae0d9424e57a5a6461c9f56047bf0bb7ea7f08fd93015cf5986e96fb5ae2990625c1d644411d60e358cfa46339a2f7fd2514f843950fc18e319a17fa57e339feaed4aefe98e7265ca3076b7f84bf16f410e15a069fc0766695390ba934116a295db41116e1a75380817d2dd0e3c464a9cb66305b7109771dcdb0f768523dd6c94dcdc0a986d6663af426aa49b1237ce5d02d31f8e3f358927fb440c8a0b8b663078ada26c0d9de16aa273482f2426fd09b887e1154bd0f1654c0fc6e33e71c0996ba184f02e58e83d13915a76a4ef23f2dd807a4ba4fe31a49688b278794a29d5520e69eebf2065ad351ee22ca09630480d85dd5202a7654410d38e7a612e03b043159120139e15d4f4b9e9d13074d215f2d221674426a4286327a8f29c543c1be453ae6581b9333166a50d4a959f2291357a06d673b4cb33e72045ac06ddb54e918be6539be7f9a1e2851eb04d4468748180ee7a83b0ba8a1bf7895404fe0f7e161874e083492cffe0288bd6c5e83448829b95f91b313eb7260e328e633e3a9367d5abd593bbc12a5a6e26259ecaea8b4bf55e0b5e5f6e47cfd90e9ee5041f1f0cb4962dcf1d1e992b7db38feb3e5e39823554d12ffba7e0b4522c8dd490ec6e00b2238675b52225df11d19583a03de595af04a4b00cca1e7181cadf91e0154c6ec015f9cddbfa8ba8c15a912b674ef750585544fa37a1e1cff741d0a20930857c823cfc785aecb3c1ca4a73c5b9c3c60031fcf1097c9e702aa94816c62470004a4a2423a02d14f18652f7a2d5ae38af0d73178d596b1f8a46a3f5ba81c67040d2c8daf3839364ffc0a9bf24fe2421c4ada8854023ee8499f6acd76f8fba790172af5ca780ef66cda2c02c4562f3142b38d7468f022805e77bfc6e2a4560b85fcaf4de5418eaadc8ca09b83ee5b3c4fc56bc9565b2b64b06089432ac951a62ac692695f1043568b92fe4bbf830bf24c88d68b929727ac5fa84c40420cf75676fe290cfd1cb60944dd872b020bb2bf5efeb444f76df7e489548fd602dd436c52424e5c95d872c622c547044c8d037a2917789b32ce5f888cff52f6a5435be5bff56c3ed74fc822a7cba64bba26d241e21f8ee01aa2634c379313afb5b5dd315a8df228f9eae93ed7fbbcce1c51cbc1fd06ab35be5583bd076944ecafd4a50d684b8763669c6bb8d31572236fa7dffb8070ad241dde6576712247d09dc8f28ba7d2a655b863d9ca061a63c715be2474165e55f811a1d1146596e056fad11a8c7c62128c4dcfda8e28892ff9d531e40498d4060f3ffb66acea9883e9d7021d8fbb82ff337cf8555811e67e6b266d785cf135bd38cf8897c764434d347c945005f828a9db94f4c45e9c177ea8a9543b05982d2eba7bc0009286e31d8f7a6beec62cc160daaca5ce488b6dba7b14d9251525ded51f11f090a391c1b437d3515c31d8ae33ea2aca191219dc4805b855f5de09e5478c9d147e742af695659ca33a4e80e8ceb3bae8daf8b303eb25f01e9a261d81eb1cce6edff154812d9d674859effd60d140115d636d0e2d641692aeb1348f927d16fe013759ebb3a541ecad759a10aa31f0b71c30747618cb2261fdac9735499d34733b3cb8f2eb8faee765248b069217addd74b154cd1d5ce334a01574e92eea10f06651f495507bc1816079cd83261e1b1938f5ad7d998a1508c2b8cbfc73c3f9fe9a375dd0c7ec1d8d6a86d1c01e07a150e1489a1518ad9ab1beaf6ecf31b5171fd96c0195e0cf789cd45e835d7df5353b836452c7779c66555ca7b5d83eedfe6f88305de6c93c29f59dcbeafe29f109d4bc708d60e78be760663c22fe836ec6b4846aa21e052779d733ff18ecbe9d36a7c0e6506ce646a1601b1263096a9698ecd0089dd2d195fd400ab22080b270987290e13ebf62569e4e4dbe36daf90bf5f7ac9b52e5b2bfdbab88beb7b2888ea608809bb00d11176b6323523cfee87d632b7f05b8c75cd4de8526ee9687a0d49aa82a247b32d3f50b91e5aa0f441986b1878bbde94f6af36ed5d0eb4ceacfa9181739be6645914c9bf9c8ad5f021d18029715f64f9b037a1cdfd3a8647193713e6be0a80b9a8d61716944820162cb8b687c6813bac60249b95f533eebddd197ede076edfc25010d8fae8571425e33cda59243e9dc3b5694b3d78c0c80e0fbf3a0cda8a311ac36b47167efa518ace7697bf2578e97cf7e0e883b8f868b0ad0cef57b4d37b088b3717b5f4d7d61613a25aa6b935a07775a9ae2fc0fd4da208769aefb0c89f7d2f87c9aa726c5886f020da2be30da801fd200e2b7ede4c24f65a13516997d60feaa88c613de6c95a45c6efc5d7c1abd978356df79ca0ed4d5494d1beb8f23b72dcfd9c552ae1d8904d07ee4fd428b00f3a57969465a59f523072bb5760dfc368f8c35602383e7f95f080cbe3ac2eeb17ff5bc56e32ca2f1349f0252f233d95ecdf3734378d623ac1b4aad5d2d26a97510966b419bff99edda46e0bd957194bad673e92cdf842090c5ab7ab62cf196ccd7c72cf832c168b8daf776a045e8095dfbe24cc16967ca9c96d1c0f42d49025fe22d3c544710e2d5075fecec7ac0015a85dd69b62133da76dec6a6de58e1d343ee7aea3174a190437b901021a7bb3073022506da1e06a8e223a8f9459474ea1b9502c2fbc44adb53858484b1ca39acd04ec176bf3d47d508b5f4770c2fe7976b01af251d49da1236483cd01548b85e5fb828712aded174683a3fc2776b2fafef326aa574b3410ed2aede2c3318244264f4151747f10c50859226a9104329b62926a5f3634d9a570650f31328236ca3db955fe290ef3fd69f1e03378b9d9396dfe6478ee623324c2e64c5233cdce4f5c63d1cc5d0a6f9fc36a8d6e2a196e8dc2807172499be13ca2e61925732c0cdc93610142e02809416462b0dd9329c33568041de61948100b6718661f2b767af959012f93bc69d1331926a06c0f4675157fff9850fe20cbbd339c472452098d78e47a588170d02531e985efbd1f4820d0a1afbd6fa29905c9fbd6a69ec4999d6f1ec48e21cdb4bb4139c431c127acdbe3dc2ae4818a0c8fed64b203f5587c8d3935713430b99fdcf456455b4d55359f54cec74568feef905f0980dc46a784f65d0b7ec5f8ea70eb3f53973e4de22312a7db3d3ff1e48b284908226bdc1fbd9707a0942d2ca9babf2f568dd9391abce55bc81bee0f95dc1885a47450016ad810080fcb4cc4ae617c1b6a7221f4031039001ccd8f0a157de7944f51e14e8b5c7ca1d753d54fd4875faed5e0f21c172d893ef11627764a6c5b4eeab3829911ccade3249a0b4350ff81c46639284fda4671cde1c287ae4ff518d959a6860882e5daf2bfe0dc8232387ce0e98609291a51d642b46f22b3c4df737aa1512b815fea13074dd716f092d814d538893475a65d894f45d062064e14ff1d9cbba3ef2264b460142eb64b86d4764c380f56a13461267ebe9088d37bdc1d749e708a01e2e0d9c635db396d53281f78f43998fc8cbccdcb334857d2815144880db57efbbc9f848f52451f803bcd2c299b73dec8a16f336ff162a57d2af812d4b14182f425e38c739155005f2099fdcc2d1b7c0df51df658a89d57af1f71142a641f2a16ecf6981f9a0d5b8b94edf0faf9bb11ac8c3a169228b1d9ae15ca1cc3c6cb6a6e5ba57597c3fd9b577c831c6c606d5cc45aff65affa6eaf635a0b8270db7b92f4d79dbdba5ce42a6fbacfb7b7218d9dab4ac39cf7bf6dafe2667b3c80fb82a1e9f26a7d0e26f45dd1d2dd1e1640445cde97df6422de7c6c68c2f3c723beac5f6ed6fad3ca4a0dd66bf53027761dcfc93b1706dc35dda5129b91d802a7e26f16b6fec5b9be3faff9b3ad2688268ebcd3f96b35cd8a58f4c7c2014c35ebc12421f1efb8fad8a326d43b2cc2ccc26ba84acd1dd76f4c392b3ff1035c89329080c53b576622bd20c735db6d2c5d1c1520e20bb12f35aa494d622c2e6b1cf38d91f8c4039221d2bc4dad97eb574690140381c3ba1861896517d839278ef812e94dea6c2412fd3f41d960911bfbf6f1ec97efd620a77304fc1d59028990ba2e744da4d88718faaaf1c9a71c888c1bfdabb2c9c9729059ddd86d9e3169173338539ba35960b33d9af69c29d1cf08f7ffeb14ce820aae4ae48c925d2c31a5dcbe9f1da91e15adea7aa325a71101eb65c236df1b0235b5f18a822ece294ac89d4f41f842e4f5f517bb423e1b604ad5aa9276b28e03de674eef55e243e33b04231175b2799204ed03e16edc956d0e843a4ca6ca5923c4ea22fb887543ecdc2f7cf9f021ff06b7368e4e34b45af3a1c2b0b9d5361361560b50adb369c161adfe1630b4acab18c6f93667dba9143a6906f966d70ea5db2dd7777ce39a1f00bc2e4456f0d6f09dd0d0ce8e13d131cc3ef8f9bb2f0f9f6de5bdd1fc1a5a53ec5b21e3670c575eded9f168b534a081e1d7ef75cce609e8aca8b07952a107d5d3930b0a86854edd695a4944305b2fda382b3ab567a6e82a869116eca4d5195b9019c9d0abdf5fd5f5afbdf61ccabe5899178530977b3b12ac0a1b8bc6a618d0202fe3d07500df20c3b47ff0347e8a8a4a9a8c870c1062081e1619752231dd00fc1f0065b4848bcb01e2ed583881ffbf2e8d602bcb2ed3790a9a78ac7a2ce320bdec2f4b6ce5134dbddc7e6b1018f6ff942020ca469910b02b615ca8bffa5f86f71ffb1af774dceb5f88b504d767eb04adeafd57382bee81a3e89f4e7070eb7835ba9f2478dbf60e71a3f7a31b8765e0539382c5f7946177004d3897e62166508bfc63f90a18f6164ae1db16fd3ba57992426e6e393b61aa785c59d7a3540189f75e7642cdde86e748e96aabac13fd9280ce9e140aa306536ea8872c6c4beee9159b223ce415dd9c854827d2d740df5d19e43f8c0ddd68a31eafbdfc5f3d7a0253bf1fe04eec7cec51eaee6ded59238c18669aa9d5ad071bcb113fd5fd145673928671af3bc12c118602c1cc49d5b6cbc84cff48c08142eda5d3d11d9fcc166b26de46f0959e4575dc3db71c2f73e4216477433e164f403605321aac383d7bd89fe8ad6841390e5085004f4e5a818f78f70515c046e1176a32a88c9a651a258fb3f8d26f75841f5ea9c45b6f29ff636fc1034a27bcbde044e7cd3684b8652a57dbcc7d19d900bbbd0f97a81ec48bda174cea6a36873a200e2c70218a8bc5d3169423c25412815da5a98b7daf9fa1139f3aad1bd88cf4b7edb21a2e7ea96e1e1269e31ac0aae31bc26fe1c43d066d67ecfef12caf2872f7cf32849ccd9bea3331dc47e1b280c0fe6381ef08cbcbf04eb857279f511e84c96392864eaf102f1e0b1b5ebb0529797883737398de37c63f2f55eee9862f9eff4eef7fa27967095dd1d73eac8b90ebe42809389aa918e30be34656c91fd041a8903e513c47f79a7e6c2d86bdb584bda775d3a83d145acbacac13b2897931b21cc6cf390fd9b71a37e2e12ba04e15e505a4656484d8e880278bdefcb6c083e57b1f571dbc4066146018daecb50621638559401fec0fc9d2219269922446985faa69ead0a79332332177b654c6c25273c91acdc4cbcfff889e89e363530735d2742b8950e6a00bc033ced9f5f4e84fae43d53790c2a7aa2549b7812e59fa229ca9cb424c36ab58ac6ab187365b249d26b6af55c588fc9c1d3176cf3179c3730811181b72bc3057af099383f76e510023c08e77d81bd57096db0a5a472024859348f15b8e96eb5aba517bc7b027c940353bc618fd9f4a78d50a27c8bcdb6a1c131494a31c50c0833c676c82e2f6ed4af7bd9488ee0acc921a85a01451223a07517ab08c00357f4926cb4c8988a9d85d3d9200d9024989637d3c7eee016b0fe301cf2bd1b2e7c55863ef2f5aaea90ac2b29395049fc0431d423b87b88df4e9a96a5989edbd3776b2d91ef123ae67770d049fc6ae2faa6347491c964582f9e78c26b331587e4b9c91dad4ba40bf143210e48baa2971319f74ef5f821432b6847ef320ea26f1f9969a54eccaf6ef23d4bc5f139be1ed07cf9e22bd27e8dad66dc460d1cbb01149065c002d015f6a1c1216b18304c956a79324544e03508734a4a81807e34ebb7248a9e92b9bbc8540c107aaaf8f9af69b2c0f8de98fd62c1c0a3cd389aeeb8ea7506e550cb871f2c4df7405589f614e9d819b2581cac7cc74baeda326189d23a1ff4102645bed2cc37f9f2b73ff0a46fb4a770f614ddf5b4948b408261ab8083ca54279d3a472d99f2fabb0bd221cae259ebab1da5b056562110b87633ef428ae9f030148be859523297c7ebb5d705d6cb9831731d66d8d5b24e2f52158471706661743b1e784984703737eafb73962b50068cf2fb57c9b3ac65e20868472eb5c448e862fa7db29eb5eedbd26b887842cfb868d2c6564d04a3f08a015d8a363d71239424a63171f72843f60242522a8418aa8fc693cf3e519878e6d14788fc0242e62a33a54b0e26929b555848a28330c204641b8e2bbba5f28d9e19ae3e99c26b9cd343c484ad7ffcd376ffc5f667ef55f6ddabd62ae482bb1b8b63a2fee8d51339f8ad4c8aecaf093c27c41a4b40f7e7c7427d0cc3b81324e6411216269f47d5819966fbed732c83782ee0a5b03b03107469ec660b796ad11259b0a79f590127a21fff340751fe6e58b63a4f35feee0229f0d7b1880392049c99110744fd3d987036c2fc17ed29a138684f89ad3eceb0e42ce6244bda8d9e87ee39dfdada2fc03a97941a0e9fc596967dd6c2e0f53201a52a64188678c409aa4a8d3ab9232e60627ece79e2184724e57684987c8f50e906cb31fdd6306330011124cd67e5b97a6f64b6add03aa91146f440f20697cb9699cedbbccaf647dc02037f81cf657a0cbb17eba690167561fc2684b8b00a0d49e3ab1316b2e075db44cba14a274774f9895392e8119751d0626b90a5dd2793e96c185be98b86d7856b6eb60b92d17a6ac2cb92c079cab31149345e0bdfd32283d9b220e0fb905d8bd3a0f90faca1ceb86b2120e4252a757330c5749c1b35ae7168e713ef1489acb6ad9d5622b6cd1ef5bf3b800d6c63a81212efca099d6b10a643181bccf7e5397bc0e02f5c0ee118ff96bfa81c4b308a9b248cbbd947bd7b9078c30429115e5b2c8cf771e2fa7ef9ead2fff969f28b95b903ebcfb3b31d01b30e8a7da59ed7cf63ca05cf8b5d44cd13f5ef8bfa74b4b5978ba2a18a1dd98e2ece568b11cdb8e444fc4868015cf2821b8dc914edc205c539ed34b178f2253ba9971a5094772778f0e6b6cc4ac1dfa4f782890ae57a6e7e99590d07ae8f76f5ef31d39c60158924f9c454f33d6fbb524f144ad2a248343bc75393f529805a2aba46433b3c688c15d0fae4e31d56b511899494fa5f96b39796fa5b2c4d33e306e7ff29e59cb57026c3910ce8681a26db0343a703536078b1a94b6600c1c99fc4dae63702bc5c9aff4da5b835b790aad4c12f791a9a2078641143ce496809b719174d2a85afefedb86d4f38a9a941e1bdaf657537ef90ec7b6c71a34553111128aa1d827501ae191cf15d284e79e3f0908122745109370bd28c8feb220b3b1821a3785b4a592a84a6098fef1a1e54ac3629d8cf5cb878f1c1b54fcdb20443c063c53b7b7b055a9f4c221f94635372dd24b4d7c9cb7a3279f978b7aa778d8a11b6e35cb8116d7a63e11c44da659d4f0251fb3c35f55313c8df6a0050177d9c0c465d75e2d46530656aaaf378cd735dacad376cd2ab4355e5057f8604b3dd1ebe95b251d71a1c1d6136cdd3413acbd429d1beb24b0850e410b461b91a089f4fca1f31f2ef4738e0455e2900e843049a8284fef25b54b7bd5fad0d5ee7db79b5a6f0c3e47e219116433ff5d9f09eb99de863d320b7a632f4de61a07647b364e3b63338c75148395a693ab4ed89033a6097c401c5a3f9d9ad4ea1774d59a14d730db42fa644c133009c9c25aa46ed01d553412ad4f36ae85e1dc0424eed63808e583278d0b7ed57bd0595f3bbbe9aa030697441e850e621c3e25c943f0d806445ecf2ed278d7c1db29aeb6d5f923dac404f576565b4ab3f1bddea43ab1cce490dbcd20e7f6e56fda87c18e18afcc04ae09476fd895c8392cddde12b1464d6ec109dde7b7f11aab312927242483b67f5501109f4856efef2412c85db6b0707d083e9c8c313dde3e6d62f3bf6257d69b113202e06749b2c220a530aa5c7fcfccdb5640834b798b2a1b01b11f1d4a30b0b0a98a9fa7543ad6afb2c96598d584715d58d7de3338d92e90e7d32dfc1b0bfba0300df15f5f72966d27f5e10ba8bb2f28457e09c669b9c0f7ae9825ccd80d40b880dd100f35eb7cc262ff15646604b12d7d7ac2e0bfbd28fd190b271494632a7cee816384110abc1b47ec0bcf8adc60438f6890605ed2bfe50f0b65823f37c698b4d4e1c949217a9b7896b6a4075ec93213bf606d24c1722ffc11eba01c89d623555428e635eba7f60fb20132062b0207d3de50b730fc14590bd8d56443b23cade5e1d3b055036361842308efe25dd46440cc958498d8f20cf63423612f133a7684de87da21a1b4d8fafd236fef7e3a702aae0a9c915309c035431e2a195b9c0f20baa1032f8721b6628ff4168d766f3a7007226efaca624eb0681c59b568d52fc5b274bc23f1d25849dbe4ac3854a651fff4ac0b9b472562e0dfc5a7cc849c1824830ee43374abcaf6b7d430ed75a82da132bd56f0edbca955d73161eba5e0ad708a71de5b18e7726b45190ed797199d9c1ead7c104e9580c17006f1fb6893780700ee8a56caff74fde3d7cd40a50985ecd3275f8e0e78f33d6f1a08b34a4044f7b4aa6acb4442ae43b00ff837ee91d850a8b8cf4c53e2fe4e540bc33959e8b8ce118732ee516f4412deef6ca3ce067571f92652ff7f9c710fbd6d4ef2c67d7d6368fe68d9c900d542e2aab1dbb861010bbbf1bdc157e9f4e6340b1215613482f0b5cb8b915c52a476e690d5c9fd070ab2a5ab87af5677bb8585aae938f3074d4c86f585e466c947cdb457656300b6d249c142b60d9ef044eb67ccb0e661e64b1ac81187249c5e580a3b2c3cb1b9a16d6eca62cb156f94722cd6aad5aeaa6ba0a78854374178acff215eb0c9cf5cb14e5eae1b23316ea7a9c8586b9941beab2271a416fb2c109c3726ec5399c258419d55729868e82e45dc41dbd996a6b056ab1f249b4aa23d2881bc2e1497e975eb2bd7cba3b8b977973cf37072acf169fd0a662132178b9c24e200e7e8a1f0af76fa2f0084b3764947f988f83bd70d22aed7b82df602af217786d76e1a76df5309fea61f9ce6ceb2638f5326104885d368b2498c4ba7ef2d5da7087321bbc32fb0c67644b2149f5091f4353973b796b0acafc54fe3e5d255c13f2d79ed6bcbfdb047d96b4d351336fe19ea68343ca7075e4e8de977c14a4703d75d75ed5826d251356249e11e15545bab59fb1f98326bec8ca67bd714f95a824e53b8203e9b6444225f2aa965fc7234ca6a50910ae28144e9d262b266d093f98420f792f32d517beed8feb905db299f75020415577d24028e37a8943a8e38becd4d4de9b8a4ae290a029e9cd9fbdefa3df217c5f9fab02772f5646871e5a5d91d81890f6fc3f637d255f8924166fefb6c5e9b283b0dc2649637ca2ea8629438c4fea74c71a811b0d3d2abf1906639dd682fe94de3e83aeba9946b33456e87956948cd4d247038d42dff88c834c7721bfaf39697de89ea2c003a091aa8a6d17c7e6543cef81fba8247fb40ff4bd01bbd78336ca0df41e8cbe8c2277659a130ccdcc44d11b477670b0f7a5feec8f7ba52b7fa05789db5c6bf07b886ee983cf61ccc54504cccc1329199320484bc9300487e0a5ab0b630893c96800327972a48ef7dd4cb3b0e0f1b2cddd907e2419791bbc66102fcd73d8dd0b3b25ed95c8645f6f566c4f06b969baa1c4134c4f6d0811b67a90a936ea8f6f2376d8e337376c1dde973eacf736293c49918282fe12fb41d64bb191254c90773501e7dba1197ae6eb13334ee2360cb718286de3fc04c83980523ec5b150a7120f87dd53292d4d715aacdb2a3848715f2b01eb33a215b327f71608f52604ca8658d360d491923aa4612eee6bfc382f5ed611c720a6a86bcb58a7cfbf03664d2e5823c2a727d43a6b822ab1185239786bd14e0d7800727f91993deaa84ab94a8702153b45024cf225522bbef3caedd45cf3e0919352cf14a9713041afcd288752e7d8edd0eb2946209ee10c36573dbc0556b54db0395040d72e53ec85585cbcb6c3a6b1059e412c4b2f4d1cff782d7a669f272d927378586c5f0ea42800a98fa89cb19d5feec3759a7c8bf2d30baced102679cc3872e8ffc765f446fb271b3d9fd97385d6be0b1b3835f2a0e28250f3041d09c8a4048b69de728133eb449b6f04138cc32998d2bd8f8d0376869b33ac70c090556090c0fb20243c22da7ea7b81f58602bf33dacd59e398647860e7a365b0aed6e796433752d72fdf200154c90423228ab30dfd0594b9bc67e26f69bce9e952072f754b3b6dc4dc059a521df3d4d3aa2dc914b8b186de45d66f931612e36507e21f9ad84b21fc2df0bfe3b27f7568846f4e52dd52afa18f05a1861b9c128ac1ee538e6481981fdeb5ae64f8ff7a12519d89ed26ce29bcce7fa0521a00c58224d25a16dfa8de1d95261f7f1aff2c20a2c0e9b933438b1b37435ef0d6af4e2d8b06500c8b612b90c13e3e90e8ca543b0f097eb6f17b70450157f905e16a5cc8ce49c61ec6c12b940eb2ecefe716b96b7010b4cbef75ebd1cdfb26021c4d4d88418a1babb6b337435911a8b36a190ac8cfe8fde0ff9e538c840db56d4a00b8664a57de4686f9fe48d4272e28f273b01f4a0cc76c7505f55aca71ff33d987dc20f4c8a998c54ae730d0b832543bdec8105a200b99c7858d28f20f7b33ddcccb2cbf83d04e67771e7f7d9a550d1f9b8df1bc176624edac1940851935baa92b12fa351bb124778af7c4aa6e02595cd61baadb3922ffbe5db9456e271b4e9d5bbe8a4401e4d76707dfa0fe095f2ca7997e0aa5c512c9ed23adb2ffbdbdb1bd212ec4aa83e4ba113a14f656ca442b7dbc8538f55c0936e4031a642f49c1a93b8d00032d1c43931feae0968720a25d757e8b3fde7324dc55cbb7acb33063b1c5e214950ff4fac50bc17d83a5c15ca81d560579135313629f20239e08991667475b61825d615d98baa3635fe104913c3ec9cf54d465f34c862fc37a2cb929b909b516e16a4c5c58ae2c1a75a9fe02b855b1569ed54c8aaf8d8fa89c9f42e6478b66033f9e7605455cc2c25b01358a6002dd38385ab24892351898168ba5d8686b7a4e7c46e160da12a69397b179aa54fc6a793950e605e9fad827ccc2766055fd1ab42e94bad07450adab0eb6d1253f0f5688b389c30dfad31454a98ce9c1ce2c9ed7548f711e0f463cf680bf89aa551a53929592565181ae612a5cfae2536ca2492f7231270eee99b46719dbde781f41fb2d10cbdf316d7385448ca3548fa9858463f502f6a0434161d567c60f15d499451979adb61b3c3b432ff2db792e8f9f501ad9637ebc0862e30a3b2cc87b56dba1a2dd71413d7265aa12f7e2637bf1dfb517f289228b93d251f5115365b3ed120e35a44270ca9d1103c2d1f4fd75d94acd96e7aa4fbee18d38fc7fc7bd34e7230e094f88f14004caf4698d664c117e5f2675098cf1f0950d9afe91fe7c89f82fcf8d1bc79404522a4195bc4cf0dc30f9d220da029a6ac359c7dee6cfacce86cac34ed9073a21629dc06da036c312c32e24fdd500d34e745b1ee7c8bf7f6c882d2611271ca90411eb4c1d7540f7e445d187888b93b2f3a385919af2525b5fb99a6cdb37c559356954cbeb9a07e5e2a1605477a1c06023f8b9e017cd44d019239b6251423541b8a0d1274869d34e03aa00457d1098fab2db3a4b1129af873ab1a8c238d7e8d68aa865f157df69600e57afc3a766832480191b0622b0300d2d1722592e02e8e60a6761d345c5cb26c6cc2354a168c9e6ce2dcb2c071a62929f7077295ee3ff8ec282596b8f2682863352aec5320550da2f5549f9e96159250e1e40ea0b79ac9162731c1adbd9b7ddc42b49cf4df1cfee74268bbbc000930d27a6f853d565fbd7a844ab3862a772a581a5d97741226158f277d7e6afe17bebe878be177e13ca77e8495ff0158c6c39e08eff9721a41b141da11a319a8f649bb1920113c3b953bd4d5f9dd757f27e9ced0b288667936d4684b557a680f61dc5ae23df4cfa46f11ef05cd8b1f852ba78ec719ccef5b03a8ec074437c60bc85fd9c53e07c71b36318605a393fb7e91448dc3a7e7f70eb407816669eadfafd3d5d1e79421aa9b062498277c4fe9ab1c4fedc8a682491fe269d925088bccd795ba46471d7d90898dd4958e136dad7b9d74eb336b613b648410f528dde47e198b255fdae65edc2e0d1075709d3455a286b0b2d17f7a69a03b4dabbe5d0d8614a3e6f0678653a35162b399c32001f07af7e306662589916349143c1c8fba6a8177e874b3f41c3edee5b1a796420bc4105fdd0eb8f47d2e661415f045cd1e74ef47bf587d58b1b908e96b52c88688d342b072afb4c7e655fcd63b6296cb1866be718288506a9f6b913ba2eab6779af075fd04c00b0e0fdaad81fcdde446a17d186ea2d7cb38b0e7d4db65ab7627f4100c89ace0392bf999796cf9b4ece200ee34d1640486c1a38426e33745377c12464a0ded7b92af2a17d9afe77eef33d983a975c00c7f9627e02f3a10a4d77fa298d317de9b18057b45c74492506dc1b3acb7724d885020332512b1f30271de1b57354280b64a036432ae0b34dd773007b5aab610459e1d9d0cc10ddda196718203db04fef28dcc21512e8aad8da3affe0555ab66647c13ed52b1e3ea3ed4abc3569047bee14694ff857be4a00bdfb1b275d79bbabdb61f805d15630c346a7ae20add58a20a59c36923c610e7863fb550b310658f2c307bcb1e589da3dc89809ba42f1defab3def9d1e105d09731a0553921f9797af57253c95ad18ceb518dd6a9fe4dc59a24f0633d9d5b9e0d646990a07cbb68633ac928439599da383f497d46a4ae7d9b8797e155166453bc2d081edbca4dba16066a068ec0ea8e197e21c79208db27deac13127629d1316d4990fca32539118baa761172da27cb79d44a18acf98cb6c72980d21cc8fa029c85414446573c2d7c6ad555632d814bc595d1df27f6b828f7b711f5e5ba60a3ef12e5f76ee215db28616ec7db0cc3dfc2491c4c50f1eed1667e63c6f3e427e52b8613701cc135ec67cf0fedfecf062cf617f5b49e58270b1aee2f74a3549511fc0e9d47f5cc4beb47848944d754f102b4e260c31c4785746c0f5e8a8b728a6b47a760cfb79be1c232d7aa34ac82d1e6702d67ed6da6ba7e6e84f752f9a2805250ffad90f1620ef220b74218902147c8c9a4cab430232b1b996605c5e60f005a3c2d2ae14523c78ead0b6d4f42ee6afd9cecbf141df294001db47e5ceed279554be48d62ebacc827b5c6bf9b13faa8f0fd61c8aea25f5fb3805153e6a2860c87f52a29c7e75aa0e1dd6e8c9296d9d77fdb64bd7bfa0a7c8636f03f9a63b58d6d7a3e3ddbc447673862099a48f38c18c9142bb57dde604b9c78cbe7871675a63926a6ab55546f380ffa5b08edacae5d721257e2ed451c876bbffc3450c2786ed80c503b9b20aaa0756ecb517fa5139a8d65f4884617c4b8594e5d735ab3c2c4e69393bed2635080dc287eaea38e12f97acf91f34f333f64fa1a6a3bf3e61344e4d3c19742ddca875c1c295560215322cf6345cfc7d2a9592d822a303ad3dae6294ebe4f6baac4a32cb3895da8e39a7b3603305234c7225be665f0012cc44c62e83ba70224612344a2ed9470221021e5375967179d009209b08fefe41c32c73dcad227b84cd3214083674e3a692871d6aca5e9f77f2f478ca165e7c9033c9f0a14575764a3b3c62bbe835c748e818a0f5160df74cd891dce12d7dcd871ac3b360af3166ecd4fda41f140398884e82dd77973b489af164c5ac01fae42ce52742d1ecbf7cbc1bcb21f37dd87b003b37baca098fd2d4f5272239dfa74f5ae74040b2bcc00c9f3c953584e065e2beab7d4a24507b9e517433bfff2624872848533489e9c2539e6e002d546c362edf9c09413fb063b79d2e78e41352bcc53f9b7d16e6585dc8ef47abad84abaf8b99832badfbcd6561b8c9b138cbd92bd0091a0ef2ccd661bdc84a1032bfc89c9b3622a1b93dcc6dff77578a1372508c5423d2c8f1cc511df440980ed66e2ef890a2cd5475b6ee64efd5ca6365bad973a018c7941c6ccd1040fc0e71f13952f2660e4550546c506efac1ac51de607788f67b8918820fc21893e771135a95f60076fb8f3892a2e27155ec5ba439b35973f890d2866c5fc139867d3e6a5a88995b58e5d480c6147252e43249f13c947ab3b474ad2cbb09df6539e8d64ae06bc04f6a0ec9f1f0131d56aa51af27dcb17b26100e1a01d214c25ca7117a74fd52b87469ea3f1462602008cde1d0e4a06dac2446372f7f199a9fb5d38689c5d7dcbbcc35796e3d14b870b1b385e2d168a56e8a595e19fa02a5e16bdb6ef713daf57c27d2b9a5f81b220b8895dbd44c780435e5086957694177867a2bd2ca4719ef4367822cd19687fef9de1097da288fc8ab0de17f5d8aa9330d6096d7295de974fe8edba1e78b0282243fe84a102631e64d825f323535840429a87fd84308f4f1518810bae5c1a50c312f5ac4ac31d1e27715b3bb32ae2d1166bd887b6143c132585a874641dd8a34a96f022ad2c42ca84fa20da8327ec64415eb8d46e60cf69444b08b31a2a6221f3e731d237b0890a6242e35556b5a1ddea83327c4b26e1f71ba501d02b2a28cb3e1180f184aec415630b0d0e3cfc2e5eb23025c604b196e0e2dde897f6bb068ded280845ef8caa705a740d3f5dc4030a88fed7f7216d6e4e18669e192624c53e3d8e57dc4d2f0aee097f783e45994520f961e540208ec5aa99e0bace418e5bac6f7f2178be4e7bdd70c354241656ec9aabc750bdb9a1fe0def4701b58daf59de28f831462a2c84bec61f46dc5c35fc1d469007b153465fb342a8ffd102b8ecb3979e8f00183235327a48cd2b5eb2749c08a52664cb08b0e44692241a248d19590dea4993d35e618755a8818e601b17a07d6de8aea7c97a978810a81741d7772fcadb3374573b79ef28f41887dd46584e149d15a149afc25770174d10f7975c1b8ec8382ee54eca6a764c8ab8d38047409291c695da7b509f366405ae5f3e160118e38fd05c1a9624245fd3336074e01d4915af54ad1fca667a7f6d235f661b2178de30cff933b77f41394a946affa1905a8343e7bc5c590c0cc7402ca2827ac68c56be56a96455e4bc0665228bf1e360fa7adff6d0320d97f2518698ee57fc92e4426f122aa05525e18dcab046ef130ee2b41eca3568408a59f349401e0a424f8ea16ed802e7620bfb7b81b26f5900fd0f0063b599679d770a18c024f81a594d9c9a0de0f33a8274969e11b4b45a9248e400750ac057d01f3b75182bd15ab2917601d63120c25917055aa3bcb736c896b29d1094c31faced8c3554f7a006a2b8bc7df213657ccbf33aff23115791ed96d0d11db723a68c1b9e6eda144462ec26c76b65efe26591699fa008cf42a0a6aa3c632e1cf709e3bddbbd65f90f9b2715c60abeb5dd15ebe1e7d5207bc12aa36169efab2f931ba0ce8d784833e7aec10fa2649f7124cd9c1ec85cb61e0a543e0591b3e8d6248440f3d58616d1837a4a6ecc3276f2dbeea2a5acc2ecfb8dc48c1aac404e9a61787e9486deacd778c22be460effc1659d5339958f264d2c3114e35ab0e731ae6f6cf53dbdfc77de4b2ca4fd6f1ac54983bf8594f1ddc6e04af88fcf1a70e2b0983acff649fc34e36cbb46604bb2359bc2314627660c53bd9088ab8b587639b534a1804e02778fa8314e4b450ae7fe2f892440238ccf562766a876a097e683b11dcd99ca3199e63733e3f805a8c98c15ff5c0fd6a06b27133437cf8a70130cd2de30d767ec255dc4e30e0f68543b35d788b2a0609edc144556d371c87ded2ede4cc9602e30a21c3e63c94b77f2fb1ca35a5bee17bfcb147f2ae986b08e4b0eeaa33ebbb82d9946c751d94aec707fded030493228c227c9b77f3a4551e3e5d3fb172ce37208850ebeb4e4a0ab6756032dce6a76591a23671c8384c943853501a767d79ffdc46b83e56017bd63def39154a85b683678a8a033943fbdef6885dfd038c9a72f78e1407a19a1f005fa3f87b9421580cf95388a08d8233a47d4f92e00e8f7e8d271f04c577cae0b937f0283da0440b2111b0df498d0718f9003d4439a5720dccfd210d246994bb20b18228393063a9ddc6af90a98d807c47cf6bf99f34db0b244e924bbaeef1f197c701df06ac5f60b7d4834686210216d60053079fc99d79988196159b18271de834306c9a1667721f972bf4c4c176f4d260f4a6698f199c01ad1913beaa7a5059af28d5a78dad239e8ea25f9742a91b7b255f4618ecd7b95c47a988ab7347a4339b36e8fd796d793ba9155c9282bee263c4369906f83f70c4f84b3dde50d393dbab257303d79e07724728ae04022fe1cd43c001d1578debde22df9063e0fd34763eff2c542dc588ac8f7cc37f0adcddba7d76c8102d5040e4327b880273a0a543f9eb7e48cefbbe79b8f12470d391612b6101b3261962e6716971136e502fda6700b81a170967a18076fd72e46e3069c09e2b7fd83ade51c0615f67063c0393a17bfa85c307a7384cf7bbb03614a8a2d7d0c410fca67f36f5977249516d193bf026eb94a8d2050953032d718b2b6335263effb5fa9c575056d2ddc06b7cc111422ca2c4b92a809ca4990f2daa193ad6729f0ee8af5d60a341a22aad94af915d3d3c146f4b5887ee02c1f33a08003889574c0e7f32e0a816f5b362d8d27dcdc022bf2979a14d186f9385aa38c0415ae0978e4e024cdc801a56967d8c38f371f6d7b68c284b1d99828771e8c56a47c2cb3a89aadb014039ced03a87354125d7cea42ce1b50656da262c248030d4c0c5d2f2555a2dc73e2bbbfe09ba652a02138c3e2807b5f9c0fdaae44e956c8d4bb9316b0ca494f9f442a78853c2445e8fc878a2f5491119a8821571dce228c8b2c4a05327efa09ea779a20dee968b7c56ca393cd0a6f15768a86378438a522f3904b083cbbd27b859e1dd261124960b7448409b6a5f1d0e1d364482aa19295eac5eac747c4770abc6d5ec8cd4a9765e9c583d3e07a5dd586025f18d138f2b1be6ace4f81ac5eb77994ca27e85547ff5a5ac4da9c3d5363733b85fefbf4e05852072bb5984300de4505afeef4ada8928242b8cbf9a0e8b44568449e7b8c9e02873236a3cce92f573aa501256e6016be4c9b250b7223a893ca192da52bf31dd90ea85f89fca844a9b42730debf0846c9b63aeddd18b5902a2ef4c51e6b204cdffbf3fd48b636ce9b664a3972ad43a8c7d8d46305ea8ce578f48420bf7b1096dcfb604e321a9601765eb39d335138dd095d35bbaec2103c4e84dc479e9ef0315b12b4529fd108b5da06de972e238d500f3e8c92da0c4b5da6cbe40dac822abbc0c238a58f762fcf658439200f95d2a2d35890163ff18d0ef649bb55dacc2a1f882d924df8b5151ef8250762bd16aff362948c53ae39498f234eccfe85ea2570de645411e6dd7fe9c28486edda459286c1fd18756f59ec0b1c3394b337686154323212519fa43b12322c7ff5bbf32551aa57be85659275b6c4c3e15543c81391239ebd999f024f1d093e5d3e7cc6023ba999e874b7c9b620e70f43b1314c1412ccedc5490f7578c97116d7f60186c878b955c1ec8658dfb5dd6934bd4bf718df760651d069ba35301f33028af792b76c94cfca8ce176114334bbc997bf1ca1596570d10dbcb01b49124d1a9d2e6d0efcf8c44a990ef4530051b6ed30801bac4f6bbf6b13c32585391cd7327293becd77018bae820b0f006c1022e3cb80d5fb46947e123e3fe98eb5f561991da45de977d546ed8c19efdac9d76b532b361e64897a7b41b5d78f7c9e120b61ebe04c437dc429aaa0ba3d59d4e503b16ceada9e9049d25c7413201ad91ffaeca879731234a6f32b1365232d1ae5c1e486acdfa23375ab34a1234fb29f45d2fc2cc48ce4935681be4afb1a30732d644f542215b6ca4a878c1d271863181c1b2a97b1eba8234aec913b45d2bde894de20c46bed21c7d862b7249579aadc170438b2953500d6c91be026c6591215594f4027a2c236a9fa90b020d47a14700cbeaa0f6ce8a1e49d88d65c5aabde079678f9d8563d70c69e9a7813e62687ec0895fcd69961b1443c73fb28606d388c2c76c05dd1b07d38a24046207469f4b9331cff94c7fa68991e9686064b72f9c603a42ae7e64cbfa2f6bc4b6cc16e870f3279695a68982ccbf18b75170fb500e5f6d579be4dab8907dfada94733ec1e52edbfd01efec38a703bb48ff18f11eb969c4ce6882589f0fd8c0f763451b06a314ad9087975e5863b548f02e40471825bdeb12a86be511d923bc5fdf501b39f21b802b163df318c23c409e2b8edd243d86bab329f3f039479a1e7d3336f7e8d15ed9aec7bcbc02e2b0c0cd15d8acb79d2d5d00f97b70a1f1739729e09074bf63dd9064450b6e202fb1f1a5fc1d8ae20712dd84fd2ee6ced37f9538a66dbc7f4eb8c708dfe2dff941ecd7d18f6424b51f8f8a1706bfc1bc683d39f68ad6fae174f1012bbf5c50427bb3db4947e1be415ba3e8204f97ea8e05b3dd9537a89d70c0c8cb616459e14f9846baa9829c0a76196a022b97f75b5e057abe37d7f7f179609156cacca8416d95443759ff7ac7cbaf28599ea42f9b061e44926782acd09f1529895bf538aa9d13f9c65110d2955b713397cc8b65f97ce7798eb4f00413cb4518de3685fb2a2080af6fd4414e462070b077e87b7f8e580f98f6358feb0eec579b25d3c4a25a0d8af0514703dc267ab1902bcd804fa8269a4e6b090905db6fa56f32165683f4c58003fcdfab247ca7c3315d9d81a331ae9c770ca020ec1365a5d4b87e8d6440836a75b01b615a242213e0a54a4bba7b350b8e83f108368910bf7d5bdbe041b2b1997cebbe3684091ddb74c20e2a85fbc053c73bc4bec8d9ad4dd3cbe5f3d4a59297a590c774263f31dcfa90dc53b08532d3ab2911d568efd757170917026192d1a9b6a858db4e8edebabf0601a42cd0120c086af61c2a182ab4841702813cc9dec8a589f9ede6f3237c8aeef852c471234223bb32ae0cc9572e0d7538a6bea3714b01606300ccf5659cd3d366d21abf05bdc2c815da0cc7e54d1bcd09a57f8ecebbec67988366e884c4f422365a8f28f6456c294248953943d1607d7065a21296eaa36094c1311e9281791a61567e35d599a8eaf86d49f5076b36201e1b9c4bd1aa52c31c06e98087332ebff9c41175d47a4de748e2ccee91b929cef97fe2ea453eec5afa066dd31d352566d1a960f152da031c522382efa7880c1f3d75181ae9f1e40a0799f67d911cedc895fe44a98e7b3bd790f03ee93424a59728ae98e0b3f264423b37dd81306533719f5ac049bae350300fc9b29ba2e8388ad1afc74a3931481188f9f2a18b3a4a72cf1c831384d4dbd48bef2567f0687558746a0686c61805879a5fc3901d1d0800eefd59dd36c850933eccec3464e956749e2a02836eda8352ebcc52749fc800ea422abbe686c290074ff64435685106efa9b681a973368998ae18258de67f812d5377e87121b5d9e2470071279b660445a86bb2b04f00567ec25cd1b102cb7074b249e6010d0251eadb4a40b59c59a6f5f4b63ae06bf35d79b1fe3b9daccaae5ccdeaf98a3720168690b191fcf8b0587c2727b8432bef691e6d9260608d37d1533ef04c6011721c5b96daa944e264d941ca88e2d7676308a549f6013767563b972d357b059379ffa2a09d652a9c8a260041365d3e80a859d5555ca8b7abb02aecc8147c20ef24fe2ee4e736ae4e562da6d5c03a9a364b5eb9a9c00554fbde4bd2593297c64531aa55aeb7ee04b8eff2b8e4982bdd31988db77bc6c17f895c5a394a290e4661b818d853adc8803accac8c4cfc8ad18b8f221566e7b02dd6015911fbf4cb446e8c4696ca0cdadd7b184c455b8ad216186eecc74bb72dc8671f0a36abbd7b89399cf11512c40c5b196936cc666284899b29c3557b670c535bc2149d38f533e5b3a5ce37a5235e58054def7a2e90801ac2bcab890a1af0ce6b2d38851aec57d66ba671e422e8fb2015f99566898502e2dbb619f1f710ef23f87be8cfa69852f1d932d65e66411c134bef906569aab8a6ff070b19fb54cf84c587993d7cfb453a14138abc8e2edfdc5fb0dabfbf9c6eb9fffa8dc36ac9b5a9546c31e4370af7ce4176cab5062771fc59917dfb7f59e8d59e898ccc272c8ddd9e4ced09d612495cce5d02aaefb797cf59a3cc3c9cd79ab54cd2476091a0923cd586ae8df11dba45488428a451f3b8480d6e2a38b25f6ccd3e22688e5eb7c3b3860d20bc3c7b53722c5d06cbdb2fa8dfeb9511ea3d52b39553e24bf6d13bd6ba418b8e3ed66a7fd34d2a9ca0936c47c65fab0139c7b95f249051c0e9f874e6b8c17058ab41117bf27f3205c772c1a10e99d9a2c2847fd003c39601dde4ff1f7d992af11a3265d9c1ae782550cacd5598ee5e6489c423c96c1152df9dd453306b45b3768a0a129fa62eae662d7d22296044c9ec18d7769d913670582a9b213f6dd4da670f2cca5e826aa7991d569060bbde138f10cd181ea0120b047185406e6d3b4f7acdd900b2fabc9f4595acbb683e583da98561c3784c70fae3ef9283d3a5e7554ed0844a3d208f7bab4f16bd9285c1c67370fe6d098fe5677f4b562649ebdfb2be4cc210cd6311ca50278aecad723ad68f2c41f4b016d330c114dfb25c0e92bae763f26e5f2dd8f926bed5d6157e5a02c08c460c3c1d6b277aea60b6b1ceb14962eacfb9382662b8c01bd77df06d567c6007c93f1f032fa8d7ead39322f1913c4543d84a25aef22eb9a9329892291b618aa14336e128f67e8846c5a9cce8943d491dfb77f11e53a07ac71a99f376394bd56205f2a3e95b01221ac54ee08a093a9875693f23e999e9433ed888412dbaed15de63a8d201946388c73ec3bb2fde38dcd0700d33916e6af6bbfa74a9a68c3be2da03fc81df2f4faf5a9df2be4bc4549bcf00a1d85ada821ee8ed100a75ade48ffc158ed58cccda38187dc8c2d600bf83440102965d0c9d2f8538087097b518ab3e6637266dbf7a0ccb23f6117240d153a307f17fb330abb7898b38b72923c500723e74d11f61661421d00458d9e17d60b3e367947f32d70443a96a8803b7bb173fc8573f6243cb760fbf411240f632b1f966470aeee44790d64eac32a3096063bf90e43787217f63731cb0cb40101816ca826e1f91d601fae1c2e544c0e8322f747301593f2ee668e475699abe4a6f618ea23a24629c258d1e173d9d62e4aa649b1aa8a44a92ad794d75be6a66fb0234e74e6c982d4e721e3a9f79403a5e25a9804d844d6a9fd297dccc584b7465a141aee5f909b24cc59ade3dfa660ca19f6a4557d22b652e2a8bc4b152e4663af008f091bf55d6cf53552efc11a4c30aac518550aeb2ba87e0571e71c91359d621fcf0a9938ca02a6245a746df33ffb7c98c41d93a3603be0d5a7d185912710ffec39c8ade5baa2b34e94a19088774bf7ad0033d3ca112e49b68f425b49144a68f885de827808dea79b48c189706bb1ff7d033bd9a851f66b8c15302e2224cc27bf99283135e77fff06315c8610b9606517ccd51e08a5d821dcd9806009893d6c2a4929fcdd8a4f4fdfff5eb76c4296b060677bcd327d07102bd6f4b8b66fe0d00e1d7123a85a9e1daa92772de5abf8dfef873503d3bce17b880d2550c516e16a663c107384598bd11faf0210594aa9d7d6e628ec2f129ab12a4efbfbea2737e486aa373d394a3b614e71024d16cc3477dfb1d7795cada2e92fcb8cb6fcf1b7fc9190fa4eac51eac83547df64983912124d382d07574ad61097d5ed23894d12aa810140f8cd5af55d91fb5ada7cb6a54091e72fcafc52e5ea3a173344b030607bc5540adb02aab436469b48a223aeee700504eeb6cbb5861d17028015ad0170ea9b4c2868b81b9ed1685542dfeea591d4f4a7cc962b05839319bb5026cc80c3267cfdf4eb8a4d4b445391060233092e8eec346a82cfc14c854834d36c0c7c8c95c33e748c234c4f4c454209e298df8bba0ea05588beb373f1771e61772a208b0eb83132ea1e900612d4a4ebb214539342af698a4d79a879575374a87e223e5e9350528fc50bf3dded137dbbde1b51a6e6c3794dddada6432f8ac509b8ebbcb7efb94cc5a21a333397ccb833938857ed3b598ac428fb55d0c5cf8ce552a1279a84c2a25e5bd0a8bcce573b92997ab4a4ceb3ccc8818f7b3deca737770473503e1e1d02d988eb37c867f7dea693aa7c19618fc4bc9efdd2487f80d71dc2851a8ff2109927d34f79c38b316c947c3f5b6496f4bc77901ca503a39e05b2b402d659063479c2c573628110f7c5fb25940c93fb450cd249805f6872f130bd7ea34e05b09da1e4d4a6e2474deb6063a88ec2e047e254c5e15de7f0401551f7a7526c0deb5d2c0483dd97c2c01cb8637042e5d1108f6e8b71fc2bc047b5636c5ab01c4cbef900ed8e1355e1105e5c0d0f766ecfa514ea4c6edb7273f657d07b03068bdab1763096527fe1ed8e420e3b1248db326df6febd9e32590d51dc831804f9d9f3a5a5b3498864b593318f94a9c1520151a5efbf49e4a994c41ba7e5ead98ab20a699eb410472ec838d25ee376725bd6ea7070e3f9340d9319da415ab71d3be28a849b89456679268a114ae500538bc0a5db4dc4cd840e368ec428446ec50d4ac0efa0d7508db2c9b1e07e5ccbce03d4bc2839b53eefa194c4871df6ef9b01fa23e64b1dd9ad47fd57a2228bdec2dfb8a6da496b6b5cdfe335c90224616df56a9ff189b255c09600b8dab3cab157d85d22fb1c98b21a7321fd5b54d44ca5867ecd35c8c7d3616987d8f840922459bbc92bdf1eb2d5c198df7039e5e3772ebed3cc763ce478ba1f715de92abe8bd988ec4d13c2cb6b41c56d9e25ea43322e608f19f5da8757e862f78b5a877263afb580d402fa1c2a9056e4817499c8c654bae7abba89d3f710ba36983efbca0e8f87f7245a56c92e2ca5dc8f015fefe7a984546fdc5c725cef98bec5d81221e705ff3d64611a2f6a67bd9dd1e5f37f81b35615964b9e37ff45f10f3ceda1764be2f8419dcbfb5eccb3f0956a1725b0fa6ad7eab656315086b04189c79e35582307119364116bcbf1468dc07cb675ec2c48839f945febfee7575e5e684cd3dae7f59e8de855c0a6643d5f3ee37a618ab90bc433b6f8c23b0ad8500ee5778e6bcc64caaa0f06ebe2fc558f7248a107356dc50e0d3423b4cd1242464c1ae862d4a11b39d7bb8c4b908bd66037abf47b0bef24f4554d2d936c1d022017d52ef3a0c0d4138b4d2638073cde4e43d94578f52b0c93ada83fc6137de5bc2be46734a12e9128e726946ede8f78d929a3214159a208fe73251d1f4aaa8f2f19fc87ec996e18cc4475dc9a11ca7396e5633f75d954f6b82d158860b7211696da817753f81672ad64dd091fbda0c833557e39e2103eb8a831a071daceeba36e6e12d29c7b9ad53b18a11c532e70b14c055fbcf8f9f0c05299095cee4fa5bf845cb8201a17265955571a2b1a279dc6a5343c04b632618c442534482700cb8ba19f691bd7a7266d50e552f4afb3513f3bd2dd709e255363a26a3102d7663b86d59bcd163c5287ec894679878d386841b604a7f363b6c5902f313b925ead9e736be16e5723617077e55965a0cb1e470f86ae1bf9bdfa6b7c2e17dce992ef3a4c91fc78ed1dccc2fcf8888a0c4ff45debf27b4554bcf612eec47c5609bdb5fdc452995d1941d7304ec9ff2330e2c323a87b9ff5dbcdbd08269fb9c4f6daf954dd6ee1d227c3aa5df9dc29bfb0bbab3ec3624b43c5b4adad5600daf951266794e7b51dea738fd3c40745cef6209e8bc1b67761e3b947bda18f730bbb1971e029a3d51cf335866918b8aad101b95172209bebe89979cbc199c926faa75a4f5dc34dd0a379ac6849f8d6801f74535e6a75d5f8aab61d77f3af324608419b44d4b84fd4ce41922ccbaba93e2730b9f965e8a45160a38f03aac928ad2b20a0fe1157b0285631fde665c3c9d0edacf090cd0111f2a918ee9afbb3c0c9f7340265cab90c4ddd221a336c5bd56717b48fc4da0f0466c3d55307b84e94219bd62f146a22e12fdd0ffa1d2948405dab0db39fc329a6329a3d4e09dce7542db826e4627f9f15e2d0322c8a9b764f195c0483584765cfad1f2f1ea01c24b3a80e2933ce3ab665d078d4e4f3bc280edc3e144cf1664076f8d0a6d8eac838d7e962af378ecbab0750ae342703f95dc9e170ef2f35e8640d88824eb37f31c55b0d00ac09308e33bdbe77f678ddd27ec8fa760df38bcd62f6375b390a6a574012039b3cbb2ca64c2f1d31812acb84bf5c22c52413a72ac6b137d55e3c09107c5eb0b884782334d8cbeb9ac8eaaaf7e06f8afadb6086f45f1a2b2c2a3d49a9fa470f711784c47e4454bb63fdd41f03de2005a742b1f5d6becf2e8aec9604795475f251d8ac38a2cb18c3e772b1a94664732ce69f52d7eda8cc6b5fa9cb2c4f730b8129b38355164252d19c035cad464888476c5773432dbab13e102f1551807b28eab39317336a8b2a8e0f77187f33f45010c82bdfd6d58e95b933a2926230b9d1e21a63ef94696b761392adc74a77ca53683d17922aabf8ffc0bd69d88ed42bdbeddabc7bc800563be74c7a3cdb940c827e6848fbde065eec235695b02ef9cb7e79529d4a3147aa54b369e120bbcecf7602a4018a90db4288e199f02e51544649169b4ed891add93925d970335e197b3612320a0ed3a855dccd6ec9d6cb2770f0c29cf6f13e7e9420ab98b44b02e091c2d6b9557bda22226ede409053cdd49fdce1cc136574cd436994866c664b1092e2ae346803a18bb79a0ef07dd9edc86edd2b3622984cced3f4e92211a3e6ed502ced9c5a7453f2b1d4c87f9b43f2acde3f923e4c83ba186b07fe583d2546ae8cd797ad5f182494717d251de93a16e4ce74baf4f82bb5b1ca2ec3d30fbef40dd44d536cf7a8483cb45f342d209509f7015009c171876405751d526096a39908f8ec197f08ebf1bdbfae1334794df0ea5e6126c9e39476798d5c330a80e2a5790309b1c1ec5a63501e749d88b878472df39b1885950311f38be094ecdf8d7563cddfc8e0c1fb799f9da7c76e39b74a70de2a88824fb7483208768916e5907c6c87b74a94a2c223c40e09a4bde8d85ff5cb6c34c6f2330fe5c55c8d67225e4c6448333a04df38c4ce1f0e3242b0592e2d9885142e8fd78d42e5ee688e86b489cbbc54c2ae950a0f69478c3aad7b8f8cca6b4fd3ba011482f3044d2ad001e996310ed4b50545eb4432cc06fea784d0527d1676cd3212a4f477f66ab3f8a280f110867bbf9924710f026342db240ae65d6e18ce0da477ab55a936ed37f2b3d214b23d8fd8a51cc58517f9d7ee69006da4a800d684869c3fb447b6b23109c2b25f3b9488c8a9a9b36237dbf4fd6b3d9595655ce2aad0f668c6855b99e440f342882d3025f11e8eb66d45a1e31e54f436259af3f44d53524068b7dba46d654a3e0c82d361a1d9cb8ca0a4fed685492ff6cce8734a1367a4c4397a54d1893c7cdb5877ccba872c1596cf54f1a996c8052d3a2a5b61e4521b0e0225d3eadcf1eea26decc92cadfced0df7cecf9e659c67301cf7c7efd5d3fc412acfd6dbf3a3f61327a7e50a8521bd0092071351090d41e8684f843474159aed53c63a8df01bce035441e5a803c269d236485bc490ac052e06317e9954b20140a790d7782063d6d430e1e589c46b82c0c12b265ae2d466250d6519b6e912c8cae068bceb462c1d4e397472d8ba99685cc4cba488f0929d30b7b9eecd27dd3738b6236a46802b3fbc6bff206c0b214d4892b476e834276e1d577cbea31b88d698102cbc764d0b1ddb96dc1c0ab8f43b0590177a6978207d9375791415c3011f533bdeae1e9b397bc4298a3c502b2525a0d4ec7dd06324285298ddb1a95b8a516caf9ad296bf7ded4b21738124f30dea1f95ec7ab8c64a79973d331e8f1a11cc8dfc27f240625a1a31f96565056e855584070aa54dee4cc234a7a606d1199ee36947dc55f7e946ec2c9fc8dbede55dbec9c5f5d62f82a22dd9b4bf453375e23337ba28361ccef48398390ee6a6f394c75d32e2efc5a35ac3a86a022577451dffeec63deff1562f9d9e0a42822f5a9ff6c4594784b74f3e8e8f9464ddb5ac401a6724f0aee9a2a8ed9c72b961b4d062668ab8255f2b3cd06c393e218c3cc9d2e4d5e51fc28ac7d6e7671e36f3e0dea3c48a9320f2bbc4e65b85738d25ee4bda61cba8653c08debbe219f7ef7f2727a4735d2ff176506463718e0eacef6c96fe7d2a35882260839a5f329796a73d83f0b94ba634011a9f2a0573fce7eedbce1d7059998d8698f1d98414d6bccf88b9ae997df0c7cbdf7eab17c9b48a0ece6d99f8d75e8937fac094b47fff8c0065f33ad9735400138ee250ba66fe72a0b9aa4c31536d1b8fc3450c2e0fcfe9f40dbea1853fb01ea14eaacbf13e116c59ff0b67138790cd263b4b9a88dd4880aa937f04414f55e9b36e1df3823df3b46b32018b8f676acdd40211f1130176724482516c4a629e16e2b40edef450400293277fb56ad8f53195c1066251dd07f20e7c09bf1402160008d07e038b6811947bab62a045c16784f533c945cef4228ce348c1bc8a2e29498235282c6502b33726191aa757651417b7c25cdfdd7884affd87e9f1dae2b3fb8a0e53219b6077e16719a795c2d11e3775dab96a25d4f90c14e878fe8f7c3e7f70da6619b6d8490948b8b2242bef4097b86316b0a18c4c212d9cc85bd20ef076ed9f75c16a5906d5306e0e0c18de7d114b0cc92403e1f708dfb5754615d542c9f445184a5662ae1f940e5a93811d156a31ed1bb71f6c5a1f60273c118a42399f5f08711226b8366d292215f733f420ee06594e7b1e2f6b1662828dab87d0e8939a2b4f2389065a1557b385d6b859a67fec7371c4f89a33588c37bd18712e35472a76b7c116f0542de638f6777c4ae5c744f70bc8ae96ab0be9ecd6de7b9c3c599a912a04ea19a0e10e1bb36796ef0182192f90c8395ec8953177a766c202cb41c25c98de3c6eb9387e6ed6973331f0842659e86eb0c4e0bb426b4650353dd66424e1fbd4af48c17160efdda0f85967d18555f00ca9e3551f130c6c7ded28fcaf126b432ffc4733cdef599ece18efc0dcd26dcf032f88c8b57ba2bd70d434d12324396a15d9ec1696f608888ab305e118cc7a70d2d510f25ad554d59cc9da90d93486d5e6c6d5d7068b0fab962acdf0d880d55a31095565b88b409f0cc330af0f13bf3d0e1a5d9a3c15a0b79026f71d5e9fb69239f5ee18dd804af0ce53fb217b0c20baff111e0ab413d56d29d86b21811e0179e7655838967bf5c5438570a871a5d967e8760eb0ac143d9d13ce84d4caac8d0dc791e45cdd8be2baf70a0e9079f7bead5cba2a73855c33429a2d287d9aeaff6433d07e63abef1f3e49b7204eaf49b5fa0950d859c1991113e4acc567ae3180af8d60e235d839b068342e3715e8cfa62f46fe8031e8d214abde0854f80fd5c66d57f41e0cfbd478106e61782f91df76b17f001b17c359bf748505c2ab9afa7332a6707111338d964a51e2d37e08adc16ec1adabaa4eebf597e6e18fb7acc0ba692477ae4cf0df2976287b521ca5c6754671ca0f04157d4ebc6a007f44c4af99fb320eb679c9c6ddb90c56716b34120d9a1245a70b4f4ff91f8af42878d760052a44ba12b13e5d9bb2346ac22acc92fdb5befd14b043677f2bada56c7b2c9d8763ec0b98099a755c07d1b5c1c246227e96dffb89bafff57ed1aef6d3ec8ac00c23a382f86e8587f4fa00894b2012716323f7c6bc67714d64ae4bc1bfe7de95e54b5712c9d52907a832bde9d309d7c399a8856e504114971245663f5d3ba3f8b2d28ffd739a7234048438bf05306b129c5a7ec330bab03a7937523d512ea78d35ab57747b2aa13f2e259d99d0eaa7f1648d2282b11253543c5fe74b7120b95d34245a8e25e727dca50deeeba5cf6a6eae881cf37169cd08725e42248a29702fd151555309ab8192f652bfcf57438180694a592273233a78a4b3dbe5c72311832fd4f387b63d23150d7f0f5fdc38246cc96aa9350fa3041bbc3496682def0bc4e0b94585f75c6502a5efd52c8b4f83b825569851998a709bf09a6deac500ad092e49f8a0bf2de32d17ea3a60ecefd8b1f820fa3a0dc42f1caf71b0b29f0c735b63c390f804249233298eb933e7ab5af3e7b59c6227d3934e534ce6ee0e5296f9f633e7e143062250b7840d99b52a201d0f2d8b75565595944af23e7c03fed91bc99ed0cfe2bcf266a3f13bf23d67001095d0a4b82eb6eff7fa3175706156dc0a8520c37e3576da78e1ca977c2c16dafe8c8766ec20dd75ea4ed41f7d4eadc60f1ad2118b760926874ec3729b6adc5025f8534b6d1fa4cedd1c1ef66b9822250fc65255dc1a0a43bd9be8792da3ab27fc7607bf354908aedb58506b0c06896eb3526adeefe96e75cb0a75ef846bb0b353055bb859e3794e0dfd950115489c2745dbb7a7cc34aaa741510fad410149eb0a30e96c3d386efe36b88f49b002d0492fc9d62a4cab5e5e104e8b29d87d1390c033a95a903ca2684202989bc748884574edda641c22ea95c8ff7fe4a0abb109d8784ab2381f7b7453e5c3bb1451cc50e23dd159814c5c41e894f0ce51174f9aaf284aca799e8b117b5ef71a50b8acbef31263443c01ea14bdd54481203ce5976c864afdf7b66df234c404371297f5af55ab4f14742ed07c4ca2d33e05549cb9572827c8a0f33b7a719c17d90d43c6e691aea40e42399d110084968f1246e7bb923fb43717049d63c5da3f57d009c81f9a9791e1288d5316de81b1e234061688afe2d51172aca71cd9f61b3ddbc7b28e4c7487451bfeb7f2c69c6474910166120049e3a02acded4bfe3f2b504b9843232f5d0b0c8b176a474488829f2fa18c55086676b6c6b5aa80cd48ed4e168795f835b6d1631b5f9a899f7a892a5875e2e2e52e9dfe1455cbd7554c89b1963428d898c6edfd3667a571ba49c3a11f70fa599e39101049d0ca45e5cd61875a2474816839313d4e70cddac331a90c018d5276fcfb22fb9872b771ecee047d3c56b11556140059ba3b73dec2ba4b8bc53cb340427a8fabf7e66c4211ee6af7dcd0f7642dfde9120edd3706c411cbd5a4f8055481cece69d7abff03c6263dc09ff02891f846696db25ad6d54d9d13325653099289612c71ab89378220851cb57152ce93b677f1eb5bc1733aac5df8416983e7e8b64ce20ae41069548ddb96cb6ee3ab4ad92c5bc25fe675d106f2df27d05b86ebf30dfc75a5ef3741e63d5ecd0e74ac848595a36bc8368100be4415c5f289b72293096d755690cd32be84f46599543ee97f29d34d98c43bf3c92c59031a09ecfbdaf1ab505982fca5fa65c8205e9b66d44f0b33247183b710714c1256cd968a1361274c49b6c882fd3cb621c815fdd8ae302846a4116eda068003c2d8a62ca111f31dc4c9260d623aade46e170a9f4e1d00437a06d0a76522b7407eefbd6b8fefa42ef56b89955f83d7eead0c7182fd11c2285e86fad414204e8dd89d91ffc9b685ba817869ca5dcd37ba2c0de8a3f515f5ae00b1a9c2caab52f61a069c21c981472924f9a6007f7aa3128bd2a0ede5e6545edcdfc32cea67be5d02429325b858a0ab750c957839eab13043bb9d9e1d00fb3de65d632278b6a4accc0214618c2a98ba8522b5d4e17df89d5e6c8fc6005e04f6948862cbf61c1b45bf0707a92b88dfd166997455879a8a8ac49dcda1388f8818ecaa33094d78dbcbe020749b3d536df131178656a1a5bbcfa3a2919305ecfcb6f33c5ef3306124d0fe3657abc6ba9ebdb654819d8276618affa636a3f5aa7223011bc386b77e6a804a1fe9b8d40525f4a2b2579a66414b51a99244e789d2727487db7a8d960e76a29d2fd42d4ee76d28fa971a00556f39054fe714f36f22b8d1244dbd23c4018fdafb037bf7db7779727aef80b38a4735f3e57ddca2da1b6522dd663276da159166ff965ec8330ae4c84c2a6bf184a499ca5c258d43863cb285a4bd15abb90d248b20e95d3a49f37df150f9a34fa72b39d3ee1e1a9e2581d613b6a7c6c65d6618ee79efae2a40bde0c6be49bef568375d6262ae8b69407aabe31191142899e9992cddb320550476147e85ccb6cb228931eabe10033e9c34c7593f466917f19e0378a2a4bb49dec210c12a3b4c1272d44d1aee524ec3106a062373b1b692c4dfbbc8f817ff05e5d1c5684e34e3a11ad8182a5afec24d427c18954cfec54833b52586c724a85203330c6d771cea5bb5c088a41e137e4b8743aa286303bb6f16555a561d06b280aa7efe68942816e247f2cba0414d7cd3c4b6fbe70c0ce1cc1a53fd296e825f39f599cfeaf3815a39dc6eb1a49fd2a56d3123c26a729fb7b791e91514e0cb4e2972cd6df97982010e8cfc6c67cc10a55610dd04688d27f4c7a35064333440a9f4c1c257ca3cc1cc4c93b7189c53c5ee6fc9dc2ba91360f01551d4f2011a3e3e889bfe0f9f9a7f6490228f4cdae30945152c8701efc83636fdd6f72b5364b23ca910773b0dae05e53b7cd601af1f94bd8e0c5ff87c9a76cefbd3d5c96912fdd9c1c129d6c769ba20425d9922d4e35f6022c2d0d73be94e3737fb7807215c122db37a52537d725eeeb6ff5e4e8719245ca507480c16ad1c3d3c40ec4819f2fcde6fd62f72e1dbd5ab7b7f517bed1f4bb9fb511ce5beba3252935f5e98098ade0141b8609124737102777a7261f502b64a8c4d7a274c37fa70d252e29eba61112d3a38abc1d598aa3f12acb5e1bed53937656481a004bc8a9c890da720f1f9d065711ca75f452e853ae5aaf8a1f3ec98f87fb341914e9d575239c5d05d957ddd087e93e9685c37c0e38a0d1263a4fb7bb822a620ca01e3fef6e427c1d19b2f45a9bb302ffb55ad25f931a19422f623476e48c3b29bca024f4b4992f35e60cdecb370a8c6b6801e4de3d4797b60b260bbb5093e22d8ee05bbfcecb5bdc55a76968ab4525fd90dc8debf3b59840c23c6bb965db6a3f8546e08783946ed773e4cd84b0722f8bfaa2085bee1592cb1affafaaa96b2988657a4380db6ca6be6fc2aeef53bed47ce1d88e3d00eb718a598078979f9dfa8c4fa911c78f4821e2c37a5321e45549c313be38eb9a435534fd9ec1df4b735aaaca04764db0cc577925121f2772a090901299efda87a2b6244045bae6b36ab4f478f73ccb2146414bb88c746f852156031e248f3dd1bfb3c26825371b2c685c931e27b03caab144162bcc38e8be12d6a3d9d81df996373393d1943842ba92f5f1a367a59fc2b5345438f90748ca0814ddb0ce553b73f058992ccb1516e3404b6c202b9de7343f525954c14d61a7f3c98c23a32f2a8a4b4941fd2d6cb56321a250822c061013b4b9b6b4f66ae1e8ed75a6a83f371f0ef3c6dea5f2c0e6779808340439f9f4311b2dea83a556a944ab842bc5550b8271998416e5584dcf18f267d4b9b3490d5cf6c485995b62a76b27ab50368475854cb74ae07a563be53b75e81f6093f776220e26602ee9c655c9349761c8a1d0982674723b8cfe5f058f198ef0a15e97e1ec1868ca37d19f490f3b8966dacd69ad62888df61a45a70b230f142a1d1f372f96c2701680eed5dc974cf6f457b8bd670310690b3dedeed24e2ed389069d6776468e62c9916ebdab58082aa8ca3c966fa468606bd6d680629e934bf7a76e3d0efe3baba556ea1f3512cfb6eaaeaa3678a4a4aaec72196cc30b1eea2a140ce743b847724986fb2430dda0060b366ea1e225cb9be73d6129a572da9df75afe9d83872b513e89f908c677e80272eb0ea898458a7ae368df39744b97ccc215fa19b2034cae78b1a840ac7a5577a92f55cf3b74619f10d35a6eb1e1bb0ca43e3ee8c3b35ca5b71cac4e992f133bc899be509081a723962bb1ce61b938734f40e3c088750183ccd4d8d139d452c68e0a33beb353ecef1a930846a73cb569d7e9f39354ea77379ba5d4b0e4d96148c880c3682974cfb3edf71ebaf168b7efd0f1b349398ac688721eddb8cd3c96f52ef9aabdecdbca7560cb0e261ef9f32cf412ef24fbfa66d03956b68b7619313c6d5ad873add9e85197786c730c23dc50feefa3f4f3cdc92f8671ebab0a5fafb1daf9cd1e6ad7d377a9a1ab624f9aee637110c07a9ab4a2aaa590c5aceaedae6feb3767871cd88474a39f0182d198d51f0eb6af260062c1830f3985d1c96cd872e692c552e8ea7006910cc638daf732f40b480e1fa40b8820c9ce028dc69a6d97b5d8beee22f27bd5aba7baef5f23a8152fda044c01fb8748734b889d8eab75051380e0ba19a4ca3658dabec5ef0ee9a4fa982f4d6b1d719f893951c3bc8435dc5cbb372e5b7a61104547b13f43dc7fee6484a04e2b33d4a3c436584eadb7df3222e8375d0a1deaa41aa2f5aac03066e459eec1c3e33523405f54761189beed1166adfcfee2df5b8e1e1d4904efb6bb801430f1ddc9e7bcf9dad49c040e09c7ebe2aa31d4ca2433e1a6b6674d083c8e26dc74ea60a8d47b0410f6a1bbd75eb2614d4dd1dc5eae5b5275ade883fc4b8d68e315820f0900ffd9d130c4ae2f97cad332c1df83d961ea1012cab682dc175d77699d6fed2241dcc688c8acbcce500074f8121c9a4616c5773de4d3fbac9eef2cfcc7d1c987122b74d28bb69e1e34d1606b5f69e73c967167384506785122342d3ed75c135ecb4b4d47211d7748781d7bc4a8677936b39a82c8e45b1d2b088f6a95b04083d4bfd8ff43413ea697bfb171119fed6938ea426865b9f53823bc210c555ad9386df097269a81b4187b6492752ab0ea928657f0845f20cfde153c0ca055a80366b55d6cca4e0ff1a991ee327731556980ac2c95b32e42b485271a47e872fccc7bda926b9ee829b6b87193ac45b72df273d610f895da04d2212e5e77544f37676eb425e35ecd65e95221ff1846f33b6c009ccf9b0a8b45c0bf14a75bb0d9910f8aff2291c4d822a1a905f5c5cf496e7472bb9a91c88f46359367a0cac0f69a83845b05c58b6f585b7a3d69e2b3bfd473be589047b4c7bdfef720bd7ba3d1fac58fb028d37b27ee95be9dca93ef63dcc05ef29628589f7e8dcdd66673369205ddd8f27a4f0ed93f6367a2d31687715044d9f89336e82700c2f42d3a436ec3047231f105bb6fb88ffd35998743dd2fd921a13998b91f28961c9d6ea3b15897b436a31a75450537a2f0c0e472c7ba1d5ba6c65d5503a1f7192f568dcc41fabb734fb927be141785dd97f4000289e2bd519fc54847da8f3dceb57e8fb49a35be6085ea7210bfbb585e5945ce1f64d4e72b1908dfb50e646a8452c73b9d96562470d1a5171636805f8c2f10ef8a61aa328c52999c06d745d66dc73cc17c999fae6561c030f594855d83a4941726d0a3e7696f1e85643ccab24561bb37e1b370e33df218586784dc5eae16e6b4bc2701d45a0369f0c2bba1dfc411168f15ed58952a757ec7e67b8bfe435242c07ecee1d07ee7820f9ef282d06a5a26bd478214f1df4b8b7cafbf6def2b8e847141e57855308b79f9ae07c93b388c91e99a8f6a488ba287ef1c2021092e7a0d761c9a1ba82856238ae708445f2e24897088dd5bd1279dbf1cc40e6f875d96f6056f49994036922024c1d44d7e0ff4b296a2407a649515e58efee1e9d47e7326577e669cdf252d77bc8aac9557d07137130c5ce68a942953eca939fa07d7e53f98e89008671898f8ea7aab33ce48311e251e6fa2f1a7d824c7d022daa24a60958a0584c51535052c209a3dc8e2a28c46def7dcad1e1e8d007660b70eaf63cad9536bd3652def153277605e0c53e7c3fc1ef11d089ffea3211d337b8ccb25f5472fa1b855756d7231b2ec356bd26080a1cb36e83a477dc775fff878edb4d5689f55d6327f0aa888ad8c6e938d05e692c78e5243687519f30aa0ac8faa1e36ee1b2e3878fe852b83eeca4bb6f59c8492a9ededb53c3ef95f92ed64000f4fcb19c77cf3efcdcfc57ac2c065d21e15cf51dd4a0717d8cc26fb336fe6eb90d26ff30efb87788f2d55ec1416ae735f4bff7862b7ce6daa60df505c56f0e7e281fcebb097939cb0cb25e81927f23dc527caccec322925bde9475a0165c6788d9daa67b63782592a380a6fbbd456035488d9255a76f0ae58e89720e34fb725faeefccb329ba9f95df5c7c716552eca9733a20bd32b591a2e8715f8b321d441189b7ca81513c5609218184d66c56ae8d0821cbfdd70af07e3c345358b137939710599a628e36b7976fa94846eaa1fc003e823754ff4a43980caffd0a5f6cc0c136f12aaf65b54dad89a35eeb224d8e334daede6fd284ffb050ae74cd3f53e148270f49a571e5f51f9d49fd42307c9ede8958e19f696e8918691361af13f83249f51cfcad3892eeaf10e24638cc7876d0e69f2b19bf876cc54da3f0cc197e6b25fefd903a25872304268f4ec5284150f86007ac52fe2b07250e6d36c39f79d71d62399ce9df282ba7fd032642a90ef6905065b4d41addbf29ad819b9bef8b1d1d079945e4eef43e06e848fc2582ab64c7e45ec9c5b8ae5d944b16857ef3a33cdd74af2fc669325b64fe3dec2d95fdb24e4ad36d6d7e60ffde3d09f82bc274911f5bf8a035540bacb70ec1be934d98f5600427fa29c1eafecdc901502e43a69c93c0242a7183ec9c61fd025284c80b2948fa01e2aa5b1ed974b5c85856e8ac33f52321a402145711134e78116351a2f8dd96c21efc56e8322a8c8be27bb92571fd9a25cc2f573d55c40db83e998db63211ef754bceb859f5af2eac6c122b3aca78a08130807c932aa7b23212a2bfdf9e8108c4804048d8b009b5b6b530aa779110ba7d5c24b7d1e222f6a3b2744a2675d65f7aaa0193af3f34f3b11baa153943b19996b41326fb3602a837357c954bba745900345497e84db8aa3ac12ff580519e72bc84786336d2ca8b753317a741c99f5944862d98ec30772ef18ba54c45ea0b4bde9138bdbbc0a7bda63bb81ed55f02420b3f088e0353d59291a5ad713efabe85d5addb9407c9a1eb917887900875cdca7bada4787a5216cdbb6b327df4996089c4c5047266088110708973d5db528136b239358a39033490bcce0cd1e12ea4a3aaaa764cf026abb6a70ca608d8246d09e1000a012aeeb5fed9db7b0050740a12ebebbe66fc6ae3510309461c25936144dce11985ecf37295da02d150db97c43401d268e5d38bbb2495e6881194a117da1982cc8d92a1ca5b623b1f0c4677490f3676a11135e21b905a5d699e5a2a3583c326ecffca92f3ed2d833bbababae14e96512dec7dcbbc1adbbf64a475d36b16d8d8b15611d954721bf612fa3b67e0772b9212d86de178c5143f0fb90077ff420ac8d68fb02b2911db335e2e478425cb74d5ef71a83537e3b57ce50d0ca16c0b06853e593a95348d882db04e1eaae87b41f8a56f6dd975c9262719f0cc1444685d95b318a739cbbbb03c9bf3df9ec273c9c6d5efc0b22bf16de89f255f41826670623fa08f119994f4f4899766d2ebdeb90197801ae45321bd8e5fba3d46c023b14cf3007659ba05a23cb6da64b79829e5845f6dfd40853e33d2d01d58c1362d0830dd24d21ec6f9012246ea17ac184edd5aea2382830e03b56e22d0b6d2df3642c6a571ac9d79b10f4c04994ea7da49808985c9421279af44bbccc2dd38bd3bc056027d79730c2ce8f42c87d20d8a7f0efb5cb636b6c5dbf9c36e890ec355b3a7efeaa8374a098d30bd719701ee364a3305625b68ae455d89d81af0789c1209ab1b909a2db76bd60395428ce58165b63c3d4be4e3494898167226acedfe76029d5384b4dab6d1a19b6efb64066a17c73da7d3bc826670f12ee46078a0b1a77d5c05a7c2853eb74287237280cb2b95dddd7dc5b70da177d518ec152b9ac394deb43042442fa3dc8f8e43d24d41263641036a66c509c7e43ba7e2f0354b31f643746305f0aa2a7cb62ab33cb6322ef66fd1b487e6ffc1c3d954e652ab902b0439a3fce23009b7fa82fb1f47ebd74526271a04cd33efe3ee1a39db7a07149db766033670665768efab9751b03a06a42d28ef41d512d5e091d9dd96e74b1010ff5e9391f453bfb4e36190337a87422f1a3a0ecbc61c538759144b63facb267874ae167d0433afcaff3ea2137b9afc625b91e812db18fca83e9815fa2adb412e5e88028f14d5722b838e60d2cdee2796eb9de3d642c451ac3cd8add06212f253996298ff7f234980cc6f7922c57e8c0ea4deecd34c53e4962cd3d1c8d405038af12787704dd86fcdb03e98ed82f0568c2114a834baeac42137ae2843550e23fb0a7b5801979ae231b025803175324844dfa1c2837388b28a9d410c76ec76bd251e15ec4bfa3dce3de75e56a098dd61e3047634bcfc6029b8bfe8215c67e37e8b2bdf6cf2d9a52c0e071ebc4a41490383d1475b5acf2cd57dfad08ade635c9a18239141f0f7703b56c529b1393063ef0a1d2733be5384f2d885f7afa6313bafd2782493ef58b7ae7f2d549591b58ffd712d7a798ada78368931fdfc13b5d89616bed0bb69fc260f760c5b6086d5ef18be35ee72409fcbe47a0396fc94e2bab1067d634eef3bfd21cc84339227cc64438c32b01dd486242f61919d3bf1fe281e912b2c847b35bc5010cb260f5c60b7b2120f90d60b6bfdfde4d9a4d524b9587584067343de00268554902674ea4741bf8e1fa38d89974c6affc61b34b992722920c7036bc1201607721b50243394f8f2fee5942577ac79fe0fb1ed90d2d0e010fc962f4f01caba468eec21c6975647b87e534ca7882c958c113fbb3defc893c724c1f4cd4546bd7bd8bdecaffaed80f9b05aa05568e707b3b1e5887557a394486a7eca7193efa03e92868132e746f82eaa54e7c5264c1ced9ecb27fc15815a0fe1819f0d8adab74f6cfde9e72103bfac2b7c5c878b62dd83e53c14a44f106c1461d400df7c040af70ca4830da42290f1e9b5c7d20f1281ba83ce088ea7b92ad831db2275eb490712668cfc738afe4b8223a6634f275e689fcd723b7c5db12b10cc471884536ce12a75ebb55155fc65e6c5d9cd06f34dbd391586debae85b20de659425dddb1144ee5e90f1754ad6055c66b2f3dfe68558e9e9d4ff89c1274c3b5232952f9209ae6ad8f2d3a0ee1f558d5b210c081974d129034b7146811467b743ca0c29666a54125db2e4e8a9d2b1469b22ca5b017743e3db060eab7d544340d93f62dfc8ded4ef001aa5fdddd015da320f502ad6cef5cba404ee22f81b70e1a5989a0296407a5bcbe7a5e753fccfa0a0a50725420fe05b139f6fe33ba38167aceeb4ef416c91deaf382a3ea989740eb392b39bd05c93e48194bb091828f9e6163baad055309509a0091db1ec9812761808c1c3c9d98d8ad8bf2900b14a25bf2340fd6103227f166a883bf840fb8c69610b906d46e727aa3db2d343238cecfb745f583d4df0c9feb1eef50ac926c2f3e5d3a5cee978499649856afbe8bfefbe98244e46e5bb7dbad9d8c92c3d5f7a3e0c6d1b6301a21ce1efa7b8d0ac2b02a3895a8e288d06f240495a341ba3c1b9cfee8dd82c0b40d83314f52bd88d36af12ee4bd779a1a5add45170eb257451ba68984f1d413b361bf129355922683b3499d073ad5b694b695d5afb1241deee45a76a8d4abd4b2276c6061789cd575f1083778ddc2c3a092c0b92b42404a77109dd431967d516fbf701ca727c906211089b71e77519a06eb8cee21aacd6458f94b5fd80c4791e78f55695b55b4adcb5554a2aa99ddd32b4ea2854a31e0915c0eb3c74276c5a9ca104c6e7e7728777f419fb25b7c5802d47cbe7df563c073d0cac1371608b00f29d4089d8865be9e17d2817fa8a602b21de6173dcd742ea6304942c852812d28fc7ed2c363516e1bc9ebc04995ec546d1415a5c20f7ea5297cb0cf0eafef9226bcc01815f6f9dcfb868e5f885631856201cc5af3741de9afdd9fc814eca64282d328349b02a3cff5330f7ec19259ebaf06644d2d2c57f2fa9605a9b1677a7b55f94d47f4e5094bf624b9ea39fe58937e2c557a242165d6c10ab227ba0938e5d3b5458b2d6056c2de682d0a07ecf339bfd0300205f209184b7a5b9a0b38569badf7423276681faee9b7e35d140efc97444566f03cdf45da04bae555e1c8d2981f49f9d85a0976f89bf453007af386a4a4f1961c7570369428fd0d548ecbc1b91c004e66b5c65b958759a090a9ccc538274cff92360e6407aa84551f3a910d23b7d9fa370f8ac00bbbf59efee95cb2819658571c5d5b6ef29afbeffe453904ed96aea7b60888415801cecebcc85bf14f67def773315503aa2558fb3f633b76d1da3c464fa87da10f26711c5c5da457d3090dd6b30dbbd982a649bf9625b35bbcb827ed857cf4750c1a41a1f93f29aebeab23e50d5dd645e4de50950014bd38961bcad4305cfd640e4d8ddd9c392b4e7e678941860e32d2e16ab4e688eb0da3d15e59f054fb4417639a4107446c04698d9cd5cd8c8fbeeae4b3c25455110c044f150ee96243dae1749804c341e0fd15b4c04cea3d38caad97c745988af7a0ea13a81b4fc31e6714e94f4cc24e131a21e7ed699c23310e3ddd86407ad43580ab16b2d32fbb4741801e15dbf2b5430f6a620a1ddb64edeaf1aa648b37aec97efaff77902d0674625c1682d43786d5088ec5702789218c9ea0d34f18d0e0c0ba4b0549d7f96251dbebab16a69c469592a95cfe2f9b2e18b3edc9660ca50d47e592aacf6babef6bc0d8de5a264d929396f368a7218cee4ce0ace709cbd8bb64547d370137f57d8ff20f85e568c767c7a90dfd5164a9dcb36f56379cb0bb0df63f9796e508036c76b2101c65862cf70a075c8bbc90b8c29a4be0157b8400005c8cdc4505650ce71faa42061c6c2be3de5bdadde532de5c931f6bc8ea4ae82cb09bffa33b31efdbedc21647307ed69269610187676d19914ed2f8619be6ee6dfe6027b175798312aa82916a26caa1ffad08a975098929142337638391c11c26c0a551d1fdbff0dde612371529e1f4377adf1ee7e519838a710f189ac4931d6db098cbb2cbc5a72709920d0e1f450411531229c41a6a729c7c5379e4570406243bf3945f04f0e7bf2f05ac276a34199e6e7be7c8260ced72689785e194dde2ab9be9eece67cf7071ba5724ae7c4b9be91a658c16aad308745faa9f7ea5a46346b711363186bb384a3f799331821ad38abe988f73ccc8d149c0406d895f12049d1a5de99144610271ca672b002775af5f83681050305a4a2e69acd44cc54d27f86e0554247d529ee5adf7667bf487f6e47a1475c648b881608d8febbb5f0459d0c17a71f62ac28945e30037f65a56585b92a3ee33711c967a893ee88e182f810c270584a80fed19bad947c1d6499339ae0ecdf309d1d14a643987eefd01862cd97597eea50b80725b83db8c427e4d5b522444802bf738b25d0c655efc1dccf4b47e9c3e395d540a3bcf035d27618631be8f9b1d500e76c4608d1d894faa5d1cdb6f6d4aa94f27214b50f40cd1106c87a05539544f30b6e7b8fd3d56a9aa89fc60bc27ef6849359925e81896163845fba2b3476e890906014db5ee8d1d97ce2d5e127f90231d0c5634b16f661957e36377a947df7f7792be85033b3e4e6018643a41f9263d3f4f121efad04f3597a9b2cbd6353e82d26b5387ca5df056e09cda842daca407b80bb0b6e7ed21973dd9fcb01c20dc2dff689f54ab94342365be9f7a871aa5eab32726d593330b9dcea49026aebe952e0fc74682ca559bac763e42e57ccedf8349d73aa517493ddb12e04c5b69b3831a61114e09ca853b22d14c2fbe55a27d95e0a35b3e264522e587d6013414fcb6aa5461dde08a9a7284b778e1902296268156e03008518d0726181703705908faa8eb99f6d96e5af1f7e3d5310216efc774cdb4fe65b2ab827b4266577b40ec4e972f329c966aa6a96751cf6574afd305d8027f2ffc529484502043850694d97e980e44cd0adb81e599d10953bb5a074fe0a0ed2f335bd7a7be2d1a6a7c756a6cf16b27c3ec313852b58dad31040ca5c83eca2277f05563f550268ba8c1e66383308372deddc16434f80df92a31fde5115528c529730d5f27df789dabda2fd73513f7170864f42f956ce9b2a1d8672559350a773bca51e45fed3e15152ac370eb9768b4c68ceaecd6b1416691a05a20f90d2ffdd94584f7576d86303d4cd77153769a1f45073dcdd050e5c749d912dd3e8cac083959d5180025fcc302ffb2afe4425bad87149c26ad0f1daf7b9c7d51ccb645a281ea1a79458a9ac71b200ebf271b2be4c60f31e7f691379e5a544207dc20676438d3e85d9db0f6756161839c2648943dcdbd84a43bbfb472a80d03c34d37fe624dcdc4d9f000586ffaf95eb3c3d54c1fe60b0074fd50cbc9a218e2d70c423085821088e70d14384981db4d1c2082ba2b222b56135a38b08f0169acdadb693d4dd52a306962db119e5f0879760d6a7b15f910f1deab731116c7798109a56a97a28bc27fae0bf9f6521e75c7986488fcb9af7b57ce6342d631277b87fe2426edad5e33450b19a811ad699faad6d01acec736f7121601048d9549661db99ffed7f0e5cab127e49fbdb23e8e4ea02571529633c1ff45e87f415b9f5f35536f20a87f67d8ad3b4a659f79e3b327250d79595a9db0fb377200cd31ec86340746eb4f0fab09764dc536bb3e8999e491b0622e22b5f6424466f30fbb2e3d6fe7ea84d214ac243c7038da37dc096784710c5f40779948888385e87b3943ad4c2adbaf64f67f0d67b537de409af37f5e5c1cbf995c45f72d5c07d34fa51b9f4a873fa258341bcb64ac6e7150aa6e7ed7ad432210fd3c6c8e19f4a6c812c27c89470c47ce3b40f7babd9cc5be2876b9e6fb54ad933f4bd9da37a6c4af298b39739da950c8633fada9c2dddd87fc09b05177012c09f0a6272518fe98ad952ea56b1f508c7459607543fc21f38320c5d0b42a2f0130cc2cafab4b0f42f5e28e34c840419ce1bf319d65327a577c85b6c9da51c1657c8f69def4328cf38594cbcda9f6abafaa89bf2800ff98fc564af3f794ef565526501b8d959d6da139bf3e7856e774474e37524655eb9c67f569dea1a1b2c6aedbe0647dc5dcbdbb0b28e2d8804c758acb70d144380a63ef84a11729f9035334d35981d811aaabda64e46c46ddbd8ae4df17c006202bc30e995a1a0abb4d87ca24061bcbbaa2ca83214ca4909a7245258cfeb80cbac9436de9db88037fdfa6f2f09ba99f8a53ae1185b1627d1a08447d219fc27b19b8eb08251e5b0824a515b8e24c1c9d3e3065ff9fbc76d913cde14efcaa92b3b9c5319ff3d0eba11b8f0c96872dbe8625915406a565bab94ac9cc48daafcaecfaef5fa2b5b2e323e5e7a3d8410e60c62dfddc6e5d429abd34be885f7e043b095a926d418fa53198fb995b13868ae66b2d70fd248c478bead0b2091830fd902b7a21c52c952b2bfe52d4ac2941979949e7c6280c6bd07b193c4deaceeb91031fd40f71490e3afbe7e5fe2e6727e469f262e174950799d0d614954cc2f17e2e468eff3df5bfb7f9bf080dd0e2a23af0a1334a584d134d6b8cb21f97f72b55edf92f506ea02cc98761589fce7d4aa329d5ca52ae61baad0a3b1ba59f92541ed02cfb43a79e134952167a93621ce22dab05bbec143c82978c67f839de571ca6525bc50ea35742ee4e28e89734e33d843bb04c3dac22d74187a176c41932bb81cbd1177e3dddfb51ab23f6a85074b38f32d53c7d383c7874779d61b46ba00af0059405d2bf9ebd92661567da537da6146f468f5ec208fe4a1c491e112af89e75627784398188fb600e58d089cef40192daf4b4e605d6bc8ccdab6a77f41c4a115715b59ce226f3f6dca7bcb5d1520676d9acadb3def2a15364a5041aef1f3ee4af804e55d9a0ec890a402a60edcb6132e9267a5817d7d7e60dee00789880c0062a363a7b08b16eb9acac45013577e74004b98ac82c24f0e669073c62b1a50331ee24315fb460d1d716817bd9745c2c30fa9f7ad812e7ffad40747efb5c2e142ae9627aa1ac18bf29b0c080ea0e3c6be0ab95c032cb057c68e6f8388d9d981c0b2fb1a7575bbb1c118e9946d19f672b1aebac78d19c970eade19716cffd755a8081fb59224d51c17bf24cfd37ceed7cadbeb5fa3bc1d8d4675ab55edd1c522ab1cb6c7e7078a4e09f73141da5ac12f5cd5ffb98d51f4ba1156fb396e336efdf2cf7264b154bbd0bbc188722e874612dace1f3a8ee689296314717b98dca2b1192c0be0a4c0a55f3c46a6a9b595c331f163287b301eda2787524ac91d05e8f3ada717ba3aa642eb5d94be3953d88abe0a02f64cf06374388409bcbc6db798c2746b0c13277ef7848870f315fed498e1a34df48c9ec45996b7088ab44edbfc561ed99f8356d3f31aa1f7fd5f5f91c761ff243a137169eccaffee32eb313c08479a1fb892e887549d33a81ddfe696894488f2acda2c5142985370f9275c60758e08c96474ae2163294bc233e53750b139c29f25645304ef54446f5b78e68a35239018fc938701664c0d12be4dc23cf8556711fe874b3e41340cd453a2c2cbb6b17a0e06be11bdb495efcfb0d13aebcb7255353f1ae9e427c899c7c59f75b78fea40044b9ec197a3b5f548f1182b9de4935f92e977b7116823d577b2d85895eb2da4b0a73b8954779558b487c4947eee463fb98553289e6f47091512350337c55a7ff4d23641b02afad359122c890712ed00e3c9893d947124723e5a98c8273fe8acde91ad2f456e2507cab8251858cdb0682fce7545ed497282635a2dfcb18bb1a8a404eef7ceb60506e6b2a8d220473208d5d290a4161623c445748d06f9a662b8ac6261eaea41d028e23fe83600486a44965b827c69c215852abc6cb49ce0590d2bca489d236849abf6cce15122afcfde511216c7d5c7d26861438376109481d9808f584e38f1706a14d80b1cb2e788fd62d528421ff58dca4296268ee0030ff691a1af69c735c5913580fa6ce454ac3ff6df66ff160623863072ac72e6676a13638248cb9c96ad93918af669e5f19875836c95a359603942c2909788c38649858e58e1c22b8b82a2e007bad30e978bb176e85c2d2120772bfb477acce974883e116dd294b446edb55c62eb1d729e97fbcaae677a10abf45d4e367d1cd8c379ee4b198ca8d3d6fb20f70d8ca0267683387f5bac0dbb25000fe1b77accce0f1cabb664746a7045f8db6ddf04366e1746c647ed39c3afc554f0b6f47fd822d0b5dbe37986a7343e6e50a1a1c7c1e15d0fa1a3df42a6188c546ada823e71c35d3d3385e8500c5beee3bd10fd0209833209abfb75d57646a19e53f98acc60d47de7d3c8859940533fe5db3bd4ebc94e1207b5e088fe9dbfe6674afddda129353a47ae37f117bf2be3a508ecc82092239cc61a0a3500b175b0a24d908d35ee6fa2616b6581180a8f35129a874e566c8a45ec67e90d72959072c2d2f0bcde38d6770a355dff6d814e4740728737e3fdeb20b19c15643d478e3dfef915dae196afd73b3b1e0c51f2c3f3b903c6700e679883b1fc811cc299324a06c87b57d24afa22109960d5f4360e11797c8e895a80c3717b59954c3967f92ccba7ee4bb19099db1b8bc64e5ecabe05891be6f0b721d095f6914195e639759255fbf15fd7f30cdf03238624a2f989a05ce4874747e4847c866e483d38b9a66e4bfcfd17f1809ea6ae2ec2f2d2e26247da13ea778cc808e8f724e634f1f14cc77cfcdb007876ba48fc0aeab10577390a309c848aa5de483bbe0cf3425d89726e67bb23734a60310794e7f1eb21190a9520fe6ce34b7d1c2a176b0960f010c6d890685f85be2d6e92122734be1639949241c1ab6463107aa75a78a16d84da6a11a205bf9c02cee9cbb725feaa17b368aa218a43362aae523331a82649a26df2d8441ef5bc099f3c303641817beb83ef4dadae0f728a11aad460bba24d81b1a8293e7baa33a64f2722729f539a107dbbd9dc8f9316a41a618e5de2e727086294ccb862e04bb8beaa7d1de3e6140dbf7476215a3fd20bd6b53989f52e5a09bd7d5a205085a686f89a737e66dccf5d157a77c5718b64727d471edeae621c06807078b8b46de1a90bb1e0fdbbc466b93fe3e7434dedf2d99b452d9aef3490e574fa0103f516a6a7f5c5375de17ac0eb342010c8540877224f1d5754b93c916d0202bea1bf8e50b89fc985aa181f2e7e35dc676845957ba1975336477edea52a53c176a916e966bc39e0c869f1f34212b319f6d14541546e8d6d05754ea29db3f682ea2616dc5de868dfe7553cac4a2c1b282274518fd68aa8e073e246b8ab506076be398849b3414b91d1fad50636a62b858264727a310806aec9af0a7df441566f914f9593a5a43131fff8747d6f35ef61e9eb48c08aed8856903015a449906f9c32e1dda8d0a67e5aef484b79bc910aa3ab74ab026664f261502897aa90464ec2f1d090e7467ee0702c92460f76ada738ca679fc36e3c077ccda5b1e0daefe20bca22fb2fbbc4dbe7debc09e0075fe06e37e66eb1f0b5a14c209e546c1c9291eee7a2d705868ec298f12facb5f891a52c94107e273166216c280ff32b4458f1b1b70580879aebeff4d0294734ef77e365e98cafbd7d2e89714aaa9f480cb0fefdbf68d6889a4fa10549a5f6752c1e7b4e10c8ddc453cf58a6753e03cdb6d1e1184e104513e4cd8c4f32bac5fe57d79965b7ddb347e5dd265b2b000462c10725e000092be70316fcb3a81d39350289cc83d208bdaf1bdcd81c5e6ed4a330a855c3fb4437d88e66ad28acf6609528fe4145b5c98d6fc7eccfe6bbdc329dfe685bd9d57def95beb7387fb6980d379d73f66a92e1564c29699c75571376958cfb379279d413d8a1e645263882eb05abad87c9ffbedfbe5b074b8192c5a1a3e4cb06a7b508fc01f1ae0d25c87668db04055e20257b425b1ebf445e931b89803cda85dcd4720d262a291fb2adc408fbbfbd619f6670f82d273e1eda55b49d69e543de98a9eb83fa04a2df1e0bac421e0b99358b05336c26389a29e7827ea0029edcc01a06686e27bbd308d3afd147c3b93fdb79a8a7b0533b33b47061d31e9719ce32f96f772f60c99e974a7046ea2447dc35bd895dff5f2d1aeb6c887ec0ad161ee5e417972d3d08cdcf61bfed6b1295adcb9862b9b9d45231367d2dd3613cf819620649792e3aaadf775409d4b2d282e3fd8ca51f0c5f0bd568a2f6c5f53c826fcbd1ba098a540b6d29109031eb292a8f451772232567f7abca20b3e48a17ece04505e249281195105ddc23d7bd6b779f2b4002348e6e6cc8e129fbf299377651a0644f4363a22834716f4a87e138bc6937c93bc8dc7d02af6d8455601870d5f15a03fbe364a9cd0b7836e727682dac9aaba76cbdabcad0b408878287a4bbb314e707a2d551b3ad82fb002c26f9d017488b243d6dd8c96f070ecb890c13ea9f205adf9010a324c7f9b96a57c624def04183aea6c4a9f8b116c2d0a97d62ec22d7b9de322d909b48636eb0517b4f2dbcb9208e3728c931f6fcf6032256813ad02061954791e6bf1342ebbccdbe347dda68f0097b6286a22d9f1b9d5e4d6a47ccc85377bdd521dad8ed3c4e41b963578dfd4a35987ad9e66b090f85c0f7fd0f059ec12ec8cd9f0c6a22bbaad794bda6dcc39c81472a373beca7a2262c8a0c4ca4eafef56f201fe60e51a2aa6404bce6fc5e76e6c9aa3ef21117daf1e286acd7324db9995e4832f1e92dc1f7b07d0f36845454d81cddf06f6a559cb8c050b93f1535a2c9039fd38af7dfc64362c9032bdcae27a0c393289bb2fad978ffc2051dec02886724448b8e9118decb4a63f6fe0d7e4a7aac915731d03ecfb1c38f41022914634b8121cb6302fba6a191660fcf3cdb534fec1c47a7a99634fa7bff36b9eb94f27172bb9c7836070af81b37e12801d9538e43d22d94ded7ae32da869e4830de024d6df2dfc1d024d30670370a6be1a131f57ba3b4557f30418ffdc984956fe716f0aae6aacc7ee5f818ba464c61137cdee14bff879334a480b6219ef4186f8657c636aaf04d5ac0e840ff4bc2e531e35faf8a66f9f80f33481cb0b852447c672d5dde3ad91d7abc69411d28dbb2de326926fe124bbe201a6f760f643fc06852191c3843fc62b8bea8369943ddcc17dd5b789856fd37da1259f60c76fc7b90a554d2bef84df530d9e9e483839b301f2fde74991ec6dc87a2b7e0c5a3d10ffd200feaf96a9ff815a490b9356952a68ef763ba21926cf9627c79ec1308368d090b88b8d818c63015748d00a46f371af840a34d38ae0f5c1a19cf02fbcdbe287cb041a158d24d7c94a037f4264c19cd010cde118428f93d8eb21091f7980334fc1cbf0450fb602d842da8ee001d7308f1ca80fff3274c81843761c7dde07034f29241689f25cf2e712e19bc1362d8b81402c5437ad621b5ddd0446b56b5b044251f887eb5aa886f9dd722bf30bd9b6af9a1107176306b4c3dc8f0f822743c40aa843403141352187b12f22d54ffd1550674d5686cb27abacb6c6151f3fd42388c97417e1d32f5d580245e9ab6f9fd1db579be80a8d34365bf35b6d12a2a45308f6abe7b198ba2ddb0c4f609137df548243e4d0fe0c865ae253afd1c0adb242d92b14be2cf5ee56ad6b089fe699824dc2076c97186cc81098f0556f5e7edc803fc3eb87f3253bd67d6381ed704564f5949bffcb380d50e0f15505f2dc2aa4a55a0d0ff23f6b82d26ce6ed7e9e321864eba84afbd37d5a53c816cf9dc03463d7bce13949262cb663c195a8d96bc6b56c12ad9fc6e18a9a619d1bb8989438090adfbdd4af1cf3737d9ae36e7cf6c73b1de77db6fbbaff1e472e601a7b1b7fa22f399cc937b7e0b3db987735799565131790ea101e1dc9df341dc3f2ab78a3d1bc1c2e60f192db70b4052ccbc450575a06277a15a6773cc7acd571530436cb05406b1262f5972fdd40fcd90ee84128ddc5cdff4ef408c5b0614606897a491ecda112ddd03107ee47487923d3c45a0cc404fe8860a615b442ad2b27dddbd6d64257e8c3277b8773a77dbe059cfd713a5ad69319382553a667a0a88ed47f1f84aab0dd52a9c45a9408a1fdf001578e5eedb9e7b389c226735dd9eb87fee29c2595bc4a583f9e856765a8cb62533e542c0a9a06ca2607c3829770c777689e2090a6e607fbb400de36286bf7dc9dff5fabb98925eae54b4bb1b089668a8b4254afae8e209a22af346a201de3df213c9052344a573fb0af472b0669ccfed499c90857099592850ec1915884c3800d2b12d202045494cf37e255a35ad58ea2caeddfd5818b72c878430d1450618582790b90291dff99e281cb1849f1b7b2280fc0d9fe5a1e6574cc755dd9b9ee3e951b49a891a6717244b29fdccd906f67abccd9cc7080129a83c1164f76b021087576f5beca173c9546065d70e13009ee314f1920cfba7a667f6556a1661cc3f11781f8d2ee10c43f806123d0d2c33fbd6e4fd76974f8b0592402b6df376c1a9071190f87c3a98cd9c6cb70b4e4648e3a3f776646e9a06d7d647a40fe488d1404f88bfcdade60cb8b19838e7932ae096203b6b3124148c1bab290f76e56a32b084fcff8c5199c227f325f6f5947435e737e01c859ce0153141451845dd6bcc936eea6ae68b796804d42e778f603e5c5e6d1ccc8d9c258914c0c0c696f9cbc9693d763d7609ae51b9f2d42f504aecc74c61542473bd972108012e38eddd94242f88061ce9fc61457b4d8947a7bf86984648c2c64e0d4ac982d3e306374104b894ba8d3d7630c5e2e246db197d20e8b7529d70b50d1f103705502e68f02c209c03a53aec79c596dfe785734d8024623ca19b8229eeea3232fde9329cf7ea8a1e3a0949ae0842695cf09f1f8a59487129006115db71f000f74dc72aeccd94743f1d0a888702d4429796c56d7e3b9789073eda02497c03af1dbe7e3971b3b448dc23404228c880e8657baaf9e4d7732fc1125784240d72a5f8d6d64e9c1ed1ca0f0dc890a8f2a404db8478619de9ddbb4405d26d1d4650c338ab88a52ad98da742e8046dfc714dc93ec00d0a057fb8664043ed08c667bcd3db5f07440698ef69e4bb170407c931510f0ecf810478c6f1a31ee22fc957a8700b6e830f0ab8a2687b0061b44c9d8d1f9229716285af9f16429e821007e3b7086c59e7d8a213b6f0afd155a1e130b0367e903910133aef9f7a5f05661072ec1a2bce8a2bc319bee2304607c003f2b4b60a31dcd76ed805ced3c42fba211a8c9786cc91dbe9b338a883c6295603adaa33c63b82410bd6fd00752ea79911e5395aefacb72b33f7e66f7a52947a99c21cae28a880d0ac2fab3b5be3bedde031a52265e211e607a6b5b82e1c2d0200dd9e4afe25fe64992ebc1d8192b67eb2c57b7b3b0e93ce58432cf78090692c5d28e130d9b81a6d98747c248ccb94d92b649da732ef7407af395dc75c812c27a9dff606f0ca6d333ac864f7afab8b2060a63745eac8d8d0b0d3731049b706767c9baaf4d8896d8253fb13c5f5b3698fa54f847f4729929e6392f7345251f9140e2dd893a1d27909636aade50559adf615ce098678176a38f283be2a05b29b166b1db6f2c1b11872aae6bd6574f2987a26307b9593750a9a85acb0eb09121fa1cb65e226ccf843aa2b8e2fca34f39a944404e5e8d5a56afbb3ef212b3dc19e39cf6c762ee8fa142cc5e5b09822c542efad94bf3fe70a8eeb05082e44f48c9a34c8fe5fb61a5b918f5d19f3e63f7ea06be1d88fe57810802c383da040da9c5da3db25e8e6c1b5b53bb242180a4bda07f863204a0efd21e51d6e43744710e161c7e7648949f81e00693f537e8bf7bfa137e1ff125d61a8a730f4a180018eae2a203ebab5f5ea5065017002b3978fb66739184d0f3f3b2621795cff041f9c510308f03b3d1e033ee8412c0fb72f23a59f5c438316e64c2383c4f2eedebc443c74f78aba5ad2cbe3890b22b5e728a2c121bd58400bfc9fc18a7bd3530172475e9a58ee5add00074b50d9cfe7dea896ba3aa1fe1b8e7afa02da1c53e5856dab529a52eb901b92a8a44bc8ccfcec4b61c7ea87cf047f3b87aee5946b421f18c44799c13607fac8c50e7e488c8140fe12a89258badf1ecef83facb3154962a3747fc2122b6a084acb956deba7ca5a62494e80d5a115c98870808ebd4649dc972aa10671296873f51a9eec1ee021f53cb0ac9b69dbaca7ce7e9eed0e09a5f59fc6be331396c298e46b84adcbb5b372b68350be929b4a66839ce5f0472a89e7006d0184016a3d848c1c4365a26b7a034489242e359bae2de9886bed0bf84822b345f4a6e75720cf11891b74f53a68044125d3b522a622f9951195193b931e6863b02f2b0cd119bf35aa3fd80e255e762ca74640eedc1f89078a8c493f3d06e82736c9535314b1d169e6eb63fd554d02bd81d954bbef00321516d04581e5038cfa130c970a41ba0e162dc5b7b931d7bf3e1e05a792405ccb13cf602d4ba29d366eb02e8e3c0df80bff5c1df7fdc8ee023dc95318a7606ce1d443851faedec6569efdf60ded3dee258bf5fc9a9af32550e0e7d50cd69d9aa2783882ec3d73f2f919ad259a81763ff964ccb529a54f4c7043c3ba1690bcd152d24cb22b3eeda3b933a8f4b5b38ee86f80209e76c28dda195dfc00abbe4afeb9f7d4bf4301648f30c47290bbbc1f61dd265cb33b368e2007c95fbb2f1b0960e9b4f7a908097f8ef28a55c2899bdc2a9d976efab043e6d9dfc56743413d2bc7b37979b153df5bd1bcd68e17306ff85a677aadd2972c3dc8d059265af889c1abfe2821b7576caf1bf807c2738d874b27e38bfe6d4afa00c685f06f3fa5e5a1ece5b19e8cb1c676dc96ada01d19ebc6d7d35ce976ceb17be4de9bf8f272240665959b1269689fa5aded83d7590d921d592d523bcb27dd1530572957ca9c50f3d1d495774764aeebf1cda38c00e3075973ae6c1f3e93f645067f413fea3be0ff6b4d228f2b96a0f68e7a028ac2008efcdde7343ebc1906cbbd97a1e9f8001400f788d9a74862234461c588f7c3fe9d26c9d7b9a96d6a0880e21840c1de8d61d468bf558c233c8a2cbf63998bdaf2f54229966ad9cd22937dce805ba4f913bccaaccf030a9ae7e3459cd9f21fb3d89d6e55c00985a894b62c2db3a2064abc80b98ec8960d4c47862b9cc62ec31a8efd44327780308067a86eb960ec9214b15d5138c2cb79214ab3002589bd5fa96051b4485226e080873e0ffbee409a690427f1580f9a42809b49da67572d949ff76603a5ec1f5d58280e8a178ab804f36cfa9edf33e3bd6aa231d2dfef6401d86e4532aa487c176f65cb3ae7976153da79a58b518019ff360d837fed72813be05ea7aabd363f1e47d1fec795dd0d5ecae438553b3ec3566f9f69354d1ead1e43425998468e63e044d7926de70cb2743110244c2e3e0cf2a919905a9d19dd32733b5321f74fc210b680563f092d6c1dd37c40dfd5a4d479031a87ba76060a783981e349a7051ad0c4f619e385dff03b123ed9f9c402f612732bbdd5ad83f5c320a9b74d1ad4341d129d94affe130c9b0acf9ba39910f858b9212c40dd536069cb660219fd0ac357027e5dd225c645c5a92dd5a29a28028f0e8d141becd72691d637212046e6084bcdf2b5b1409a7ef53e40522de85393c0741d355403a492984b77802c87783b32945a98f09feb67db5fa8dbbd1429568c98ab9a5aa738deae14f1149af9404d88ceabf9eacea0b89da044605090d39f49240600ca25c07d122b8f0183d1ff2df6b476c3dc8f6681d5b4edf21546558d94229ffe1407c841db03a1ffcda8249ccf756be8611f094b6b90ce300283e329677a741e9725bfb4e509914c29ccf74b15491532aa3a1ac290b80103050a733cc358730fe7b7cc66d1bc955e0ef536080563925a722509d0b312b1e206b977588e445ea2d57dd988eb7bec1ab10d9ef7c706e0241536f82453d316b9c07b01cf5f11747118739db5d26024a774313bbac91374f61358c7394bf2bd09f5e225ba9348bbd2982d1b11f73ddeb3fc08d6a1247651b372a7478d15aa81d02968d1e357cc8d55779ef29824cd1f4a39d67eb651dcacae53a9849021d0b7297b2e63267388e655538a066b7fb33d3d08a2b762318a635c8ed86a6e527fffcf806ec40816db0d037f2662207b4fecbd317a30d9be08de989069bdd1d5b4838e866e8c2a3011a0166b500a2b8375e4d9195a87130e959ef7371cd0cd7ae62ed967d7dc603c53c5fd81a0e663be5893105a886dd1e7db9379ab5c17b2e39fb9fae16d0abd5eab49c51c39ed9bbcef1697a8648c65f2ccefa1e79912cb201c9a488101173685d611a24a1e8c0a8b56f4288409b51012a49fe2507585a2d760c75be3652bd69a5f464f3bc78189ea8129d8adc7091e544586d5f0ad2dafed9be0fe5d6944ddca54fa558a63c3fe184a969807d584ec1a4cec84ab540eb2d54e0bb76feab640bcda7ae18623c20b0537e6c7616330aca1370b504e6d32c0ce3a25a9db941173a5838bd1661e69fd5a3af8264e0237323b705a89d036f34bb92b6121b11628813f1c5755a90babe5eea55a8ecea096af3072ed2592730e2d23bf32634a9c5160dbd1a4b4e2fc6f363838acdfa59ae8b00c239a87be6d04d114bb9013fdbfc93db412e60f0b17c15f51b9a8e77b8ca12ec74066d8c868344d97337e60ccab5bff726554373a4099ba8dfe6c267299bcf85158a419549b144e5fcd0c46c2ec7cbb0cd87114acc7069d760a6bac2d569cf597199ea0871c4ea19230b947a76c8a22250546f4b209c29e753f6836b46ad028faf9d11c016fd6729105e09cd39a034b150454ea46cc063cfdc916d3306e5c952f4d582235d8f0383e19eb7490c73f6999e2d6ec4f6935c1c7bb6f7ce1f2b804b6c111aaed1948cc83b42c4655d1a1a85029cd1ef7a23aabb69dcd21ac02a894f0a381fd305f4ac9a77ec3462c917b0efd7396969741293d15af5243ad9e98d618bfbce9dda7af849866f853dbf2698c84bfac0ec5cc7b209a3dd631d3f9c8ac33f9e01d16a05051be0cbaa051034e36200c90b7149c0957a5c726419e6d54f734dfee21475530c4c4c728b11cdd38533dae75949c4297b6e5e9c4a02bafc85b7e227f71f8cb21c287d30aa48670f12d878a9f821dfa916d4f902d1d6a34d020c3a7ce5b48b2283897699460bcdcb0dba569832b30ef4a669d450cc069a088861831eb43c8eace16e24f5b53ba13af59ec3fa4838b4ef3d102db7240596e141b8197d6e7df65517ee912a18000530b2a13c767c0c59b1a0df6df6b9619cbf3bd8ef9d78cc0481837c7bd92416060991557d83c5e0a074bdb72b069f51aa2ffaa557bca7197a63bc0e812fe69c0d80cd44dd7435851ba036498e4627e4378bb745213680c6139f4cb712ab232feeca6138cc9bdf102ceb3c274ecd6f0fb39524cb296307e7f5b0ef047360c87b968237f039bd889793cfee3cc255fafddb79acb4320a94793d3f528e869483b66abf437ebdac70e45541e11df97f19de05cc32eb330e1ba4d7c0d4607398b6c96b36905f2e37229db10617e94011aae1f76d5bd7ed17225208314aaf059fb0d13143f2c45337573befc232aec16c601616cba73edafafcbe8371a04391c7811a3ec429b96c7b820d7d8d2fb3052cf6728e57775f5e08301d3ecc3cf70634b4fd8e9706cfef26dd2be10c3dc64ab239a1ee773f75cb205ce197f74bd8918e26f9216a8b2b9f9735bb4b9e1cd80fe12f982219ee1aed126e65efd9d42023b56848b7ee1e7ec4e06d2e51c43b5d79c6095cb0ecbee941180f386eb8b225c192d7384e3388afc8307a962ab02c4e92325944fa7e5260e224de5383a88bfe94c536ecc3b470a596c7ad03d73f5a094259053299e59120d03bd5be045603a0dfdee657ea892410744d5721ebfc3d200b57470897373bbaa6e194a05053f4c899331fa3c7da166454d860eb4ca389b3eb7ab5af17c8501bc0b5d22f41936b60608420057830c316b293b3b81d3dfccbe74eb9262e009fd61ad57b64418989aff15440b6da60a65947318082d87993973b1f6083310e92514e0122742c4d36e3a99914bb9aadb90309adea5b51332f60adb2883e607d6d2fcbd54291fd27caa1e57e5ea60883968e04098dbb95e94f0e620b7112b61eae4b41cec98c117de55b6a8852ff485cfdc9ecca966ec82ce8ee0d29aba2fbc76f2f68b8130d227d67fed2b7cee67c8137c65922a5739168c30d8dd4a749827cd08170f191b648bb22bf0763c6a65b11614751799b9084379b2666c1f55ee806d8e95dc3283b3d0bdd1f0232bfecdf9e02d5e72c8b4224751d66460d1db2ca1211c8eb37152cc8f1fed346190470cebc7f0ef6e0e8b6d2b7bd89f5ce2d8f673d6d624af0cc5cc1a5566b1556f0a4f1422d85a312a3b02becbc4c0e960622b50f655b33a21de9afcb1f0e79e89d145da4633537d195730c655d8e5e6a01d9ed56fd39b2e41f1c2fabb3b6981ca75de003a1ad3c743d82ffd9f0ac3462e47eebcc292b1a92c761ac257e70013582be5a79a2c38433e2859018ad7460a962af5233db8cff79d2112fed39a090a2e657404b5bc9adc694385cef2c0e910a36ed3626a62e33eed08b97468b9cd9a141ab019eab43c5ac8ae6fecba1210414b0b8dfb9832bf6059d886fe717ed77a0f98bd0da79c4d9ebf00ec0a224c8560a6fba8f9577c9952cd3a0e1f8d27345a0a7ed6fa3acb261d5e2ec74c4c8a38a746204c9055f07b0d53d24bd0ca1eeabb837ed1717ffb37930d09af8fb187a5a8c6860b10bb3249b7deb3ee84cf507416190a30249a893fc6d9ec6542f7adfd4d790c22ae8079d3b7e662f7a4f11cb3ddf842da36331ffafd1ba166018b782a1d07ccf8796285e311202832fa3f9fe8fa56ee8dc3fcfcb293c08406774ce138b1ebf41378583317601b8100ec16b00d48b62c1edb6f6ef853364ccc1acb6b1b9d502f14d7465fc8a0c2d4624a89b74218bc2d099a8bcb1d3ac048ac04c4c6c0b5481f1ea865535336ced108429a7908d2c05ea5ad67c368a096666c096966087d2be266ace93ceed1400a1a1f0b81a0edbd3d3aab9ae778fd0f925288e2b89ad0df3c2765118d5292d96848184ce8e74b392ca4d8e746fc3445bd24aa927276b715ef1fa7ad2d41c208fc91bae9c3f6ce15133431d45a7042f82a2cdfbb79ded34c26429a69b5fd54485aa131165a34663840a09b76df718002c2144ccb30cb2c738e8eaafe3973679225cc2b9c35cf4c4c304d11df6877a729179cbb982152366834dc87fc083322440043ac27540bd46eb51bf3ce24a3a40a915b16a7917c69b5ef5129ef2cd31dfcad587f88eff25899ed7d6f9d81c99fcec7c291f9e50054ac58ff87d7db4ee9c37dbb92d01933f6e46f1ef13f6ec580187c61bf04c273594d9e9a21147ce01a95db7a126dfdf3ef2ea8f1083e8bfde014008fa66e95d4102ac19e8a4fa9ea6351d6636b874c0e0999798893ff4215922404d43729f54c65587349681fcc87f140d7a5122b43d60fa1d57905496f6c96cb647feca9c7988cac144433a25a64d70a7c5d89fe6ec23ff2f070691c0c50c1c2ded70780c96d31b9fe2ebaf3b645ac69408089bcf9f4ccac3d001b9e515bddb2a317c17f1e5d2732199c7c9ce2911226c54c51672eabf89840a35eeac87f2df34dc87fe6cd47c4b03ef1c39758197932aec4570d2302eaae471e4044fbeca62f943233682ebf318196adb9e2bfa60ef69c31dd34d2d00aa6475df7179ff31f02ba14048fec06d9624d32bc0dd30abe5a5a8616b222f2840507a5468ca0c4e254c8e1e6170f934786039678799567f434e36da7eb6a0c617bed0e526527d4e2c349f8f72fa91057b0adae7eaad1aa90f0e133c64bf8a98037bbebde2c693a467614e98dc3f5999e20f13e576d2cbba1c4eedecf449d7b6b23138413264eea255fc6c3e64ef6e77f32e82779d82ef11f5ffdcdbeee4a9d03c7f19a886d0cb7ec723b63f22da703331a6383c0d89846a94d0f1917dbaf2a49a782d094b0bb32bad7fd3ec1d81fce778f02c5419a5c40e9989be06962f6a715e805a3976debaa276ea622652d08950b2206c955ccf7fedee4714b6b5888b41acf54a4d9d2de4a151b477f69164511e128fc747d63fa2f932a90800ad67ee37375192004c5c8d119627b6335706f460b7f65fdfca5532586c1b31a5aba35fd8b5228ab858cb2e361d9a297317d2b35e8f61ff81fef15cdd1bd3e0e4b923deb0e284c4a25b3b094b551795a52bcb91b7ce01faa7e7f22f264e8aca1284c319f895e9240a58ea2c926fc7e9d14eae4fb37aa1e2543899a2d17f08c6de190431e11b0ab19b7d81cc38a90ac3f76aabd46231c2617eb3d172ac7a9948558b51abe35f9039d6c5d4be408c82d2efebbf2c5de7b5a1a9d769ea327239f3231e45bf8a02164559009498b14fbd742336acba16f9c12cca7976133a39a46cd107731c82fd43587d87329b8d15e1450926f22570d0ea877748d673a09f1bac579f4ba2a44a814c808bf736022926bb7bc774e228212d54e5d2dbf3e5908aba3a093f5f87c4b6d07451e7b18e300f98f4416514823c9d2f1037712a5e818b2b1a51a448a0ec330c37a223bb3c3bfcb60f0ceb4a7c15af6e711e4dd52e5339c4bc271b0219de559983f7fea6e7a4f422e2c033f13ecb7e1fd947bf9abd9326a41c690f35ee51768d3cc1b4e974b5f45c0c0bc77a975c7319aa9a03d42a9c32bff4419ca3c2eef7e4295074bf6bf5757b5d04e1bf13d7b6f845a0ce8f4b42e8f843d5d8895cbc6e2a32735ac0b13e30e8ed2648eeb43cdf7850a2381ed94d96ebbb597e92dacbc8a62c2442efcaf70209042bbb24fbd52eb535f0fe31b99e76d19791a81305acfdacfb014b52b8a5c262c59c74fda72f7b79d6da85fc6ecfeebbd446399686be88bc31bff25a8bad79c0c4f1ebe09a4df7b2e37c77129b5e7e44b06944d51de7ecabbbedf30e70e6f51b30bd025309b9e43a70833775c0630550635390e3b3cc55add481b2930452229375fb32363762083d60849c93d19e9b68697cc5c8baf54c76d24feef6d32d354b88ceeede8e4ed2a49be9fd6eee3a66ad2fcbedcf7b6a1d8f5c2ad6bb8a2aaa02fee84531fc376404bcb75487b132fb7585742c04edceb9378743a0c05158f1cfa3a10de35627b0092870c36866f012a9a8f7168adcacb1e515219ab2dbc468381a8a7c80e1c342b0e6fcebb92156c718f1fbe04c4cfc7ed0e98bd7d242d19064e539501f4736f011bd52037eab0d84d0d92e6b63ecdaf10175a08153e9bd924f0f548ff151ed85d11abf157830073c031f08e54bd73ee2c6e8411ed2d6b9b52a21bf6706ca14f0d906eb95733690acdc58fde6aad5815e3b5ea8ff645a0d2b179e5607a5633c84677a60da6720eec4b29de2f8ff95d0f5ab6b310d624ea08c036d418adfe0b995a81f3210ea3424e040053048888d5250e955ae39a223306c24ce75e7743427860b3177e19f4dcecf81659d0d72dd9113b0b01c24b78ad70c77fbe131fd7cd293da83b91dc96d412e3238c4e8f75ea6e8ba8a5312f3f5bcf3919ffa0a6ae5a706276b1e4ed04e36c8e24c2306f6764cf17baae68fc40c916ac9b44efb7e7933e56ec9d6631547df64caa8537b5065a03e22f89885b4f6788db5529901a40311fdd9a7f30fc943eb87e899b1b4e6d532b10743821b050df92b0b9cfac9aa584c6b5249f608388ba7c5679d9775b9cb1b26d1dc6b0a0615aa1ebeee2fe3c59a8e92337a65b9294480095993216f16b24e6cbca40457f7fa89d78769820e4129ca91a44765871c165dc0bf92485ee60737eede2b1526854477bcb2be66ead608f68c9c6cab19ad02198a3162e4fd364b3520bf9d50cac17b23baebbddf33595103ef2e8ebacdcc8d9b13be32a3cd2d27769eb84fcdc4921bb22a9e5340b854ec30ed4d4c810fed8c02c7d5b82fd3fd70ab367d62d6e3a0cb89a56785c10084d057eac42fce9805669703922a027fa30176d05275a8e74d865c3807f4dd3fe40d4cd99744e9e14ae54e08317b70f5c23661fa76bc15ca704fcd515940119b44ff314f306de7b048d7e705aa8e0d2d2266c5808d765834af69d86eaf942437de3e94192e98391e883efa8be5f51e8c4cd20c5727bbb1f0feb2084c3ea584a16854a321ef853926733cf209d5290e08a410e295a70022f7ebd09bfab98ece4848c4a4a153aa51092b2fa87c9eab706c66b2480cee99959f4878e306ff92415d040235a015c4e67daa7e58a56d947c8cce0e0b66782032a4940988fac7c1847f13fba2a6d1eb993ba7d7f1cb5bd14de32d48bafb69b480b88c11f213fd2125344307a1ba8959f8f582885ef9134390549d2f9891350992bf0ccd2a91ccd0f03e82285d3438f5f9cb3cef1da64348d16b1e1cd644acdba1a4f2af7dce6d568c1301edc68953cf6272fc17e83e2438f6cd1a72a2b330a22ff0b22c37e30f431abb79473918a7176569b1b24776c00957afae9e66fac3fed69273b3629f2dcb5aaccae2d00688de2b017cfd86584edbeadcdd69e27a34b281f6f0f3164403a04b0c06818024d60aaec10fc586ab8f899324dd5f1bfde150601e3dae6dfe67a390c4a008b17a66ef1531b48a74bb4d701dd07310eaca94ca5a62a91684d493798a5b6f7157f240a3e8d3026b24361b640a28c37244e13ec8ec732331094d8d4332c673a05b1e245e922bce084f2eb208b84f1586360d6e4c7fa1d2552b52e28bf2bb71a24394b528c645e2daf6c1447ee1197783cefd71468fab754ffff1f84fae856f74644be9597797ec6ca5b429e5e6a217e1c54300f9067bc700a95d473aa1d6e28d54e4c796e27db20cfa70f01540095523010908cf5b81bfbc20df414b1d14a827cd1906d37bd83998d68b30723a15edb1ad5564cfef6517f056ac686fd6e29a2d8b540e0a00b758ac26a69dcfba41899188be5e17f31f8d30435336b729bb5cb9c5f1389b6d8b1107af90acc289d67202e8cfe31805a83011f2585f68f24e656ea7058bd821aeeef28cc411268ab3ba43436a099e987a368d0ce499c0f3eb57908500cb0e393475c1d0e2276164ceb05459d470343340bd504c91180d7bde0385b4f6cc38e58561fcfce4ce9b533c8b61eae3a13654e0f3e6a80fbdb7f05b02b87940c3c64953d9c1708642c95f7dbb4f2919dce6c1648e57d343a6890c725c32f245032e970eff86a6edbf851386d7add2fcd59303ab2ecb4a41fd4f006e5d3582bb6e6ff037aaecb32e062207daa03fac8a0cec871f7076bb8c5e0127c9115d89bc7c99997b14699027ba07e7893a7672fc0140f204d593eb726765ad75d3f19ae25cee0deabe2b9db294993de4ae644f5a0ffc70a4b81ede71bc713b20f33f1e793235fcfbae94c61f3020e26a638cc7098ce2d915327e5ad3eb0dc1bb1e93a16cb5bdab1c616ec6d48876dc2f0ebd637381737308db23dfa7bd4683bb44d41075f0620939cda28ff9f635ea81655925516196585010e08ae808abba487750765772d4c5d56b3210912341ea06b32fd705a8ce042408930b8f63c9f9060a85488f1a7e1e0af997c1605442354a7f7dadce9161c0111490a908f00d0814ba20caf4f5c0ed27edf69b49d3a07642527071e812465caffd811a362b5ca043d14b6a886941ee1b094acc4450caa56d2bff54aed619c20280fd43b8995f6457a3b485cf53e77f2228dc8695818edbd31302146b9b9b8d0e5a88d73bde3ff9516341f762d5500df28d2b7c6842061efa82149b00a8bd65d59e78bfdf16734a923690759184e6f80918bd578768a0f8b79c85a3fefac9e2565eb30920b11460f2517ca27a96c408179861daa916449dfb6796f28142b5fba40f000d0f50537b1953837b1c177a8cc6dea54607cf119dc8e1c1b196490d1780c0b766bc06b5cb2ba9b7451a0683fd745c09482930de24b18dc68e3b2273fe61a37194722e0e07f1b09329a84775fddd3477f828ce2161340c855c70df65d036140fbe4ce71aa139413697b559fb5dc4f4fb14ba13ec27d5ab77cd7d77073fb4e1eec801c0dd9e4aefb8fb6336727970979dea7372fa17f6f08a8cc905d2800f83b9f95f5388094f516325f649311acbc084f2a1d0bbf5f26b31d835fcfef2ad287294d57b83f51cc66d0343238b8e9617342af454be6254fafb58068c456679a6189231e789fadfddf04816bf74a95b781f8771d1bf4ce508822d6c5d26336edbf630dc6dbb4545a0d2dec5653b60fa734f3b70da14ee5586384e2f39db0216303e442a0fc656d8c52f108266d7cb676365714bf4d5e4f7ae398a5d3ebf01ecbb3a71daf148a5074e2793d7066e72a208c05476d78fd1927b51dc6445aba57128b08a9f2498d31f7fb72017eccef4b98485eb8165b0ba7f4d04fa8071e14ad350c1ab5cf648a4453ea5611443dbdb0a95adddde9027e927a9017289db3a33d8f9b78cb132cc06e587feb447396216e358862c0311d1bb90f3c875ef441b84d46d3de0713cb967fc63eda9e743136e1d95706c5fde8e154810b34c3bf24cd7520795244fd399fda75c5308005430331beae93cd1979ba005bd52614390a6bc9bcc2481fb8190cec074dd3575f63142213b159f31d43be0b33751f7704bdfaa6d471758069585f6796d9ac69538cc8d6080bbdc8165b46f973395dc77002f2fb93c1164a9eed41d16a13d518840b56e241189912777c9c3bd428e4b3aee982d854ff57134a2162e89f8e46744d3db769765bb8b0dded066c998137ff7ee32427afff190b20156b16b1de82c85a06f7c26915d2327ee705b0e838fde2f361ce1baf0f44ae0c02cee8d7317a451cfbbb0fad9d11d12b85fd4ed01b3aed1f31e77c8ef91708034fe6edbe74dc1e8babca5e895463363346c5a72919548a955688b73ed7c8501dc5975496c4db3a659ac5074aa5fb673521b60ccb8e9f131706e864e7e4c6e0dc5c5e509d9575fcc85cb65d911f7f466a78063efdb486b101a9e9dae0dd6a5dcdafb8092e6821a222b97639db393cb4707fb83110aae9311127505f4278b97c7675d00ff8a6a1eaf241947b57a4b45eb04e43602fd1b531ba23ab3fc473326181dbe5a370cbaaeb7188dd3e5cdd2eb83b164e85f7e5e10fa8826bf386816c6bf97cda7f9b3405f98b4b2aba7c621af4e8d9c251d4376e04356e468998b2cd0c15b1d9f48ebf3ff8dd41f5c009a28eec1b0e876ec6f8b055adedd6e62951e97326e34cc75fa6bcd0e02047e9b369bb129b1e903da8eb86bf1ea1b541a980fd9647e73e62de80d3ca6eef10c434d505f80942d669c9b879256a7adf257ba87d049d82dbe7402931529b92de1d4c21b45262d977901e6edf707d186b6d78fcfa41e0ecd20e5409b5d168743aac8135436c74718a939c943e51cc16217bd5304d63e47deeb94ff1094eadab28fea2e9319dca0f0481dff0018854a6bcf7d0c671d9bdf0499a12722c5644a178004c6da88e1a9659c9b45109edbe6eee102f1df959a7ad69144fa0d4644834788d1ef18853bbb9b3b5f1bbe1ce602239b9921f4bc102f2db2d5e15005b56baab9704cabccd944c377fbc1765c0446337bfaa5791e2f9b649121ded7bd6c35abb315447d3137ad093c05814d450c818df146033bb8c4681b55cb250a06d928462f794f37002b7f7d90ac41b5910c7b9281073165f292c26610ff2bb24162dcf35c2a64f681ca14f0c0d4e3e28d46395a41787271d9d9e2563736da5c1577201fb91d8b53cb86bfa5b9e05d4789140ea9969ff29772c0549ad899630dfdde0dc646d9abc862de9d366854db0011a25b76b353272c608a5eee25b42a3ea4630d6a7e078a8ecd37391055ba9029f2d15938362b9c94912e110abb33939126c41da4cdf647814d05f12f6c857a99159a23d3a0eadd1ac1bff4611587a40a506916b2846feb09195708df9465a0bb791dae2c1e67aad62acf871853869a31f17a2996bb5f32a28c0d79d3df095f3ed8dafa4dc534c2770915c60c917fc53ef005f79b7ba86c46e1a8b23391d06d15b3b0e1813484a05fe940e87310abd303920d25769ddf8deb6502ab573194e1436f116421a311979053053761f2a3c6000da37892479123d94bc8fe489e7c196153d56f7679a30b8b052daf002c7d58e88e82497c3f6f6eed4fc3c41ea9edc0051db7a858ab91b02dfd510887b6b9c03ff0b19856ccec7a56824cec56d26efb0c4a399e8a10c1a78ce79ffda398b8d5128ce0c8ecc2f765a548d361a7c702ad6d7a49b6f2098cbd52eba0bcf6fd62d3dbaf7496ca8c87fcc53909b0ee733476bd6b63d8e2185e2b89e4da8bcb3a88a8dd56d9c988e16ae146fe6da1865be3da7965d5f160b3b44ead85a277968b8f7745a1f66bc43deb56150a2a5ca4f9e4d1a7a85b1ef3495d075d9172c6e44a31c8949092c8160f3cadb9d9623a05146771d651892cb7143676dcd29cce0d6b53f20c66d5ac28e250be0abd8fb7e79c455f38648b816e7b335c14e1217d0e9b27bc77a7e881c97d63b0e2fb5108e7b6555ffb86ed6e5bcee1a85490add79c0c3c83d91a56b1dc8465ccd8ef86f1c891c4e3de87e70dd4f7171c6f9d424d2d81fa555dc51cf3cef6848b4882d85ab334049c59e46c1d6d463c9b697d2712912036da00d16dc19d67ea37353923591997127118337d7e69204cc3576309916b01191cda3b50f4d3aadd8e4a638ecb0f27681bb1dded31da25245af96a86e76739a076870b8f6897bb725a65752510dd0836b000d7affc79634bb1b0c2f7ed446310fcbe153b899b16870f398f6d46832600af971c3f4fc98058814a453b3ad39c10e91c62bf58d77aba2b9946c3a9c8892e50343f3c1a93966682133fa392654aec78ee8635193c2a6715c9decb456f885d9e04de4a91a1561f81b5b9c41819758d7d30838f51d529c8cd2934000817e42f4bd7b04a1cc540d9e8e180920f15bedd9f4d3f1c94f834c7724d1f896e693803be364c70f567748b1de69b41e3e53b4aea50a93a92d5f1179d29b4fe245855eff896748c06bcd15c84a7506ba1caac5629f0e615c760291491cbe145ec19c8ee97e05d6bbdc33e74f5618711d554bb2a98a7c19515108d1f13fed459320148e49ea8c7a2ab31efeff2d68051aca1aea80c76b151b8b28451aceed8c1f3364ca968d69a57a114249bd1168692a1e6c045ac2fee966726b6698da854f1a3acdb6cce87c12cbe638924c104fb3d0b6de0432e8f23fbf12ae1f3cf6b17d722294424edc14da61567d6003e06f14841b2a8209f1ba25c6033fb5c40d3bcd0ce26927a62f6563d5fcdd4a7c38a804954f61c0e563128ecb85da5c4a11aafeb879f850a220168411269ea33d3f2a18b5d95565e7f3dfd1c1ab26a6b3971b059fb19b4dfa7923b068869e6cc2758035db93d36b7a5cbd693476266a9d1f4f76130e2fa833e03ad22e26d2e11dfa7967085aaddbb9f5d4896576d6a9f4ebed2f2f2f87a786b062c3ea6f225eea7452ce84a872142543cdf71ec3b80cf90f70c0182cbba0282df6b3049c300f70ff32e783d84c27ea6c4b84a212f99ffc7927e5b5d6f318736789a560baa46752166d30fae861e68d487f1c5a62978c3841379b55b65cb26295bf892b2ce60fa7d38cbffe68427a81939bdc3f1fc1e9f42db68d9c49312aefad644837027e2ee0de537276416572fa2388dfb4d3c7f9754e84f884de83d42b9c8a2434c17ad4605d44a0c6477d634422e232fc49f435683721a4726816e598749a25ab5c02784b66d38c2f96bb1df4506fef32687b98985beb6a2a5cf8fcf845b2c86570ff7f31474cfa1e44ab1471d0672be10648076fb62edf4ba49e1ea72901bccf0fecfcb29f5b4d3de3e966b1acebf3e6dac8976d210ec3014372ff36a1e9c90aa04e4f6abfe3824194c81426099d8e44937a1ff1323c19c0006f999ef5506b8db1c04fe8d6e21cd996648f361f0e6d52270f20991fbdc949334b382774109e01d24004f725c86ba0eead11e7d68ce023319170a4c2b9762090f8dde76806b948e684e586700ff2313adcc7163c28a0d5191251b3dd25834724a5ce63e68fecdec24b40bb94643e8ad05906880779458d7e6bed1c082313e3b673cd5c8bb0afbdbe02bab1779d52b6b417c30fe62602eb8f346c724ea1a5a89bdb446656138e76cbc6850f749430aa189d2403c12a0ba02ca22e641693f13255dad30e11b864540acca9b73a9365b6d945026dcdcf38a72352367a52e81440da94c0d5969a87c3b7260e17331dec42d3d3a9574e04ca9af55e2e98c35dfced474a7d0b3bd93d193affada804a372913e17aff7ba96b9a5a45ae3cd1a65b5ea27b4e34474ae6c9c5b29786b135ef5c9d3fabfb9642ba0d6a99bde5c0b45df6e73ef50c0328bccf0ddaccfc51a8c41be924e9e08142ae8d907a06d0132c4d66cf20777b486e5a9621299d3262a74765c3dbd5451ebbd9666162ee95ccb473ec190c486fb3ac290c6d1b58dd7db62d8a17c7555a27020949b0413971099510407dae1cd5441e0877f9e01775f7f161f93ca5d97bbf9eb9a29e28d6706d4d01b3d6f095e3f33558bf6146e31bb2068d44a728879b37c5d0c33f1769c8e02ab683fcd138214ed5c3cd6e0a7e20e43ac2d44267280315a9d8f61da6c4be7c0499e78ccc4345c4f6575233a5ef533a7d68ffc1b4712605acf76994c2b28f7c13eaa475b363ed81886af6d4226350aa1829ae23d5066543b4f3fb2dbb989411d8b76965926004bba4cdd4601163ae03818ab463a61bd53883e48b9d610fb03e24908f1ac29b6103e69e87138114d5c9dfcab6db218706e0376f54c59cbf625910bad2ca409dd0505ba754a41e5da5f4641b635d1bbc4d4e20aa3bf6227a7dbd4629bd2e359763ee30705d1c6603c91c7c816c0a9fdbc881fee20c8445d68d06017ca8478e7dc7e6c24e63d44c1f04aec4009cade8fb418620f4bece3653fa3aba1b19f5a059dbb5716d2c6d71f1e350a30d75a2668c569eac10ea01deae99c7eab9bf8ae60635773ac2860dd41b173bd703fc882afd27b029bb5b98c6c7e13d9995d80f1cc38b5974e6e4569a9da7387fb0c449dfe511f08c8e856fa57ff8f3c4b7d60befb3d7f4bb42d69850607766486489eddf62010b45d0f407e04fdb3976b0d82938173577afc2281c2eee880cdc2799c1ef4fc8db42d48438cc713d6873778be353a18fda2340809076a374da305ed57706cfcf166464441287a8d09a1a4fc209679798364707af11611ba2235ac2d97104706fcbcd9cf0910632ceb4c5acb711dc148d5d432431a5c9d9e3f83d7ca44865874688c70db208df83547af12df9969eab5c9d5e40aceeeed11cfc8d008c600e7230f4197bf7c8dbea9a3e9676e38c5be7bc5c78de490ebb6db1c7669ba411e98fc71e4cfbf1fd4e199fd656e8d540979ecf6493e77039939b64879a152a010204953e38da585bbbfcca312c470ab3059bf0342ac64cbde6b61ce5fa9566258e46940439759296e3db99a2036db19356eb3642f9a4d65d763f4d3c37270439b11a5a3d07d7be3a53c6e5ea4de239b4cd7b9910ac5e46f45efefeaa449db2cc254323da0d240af747af7d2f35c2acb2f2d7ec6f6598a749ddbc65a5ade11c8c344920fef184c425eacd8f492cfe5e91b39f087e0511fd18f5a1a298c86b09181355be7061f011322237bbe424fdd7ed39875e143030bc568b7a558e3aad31f7db5fe59c11a19ee710698facd961de8d970ef949b13e8b2fef3da4bfb4f0df3fc16e6680f67cc38c3a89090d95bc890e5d6ae8356481422a566faec92b061e8fd3cedd9dec02780782608c162c78d134f8afffc6d14b5c9adf45976369e90f723074e206763770d8c9c14b9bf9c9c75c82ea8f0a981afca0af22e119f2d73232bc2f3597550976e9c822447ae6bd5e1527d62512fbf86b254e0080e5814bb123d22a91a4a1a0ff6f0d13c47bf043b7f52e00a7f3a18700def7e893884a114c09d6bf92dede8e26fa7b78e38419d30061e274cd49d10ba2266e4a93c08e3213eb52b21b43bd92b5f784613b40d0f6415e7bc3f7851062570e293657913569ed4fbbb239aeece14611d4f183fad0339db45d529fa47bd5e72d72958b8a1d6c0b819b3a81bf6adbbd0e8c0f29a02f567219caffbbe61d3493f91ed81cffc20d0cc8d386a70dbaa2e9d3fddeeca47e69769aeeda8e174c1fb56f7466bd5c37b381e05c6d5a1e0f7350318076f179e3782ae31c460b18b5dc2c66441267e53554aa578f62bf5db12ef087cdbbca62e4d0ed93a3ddd1a2ced82c439b51c340cdce0edd6e8f2e6b979e750dfe2a87b9f2e0a1ac7a82e087b80f934e9ee2c858e4a7f3722ba5d38802cdfbc459d976de529248d8a87ab1d05519ae858b3d1be2f28974390aefc224d3998a343fd27e4f3e7170538dbd52a2f6be2765e82c743ea50a01f0dc587e3e342aeb29c5b286e8ac947a644ff7371edd140dfc3e12fab399c9ba8f8a0449132e36f53d29a2c332dfff1821e50261c2a179d8a3363b181cbd315194cb7ac82e4649e7c82a7a31df7f430f60929421b2db9480ecf4f571bbb07b46cb3f7fec322a752ed7c8285494d8210536099d07c2cb42801c2248765889234bc98fdef15db5624318c78d23b470f119a8378394ca0815affc2d855e3dae3cfafd6bb7b750c70ac7ffbf9c3baf4e3e7af42d1882d0acf140459b54966c304faef96b61dcc01c2ff02d8fab028204985925094a91fcf2e61ad6c20061a0843f00fe45a5839e6ff4de24e1b6ae02d3ee19c3f7de759e8797bbafef4ae2b6f2a0af2a6718744dad67c107266b5cd006ed65ae4e0c16ab8638994ebf27573cf7b4d090c3a93339108d4c28a3917789be4b38d109bbb28f71e56e020b5dc6593016fb116bcc125894121ef1de95c687bf33e1df5244af9eba8508d9a17331cec8cf6f3804657c35fb540176e6a30ab718f6e403caf1a2d5f299110884bcb963a9eb0f36ea678ce0d182192dd9a162b14efced142d6e33ca6d777a04306a2cfa995f8cdf8487c7f4df716881601bbbc6a6f0a0bf0a4900ff6391fcc60ec5b7a33e2d05a94f1526a4b8a672ba366288cf5f6e36f03a3e0d4cb4e3a525791dace85eb5917b1883c3455444eed9068b940e63553eb616279ac8863f0e08bcd72eddb70477961ba0c2fead313752fd0e10c16898e5f1a32a9ab8228fe685bdbbee3856aa6fa83c2ac6142970289cfd64aeff8eb000e9f62ac1c8e593108823e9dc3f25a33cbb0ef8ebb93791108054cbbd5a743bd6aa9cc1388d18a1babebbcf42ca9c85976fac2b1227e11690f4dc79aa8be4bfdb25c411f1eea6e6f003f3706ee38cb6bfb695ae196d2692143d1813fde56f0333c3225393e1ef4240c03c10e2a38b8772658842fb12309b6470177684298f5e8d5fcf263335b0f7806852069a772237bbe8b32bdbe2d9b7b347fa44055d66ceb72d52e7a8b62b3457a195de104eb9060068364b4c7a5611b7c87bdcb3ba7d7fb7edad94c661896dfe4945c933eee357d69d168a459a2f666ccd5c30dc917a01598e6ddd0d0a90c9a7d993492688681012c20c71faf5b0c7bc8125ec1da7f767f1ef70952d1a1f5073ac3e775e0c5285f7c4bcf5b787c646dfb59a86ba3c18ac619cacc4d2f52fd5002974650cdd5516168697f9c2f7f80c7aa3f61f76a14db052c9742b68b47a8a27f60b89bda298252e65b9b7635ba4c61638992c9158d5fe0c4188ef503db517a79b63c6dc52e757320bf5241f2b088e40402252e986fddbe993c712a1ce7c9858dca6c2efd4e41a412889cf7bfb09f5bb2a70b5094ba56d0784c5bf8fe0bd29fb3b72927f7cbab0e5db53238929661df38d6c77265b8e61bbbc28b6571cb5c74da2a9bca9f619666e9753cb1cecdb7d4cd7792c6597a4d4878a8037250ca720772269be694eb1b012a922f3d8babeb8f98f3b6ba72077a60f91d48f55636541f5a477fa65023cb95080cee4bd786679f857fbf4ec869cac5cf0e63031e0d5e8fcf067949e552944abb8d629835cac9668c5481bb1dd5e074d0b4f8358c77422808b66e1503fdcbfd4b264580a6aae91adc4a2e6dfc667f113c5b54b4d91a70454e784e99969090c103c545d62c5d7d96159f200c86d0f1826f03f6cbbdffa0db2fe33573e434d9226ac042426fd209dee114874108562e2a47bf85bbc81e7ab73f2ab502ffde647e6794567d65bd0f2f201523de56a0bb19ce0cab9bb6b42a4b735fca921d621d25f6762b3feaba4d66e86c2f3642762edbe62cc9e072e014ce66c2bfbbd1ea6d83eaff0641f96e9a602c6edcaa7ae9d8ab4390f8d93b958e7d74a24f472b4b329a226d6eecd3bd40871b920da4c6c589158a57b6db4fc7825a91d06a53fc2ee72b79c1e32ca9ed70be947f352dae4748f655400fdf0d7bf7702e13dfb8df2baba8caba9007cc9d3a0b29c1db6edde4417cdb7da4dcddc932bd7985a7d288a56ed99fdc4ffb02351dfcf64b015197c8896481f2db75c8b8bdec39990c52c957ad1819d65ce2e5061bf3ec68839ecdb4c23473a5a3888795a1f40ad287df68c3c9c670ef853ffc04e49b3ca165a08fa5983c1e187f5c8acea24f89954ddedb0434f94868984338e43ee2e08e9bb4a8e1fcb34c8fddc91233fa51539f8a1ce48624c26d7f3bdb435d80fdae94ef74a8b74a135360dfed7afbc2f48ea3d1abee546c02d7c1f6b5c34a566c1c5f1fcc304bab60fe657c449de4de9041dbad16806ccd8a94a5c16287835fa223ce1d8131033d7e2a62c144624ddcb9e3ddc4cfc24c7933a0450fc339173e10ab6dd5196b501e04cd76595f01b8ef099efd0effea48316c2db2515be5ebcd1b92e63ac95ae2b7a51b52e65d38e35a3051c0331557d32ee439da5a9a7b6e3f180b2edb34a1fb5ace9934f6bf7721c8c1b77dedfb8171b90fcc93c3312a4024965a3d5feb4505958fd611918fd1c975c022fa57131e020256719071a8eac076ec8cd66f8fea2f59fc810dc665fee5f7d72c81d3a947deabd1651976fa91a25c05346c54a14dfd178348aabd55824af883755df82c7a0fdb3df7597fcaefa1fc282d1de8a1b085769783e550ceefbb69676fe7c9c60d78d1a962cf4bf8c4e1b0ff491e6eebfad6a9b5b6c483c5216f07bc070a6752f57d30f4315baaca3ef96ba235458f3287cdba938e5d78765ac18c2dac05af87ee3fa72572d05c63e9a32f277545912f848f652214897ddb827216b58972186f0a11f03b70d43c1395630e07f0ecb86edf0700390ac6384f1be902c61d1caba8bcf93d931cdae39cf66b6e3e137945f31b582a48a17cf2ce39c579f3364981fe7a4e58a6ac5fc03f34bcc7030e80453e309436c081cf9f5b01be0aa2ab14ca0d896831351e9104e92959379f656085564218387bc406480b2005495fb948f724d0ce2d5b47f2f56654243a61f0886d88c485cf36f49beb6a64b082f7adce8e5451a08fe6a2ceffac9eef2f637087e5a86fbb24e4ac5ed0f378b30a067f9a1db7503dd6035e4574c6cf28fda1571baa4c969ddfdcecae5105884f3a909efe4e547419956d37ea958610a7bf44b0be996f0af30a516c75e6c68dc135b0cc5ef2986981a01a28aa496847c1ef117132b5272de9fb9daa4eafd5f3aa7706c161fb03e20e9daff376528bc052746555f24c74c96dc0e15975150a064fc3e1d3216a95b00342d5907fdc07a56894b39a23afe3190f53517804b691ae5c34cd9f9fe82a99858af3f04a390b6b5a31da359368a6686f6e041cc37d701d5580dfea2c0bb9df3bf805fbd68b1680b87b3c5600e325737d5558f92423ca1770deff7fc2cedb7ea9e921a26fd251daa6bffdb3efbc84e8afc60d28e3522db3cb92cda557025c9bbe62fe3c616b90e84a7cd472f835f40d7e25e5fd062b02b1b8dd4e12f0715f92a7ae54dc4e7a6ed42fd436606d172fe95fccadd3111d19bf73aee6a249e3c21c3a5edb4fa0a400b2de322d9641637c88d1190183aaf99af3c0349604056cfd9b9b7dda3f60e70191dc607a47c95c81841e00e188797d0cae30cde7c0019b782258af0f8f9e68e7a89c9a4dcbf16c487b844ba3c7ed7b50041110c6febe85cca0feaaafad5b9307d6ae0538d1de1db8d925c63b3b66412cc6fd53605d88069bbfdc759aa1546bc508c90e65e4267bc5df771c565892385825975c728a74d1591f846ebd32d864331919aa52f02ea8694775ea908481c35a4a05cf651e47d7acc0b61109f157b6b763c7711e69458118ff30e07c6232cb8e899aea1a2953e7c46cf896b31844f09c98d3743e72eac37874dc14f7f6ff8ed2fafb586671b882944025feee3d2009e5eb5afc75feedb7ee45792d1d5835bdbb91e20014624266b974da0db059fb7b50d6931a3274c8270d8dddca01ab869224f161c6bcc1d33725e6fddf4ae9aad31443689d25a48ab0a8946956e78e8fba57e350fbfd09cdf042f62d49fd92cee521d987b49d966cd559675590f6dfcc1e60b34ecd21bd49e9646d292084965344935522cd7f773465a585c8cda49989787f6d3e160da4f83ebd70a1782166ec9e9d0b7c957cc3f119504dcf3087cbffac2060cd035489500ef4a8f9ef685048d8ccb4911e2b1ea2d15637f0d4284c3c0a62911216d931348cbefbde98cb75c8bcf6348d8891348eb7ba82e268ecf459dfe1246515bd9c806bb306e236d39c0aa9f020af7d849cadd887df0507452841c84171c1f26584dfbe0a0bc11a69872cca14cf7da63765a387ef383a5c1efb9b7386981dc46acbe9d29afc3ca9c9563701814ed27adfc96f9c1549978d2d4a1a4a6064ba746609fd9656641be68a40493121194408f0294797547a16e6b1ea909b8080fa524d1c5e957ffb752d9a10ebdc203455a1b6a260ba4df520cbe4c16dbcebfb90acaf3aaf894e1ffbda2237dd9243003d17b7b820feb57a718aa0f4ab1aa4d5e836ba0ff2f7026564b2f0cf52511351f49002299185879ac6af7faad118a6413c9dc5c877639fceb07df2cc111d530856a492af6f98362a824cd66c59f5cddf79687f03bf67b53515e2602082fcd9fee3218e75edda2c042196a126c3540f56ad55ee9dfa0a933ba4f0dd235274005c67ec543bb58895b04c013bca69f66b1b690be3e6b0b88b1e885b1510866337a54d6e840444067b1688de9e41022b2ee6c4ad1bbaff1fd41992320839252544ab6eb24ede36bc3c8ee7c14f54052e67c42cc786bf044c9567dca0bb222c9af7f7921ee58dc558349556253356264af1d512717755c40ed445a79e372aae5a18fef97e68c661944822b33b91bb98ce83e75f64702bc8fc400cb28d387b9ed7bec178818a53ac5850182ab45fa9799eab09070c4db10e772c76c2c7615679371356756bbe6e175313f3ae0a9d5c75af22fce1f460aae00ac23a95583d3d9aee4faaa956a7031ec6549def8fad48b4cc2be7843f6faad7f11f89b45bb228b7a86eeabc61416b836dfbee05723c6576479b7909dcc23363b829e337acbc31d348645b636a161eecbfcdfd8d5979a98a31f4fd21343b3e9ce9764f5e8d5603044c7ae25024c232ff1b02f7044a13b196786765cee742fa0cdcc4b58a81aab032fb7cdb83fad00e1ee59a502f5a815d7b7189d767fe40cd2b679c842188483b2bea10c143c0596cfe2175fa4598528fc7e8c15b0dcaeb71034359214c649281b95d11240f43b7616c2b87e816f0418b3fdfb663c7804cdd9a2611329b330f5463170712d196ad60fefc98be1ee651dbb58affb43c9cd253dfa185742c856bfe789a7c0a42fe346f1af942180e9edd159b3c0777c022eb57e5128e2f4ee46ad0a9a2bb45ee627278b1c2a267dfc4ae59e60c86d961b4b567ab9e305a1dcf86636884e0769783d85767ede327914a685c1aba2487d3f70c959d9cc3d1ac2af33d29bd21257e2928690a2a930f8f20e1f5020b35288a35d68e8a944e15aad0916a87173efdb47296cc932d62d5b34e00a6da468f513ff3fcc673be3ca6b8ed9a4f70cac836c0aa9bfa1d8193809bcf0fecc6b20459b33aa1233dfdcee10022db8a4e3e02a5d4adf5d788681e83911d70c566e98e97a708ee14668d9336d830c382e9061e96abeedcc54c7930beecb1d4a9d9fe1e0fe0a68c3cf5e9fbc505785ae4dfd346a10d6c84b7a0e891bf66eaf21dc9c5a8e14e9dd68c181f216acdf1d82e8681107f9e3599f7375b06a05c08a68f34c5467b50d755504ce593ce96ec59a097f647ef3ada71a51dea9200b01b3f0d6b449cf6760e2cb4fc2e58be090b5d4d3c9c418b3f8038fc6f578445fc34c5972c02b315ce0a08dc177505f67523f65f4d0faccc0328de19aebf502e6045381eab424d8d21c7170ac6c9a611d2d2315fa949a0e47e73e0653542f86fcdf63feb0af242daf4354e8bd160c0dee93fcbbb0d9082ec45c6dd661d8575590d65d85e60c0308d366feec1e4ae3cff2e6f63683f678dc695c1be6ea2b7c7d8a8b0c0a733c767c89070274c94f59ca640c792bbd345e3e04a3c525b4788068d5c5d5d3f282f7ce1f15b4100bd42440cda39d51dd89e38c8520ee902d56630fa22628b6c468f8f64bb41eedeb9b2a76a8a51caaeaf16fe7d0824a138c44b5f914916b700ea2d1d0e14c468e07fc6551526e41d7776b3b8988bf4192a6d5382b7de308ef73058dfa2f02c7d94e0ec6b4e89cf0972ff43cb4ad00f601c166636a6ddfca11952766c70940fa245987c3872f812f0834f4355e03be118a927074324e96591bbde25107d35d00f06b83f6baa4627e178681a296672a67a4e63615ce1b93d82d7edd51265fef7e8c59797ced2c9ff9983ae81e9a0597784b32c78d9dea810da61f677c016ffc56b5ccdce6c9093cfed4517bc805aca4dd41af5eaf88e8a1d65386410f52aa54ce9b44f5f9acd170af1166483068314bd3ac6df5251a64844cfd94708e74e2c5176e982f4733fd0c06cabab8fa211fd1a8d7b3c4440d5a5d7306c783ec46d878fe6557b3ef3aebcfe75fe6b5257dfd56e9a0c891952d4311e4e40621c9c11fff4de81ca0d46bc1a9d0dcac4e7a7ac8a375e425e9aedcfd961037374be31b0591da2d444d359eceb4a58e8a6f0a169e1c7fc640d4edd5447fee6aca1f10f83bf71d28ecd817f0eaac873b0eb1e27d3300921d7db8f064f83a15da86c8d53fa2269e4f8f8e731159b8e3c3028e6ecaa395f5c326f6817ef6461e76f03c82a5948a55cb26356f63c74aa1633ec333eaf7065bd60f96caa37b35f8a20e7d40888532b4b6fa377fc4a9e6f14939f88c7bec6bf984c175150b7cf25a4421228419abfb26eaa3c27ba09c38b79e6a8bd3f8cca2fd8f5b8b04431b0d4c5bebc32c4fa4d326bfb8d18cc3be96b46f462776f670e3c65e51560a53f84a15c86135e60581a5e1e39ae77906b41fb6479d87bdaac9659d9b6b018775a6c4eee19f27698a91fc325a4e49ab2b8fac22fb0deaf89bbc9f8774f0b5105a9e07a9760c5c0bd211117a02a9557512ddc73292d3cfaabdb0d08b9fd032ee2718c635a138b2e4706560fedc21351d9e251d396e612263c63d73257241cdc9481565c996fff020137f27bbdde0a971b4669e671f997cc8a367c668be4bd7add00de4a919bee4988c97896e5ef435459af523c010a3d7b2e1bdc20942c78ebfd810eebbd0d4ad2a07ddfc93280d78a7a56caaaef52339cd58374d4b24cec6b3beeab07445d6ae950f408200be68761078b42913a876c0a7296238a23120138d7e7575e27abc210aa2b53bc31ed29a23e8a5937d1804ae003397385ec9b6a15d9f0e0d6cedf4021afb204b801289607168826aab7c6e423b58fd2f463207cc61356fb0a944e0987b1e01fee855f12c9db61fe2d906129df4509b0cea5e18f6544590a4a54c46ff67683b6d365a0364e79d593593df253e94409a68f17daba1ab0e39d11eb8373f140c5c3af1095c688226e4b4b2330466e4ae7105f192e1d7e15083bbfb86e0503957bf177cb13e321c0bc17834ea9bf2d5cf705ce0fc6192c59225f2142ef2608cdca97442166895921cf42c60ce7d473c021fbedc5689b441ef14a6c0ef0e82d439866f4c31c79c5eaf63c7d9244b4a87d5bc184228d2658d5201e9211100f9c357c98a0cfc3913a397b99a247529dcdef85234a358c025b110d1442192348b6760e02d933d24dd767f09da284af7800f07619fb0236be6ea90e1b4d3a92bcc7947d66a463b57aff668dcff878e72563e4ff03448446279ba3033c54670bc70ad9b9049b5fa61f425bba20432d3b873d73c0905f19d772446a1c2e01766b49c9f47bc8f6299615d4b4a48890179b007f5fb53cc082a5ac841fb639a37c0ca7d21e1b9b35e6d89e419feb095dc8ebf3047d60b45e98981b33262c6e06b30ca3b4e572f8969ba6b7505b59890f50415d4276093ce31435871dc06ccb2e7285cafad5f0f25850920cb2f6543628d683f5795a76cb3ee65987a77b36239695e36d671136c0cfe2e503b03f73b1cf1f409874094c47c948aeb91282fdc3af0d7aa910007a0bb9239e2bbc5b8def31c957581e31a1a84ed4b441d57209e2d0e6b12aa7b74c2971ea825682f269bfbf656920f4607373492fe8ebfc7df419a9879f482402e2393e10e80caa5f63b4db2493525c73edc99bf746a8d29cec6a8e41e184f65ef7c2189ff05c3a2cc097accf6db7a31ee79910971b12dd84c11ae1afa293a0406467621a37b4ebfe2923a8150e0814ccd08f8f37ca38fa86bbcadf4b070ff0a7422f14ca9955819cef243a7f3445cbe0c25988cb2ca32930fae12a669c7a0419aada1bbf26e67326915e9b52977ae2649b29fba619e4536ffc3b2b23642d77c174ae76095dcb0eefd57913ba7b8f3852c89187c5f273786aa092577f374bff1ee2cbb67f584e48dd89c0d9f5389ff6168e3263a2b5e3ca1539103cece951a7543c3e93680e18be81291c2b01ab3f9328d6c0bdd2ee445421eac71c0dc20b7fb985255e2da8d237f75eefd6309b2eefb1a5255796a64f2c03e46481843f034d082267206ebf4cd93edf6651bf705897b2bf891b91b363cf9b6b8c629889c103d85d3f0b9379084a922ff010dff16b56302be0780fc73d6489425611d1294ab5c76960a7941eb989e51d6c3f06f9849650d185a6f1b76c47ac30edb7d806b8bde28086522126862d22894ee9b917b9ac9d39142fff873b46e31159a46542bb7513ba2133d8ea07624f10dba3d94fd08065dd4ed00dd0779950ef70f37d878b004aa97af07a2f975b204b0c0698ca0aa123b7f64bc3015f9e291d426b5900d583b8d52803801c162d8d68df971f200d73747b9532199fc5827db4a7f836d50d7bbd305166f196c38083802273686f5acc722607ce95a2be25965db72a8a5d5a6ec455954ab639b4c5d30ac426a9a1b6af8b6d7db898bf11cbd3cdf5f022b32c4944735aea7a678fdf5ad204c81fa88fbde6fab04d387846431b6c4f2075ca9588212efe72548d8d70d5002fb1be56099e1f91943750d2657f357a1478b3f909b516aa87a1c5345f62449bf576fc4ff45960b16bcea94b99bba53faaa38b18462156f0803868892cc360653427bd47d4c54f25a1723088b41327ca225d5fef56eb537be7456b11c2a3942a8683e5cebbe590174131c8976ed856e4fb879ceda41067972ae63cb63b53727aa6d5407540ed838adc110bc87e541349d5885b90e9e637aea7408240687373a5e3ca355e2c752ed6016386e020dfdf39a61a55143273023cdb813f885c2e04e8e1a6341e1f26e955624960d040bac5ffabbd0753f2c677cd9738807be2b14ab83e0a6e90fdd41537cec150b9d31c97d1a6831ab07bd74cd36d6d1e07b5f6ad62cdc7da70a7660166e2de75458ba6ac7c8690d487bf787d020379f8d43dbe8a7f016993c2b6af63e273a7e82c4dbdb15ee8dd3a0c1c0f28b7dbadf44f2511bcb10794cf05f1e3b7ce5afd52ba3bed2739908d1c20345dd04488b9b7a3e2df25f65ba0c429a29612cf47c28a94c11712794934f08c01a280ccd2be135c5b2110c0e9a66673ce74ba9d3cefc5517c77e79fb67d5bcc0addad14d2edee92614a50996dc4e76b87049889ed35286cf37bb534ad17d905f7e4525abc409844170c8238d3bc070ce1c32192070edc3ab99385b8579e611874d262a9b24d3768246a7a7922486a6173ec18b7e2cb171a5e0105850fa5c1860516b82f83aa53273eccd0f833b1a8be5f9b1a4b46e1d400ccae7600fed944a67144dfb9d67cf20387b6199c98897df0fdca4eb82279da378484f6d38ee644b868937f544fb919466ed7e01e3bdcc2487ab128aec77cc5f3e7f01fc95e727dd8f8fdc5fb8db7cc8c9745d7146184820cfe878fe170d10b834e81ad4e921d38c835d8197d2034fcd1439932d85bb00a122766c8b55b26d2f5741f0b985378ec9aabd7f9f7e8821a462a1cd2b9cd9b59e00a609592d8857e084718d5681beb15009e9cd3b1ad27b8165bbd17730c8b78976c33678cdc6ced5d6a3b3374be9e664d849f2a4b87e0305b303574e630b710dc872992345178013b000ec9ca2ef8fc982a7c78eba6177668272d338c04c594534ccc8915b7e1cf3fe30f8397132ef8e05b5dddde0e187f7d370bbff3418ddfe66d753ba758449d8bfdddf7c40b0335da2d0a66326245610a877da2e6821b77e8826f8f8162e1be8acba367e28f00c92181e2105e8732b898e81103ecd645e624b4e326506bd5d1357cad88cf1ea68062f002920c5b23dbb7669841bd4613469595d47a2334e219f3d59cc616de78e0d3b96e92869cacd138025c00b7664a1c9a5d82cafc80bc0dc258b2c3ab027e0d265ede5b77fcf5b5b903a73624e310aed9326ef5a52311f0711e22fd11e185546ea5fbe47d1e80a1c5fcc793e50a659fa6763a883f5c647cd161b5b163d572cdcda9ec26d4b1de1698607302a2b5417d9c9751484cd1ad6ec42030f141cfc40267c4499c5bbec22c479349b394e778d1f34ded018e8d03761a5671fe50faaed23bb7e3a04236f6c4ad45b6b51638ffc6346d6f1bc3d98a901b3acf6ef173ddb1964a0ef49759c851a7a0a13746e8caa6176039d184bb38a4873aebb174847fabae8aceb58c323be728ef3204292eb09e18ba1fcc61a2da24bfa2b71dc536a3bf11fd97026ba7af6aaed98fbe4d038533a924132ed2bb36a3764184d49555337a01e5d81b86b46ad618b09ff9fcb5dcaa05d1c261619d58a0b48a46977c01cd063ba0882aafb84cfdb06f250661179d5ba7071034a67d18b2b97722b604e06b81cf7ce62127350e6f263057c6ad5caef08af8a09971879b6fa052dd9f18f48d354ea02f19b4cdd5ba27254a4f77a52dc2c6cc0f307ed11ee0f327737580bfdda29eee980ea493a6e0d621253b53c6d62860584c44309195086d536316934a9fccc207311510848049c6f85866a22e88983fae57e3e17e62d5e5af5fb06e49c2b878805794b2ce2bfb2d0d0fc9789798c76d6c22065822d113c3671d42d9fd801b5db8407d8be1620f6c4acca8c4dd666230d2822f16aa3a65d9312b245c2ea03e107393804e09a6652432c9370bb3300622f5c4aa663e70eb0fb7056cb833d92b9e2f7a328b6c96d4ea391936c98a75dc9b92c02128c74be7f797a3b801ed34db1c5ea0b2944d986c1ae506876b50448e13c8e5cbd15ef1d291dd540a75cb6543cd09b6dd38973a9b73d40b9163250618851a6e8ff78355ea58d4e597d215fb53d37a022bda9bdc4a4d6341d56b1559be89d9617616e7de49e54aafc3cd076db3d8029b39cd6c59c4d8284c39b553e504a73a8a8b054718d035ff0036f669e16623a3391ba295a3fdb3c7a7721dc0bdc488a40dec421e54db9b9109ee1fcc2290c04eaf71766c6eb51c466dff60580a653172aa21f4e62ed02e578e39ce6a95ff7c581c4d13dad424573ddf01c53ac60fba9956247c65df020e1ef775dd5e5702c2f415e5cf1ee71c8c7c9a3871c8ca7a741cc9bbad6056ca01a5f19575a95054887214786fa294407c49130439d9695891b8173272bfee3ef5da0990120799281a5b3ea46cc1611ded2532c903150013935b3f633c10729cc1247a79ab62de173ded446323143e998fe4512ac7b2d5ab609773dee6e7925f136c27ac9d5678ece8362fb690709d36487b88c66d7bbbe16c24fca9dcdbfde8ec3e620438228951a2ae3044da1295a590f1ac7becb30b76428c2c46ddb5a08e6ce4eea05b5930c4162f7c8020e9aff1f7fe3273a8b807315dbaad5d8671880ee808192935716c2b33d16b64cff7014ff46ba7e9862dbe922598469ca5091c34b193984b9d3fd5768ceb003d0d1596158007cde9ef5d3ef49c16ad8c38078269385e067012d1e54a4fb5508f75770d4931a08129874837697cf8681b6ac6ea65b4446a27878f87fddc3f93ef72462a7d84c9bb064f96ca9b009e239109fc8340242effe100640bc7641778413f16bc11a9462e864f0ceee554ac3fa3c0ae99252a7a192473db9e183f0d21c30fe4584f04dad9cec07aa7a08c4d9c490e26f85772f19f8d825cbbe1838e6aca5f7dcf1bbeba8d63ba24a10e2cf6cffa15883648fc78fa751b88ba01bf79e50516e6e363020ec9978a4d0b61ff268b2a4d9c33d98742a3270222fc52c523d6a32e971048fca86a3b6bbdcfd64e41536ce28627ccae66403537796a21b18615133cc58f61a1faa5ddca36f994e3416a59528579d2a6577d5eb258e27c653582ad847d06a2a2b3bea544fd7da78f61370a51990db58378983397e1983381f359c9544a46ff688577f46a26e9ad888c53b9659620ad3d753bff7a5b50ec6c4c9218033f333d43f15e9c9b62558c74f832d7c47c762c9725c05573081b8ec4f8fcbc9b7f2309b861fbbd61f7a4ae6d56a80b25fc74a14c4d8554b8999c1c741742aa54cd0ea927f79afaec340cacc10c677c0d7a105064d9c0843f71f3da8b6658e71a1e5c64214b22a5a38526d4e74704315d3d6efff23e1e5d150d5a45de695e6f10f77941161955995f35e8563b62b2a1193032f895b8cb04380fc329440723d69fe6932a2dd7147b249ac7dbd4860afbf76b916318787710bd4280a582015e647d1f92e6cc340bb19b4a5dd9e6e1cb276ed9c7f6b5eab3c4ba3b39302e1061d6a8b9e1013de23043141cfae32bd17dff9934e8141fd27ee5f5f98b2093b1173a6a10c8f78d5e263c21d136f7089fa96088b334457b2c02fc417205b10fc7775eda2f7c984c354413faaddc96b9f47d6d8b8010d87e9cd0183772d64eb2b95052a053b8918a4f38665755c5a29a3bfb629422f60d1d18e0c3acce2eac618118885b61bbaf778e9e4ebc30c77dc957983f2498d9df072f51d0a91cb0190b453f90ce6d84b5bb5e3579cb34a72cb7ee7cdfe87ba67ccce1e7e5a69e3e969e3eafbec73ef62e56ba29cfeb92722950ae6e5b662d7372115cd49c52f9f949bbfa410effd3860cb148b67510543470b66333273fc5f41c338d420de3cfd3c138b959283c4a5833c54c020ddfc4e56d3045336c7a4998be505f63d64b5a5a802d54a78e40df8edaba28363dcec1b6066b0b8d9ea009df5742250b7cd4e849e427e68e2e830e2b212c33b85c4794b93f13445a70c579a98450d04e69cce8a3aba7df69fcd1c2265f6c18195d9a22e89cb1710cff7a667baa37e8f35f6002a8557d6967b8ea2e97a87d911d3e8904d0eff6d29c385f17abca3c8970a6545f1126277443148019d90f92c21aa8f314f5ed1f6569fa8a502ee9649a4b020012641413e5a9f5223faf0c2fd52da619831ab7ca340be9c2b433acd3396984d163e64f3a2e2cfea2e1bc5202b606d52e848bf8bfcd8e250e1ad6b58294645c6220eb2e2edb9200004cd477137fc652d70241ec290dfa3a8fe41bb0d26965791a790aae14576a86dc1f7ac87d04cc1b3460978f6df138a2bee3ea705227339b60419df7f4a9d448332ea3009e872f1dca7efa0393a28d18041186d135d5fa82116e93ca1a6d9ca1cdc91e35c83075c4397e9112ad3b8950cf3b3503d303b74a844195e1f69fb2d205163d631cab315d0b1bac77f301077569e0f8235ea4fdc0486ff03183c07c31ab847d91c0564f756de13118132fc7203b9f59e3c9214d8eccecf64cb5e4f94b5b7e8fcf90c53c588944b8056dd0f4cc1b6729dbf1869680c05df2cc8dfe58cdd5359c09735893f86a0e08a584f120670bc3b47e9544a38dc90e228c8b7e7f87d2c29f8b79845b9e5183f85644f9ac9e446e97f39352bd9010ad92b396118d3f9f12a30720bddda2892d9275e4364b517e4f3ab1aab666278974fcb366986e9d4e4624444cea5431cc64f14b924bd74bde129f579341f8499074af1ab78c07e1fb314397f82c7573c21c8d55f98f2c137fcb494d6ef8e084491faf268abf32f5c8c36d4a69a924815c10bcbe15ca0f7ffdd81437dea90d45d5ef68dac88f77a250abbe958104563811f7168700da1d8c535ca8c831ea0b4e28f715a14ce2505988d068f20ce3fd3de2d759daf2931a672328483bf238d145c129c7e29f097d382fde02002036a9908e9952d625398b0d6ef7b15cc3f0e813106e0cbf42d79be143fc52925381790a28c8bea3f5c8845e0d889c8f1648b16e39c3de8d36645a9bd89addeab001bb1656f432e6b4b748ad514f9bd500ae1e1c2e9fb21b69a82fbc1c6760cd9412d7254d52dccdfc9014fcbee634174c603130a67f354858462b0b5cec445dec3a440f5eca9d1ab10abfcb87bac0465f34acd080a561f9e228d0e96b3cf5c9fdace6d3a77aaf9be0e135a7c16fa49f5e872b7eb2b04d4730e20a8636aeedc644c9ec8bc8216408f010da019cb4d57804693cf23a16d67358a0d2f44f46530acbee5203b0b935d3442568cf320e7472d196e8db17ae3f8677849d9c0f046ac5b6f33260ed1709172ff582925e1c4e61e2a434ea3335c64b0ec8ce903da012027cb50bcaa3f3a556c509b5712213b3945848e82179d3e754440397515a6545e69a7eac1de375bdd0bdb0a9eb3026b777061e2ce3a4cd268ac2b603f9951a23f7a837bd883b1760eb0dcacf917eb98ec99b43de57d801b9a1adb98e8d5977e380b5540035082d1425e2e077e798b26a6be3199a93f4b84cf4420537595173972bdcf12c2cac96519b67ff8ee81553dee75735f486f15821f7081811527abec0405a323048ae832fcc01159069d0fe8d029e7ca3528c4f23d6c3be4f81108279e76950857cdcc0dfa8b8b33f680914221e890c3bf943c8ae53b10f75714f6d25f91099dcf313d87ecc9683621faf0fa12ddc4d2dc41a29c561767fa89126fd7991bdfa72bc9474b335daa93bdb5a976f0b06b255650b18365da4cd4562151261be9925e63889d428786e11607334fced89e4f2ca7f8b0899305926ab7fab35c377edc7d80467bed3b8273fbb5fb40dedaa61a5098d8aecbeded4b4196cb396c452bf6ef4112e832d8e6a0d8a2c885f277abef2d9a0fbdb5c76d1dde12e20101ffe5350442c3adaaf945f1af95b9c10d47829b9a2715ce4ea9313beb921200b9c244147708bbb44969664c1ac5dfb6dca033438a2159f591b1850fd033b07ea69be5e642ee9c7eb627387f2f56a61943d3b9b6cf7fc7fa39e8faa2dbc7b7ed3e3a390cf223efc83a18cb207259f4e7ce4c7a85cc9693c4ac420425586f03c4cf42a3154c44e2810c889046bb91677169f56ca74e2b9c5f61cc57a3c7d6877159fd8f9130c73b08fdef496078d59a0c4b56e65c8d827d855a838df1cca44a95615140897b0720541f31ab77df50ab7a28ed1ae3ea954d3b7d1e387720e222079884dfd39d0e8abe1d316f3cd689c979814ef3e4695a4c19bcd8798b260f16ede423ccf728e97d869ce6e99d9228d477f4f9d567b283d36b17d4d2180e4675a946f2e1e8de7326c00dba024aa8a700cc03dba2da6a6a66b6192cef74aade7e11d4949cc21edc5d00e7d233eaaf44638a1ad55a109ca2d99b29469511a9bb2fcf7d21c1e583288d0ee16c8a67864ec15e7c3e388d8eeab12eb110b1689a391593e78b0df419a65c8107d40ed342e675200a971c99868749be548990a468283f0da36b336e31eac1d39efb5bf2a4a8d0323e2cea8eec6999ace79434a8bdd7678d2860b89dd75af2e5510e84b101a16fd09ea3a6ff88d1da20453f5b48e5ecdead1102bce3b846609f6c10a03fc1067a011c2ff5b5629bd2edb150f13961b0f611d4eff0e536b13dc3b30cf31780b0e746e722761ee309bd2bf48c64391c64b82262ce355a8e2564534aaec05e15bf58a7c0e3e97edf66ab6cfa89c0c58520b040c42ce4df2d8bda33c4ad5106749789bfd03f75be0fde89849a7fd4708c5624f5fb7d511c834805b3675d283d59b431f17993a13991f27dcb9ad3d40db17457c3fd228fb35e807000ab1854df179c101cab376945c466611c9ff6dc3659216c1a1abc820181e091d2f7921993680e7d9bf6c28bd1e61ed132c0a854fb4102cf6df30a168988ddaf88c4be92d2f1508f70fb73830b785885c0ec773285644f14727854aae98dcf934764ebdb4535c885beed81c2199d6ce22962474f7fa3b1232d3aa73fb3d93575729d22207a7535f495b73b81a9913486bcf092edd69a2a18d2c3aa68ad84798da870d73b8dc5cd0f0327013e9708daae5202890bb94c2c9b904daa3f8985f45b38519e81023a2e4bc54e1fb9f151c27f9a5fab6fcc9df1636d5a77155ed909860d365edbf8d1d7a5aa6915f93398d444c9ac03a9896ca290e065200456c0f17ed2508328e3ba4f8fba608e053dd6aa39549e27a31a442fa2f8c29dbce3a089ef88ada8dee33896e228acd05077afc6a9d83e36e9c4fc22c1dfbc9af8e6a0bb078c4dea3d7c8534cf429b78508f61c5c90cecbfea76d5b37735f6ed667755781bcd07f73cb567738a32827415999d1a83a52c0362f73382ddd80a3ccff6a78957628f87f94b856b63f8cd1bd01da2581921acf7c10c9998b083b0a45d01dbfebf3391b25354547666f1ce34e40ae7cb9dff0c5e0b94d36dd809f003df24d9722abfb9fded84b59847672ef883f0cb875546f548419ec5a9f7d2f94474a4a7d01af759f276fb672145b2bd645087fd971d09fe6aa010fd869cdd14b8b15b64e31b7173fd7a8dc6a2860d8eb0c8eda9a0fcb5ae7e11735dc2400c740e3bf93635bb07299b50dce1c53bc0cf8f615f119a147053cf862530735a311dfd1f2d89b9cec467ae925ff482adab9ce3e011641c69c2067579139c23838379944147c27630ea35fdfa050c9d9a305380b044c2a7f19b16a69c1d1b05d69f3d3ce773ffa62a2fb76da95321c1ccfbe2896e3c37c23a6c0c6b9d7cb35c4fa56b962faeb4d534e41347de57f4f99f871869ae31095f7a6412e5bcdfb035ace5355eacda4e40e6c6621883dbb0abfd61ad2650006ed8b2fee69f7e3958cdec91c792431d194642f8970aa3dde9a3b52c3ab0b01bc58257ca0e3a7e05192034f12276d08ba72dbdcdeea876071749006ce7cc04d1d777f3206a349a82e2197a8c75b637f5561f43b88ef980bc5f58ed760c51f03f8cf2fa38679968508ca5a216a4eb65cc9661654878bf85f308fe42d6e5c4ab8ed46fd45a3547117ca48692c65490cad1b0c4ec061fee7e938747dc5665bd87aa6af289db05b46b526470f85b9e447720fe489f75997c8b923ba8dd489d91d9b1785da9685c8f86fac4ca956bd6b96ad49a1fb15f54deb36bdf0dd65ac894b606e6e858f745f56f7c365603368cebd29519bf2d6aacb0cfc5533c177e511ffc69c0afd643f428f2aacfaf1af9ac28877a1e39face75e9f466656f953b7cb8ac2831290d84da76ec25c13a811d3e8516de192a46d625a99c08ba78c6f46e87c62f05b725cc7f4ba46990dd336eac0bfe415e04e04af5f98e21f4dc6e1f898c08c67b2bcd65fa5e7fe7dfd18a8dfbe347f1d308cb0e6d4757921dc243fc415ec536df268c54bf38d1fb333c20311a8bb3f2bccab5d050a576350f511446113312f1f2c987425642b2002aa3f80c3cd4a9e0069b9e33726524fcc8f54f169fc616fabc94089448dd78b3265b0368b904a223acbd9174d75eb2411a5026fdf32021d11a09bfd976e21f631845bb9538c34183e7dbdd00b20049146e0cd1372b71e17d29d7d16e808206051ef5140e51e56757c89798cf169cc579323a14af11a9ace3e7d8816efd6ff23f64c06209f341ca44dd40917e3c422d466f4ac3302f3bbfe7897f6024d3368ac11ba0d11708d2d9b55593faf34c2ea5dd36982c50e85d97be156ec6d4c3efc99cb4aa91ce0e84c28617c382c8aabec3a0799a821ac3e756dccff9d55662aa95d96b67cb8f4ab26cbbf82a1ebba20eee6c45b1a5f5431f42b49c71e6eee7d0d563ee6b3da33193342c12a4ed8d1c1665bc81fd2779229d43232d995e652a1619f0562156d77738f9eb1be3aec661224a04c140eb1f985e6f25486f55269eb58adeef8d5bbcd758abe97906df4a62c4ca64b63d54af201e0c8cdb7d3a47adca927312ee30f109908e175eb7b9d5c2dd6a8ba2f4399f651bfccb7fe30ca2ddde0ad2332bdbc01d1e1cb27d18b691fc528fb13f3fddf4968cc268c9c828dff0242e0072b562978daefbd31c939b045143f5cc090526e37e3e993d1520046bb799c9f7c9d01860ca18bb17c16c35e90af9aac720830fb5975028ae565ca6215aa90740e100d264b03465638e3c7f4317122dcf28acfb5f4ff51a898ee83f4ad9695c929185796e887d8a70787ab5c3ee850cef01dff681fc5b7df675449e448d8faf1628937f5fdf961bf24a1707f97e35ae20c5fd1b5947bf87c854c72ddeb0681bf9666b9b0b827e7d9a03790e326b45c712bcbf4db51cde88c8a588407f670e3077408a1ef12369147b095cf188fa1b239eb34829e6e83796048f8d66e9fa7acb48fb3d16006fe8bb6fccdcac78672212ff0c2e2c1da570748edc35b96d8ed386fa3972436453520aab529de7f50b0027e682945d226c9ce23447f1d4b496fceae361e159e608a1f2e17d31afcf7ad7ca11bfbf284def5723182dfe08ce6d956d22493b54144d89a395f0f3101574d62ce3964f3294601a8da761b0c5285c63bb46192a976a76046870ab69f47dc7e3198a22cc155ce6d7e7b672bf9fad59a03b70f643334dd86db4e580e48d9ae1790ba8520cbd730c5ce788a52e6da07133da379650cebb8d69bd537dbe4c6b817c12f34ce3e41f16a5b84cccf2cc79683d8f08052453aa2efccc40b2f93d91dec5496b05da460943f6265a6aead9a418ecccfd8f6d0f9624e519b19743db349b0dd3afbf9a54259fbe0dde10639fdc38728042e72ca090702abdacd7571585844a4a0a02d886e6a5ce5975f555fa202fcdeddf5a7e2e2ff1adffd1846eebcd50a4ce5ef772c88e66d6d512a27f71a9dc558730644fa3301c8b91842afadae4599df73fa3488a5504ebac89e2574268306643481b2f64774ccd3efbefd31baff507c52e6d46b1f6ed293b409c352552ed05f73081577356b515787d0ce582efb1412d269f23f33de9a378a1cbffb6352f74d5473610e698b8e7bab77647b26855f3c9d3780e97a534fc60ad29683d9661722262e91c6490f080625154816e62b809e13bf240612e9b9c095afe0919232ac4a00be6511cc6ae6a50a209674e49fc6b46450e5cee9199966e1967d2c905a57c4c7f7c69fe9e72cacdd699738907e54e4ea6ee71af1bf535148a3770c961af00acd7fd975aacce2c714f3a13dde34b91b6af3defa392a3f2ae743c1e8ec018d6cd94cf75c3639066445b7528db5e79de041711c3b1eac28b00066423d6f253bd1213501a08800cdbcc30103e90adc178208c478642396b36d4e032394fbd00556adf1fa349dcc7f0a6694a86e8ded5c86ae47b908ea44a89cf0eaa7093aeb45289823c29007b5f092029d113a99cfa9993a243f4ac57f23743f211880abe71d30ff5cafbdf2d6f588d50b58f04b609fb6fc1cd4b5572a4f0e2e63d5b9178d94addc9f9fc8db3aebfc4e242c12fb9aaaa20d880370d8a917b5f8f92530827fd53539fb877b6311faf7edcde243520d7d3fa5bee14c073f3a1ec8ee7847766818a5512d7c22a27bfe48052e04524e389963d80ee7139d72df4dfe922eb2ad4eb614bfcdc0e61f821a7b1c94c25486d9946b8a95245b28ca27724da19b452f965953352bbcdd3025f7829562e5b6b55b96673553042dc2df59b2f6ca9237799c7456fafbcc87033610a3c0c96dbc5a12bce65e6e02948c076232de9ea3393d09450ba0bcc931f70e8aafa91dfddca725cdcc093dc7a4f7d5ba580744899338b7e4b39ff490c30d3ae93838b5f5b92182cefcf811635af89169113802739e5bd46b72a34a060afd04a20647e985a9421555a3a35dc0886e246fb1bd2eff52c29ca085c0d57a9eaab337e66a2da7576e72f3dbc557b510e2d3d1d30a366d1c409d584018c660e71750e61ca1b0bf1caacd17ba497d025bad8bf374f7c652ca0e6fe0cf949911e512fd3893c7916b290156e692245feea161975e0620d872f2055653a0b79d32af44ce298568a673d3631393406b073707a235f683b8316c537777d5088f45c6c8e18f8d7e5cf3b9dd382ff597fb23131e0433a84b637b374fb832574362f4014f62e629a4bcae6f1e49c2c606b5d1f2ef0486d33bdc76cffddfe6ac6eab1ad956226466dd06ad47c957a19faf405dbd914c6f8ce880f798b9d204bc3914ad5e596a70672accc177c29d328b19821d2c880df615947692d48c9b8ee8b24c92b64773d53a29c2883418ce23914ea155e7166cabcc20a5274590fa2c198bf087f14054339d7893d6762670e71e7cf54650a94b30b8434a7b91d326d040c6f6129be794ac181ed6c83bffe22511b09f9500fcff0db6becdf3c56b5964919f442128ad9ba08426e002cdd5c2eef91be3dae6960a85e962a5f801340aa9a33986711492bc3455737032e049b783c45e085ce285330e04426a45f49c0c081da864b71f4f56a690f57c661d5762cea99a412a3c070c20b636d6654ca1b641d0a3efc7ba070883cc572c5d7829eb3134ab98a013a4056bc189ed907377d88a234ed98adaf616ef54597bf4d97947234f3dc38c6aaf68943fe9f6bde1117046f3d042dddd33d251ce0d5d1facde3e208ab76ee53fd2e1ae02e44bc10864d8cd1722254f1c9e68faffa3218abeb1d8b12db75b324f1a201adcadf53245f0bfe635614ae772395801e330469498c8c625363b6d3a761deedfc72850efac11ca46aba7a64bb6912f2097e3b8a630f4da1a4223bcf84fd02653ddbac7704ec6a4128d03f9a9369e51878e1bc643983ce9171f183ece9f10dde8df8a429ba4d88445632230d44bf5c78362195705f508f14f409e02acc5359e093a4be8d799394d09cc6177c39a1c803bf6ebdb1dfe8d83950c0065aacd909366f4ad4aca6c653a362c009aeacc4914fe0652065d45ab7e94bc33c26381d65b29b8f2e080c71abad6a95c7b084bfc9fe163d36b1c910aa7bf351083a6a4e2926da248c171762c21eafb7ec580b3a213c522c1a80318e16c86ace67f62ef9ad8726ff9d8084af3f2d22256710e0f8cc69bb869d3bbe616f2c95dec1b8f92fbfe301d177039369e89316ebbab4c4ada0a618598475c60fe28e55fcd62b5cd4169188cc858e57ef805aa51349af5e1edde687f812cf894bb76f7c18cc7594040dd40d9bdb2f8425007d7282283ae0f2ef26ac5bea6cf48a410e7864979e7bebd28120d39b76d73f87f8db257408cd643e3af992eb279e3fa87b11fba1285156b281fa8230c067d1efba68396f99c356a9941631ee749c30fa4a9502adf69df32d182eb2605d860f41c9724145dbd734b5159d9dc0f5d477e0120f2665364fea5b4e2582f29b710b14d2f6b8d6cdaec9f4bf3ab2333f52589b44d26a24bec648cfe4cf4945537a52fa565bbb174aeab38f9c3ba6185c6d2cb726cc71e946b8f994f9d7e8f946558087cb7a98d7eaa91c111f0b515362309ad18f45087646ddc7a750470b312f1a3e8f548e285ea905647dedc8c0f350b3bdbcfca2fc46d2269743cb06a3d9c304905bec049fa9b9a973bee36bf9f5699346174f0878db2dbbe1ce538c96a7c462afe4460b604f4ab10addde26c140be7798feb1a21bd7d170ec2ed3bc0a93e7a7c0e3e5f90f14a2c1228aec73539d244180ebb4a7b0504a4030a7ac817472f97ba4d1f6d33b84a93889be4d01917dc0f93071d55d7b4f38a1d76218033d757aa6beeedab0e5c65b6581541acd7ee18341370077a5aca2666de53c1b4f83d2032075d8624dc3100345dd75d79114fa844e89f5a6e5be8a1b1ff17be83a2d97e4d47d3da8c7657d582783f7002f1b0afb8b495727b7c3871bc377edf78f0a6d7dc03cca28654baad075008e4fefcd2d1b9ddd04d6c8e9bf399186074b009852b0bf0f4b87ef9ae9cc92eb9bdf76cd156862159ba4be78ed46b59c65ac649127aaecb429c10bc1adc263d9a909db6aa801251faf8d3b2ce3d2a3faffe3cc39121f5d66e5ccf1dce0f3b2daefe9e117941cf896969b30d347b01f1a47112fd68ca8c67d2444fc53489c36129cf42e6c1dd9663f111fa3c589dc0e05007269a3872af6a3eb20a60230c375125433e447610a643dc0caa71567f0c8294a1f2fbfb6ad2abe992078ff22200bca458e9fcdeab17a217659d1ba6c79d3df42fcc4f47bbe27349361ad5ae3f4da985ad1d225c98a378bdae700a122185fad2bbd3013b168509ce5266be42e29c319bececedd5aa7a411a23a7fe1b30164376211007955cc0dce17ae2ff041f52d9d3529383e973d63c2347bd1c8e0aa1dc27421a107fcfc5764164fec77eebd406f7707b17e9bfde152faeef9bd54efe99c6ffcdd3635f8ece4f24d7891684fad5b8322c44088d9671f3dd5feb396b73f18696d640409acba3767a316d9015884fdb5081bbd8df68ebe85d1c448b0a1115ae64e3653f2cdee07a2f12a3d941f461752b2639b2773b9526449f488a317f140ecc55e9fb22aa926701f85d5474df1e288ef8bca2075410d9120d33bca4a39ac4208d405a4e182fabc26a7d8f2f35b44ab482795973b681caf1c85d1a494d47ff538ca4c0bc8e02d5f8c0540ed6286a191040e42be720e47f5dc69c92be0ed4ffa12ac8ae7d72b50e0cff9a32651105a7f5aa6814fab43909ef6bdbe63d1a67b543a2930995ed116ebc691e77d823c899731a359a7f2be35e71a2549e3128a75de43b8753568b56850f2236092903b5b135a3245b14925d46b7a90a7d8d37cf26fa17e42c5717b98078289a96a1e10552cd29a5639453283caa99a4e31bab3c54958bc7bba99741af703e2b240db498843b8a5d00854799c8fd8547707d3d79fb534614bffd9f307ef4c2310078ad77176867384e64d4ecc931c5e91d99efec4bc315864ab96b3b7b77d6d2fa9d0895c673b573dfa5d58fbe8c4948013e4d29ce72023fac7974c31c7da354bda99ce591daba775b5f9c80de04b3eb2a7161516fe82606e9409e97638d331a7166dad99b7f039a03e72e02926812f4034c0964ca85d49679249724d0d1b82c2975bd0e711b92d64a6448cd500e8cc9e681448eb84e10e3db1bdaa1f339abb867057b5da0b26f4deb16589914ff798dbea3a97be11091c6070b7441320be0b5019668d062688c721e3e70369f44b7cbe4a2d3c96c99bd894bb479e86452c943729880500e5a9c587f37aaf23e6fed31b194648b3840ddf6a4e333d41cb550d3b2a2cfeb7a419d71a19c3a98a233071b7fe7c378fc40320d4b55c42731b526703a959bcf926e484cda97d7c5a67364a0d3c1797fa29c08c30f6133f647dc5f6aebffe5b12b356d44c3518c5031cea21e629ed2728e7d82780f8216fd8d1dcf789993a51e4e2a84c83b2d915dc418fd94667f1d34e80996df10168845f6ee62bcde82d26801a6e3021b57725e5106f5cfb45fbda34a78313268acbc77970b0a6a7741ed035ac3ffb6b61490a4a4eb7ac8af2c1509d551ca62497735eae615fbb3a24b4af0d2088b0f877c0f0ecf8f395a450d5db7d6fe5d4abf91230035a9f381494a2b4cbe734171365e8ac14c3489f97ff6df8462f2ee62b1d18d75e4965ea4ce3328f5c8b258d316ee7508453c37233a32334925f2a12fdebe5e6874afd7fb5aad5d05276904231d177f474a1c8c2c0d24b7763a6411041568959047b4f07fd1fc047d2b43e9ad8427211a8e21085304dbb139f216f81119e776d785d7db361673911ead5b8747824fd942943a7982b7b7ca87427657cd1493ca31956c5777f5e92f5f3935458669146a9829134504656926507afba5528205439a37a1ba5781d444198ffa4ab9315b83ba4b3e07ecb0bd1394d932aa19b30525b373b50e9cc21daf771f206b7d48217327896037d69077e0d4fe09b1197ad16414e6fe1ae7f2b09154462d174325ffcc814d9dc4aa7f09303f39eb087890b5f29021bd32098a6b0fad45c1d17a0b225f259f98f9034e761195eba1a086b8bc0dc39fca2ec4bcb58833a6095a70ccc8a0582012c3b871dc0eecf867169c8036548cbaed5d354fb0d057be1d48ec7b9bf408e7a7e4b5f1f8013a6fde379fd07dac70b9d9ccef7c82b13a6f758ae3dafb519a4e50cd654174fec99ee37330d88e1546b027ff50bcd9f381d5f0d47da2992f9f040adaa4e86bacdd776a457d9c29d7e508d31750e3f6a9578de4a549a8b0053d4d3beb2d54cd2d0c9bd1010756c492ff40dbf29a56a67b3421dc585473f7866e09549c650b3bdd94efa13a471738ce13515fcc1b8c4c6f059046e25270dd1d1fcbd6930913d341832ab96c7d3d2d68310946a5bf2205bb45f1ed3c18fdab8368f8fda70dd27f291349f77a03e9df00ef80e1f6aa12128387deb44e0aa11e1f90eb207076f8c435544b4619ff44af06f312e3dc600001a798da6d9b59d9e6bf08240d46b961b6d3e5ba0dac17a32faa7cf5348d30b636c0fbbc8ef9278b1547c7d54027bdaa14a120cea5cfb9e36f8fda7c01e939eed7f3e6e0ce71f8c97b6cc3b6550321d8c7f3a75d8ac5e4e51e9b9b49f59bf396cd1bbf4f30070c35f5e2e4a2c43c7f1e823e38d5408de6807180ea7d5fb4c3fbfedc3ee3a91ee0603fa2887e608078cf8d4834a5aea5740585ed4c4a3a85843a846191822346120c24d1c81309df27b47c3c98af4bb0bc482ab43ed2fd6ce5552d09a9579e1cbf0caba65e7d7c5b891beca13d4d2a9432e5171a74f20f79c71be9400f43ce57abcc85f9a05908f6176af60b4349ff809c306f02f69f214af3cf9766ddf2134f54626ac85539ef9a4fc5dd74c813c0956e79cf983f83ed5f9cc62501d3c248d3f3f7d34997f3e8e14057cb4e030d940bb2bb24fea63104ce3621d1d3942b356d2e6a838e8c710c81d124c7701960d46a308d7f333d8ec7a4125e81d3dadfb616f7d57d103bb16257e60e45953ef9c52f32e207f9233acc6034fc7fb3140dda35b604f3aab4a2def4e7b95061b40405a5e5217f64a3344e8d7156cb37367aec53bc2e7fcd03f2a159307619085e1ca94e7f7be37db050b444aa326616a13fd3784a970c44750d103d528468c43d56c57b0e7b20e5d403b2d8c2da3885b3031bbc0db309174e2bd74bb21b56b4ec51a6f87d00c81be5e9d26af6253ffc4a4e9ac1ebf207b30445d18605efe69a075eadfbbf26077565f9b5f7e4f7c73b8ce7fd77929c14c1a3afa06d51acecc665319a4281383d2b0cb9f0cb8282f87efbaf1e1e61df2dc1f614b954ba2f80bf4cfa9d006f530387121256ec4a04265073b2bb918854be8f5a650419fcd9e10cececc4279faffc19b54e46133d529b0f7f0ac8ba5abbead25228e5afebec2392e34479cc7317cd5fcdb26c95500d7dcc45fc25dfdcb57fe7cb27385ffe19238e4e8d4bcce6414a481a8e0106bd2691d6ce1a162a249e521ed81409cca43949800ce059f538e6577edf6cc5ead4b6ba54fe4258f3f6c593c9ed89583839fd3b18660e6a18922f4c68aebac6dbc1a82b9a6f02c4a0bec92b754c3f6b3a5282088374b262fc750da45c337b6b55349059081f6b7ecc6ea5d0d7fae1654db376f25fd31d4996b487c62f6a9fdf690b6c05e539af33525d98c03f0b88e7c3d980d4c4f483b21e829fb2f057c148fc52d3c1797bf239be3cba57112d83c0e86a16d92921e369817fd89f80ba7f0a5b0e4d20d321dbcc37bd5b192096c5c3494a7cb4b376ece28afcf045fcb45b0b86bd90a8d12558b4e43f117cf47df091551330e4a220dcbf3ca8d0cf717e6374ba05be5a422a54bf9b69e272c564bdf30b7a44865c49f5788c1521c5cc1022d2b4f2b8f7bc06d7c9197029bb5104dc0df7d0a9b1134e01f392b549802d175800e7bc11b751e802ca26784607f7ad825132ab840560f6494b0ad3e27e409e2bbfcd21938d3469d31a743a33f314182cb4ddad48a157a46bd274ab0cefb3ff6ddc5999309f4f36623a5aab212eed86e86b3c3930068c98961b6362a45dfc96e970f4636fca4005498047d2ea5f04400e3e2e16061568f8e37cbeb68ad69ff6497dcc18e63b2df6bf361158e465c0e853b1751b1470eea567238bd03da1bfefdeb546198ba68cc74997f39237e7936497bd20f156aff9664ef6433df4230971f8dd1032329d32fc431a3bf16e2fbc2013114624d7ef0eaa4e2c477da5286b7352a5e2057266f8e4d64be8e51390400054fc4ca6623e6003063fe739c4f5a969d86b63cce26127c7f8559f81c28c893625653d58d1d400920dbba8f958d50b03c2a8189fefdd2ba298ecf4e92d003e91a66e617b09e80069c99f3785cfcaeed468fcc18c8ba2cc337f7d96c36fdf9d11dcc3027857561163c7d0613c2eddd980b55fec077a305cae4883a4efd5b5084dc4df8a24f70d3f9181cc512e8a4f8af503aab2f3377fd7936d204a972a18b123efdb4a94a800e443f47265dc5c86452f82f2bd2429a9c25e70d1b6b2fd98ddc4019c34ba60c993dd9afb405088dfb6fd85b25326e0ac6de0c863df4767d77523d0a44054353fa422e0606bcbcf6d8e26f0ac8aff5b03b97195f6c851f5e17070b2e487bc97db5699365e4fe13c3fd0953f0d30ef1281d75823314bb97314be059a68972c460060371be064fb785e657f9a3a5dd904a205cbe4436474bd9bcc2dc32b305a4b6b787cde18dd3edf8a872a44da6d9aceb56b0a2b4160f9b11c88f452af701c6e606deecc9f890ed2c9c6b3c3b9d2b214d9fb2818b4b8f75a451a83452b913b237144f872d8bca0c42e9e9cde290009c9c2b5c13edf67dfe59930f0217257542599bf2bdec5b1f367ce11d952a065c3e53add942970e3c923abf86ee7c42c942950ac178670579d8f09cc91d42a4b552856a57c6d6137df19be947342b4de70e1eb934b68cf4e554f4f94002bfc8ab3a8905f4be4994c5d373033505478af0c589606534c2e45da870f93892f70c4e6d86606ff61ae97efffc831f3e4867e0828e6468ed7ef2727ed085a184520a2b1f78c5e8a2dc4b1737a1f62ec5cf808d8325ad2cee1c2b1c2981e03bd74709852baa43edab5ca872e7cb2acc213d4266dd154347a86b32aa400833dcf8e73014ffdd1e161b4ee2f5283847ea319225c03b4d4b0615432d21ca3f6673a0154146e349ef13b64637c67eed1b5b36d3c000d9c9e3a4aca213f839401d6ec33174eac4618c66816d192ba9d0b5f51440362754c5a09f598a781565911043b04e3669ac07328d4659995c9a8ba00b839521b8a85062ee4ace44b2f532a22084bf32c60334ce49002038a34b4e244120dba40eaf76eccaf4a8dc5190a210f5f337834e2e2988ee16b0601c6d299f2c0abc5acadf7c84e5d1d000aceda8f22fa1c07d439d1f7eec5b1b07401a28159113b1d820c8fbfc5c40496a31920976750bc048d69b74b9b8bdc7bbbe0312d5e41812d0703b6b6c3493091ed17e669eab3fcd03a9a11f37149b10e255a3d53f47a35861f35d2422f5c20255e50b9f0bd89368a60cce2bfbc84490ce1a0d6e4aed8830c7bf3c6947d10b568d1f88ecdd8cc605968e458c87628f3afafc8bf35c8a97b0b775ad16b2ed1844b8ad2ad39582d903af98b62b4ce4c03f4059ac9ec772d883936541a09b8c5f302cbd013a6fb23b6ca497591171297c9e53f4a9a0eb2519462ffdd16e81beb94419db899a57c4ea8ba36fe1c37a1c41cb236ce3c68faf6159ccb5b8ee64dcb5614d816ddf2a14888e866be33a633578db2509e966dbd717edd2394a9152bfd1160924031d17a831c184fb4bbd914fceb03b53347ebe80b026375bc07e83c73526b684a0927385210e5c6516a7e42f507f6a46ce925f6e129ed89bf94cb3e07b01e0d0498f7aad986047e30a0a30e73b5caa88987f5981a13329bd19bb534cd443cb9dd692acf8451f37076d859b18f09fd6c9f1feb4dd9fef814b334307bbc3b6d558e4888fa8032777ada08b485f3fa59a0f65d3db0863daa4c715400c19ca54adfe974fd8c7898479358ce4a55d6a4abe08e0eb7206f75547962a7c9dc2756aa471755bbdd8ac60dde214b37a04cf9d4397848e24ee0a926e8c0b3b0beb3a65f2c48ed343930819430b43d5f4ed30de451ac10077fdf37d618e115ad840eea15bb1bbe09c433cafd8daca0cbfd4442e91737ef1154133dcf2864c72d6276f49a630d310b253a28df09fb0289b2c9567f20dc93b3382c6ef5689bd0df6f7a41480881b465d21e13343a2f4be806edefb6ee8d2f9585edb8e3aa7a0d968209833705974d24dd3cffc3bd7de0e941fc17528301e4cfe4320407aeee34171f22c299668fe2107becd96a540bb419e2643fd23f829347a47da89078431b527d1b3c2776182ed6f5ac83a5cc702e9ca2712d09187b04a24a2be19cfa51693c600e79e012f4ab1bdff4338549a6b163b4847007fd7e675738ae3b11d5e9a5c2e167a50c5d7d6126ff3815836e3ebc1d7d8b27b9fed727ef7e4cfa755a84a50f61c32346cbf85469db8d5cc5c4b9fbf7a3a4329051baf981a64a83337b85776cf0bca1436b2ee8fd7029dd8440bac42cc293cf149a98cb77fc548297ca61e186736f22ba6dddb6d7dbeca44323a7175683f5049a6f0f6c2a4d150c8271969a5a50f82b4872d413e9db319729cafb0c458ff30d46fddc54616e1ff7cdcb103a4b32922a2b6fec266d49f41196e64a9b83eb183b0d89e5430380c3994a84b05074b3946436479199bde5ec2493fc3e6fff590198df71f76737f1f096e695f279d7e98db35d74926af0c8908523c34cdb82a4df3f20c7f58fab331205f7e3fc370a8f3e103dc66a9390b23549adac91ad1be2e5ddfa1c55c84145617bdbcf715aaae363a0d120fb89e374292958efcb6d67ad56534fa689ce8d34e79107ae5d53eb0fba99e61982e4474dabb5e50972e0ca47e4ff5e1b7cb450d9ca2c6b08d7ad39feebada1c0a0d8290cb2901875e14c761f34940890cdc86b5c72574b052216da1b570c2fddf7094996e4d12cebe09811c3be8fb7eb9228baca9993f626ad3301e7065f81293701d2e783fd6941ac60aa2180284e5508dc05381712d147bbcd32fca82ab362ca0cbf2ea84b6a0d03aaa96f7206054816d538765dd2d7f9f94e86f99a5afca955cb66894691fd12cc7f6131def7f015d3f547f1c7f485afb18ac478a4af80dcd740ad3a48cec6fdaabc9fc53ee67c8571f101dcf829539068ebde05d82ab67f6e4cd0ebda7859cf72a0c06a068935b38a19c6e4db1c17a6b5f61818c5492ddde49991cde3481fce678c0e6fe369520e50fdfac529e8d2d5e3f3e3d7c1bd6be973478664feb0c78c45923a614223ade09e80d5e4d2b25147cc1de96bd5a30d76e54b7a31076b7ca337be9c2d67dd08b83834455bdd8f98fb2256f6502bd5df2f4d5f1a6df74e5140468a53a8839336bbadfc993b36506a8a1b2a7b96ad2e180659a01e4423e52137abef724e8f681b86dd2657c11496e9368ab3f8f84b5d9bd2c3db00d8c5bc1a71bc4c69af8582daf4745583beb4361670debf3be3a5614285e9829ea7bc702b620861089ebfa0368a34a1ec324098df08d41c35f58c0e31972e5d6fff0a234a445d991c2b894be99a4b6e18af64b2ef346fd264e16443ed3004ae538482ecfc27755a4f9c6a5dee3dced26640fe0d0f900243b26c229f5da451d56d292044171f639e4fecdf5fb3287ccd8661ba6f979bf9a06fa992cf04575ae309693925836a9edd0abc34f2d9877fda939578c1cd6d01d792c034b38b833c178d57b3add7aa0bf443ee25b4a1cba609d90fbaab2317f46ec9163db452ba0c8d1e1b68f45754daefee663b90ea10704442221f0cf41e3157c880192ba3d5e54565f4bee05c8af03853f24c9b2f837433b48eb10caa2cb7673b0247df91d4fea9924992f3487e1fc0fb9fc9dedf3edd6a6b6493eb4f5a1c643bc55fbfce6206a7f45ae186b2460558fb3b69daf71ed008d27c37bcc784b1e0b6f5a7c2631408984612ee213495208edde0c4bf35c4b47a3cad06b9246af6715ee4a1d3cc133026782f75de3154f2c1e9af4f1cc0eee8c00b96d3e960d0b0ed3d74bebd51eb0a73e59bbd7f739d7f6f64496e1a8ea1d34660af1cef8c7f7f6a7e1a72984d81d998159cc2bf3e9fa13bf0bfbcb1b751be2b047510bb47fa494ce339634339751701b5d7e5d0c39c7591ffa4933d1219c07c5abd5b9f9927c5c81b38097d1cb80be2937c2805631458bed50c56e3c68dbe9ed011916c85d5693185c18d5e24e57730b13c947e7c896619ee1f78973b80322e4b4b2bbb0afd6371e1bd6c591d6bae948f465a0c729e8298d00eeee6a6d4c10872e4ab8ba1abe8690f8004d22cb2a2b0cfd676097b343d727f6f039709dc2a8cc5eceec73b91cad1154723cfbcd231082e648fa874b94618d20eb52c78ad4510eb754d21104c71e866d4dc7342326b00ddd6843920ff3fc7e0aaf73010c3cfb9312399c45d7194847aa5685c8a8a0512c308eeeb9b85559d0777c36d686f8ee40ec1b881cbc933c81e19a7064457876eb8e55b5e70d02cb95bb8a4451bb3a7527def01e96fca78e97df981354988128162c2cf891fe1ff2df3301371bb25cce798fc91d8ba0cfe3a09dfffba77355fc216baea2ff5d6009b5732a35b3ecc4f9738ad5d83fe7f8be353b3b69e442aed173e3fd306cdcd5e81773ead19e3ed901764549630abec594fd8e5ef3b1a4089a5106d350d386085c151b66213c9e0d0b590b52e3f0397167caff900abd033c3cda430b70705bbbfb247e9b6b845ff8a8842a25b032ba30405d608a1f28c19c7dbced1770053ba470b5846492895433ff76034fa38cee88002b1b8a7b03fe72fdf397da9b7aa87230e3c20c8802a82a8493f3ce3d6c757010fa2e9e99e1ac543aedfe334cbeed8a835759618a2f5de91c44b41fdc8803e8a2cc0534951597c84a54d0fd18b1c3e454dcbbedb8642e81ba70334259d31d0ea510f352721140fbfcf29b86aa1b3cb5d343a4390846c56f772df88ff4110053ba0f92d42560da4988e69f3dda8776ef40dc3b6142c71286ef697cdc7a62d0f40860a99d0d2a15916d31347c691fb578ae9c161ece208fbf1537b829b339596aa276de2205d1882e88a4de4e0e2d9680f54d3d12bd0579cdc6c2cf6ca35df703ea64e387ad686bd842cb154791d012f5dc60280c5ad0db5aaecab9c64577237b05002520c8c7640b0a293d3a0d7e4dd3ed3844083078815c6e2dc8ad263be5432e66b617f4b94f2232ffb314b8e7041e029d342e3fce922cbaac91f4ff5afbd3725959224b73028924b77427f578ad9265965cbbd66e240059c59477d1f11604629faa1ae58f86455041bb4ab0d13ebb12a7b22f090eafee7e63dfc71376071b46410bfded08ac3eda0bad257266ec64fd1c388fbd8095f548eb8e856cdc0070d719d4307dea5fcf0a825604db8a0f442eb277bb4db051798ca5167ae3efde917cbbf69fb6dbf9e03c86a4dec5a7c2e88280dc67274ca7817599b0bc89cc0fec3f90564c93e159c5d2114e481948a22b9d6d8705583d42b8346beef224fba86bac5ab9d9b3aa5a543f7b4257a93be24d62c2c39cabc3f3668c3d3df3de4c0342c92235fa6c3106060e8af0bab532ad70e9e88a07aa53ddf5d1e36d33e4aacf74ee4d6fc6d372bb00dc6c981ecc7fa3a2c02bb634e2c5fc55ba8224bdc67da64cb9c2658a4569a037e78751f93981b57dc96ebfd1f4306b8b4f12ac8432584d4cbdbd6a0537a846e03e1fe94eb446d713cfaec49e2c7bba4b36f0b0f8df9d9568886a82ebb00706f995febccc3c25fcb8cf07245516782ff29d39da0ae6f579f715e2942a0687fe51adc4baeff51ed3f5cc61930bb980bf449285cabed34e084a91fe48f9de986a4e5b9719b6f69f6e56feab43b3fb7b1f49743fcff0c5c5871f00bc7cd66a195ad36a2748a651a6285444f32995e0a58142bcaeddc3fd9e831a20d570ccc44e23c9431908008fef61f295a67cce94290a632f76d6a47e963358d68375a49757755a11d983f41bc0abc797e88059142491516c633747f75458b8872a6a13b6683c369f16b7fe7ca1ca92f3eaaadcd0f76174db978f29602085dcc3c03cfd7b9de6f50777794bd8eef8f5d28871543008f102893aff7fc71775dfee645cdec79df63169ba9a62dbf12d6ecddbf6194e59e2a9955569f9f524caa603cff94e2b23c7da8c95af2c616b58586936f45efb660397caa5d32e831041952bcf5f6efdae647b812ad51bbafada3712c7d49954fa0c4dcf41992b485dcc391ea55fa99b017461842e262ba18e24edb005eb2cfc4e307a12b8624e3eefc33dffbea81f18c6f802ce3e172921f8e35fc140eaa7d752e78fdfc12c911dd28c74c77bfdc6c27a89575816533248febe607b564a9801a6bf8966c38dd97d2ceb1dfca816cd37a0e79f17b8a9737c71d89bf9624aaf63d4c4dd93edad45e3d501f63a75c4f7746d282a45527f6b535461f5553fd74cbeb9427ba6779723153ff5a8011ce785a4679493d3fae1a3ba4f819150ad4fe4cead1cce10b8ac8ead311239f2585db4c019e420fd9e106149c59be855d7890e78061492a2a1148097e643412f53fa483fdae9c1259adc48407a724e79cfe169bcbfdbc14e5d0ff5217edaddc52cb1765ed3bfdeccb3f4c723c0941ce57f1d8df1fa52c6f16e64b63d2729e7df60f704fd57820dfc63e654273693d61b4a6f961b5e1dff927ea7e683a8cf9e6006aa3bb10e05fae5f798f5672f000aaf8eb6caaa9f10cac76ea7fa0a660666dab662f79ac84ed5ca64855f9e8f0779da55dbd46b45b4d037f154654627dbecc6fe9b7b7bbe5a2c20e36aafcdadcf6072c663bdcf92a1fe43064f787e0c5d4c93a2f9bf34183d9196e6c0c334c682eac54f6d01d7c684be0451126b5c95585821c7981f34654e2e2d3fa003e023d7a9d2535d1b8517d83af8fa7e07d4c5d86cd4c587af671dc0ca9bb13ebc6c4974af381d50778e914ff95703d0add60b3c81a0d4b199407644c7a51a91814ee71f91fd70c6c7ba73e81d11d24d5a4207b78914843391131b307e9cb16ed26aac30f056d2e36cbda76ed8c59ea2e6ad334deecd365eae5bbc6375742bf32a3a4164e321d3cbf987df03ed22d7f4fa74326b1dbcf60dfbba61b4ecc914199d3b20204533727615c69e39aefb2e96e3165d9833c51a852c9712ac4915cb2e533abfa09bbac957ce8089671c47e328a74cdfe53ce84c5f71cec2bb9296ff5ab2a596887c9b13d1b8aba4a884173cffa56f9ab41a180dda7d699bc8f24ed364d65f3ededdd36a3107b5acdf55ae07660d1e2ade626a25100bb04f207f70e7da4b2a257009bc640db8edfeba04212db352fd224cde173755b7bf2472bd7987357f2e6d214f960c40bc10089acdde65fafe627bfde638c2c3ace19c1193c878f7668e64ea2895cf719fe0dcb21cc73f5c6992acb5029c7254ecb835cc73348e5eaf249abfbb6100d48b9c44ab3d9124def8bf5bc9b5ee6be68bf2c29d4db2f107f86656e7e029b6311816869fd86969a3225c6705d1e63bcafcecb08f142419e132705b29aa6e672c153730757c2fc2aa206e22e2013820139a0a9950098f671e5d959468f196eec49499d782112c33585b93cbe02c73520bc4f098dd9b6ea7916c7a5f099d97d1662b74382183b82af704b3d30579be070d309c9374bf5da3c9716f0a1904797cc2a75ab49846bff4441a37a3c06fd19697fae26e720701b9bf81f03370a208a1cb88b78175cd4f780063f3db2e65ba47aaaee3dba9489cb6144b481ce0fbacb92420727c31a0f8ca65c32ac4ba3d52150c947195ee4d4bca5dd9eceb4ea7706547417f47c92829017304f78aa6aeaf3a1cc88689ab733670ed58826a31091e30b2a96670c5280917e0310db920706037cceec02607111ee0b7a308562690fb8d9c88a7b1cf35e716f402a56942a0d976ef997913e2aae3071505c71c5cead106f9f10499f0d830499e51ad82406174814f3f73653c45bb121b9f5a7af76e5fa1e181ff2bcbbbeb3f26c8b7217e2bff1ed12637ef4785f1c141dd033becdf5a98eee6133fb26805f0edf0a7881b2d404bec0258b1eee04f069f8789798fadcfbff2702cf318fba24f2d3af821700ca280a769728d6d3135c7cc2ccf9492d5c8521d0c4688e496df8046c07a94017a1a3f4e2fc750e7f4a48753db703299412bb57bff8452b11ebbb85d0ba334e11526bcabbf89ad104994cba38c1ebda6243b8197e96230c4730db07a4665b6b30b03781af138c187afa5427cf183e0ab9e367135c08273402e24c34640d9577b07a77bc9319cab5afeb0dd49399f3c10935bc12330226bbea02424c81f2f7d62946848516fc7778185ce16096cedc4145a97cbd256297ddfe3ca6ad30fe320ad55c46f7aba10fa37c2254b9bd60435de8ff7c1969292d61bed661f7e65a2b04c8ce08916cedef38b6fd20635ecc677e69d84ab7ad0509640d026a991137380ff1626f83eed5a33235bc153cae467d89b621449cc927977f3b368ac40d0bd4e8a498ce0ccb5da2f2bd4a43feb1c0818aa45ad9653eea989dd086bca0872cf9acc15de94dfbdc6dc4f079daca8a105da63bdf7a27b2b9b87f3d8dc4a6b9f93b899c46b070540304968961620fe701e32291ea7bae8f7eb439a9c73db3d95e55bffa31ff452aef392364393142ddd7e32a93745e0cf08969620ee405377bd45aff1f6ca55b10ba55ea599bea0fb742a3ab89a9d439500322803ae85c9456625ecf7a611f47b95f73052e291b370e870678ce5e821750e6df804b028dd0e02d6b1a9e32251d5e76896f09f98f903d28f3676c32022edc56eae96b07e870d3429ac23c7cea7ae6e3160b0eb542cbd733f98f22bb1a6740d33bcc391ee6ecb830bc3c266438ef1ebda9f8dae051ae4fa59e66c11d8c62bfcf669f655688e04d0dd7399a1f1da1e53391ee38b1bea56b20704fb4b9b21da8e8ecb33769635cbd0ab76e39d1b1716139a1e7fe41359b6f69a834ae5361e96ace18256e3a8d4c9cbd30ab050217e1a2b993bcd0c356be7b9862f7c20ffbef887f5980964d5fc40bab9c6f77de786b20a170061a20677e5a729576b42152a7b053bcf19154a5a4495dd13c9f54fc61d560e917d016bd925d9261c71f6ab0304df67323dd51d759cc93276660bdfd4f485b1dcacea07fadc0f37f7b276fa9b0664265fdac902f5edd4739ee9996446d221ef9ebf6c37ae30ccdf3b1bd28fcce55f7582d2dd7f95d2262d0184e2ac4b54cf8004cd483be65744c19e73e19b983eee8f319787efd70305f48e04a90cc681e54277ccf36839e4affa025c5f340be11aeff5dc85243fdd0b754efd4e3b168532fd8c58504eb49ab38938a973ad0c92c54bf6cfa5b45518cb293f3e01e2e321398dc138cc4d180abafd6972498bf854191f9eac62fdf4c3f9433f0998dd80be8cca3e8efb474530075fc3b1b83b1cdeddf458de18d12e5f91df02ea38fd2c93656552a25689d83969e2f758e9106eb6edcd7dc36569b3249be29b604ccca1aaf15d492704f69bb04deb3276a3d60711dda24ca13b04098ef2e0483378696e82b1b1ed33e9c2f9bc029e949d3c4ca9b4406fa3fb89faae6296f91c7fc2e12469bf1c00f3e1af3b2281a76834f3fe28ced3f54249189edcfd4601fccaa8c27915d9ab1bbf2891a9b3e71b5895c4ce431b05f400445e4281b838b55b5ffe00d9e01ac98e7551948494950c5b216e699f1389b25b07cb04e37e11321c636af9b7f168e898ad5116bd76f5204774701565e5e9d7ea9c150c6379186b043066c423a0aef5b5ea5c296d57a2b4e653e16e5ac0b8d711640238319b46e2d0917452dac54724cdac308839381ee43f63f1e83f478f1a7610d96340d54a78ada36935e84484844aa7f4f79525e485fa37520f0ef564eb47164591ec179ed1169767da7e2bb9e2e2a9e03ef1628304e2e62512a52f4db8bb335137d17cea17ed0a3930f9bf5a04eb65c6a188b1dabad0f77528027ae3d6ff60b01e9f1c915c9c94e7f66202f1e8c7495b520885d58f089ca5b80b9044582ee19a610277a201a34aca3c8d250cb5d6e0b29b66802304685f56708162a2138e74fe05856d55797770cc282dcb35e3d3c70a03c6f745946955dd788f1228d457b986a68cd43ad1ba2055f8e3823ec9b284e5a4a8994c2b5fa46c72f0d0b000f9e1b26d83fb8725abe03f43831a6d559b09ab3b0cada8ca1496246985ff78178610ded473cbb1f3d80a13a2a813d4254b1dca6c09e8f3ffbacecdcb53866693c4385673f99fd991364fdab781c9fc2a261d2375c72d2407f6c1c1717470bdf9ebf0a87a945eb41255d175710c76371773ebc63ebe7174f8b00e39e5fdbff799a31b5068d7f1cefa1b54333b34bec3cfa5f2a2495642585062878c30465ecae6f0eead297863a227cdaedcf161c79ae1f77acc425ec842ded2663f334f3182f91cdc80df754dd47f38d1dda39f8a0de604782b255d06bf2a0406462834f3b261b4ce4bc1398863c596ad8ed5b7ce28f67078ef700c8956cddf0b6d8cfdb59fbbfa0bf2aa4e6895c928be58f0dbb2b68ea98874177573de94481eb35c2eadb6d07215d575349149a06c275c26aef4e613bffa2d839d53afc6cee1d1eda16f9bc4bf71ce28d19d6169542d789c0baac42400061a0ca647216120bc6e7614fbf9c93b3f9e4f2b9c9b6025614c91d5ec7f0d2d12a7a01467f5a1436291259f453793bfb0fe237e260ce584a6aeb1d73fc81a3460979493620dfa44fdc364c3d42301a8f4e00c9ba3c9ff6c5427da772b713814a7a74239a4e73df015cbf8832918e17ed3b639af2527bb44c3cf33b44385493a73495e058c1a5642bdad4cece96aa9850c7279d744cd544673d7e046c0b119af123f15094a4e07df9e4fe9a215df17d01af53230c1ac20691ed6d6d6409a5579a416e0653f194feb683abd1c0c5ecc785c2c593f4256e65b32b3f113d5a2368cf751a10e321c4ea75f160fc4efbfb0554b3b0fe43c326dc898072f47adf69eecaf293fbcbe5bd8d92816814cff250c9bc84062466b1fd25cf5d831405a1fa06375f0291e10f9ee12dbf99de5e76a6c7a9f96ba97ffbe9eaf400d5ac211870502811fec623173f1fccf420b7a4ac4f46adf8c1998c9c4d130000228599f76d321e9dfa19da3c997563dda2bc891fc9011433c42637553469ea5fb1b298d3406401cbd40eafe924b9319a243ee6ce5a7d07a0fe326675cfda5631feb7c5ad9c311027dc644af7af31f35952c7931592a71908dd57ba96eb7a55b2983859f64f8a10dc456afd937a2ff934d5920874c488701b780c8795db138bfad22fc1f9dd04eaf2a49fe45d3d1c93132039754235ee8d0e6dd3ce95cbb97f91f9e84505d7f59d507cf1bc2e64a62f650c28899c8985b0a4512247c1f7a82c512213ca2400586aa607234f8d9b6e76413807d323e27434c43ab842fcb4c320cbf17e17d969aa697a415a7241bcbfee11dba6819e3cb059afdf5dcc1c0a3c8956348fda19862adfa6c3cea7f8873b0ff9e96607efac4485c2fc864b54f4c9bf3d740d038d51c8aab14850f4bebecfbeaeb75b61576ee71e531f36724718bd1daec7b13c2921ac42dd4f818cc005f4dc38c864e85e85d5d4f1c7b80390b0b1d3c7628578e2b298a70128bc38fb9132de3037811ec8b07b72ed13d395d40fe9abfbc1cb591c691bff159fddd1f9c5edba07fed027f7a3d4ef8c3df138e54d0aee02194f388448d213771b7efe9a20345046dd170cd83159f1c7986d48120cb4afe843c63c53a1af4fa959edf3c9c460bf31b05380bd886eb7f573873b051ec1854bd052416470209c73a0ae6b2b8b6f5b6a2a43c76ca4f4c1f8f2941de58a26e29e6b84a990a5763379ec0dd48a7042cc886b17663c4bc71482d7c19cc1337ac55ddd33c74c08e23a33d1b1a9ec53fc088d778d1c01ae017964417516c345ac47367d0361e51436125f34966d9b12f72fb4d9c28d32af478a0852c82b99de66b73c3861c48c567c283d8236d08ed6ee8e6a9b560720d01370e3e7f1e5f43409143a9c04b122ba48d2289dd9d58617eea0fa9a538dc2704bc85c5d2b8315384c36232cbe59a52302e8e32cf5eea3405b88e2f675d286a214d68d9131806cacce7aa77412d1491ad7b47ea26f8d4fbc0ed7334033cc3b2afd7b174d27d58792d7464d1ec90f9d8aae1ec7f1122a76973048cff5f68371aea46de6089a80abdffde62b859fd08818c130f9df9dae99a1ea9b6eb3529245b6b2ad21c3955cc0c8be490d8aaec631f0dd70596cc97082c9f82d9e176d86655038200ffd9d3f79b2c547a105749964e83456ad723326f98f02e97776e4d665a82810ac43aba2f2a73dd267778b46a25ffe5b05cb39007b6bdcd239a33d75a5dde15838c81c8ba68e1d7dca4efcad1860105a91cf4f73b3013a5547f58bbaa6be83d343eb6b00600b0dc2492a4499a48a70237a82eee4b339bf74abf83a96e6873b47c5b47149c31520d4ad9b61989fff90ee0ddeab8f43127669f51b5689c6ae35759645872555e51b703b61da6beb27858e99b883d8f830ecadb1f2e9880c9236cf3adc2185ccda41bf4816289dd14e58e6e4abfb948932b92e6c598145225e9f6eb03c870e6c3c9659de4d7e35a85d7ee460e461dc36fcdf79ab58677ca447becc20bcfaf87a831507e38bb6fc2cd1199620d3569f9d5f7dafb549aad8e304fe1fd200753c5a680577c9a7e8344f6a42dc9bc957cb3f178fb07e3715777da5516d7a12958be3eef0c878cbd971c994addb6811090a6d73ccc8032dbc3009603edd63bc44bb46d01691856549219e97191226a8290b6a31854175d2a028b919e8d83532f6490476524a8429ce9bc5e62ec5b1f356bccbae22d902cadf88497a8c8dc20492afe952f422a2e316dca75ef5b5f486c317ca6d7ded5a8fa429fa52ac431857c8f1af92d16eed22484579d879617ee8a5d406516696712737c17b2cf0839788020669567e28bb4161b58945f1bde7eea5ddda8d01c1f329bbca4818bfb397b6e6508c07a6bf303650f76b4012c6f368fef0843149b3d0ac1465f7d735e1f4529ce3573fd883101e97e94dd71e87217043f9afa7a98bcc559787a6d2e183585430f0e675de0f3802d63b61ba44d4d0d0bdc7299ff7c510fed96b096ab994772a4686a8aeee8f2a850f3d2e4c84bea25d2e8fb6faf52af4c1cb541ad94ebe50d1f66201ec206c76f0330f77b5586d4756555a584e7b8b11418c0f7af6029c207a32a8fb6b6dcaa42fd66ed70787bcd727fcb79118f14b98d2da1070e7f80c4505623c3b56a38f110a48320292095c47240328795dd294e92c4b905f584071ec5fba9bf404398f81e1f73087f8905b0bbe260e0ae3c8906bed8fc7947d7e04b476a8cfad52e12c722d88ae38828eda55b79514db997ccc0386fd736e4ba3e249a3f16feb56c13fa814ad4c51a88fee220dc5c4dbc1eb87cb42ca09d61f408de577f5a2928ef33619b9d8157707e4334ea17404c759808fa863e2a4aa86e4916a7ddb52cc0f5917fa604bdb86e44d6ecea3b65fef2e1a66debf6ed4130edbbe04496c47ac92682909bd571ba4cfd980c5cbb9df9b2f9382615d0c9ebff1357ff0ce7cdaec6cb1a77993b85ce7bfbad227eb432a5f96d7d22e5fd9a48b343ef106bfa4f3eb43074302ecbfb19b0f466e1876453f5906afe87a10b01f897d0319eba1c29064c7b1a9d59e2d33beb2761c405e13f595675b7dcbbbf253a69129010f554dc8d3635f609ba3aa47317f966a45a287ae1ada73dbbe966420437d861348c8dd27b3e32726c24673bd3af41fa295ebbdc4e64e7204b7a0ae88a011c9375b1340f77ec2bd7e25b0759843d454baf20b265134dece4245a77d40143eeda7a832830407c270f221b2d58e6aec2b202d1a92761639c90d0cbcf2e081125e0c9486849c480684747e2045672c8c475a9d5d1a4f78bd2de1d38c6689d72332b95567e825814b575226e1d3e5eeeed75d0ff48b053762a86163b41250cbba23fcb275a77a2d416a22be0a5d30a0013e9df3d80077a2891af212b68ba40ae3c976e588fb4a230b531793be6a83d97fe25ae6008734ee43a7ed62ab4e61ca8599bf87b1e69ea7f6fcbe064f0835b50ca699f4afe9b53f1dd0e3651c1ed2bab57f2fc2abbb563ff3617fd9fe9754fd0ea87d36a287a0360cdf9b798b57e1743eaf98ea53a39686206b83cb01b09535535d89669d57135a75c59cb2810f8311030a0c90f1e894ab128eed5538a3d8a0cf1643b77b70f083bd4bdc4eb9bc015f49974414cbef6604d1a5e4843c8779c7f7e65238582b53249b3761bbf959dcabcb736b7f0b05890d53a2a2fceec553a91176b24a96b88f43419f3a181ad39d9a838e7fa2c060c14f9669377aab538c13677d188899ad0358358dcbc4b7896f662615616d8aa9f083697092ae4fae32bab5fd5b1eb419a43fff3c1bdd9e9288292ac6aae5f40224ad98db7bc04c47c8ea327a4d0139738c9512c50dca3b9eafe8185200ba1f3f1a0028a1be8a8099c82c42ddb67173f98e0155231dddf89619b764926251939386e44d9ab41cc521f5be8bcc404b0f5f8e37910c3d16195fe31c6e8c35e5a766d4e7d75d5e86c50e7f9679a78958b8cb0aba1a985909371e9b2006fc5c5ff5d6f6435ce5e92ffb24c35b2c5bbca99d611a623a80802c0469e276400e64e7ecc4a3bbd7913137e8fe27d586da70dc9e70762347cd0f75d7bb2e6d819db00ed9a06e59c46c5d6116397226e55d5a46b4ce4510ff8f8f44469fd87e0155cac7e472a2d1ae1ae68fb5e117e0edb4be6e38c70978fd4536f11145687a045b9360ca57ceaa8394a0531d991827799ce26db1173213fa4c8cad2c3080742bb8c477feef0b97d8d23fc46496f5d7478c7e4dcde3dcbee36c10da8d3ac065a79edaf6a9169829ceb15062518f5387d0fbfed6a9d28c82b527934bc91f255d165d2f1ea42ba3c53897599f5b2c2058d460eb1e6c92bb07b9c9077d4c6f236ca498d4ba84e37539f24f5a9c0354042d31030fc2f6b859a230ddc76ecb8ae2047b70bf98d293f20f5f1b159167ac3378bd12ff9613e059f286e0bfe587742cad627e5c17adff7c583ea27580870f9849d4dc51e738502620936944b66c0dbace4dd7d8a2d2abd596117522d8db3a7533b4f0276ad630de294a66815459379be2938d050c039c1e5afda2097516e9b827b85c7959032bfa1f70885ffddd6c8d44f81a54b6c868f57712048ee122d41c76b8ca99ab7ad4108fc4cb6fbb444052fd2c2f3918e6843659d59ea49e16772427ea829c75bb6235421043e061e8325f02e00b26f782b731dbc7f8715cd258b92562d12f15cb18ea2cb48e078342577409d950ae69beb71bff4c98887c17729e73a6d0d5619a08654070c3fb6d9f5b01321552f7aad2a86b12874c9bafd711f7f9a6696b12e03f1496cc9d62f37e372c692305f43ddb35c3215abced611329eafda45585263f0a1bc00f03de195f0838941f38476d02c0a40eb2c4ba0d204f1b029011118c2a5c42842f6d85de4b35946c4ae09e3f8af73b976120c924c4894828a3dfdbcf1b3f531625648cd3fc867afc16e34f6da8e1b457f95ba497eac5f05c332e7bd191cbb5aaa843115ee503c4b844ddea811a1aab0640c0abbcb05c8701e909a678d9034dc46dc9a45643512e47626af9a6d3082eb3e321318866f6456fd570d262b3ff8258ba835f8ccf444a71bd8e1fdd575ee19a7fd6a45b8006ec97395637d19e4283bc7c9fe1650d5b213e176bf607469c398b34ec898cb0496b3439a8bb55de25c9973f15a50988eefe0b7465054f67b69c2ee2de604cbc4deb47d18f31562c781e7152f09066ad4a730c9360aeb9c1f4ac0c00da5c1f49e583446ce775fb4495c64a9022e28bc9975e60fec8b4719fc0fa80b357ceec6491d80e2a7f478c4cf2284aea79c3e2a89dea17448fe2f882c6181735afbf2f831aab62268ed11176c2503a90bc0cdb4270c9ec26b583ec1a5a3105df237a6a2d6e6ed8cd5058c8cfb7a79e3c047e8021768148ee7916529cd6a59524d2281bb27388211a4f82d5abf540652e0252dad5458b7d9d29f102af97ee02e1db88681309f1c89e91c73c393ae33d2de3d77b52070706fa2261bca5d72f5ba5989dd0edde9f5ab9a5db9cd69d77cb9826546215b4444e5d37d21ef85d43c201a96d337c607790ddf703696dbda758dce4de4a3c5ad3aa3bda0aceba877663cedad79e62200d239ef1504b8148a5773a4bdeab3020c8afc1f00f2cd207c279a0ab7f6a32f5b2aee9ce0bc9e8be8e81c1658abc87b30e27c56e8e503e3fb8803471499cc8ab2ba48f1f862dca40b6f7efdfa9905ae58626f99d33fd079f8ec014d69fad081aa84d16accaad3e90bde242dcdd874979d6961f93dcc35380b7c4a1ff1538c7ba3ab96edb1c0b497e81d590a3920d7d209e19c3c8437a702cbcc2db8184f06ad143bf1c12aaf79dc0b709a6aedd1ee0390724a1faa756093790429495149935822aaa896f95f1d5ef0d21ccdd5a354660f4bfc264ba65eec737682ad1c6810e3933be1e79467f56601525c5df2f393375f097234d17aad4cca1261ab40e56f7118ab5186d17b2a40e52b3484f0bca526df3c067680f26bd718de1651806ed1a2fef6cba1695782372ea0ff40bb4682c9f46c469d160d51384a0da1648433d4179d037ac9fc45aba99d0a12b067cd4702b57b5c3865081ccad11289f7b6777ba59998d8d83b4b4a58ef72eca3cf589e874705359086f45dd2df4510f00236ee1ea1e9d40e54a65852ab9c73715998cd04d97838164a720cbda25010ed188586612dacccf4e7bd5c60fab3fa2ad3e82b6190a8d82e7c254667e6021d6d1561c1d25d5b4f9ee03523b31f2336711ab6cb6c516d4a90bcdf6c2e2970479bc356ebf258c2aa460d8d9cf77b6a2f4187a14b3ac45e67dbac9b3b6b4fe4e01c100bba666c8feddaf2c39b2a076954756b4f08f3dbc5aac26493dd50363b0a2b33d1379b7e33388ab8e40f70dd65b3ac7b8d04e32db89ff4a79440ee70a2c88498944a1c8f34c87208f13a5bd38e75a71162193ad18d6098121a487b4218c653d250cab38c60f7efbf267b2b960ab0503cd996b75bbd82cc12e9fb540f98e292f51961a06c19910b66a77c9ddcb6f5dd246aed97ad6293093f1c56022065df6409337bbd86c2213a2ab972b397a7b828dad3d8436e5f9c23310dcd8628aeaffcdbb7e014b65d6f17b9f76edbf3b7a947355cffc8a639c5970388e14cad864c38e3590eed5034c5521981c6f1889f71aa47747674351e18b291e0e004fd24e0d7b0440e501d901bd9fb205e25c59ca69891b3d97125caf9b95299c2267cea1dd255cddabd12b18e74e545279c014f46c0f47ec1b668dc34670f6711b89538e4eb9af4d49cf0dbe41353f92e4286f984a422bda19a858c2e0dd44ef54a3412a413186359ba81dd3c9c565ae501e922364527ea8127b3a1baae9d8ebccf0264e0455515b1222a65a463e46a222bbf3680e52f381c408d7c921ad923e16e6e05704e9c7c5bd48ea8497dc513f2fd858557d1e44a43b5f990b5fa107d6b8ef9b5eb5f310e2100c3d858ffdc2d8e33d5f008d6ccc8838a7103feef0e10b4ccac063a34b7b8ae1f593d3397dccaa9a0641df453909f25cd4c367967cc3e7681dc37ffa9c723088b7350bdb7b7136014085b647446fb26ff4c811445e22fcd566469e93b3395aa29acac3a3a9d5bc329c3f01cb83053c1d057ac543c431a5d8f682b9e031df77a42511730a67d23e20dadaa0e72eeb731583e8484c296939ed606ba3cd13401ef8f7270cef497d558fa5856cccf5541eac5b1ca022547737813a8122d10b44acea13e7f431a9fd6e26600af943f695ba695598b02b8b009a4f222f62ed3a5b02f3850da4f36473a7e0c6d98bf48218e4588c374bc07d6e72359dd1be8f7e5abef0f18acc055203a857f17106cf892504ba0dd6aeb3b04b2707cc222af417da9f6d2f787354ef34993aea4c7616caa51846d7cc3be21f35a1bb178c431f2d519e1faece3279030e6fb9b18209a74b36d012c7f2660e65f60dae8453533eca89261f4a891b8592075df7daf7c97b3e2101afe0b14e33a83d7be310bf4a39691ca6ea31893ab37d21a79c47992f06652b9654c7acd1fa382ac765089672ec2ba760729d63d05d00b2b02e275e91c428d67d3438923c5acfe2fbff4109e98bb2f593facd0aff684c735229c001ec444739049cca886e7aad1987ec271c5d3c9e9a49635317f487e6d9d885eb198f7b2189beaa1f68c56bfb8eea89f13c8e7de01225afeeb75bdf132c288ac4c27fcfa27595872a60d3e959cc91273043fa775dc2fcff607b4861f71465ed0ada05dad02087bf075c2fa47c19e8523b524631d8c1e877ac8ce75c88416a57fe65475164c773e38f81371f8c58089b958966faa3838c169db5bfa66d797022badc95a8126f36007fb287c6ad490824d9d8041fb3e5ca79b5ce37bcd8cfc2decfb64b089a5bf6d09307773f5c3c85511776f5c7a1a2d387a09f1db88b47de1824e26ac14a9f787cffd6db0a32a6a6a2ea923f96698bf9fa837c7b1eb71907e22fd95997e5187a285c28edcdbf2e3b821a71db302712d18eee73e5d7f3ca0185e4b5418fe69b594809e4696d704a40060b22ed3dbdc6746b3095c2972333375fba33140eeb787d8427ddd175fc21fa5a347ce59cfe3c01561a8ea3125aa5e6b949047b270c663f13386d7912c0f8ff52a4468325be127f41f59da86d2ba2c7607fdb61e19ce5d5bbd3a1fc65a276d1acb31b3d7a0c22033a95f644a9b63f524be80f74f612ee0ed3608a8b9c3676314ef20decf1473cc57cb3f71e886090fab62511aa88a736f3d320c99cbca27e9ca4a52ffea5e83c397189a7476ad0f3bfdcec648aec97836a0a09ef43c629edb3e44bc76b8651cd78e632f73706ec3eaf0ecdbf8e0a55069ee0ec98717818d198947231756bb9c3e5e90eb4c5560eb56e31e4965ccbbc0eba75039eb28652c9dcf6fc35b3ed70157a44b9f68a2af59c5e28a42a99b0edbecabcdaa1951c41d733ae63a26fc73594d0b6b821ca9d03c4df1a44eefe6ae76f2cf221e1a5cd588a1c263c4ab746cb551e620e49bb723852537e47e3023f4097cee52f9a9ebea7c48530bfb7ad3bcc863cdc32d64392909c1751bb5b8aff5c1f65552610aaef7ec0e52d1dd968a0666025b97aff6445d733b8406f2fcd70e7016471884e8817ec80c006bea8f5dd05c958d641a6db40edd4e7128d7ace015d2c0cca70423930a603924612ec7acf50608af4713389e3a80ea5c30ff7757c9eda5378415acd59322e458927758a784024a271eb73d249cfe3a1ecfd48c165db48858e7bf7eae60cc5110ec19c453f51c43e5d8c0418928c4b4ce400105f82699205181785fbe4c78a9922dfa61ae92cea0af4cffdedeefb61388862f630531359d4e6d742521eeecd6a5226c5dab5ed9060a5854473e6667a63c54e60993336e6e3bab97337c720ef6fd309c2fb739caec3391f5d3f4ae898b3cd7226de0574e491150376d5f05de4ff58679ed0ed48111d1b4b6f3ffcd1ebf66c077dc55b44ca970b50e3bf56a577cf1c9bebdd9e1c2066631344e1ad6b928c8dcacda8c69fe879f2ff1420ad841accbbcb7d90113031351ba39e5d27e72c31d8055d5460cf213176b733fe862a4196e7b8325f38def9f1d398e217dafb437880bace8ea9b47b29ba6c0bd1adff632702fcf737522df7ef59ffb173034f1f3fe7c8d10475d626887bd4caa4ba63f834d02fe56269333cb1a2a455cd32b35eb68a48ec6773222a82723ab8ef4642a98cd90a679db3f9cb94b1f2438f17b13f3a1f162d04b902dd80b8284d0f5dcaa03048d010b613a67849df67a54a76d5f5c9d1eb8cf37a497eb4a2cf25801a67472924a297eddba6d5576f0682dd254cff4c7d1005d8370cea1c2d2cdf6caf1c2b4afc3067673f3189b4d75a18d4902b2084f1462339421a3408bb35be7d7b298aa0eaa17726fb3c606a153bad000844a10ecd42f511567e8f04a69b1177f8b4679e392922783f623442033fa592e46b2e0b5aa0c843a4af4a9779f9412fb586d450340e2a96c25ffbfd0d7257c9beebd5c6c605d7f82c515096c0f55e963e51b9d2260701a1efa6f6822ebd0312b3b41a36cebd0671d2de2688aabf54177e5d9e74e4295aedb0f8b18121200281eaa0e68c94b0360d47bfd58125477b7881e2843172aa7c8027fa550e19feacd6d3e3d38c6196892ba2c816dad14985d02556458a57d6c6d5</script>
|
||
<div class="hbe hbe-content">
|
||
<div class="hbe hbe-input hbe-input-wave">
|
||
<input class="hbe hbe-input-field hbe-input-field-wave" type="password" id="hbePass">
|
||
<label class="hbe hbe-input-label hbe-input-label-wave" for="hbePass">
|
||
<span class="hbe hbe-input-label-content hbe-input-label-content-wave"></span>
|
||
</label>
|
||
<svg class="hbe hbe-graphic hbe-graphic-wave" width="300%" height="100%" viewBox="0 0 1200 60" preserveAspectRatio="none">
|
||
<path d="M0,56.5c0,0,298.666,0,399.333,0C448.336,56.5,513.994,46,597,46c77.327,0,135,10.5,200.999,10.5c95.996,0,402.001,0,402.001,0"></path>
|
||
</svg>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script data-pjax src="/lib/hbe.js"></script><link href="/css/hbe.style.css" rel="stylesheet" type="text/css">]]></content>
|
||
<categories>
|
||
<category>个人</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Blog</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>前端基础知识</title>
|
||
<url>/posts/432.html</url>
|
||
<content><![CDATA[<h1 id="一-VSCode的使用"><a href="#一-VSCode的使用" class="headerlink" title="一.VSCode的使用"></a>一.VSCode的使用</h1><h2 id="常用插件"><a href="#常用插件" class="headerlink" title="常用插件"></a>常用插件</h2><p><img src="/pictures/image-20230521233651126.png" alt="image-20230521233651126"></p>
|
||
<h1 id="二-ES6"><a href="#二-ES6" class="headerlink" title="二. ES6"></a>二. ES6</h1><p><a href="https://www.runoob.com/w3cnote/es6-tutorial.html">菜鸟ES6教程教程</a></p>
|
||
<h2 id="1-简介"><a href="#1-简介" class="headerlink" title="1.简介"></a>1.简介</h2><p> ES6, 全称 ECMAScript 6.0 ,是 JavaScript 的下一个版本标准,2015.06 发版。ES6 主要是为了解决 ES5 的先天不足,比如 JavaScript 里并没有类的概念,但是目前浏览器的 JavaScript 是 ES5 版本,大多数高版本的浏览器也支持 ES6,不过只实现了 ES6 的部分特性和功能。</p>
|
||
<h2 id="2-基础语法"><a href="#2-基础语法" class="headerlink" title="2.基础语法"></a>2.基础语法</h2><img src="/pictures/es6-tutorial.jpg" alt="img" style="zoom:150%;" />
|
||
|
||
<h3 id="2-1-声明变量"><a href="#2-1-声明变量" class="headerlink" title="2.1 声明变量"></a>2.1 声明变量</h3><ul>
|
||
<li>let 声明的变量有严格的作用域 var没有严格的作用域</li>
|
||
<li>let变量只能声明一次</li>
|
||
<li>let不存在变量提升 var存在变量提升(先使用后声明)</li>
|
||
<li>const声明的是常量,不能重新赋值</li>
|
||
<li>总计:使用let声明变量</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>声明变量<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.有严格的作用域</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//var 声明的变量往往会越域</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//let 声明的变量有严格的作用域</span></span></span><br><span class="line"><span class="language-javascript"> {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> a = <span class="number">1</span>;</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> b = <span class="number">1</span>;</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(a) <span class="comment">//不会报错</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(b) <span class="comment">//ReferenceError: b is not defined,有严格的作用域,所以会报错</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//2.let的变量只能声明一次</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> m = <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> m = <span class="number">2</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> n = <span class="number">3</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// let n = 4</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(m) <span class="comment">//不会报错</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(n) <span class="comment">//Identifier 'n' has already been declared 不能声明两次</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//3.let不存在变量提升 var存在变量提升</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>,<span class="title function_">log</span>(x)</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> x = <span class="number">10</span>; <span class="comment">//这里不会报错,可以先使用后定义</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//4.const声明的是常量,不能重新赋值</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//总计:使用let声明变量</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-解构表达式和模板字符串"><a href="#2-2-解构表达式和模板字符串" class="headerlink" title="2.2 解构表达式和模板字符串"></a>2.2 解构表达式和模板字符串</h3><ul>
|
||
<li>数组的解构</li>
|
||
<li>对象的解构</li>
|
||
<li>字符串API的扩展</li>
|
||
<li>模板字符串</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>解构表达式<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//解构表达式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.原始的数组的赋值方式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> arr = [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// let a = arr[0]</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// let b = arr[1]</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// let c = arr[2]</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//2.使用解构表达式给数组赋值(数组解构)</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> [a, b, c] = arr;</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(a, b, c);</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//3.使用解构表达式给对象赋值(对象解构)</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> person = {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>: <span class="string">"jack"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">age</span>: <span class="number">21</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">language</span>: [<span class="string">'java'</span>, <span class="string">'js'</span>, <span class="string">'css'</span>]</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//原始的赋值方式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// const name = person.name</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// const age = person.age</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">// const language = person.language</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//使用解构赋值(对象解构)</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//const { name, age, language } = person</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//更换属性名</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> { <span class="attr">name</span>: abc, age, language } = person</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//将属性名name更换为abc</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(abc, age, language)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//4.字符串扩展</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//几个新的字符串API</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> str = <span class="string">"hello.vue"</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//是不是以什么开头</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(str.<span class="title function_">startsWith</span>(<span class="string">"hello"</span>));<span class="comment">//true</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//是不是以什么结束</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(str.<span class="title function_">endsWith</span>(<span class="string">".vue"</span>));<span class="comment">//true</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//是不是包含什么</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(str.<span class="title function_">includes</span>(<span class="string">"e"</span>));<span class="comment">//true</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(str.<span class="title function_">includes</span>(<span class="string">"hello"</span>));<span class="comment">//true</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//5.模板字符串</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//${}插值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> name = <span class="string">"Tom"</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> result = <span class="string">`你好<span class="subst">${name}</span>`</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(result)</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//可以直接调用字符串的返回值组成一个新的字符串</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">fun</span>(<span class="params"></span>){</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"这是一个函数"</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> result = <span class="string">`你好<span class="subst">${name}</span>,我想说:<span class="subst">${fun()}</span>`</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(result)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-函数优化"><a href="#2-3-函数优化" class="headerlink" title="2.3 函数优化"></a>2.3 函数优化</h3><ul>
|
||
<li>默认初始值</li>
|
||
<li>不定参数</li>
|
||
<li>箭头函数</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>函数优化<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.函数优化</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//在ES6以前,我们无法给一个函数参数设置默认值,只能采用变通的写法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">add</span>(<span class="params">a, b</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//判断b是否为空 如果为空就给默认值1</span></span></span><br><span class="line"><span class="language-javascript"> b = b || <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> a + b</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//传一个参数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title function_">add</span>(<span class="number">10</span>)) <span class="comment">//结果是11</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//优化后 直接在参数上写上默认的值 如果没有传就会自动使用默认值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">add2</span>(<span class="params">a, b = <span class="number">1</span></span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> a + b</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title function_">add2</span>(<span class="number">20</span>)) <span class="comment">//结果是21</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//2.不定参数 类似于java里面的可变形参</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">fun</span>(<span class="params">...values</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(values.<span class="property">length</span>)</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">fun</span>(<span class="number">1</span>, <span class="number">2</span>)</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">fun</span>(<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>)</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">fun</span>(<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//3.箭头函数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//以前的声明方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> print = <span class="keyword">function</span> (<span class="params">obj</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(obj)</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> <span class="title function_">print1</span> = obj => <span class="variable language_">console</span>.<span class="title function_">log</span>(obj)</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">print1</span>(<span class="string">"hello"</span>) <span class="comment">//输出hello</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//求两数之和</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//以前的方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> sum = <span class="keyword">function</span> (<span class="params">a, b</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> a + b</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//使用箭头函数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> <span class="title function_">sum2</span> = (<span class="params">a, b</span>) => a + b <span class="comment">//方法体中只有一行代码 不用写return</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title function_">sum2</span>(<span class="number">11</span>, <span class="number">3</span>))</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> <span class="title function_">sum3</span> = (<span class="params">a, b</span>) => {<span class="comment">//方法体中有多行代码 写法如下</span></span></span><br><span class="line"><span class="language-javascript"> c = a + b;</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> a + c</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title function_">sum3</span>(<span class="number">11</span>, <span class="number">3</span>))</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//复杂一点的箭头函数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> person = {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>: <span class="string">"jack"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">age</span>: <span class="number">21</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">language</span>: [<span class="string">'java'</span>, <span class="string">'js'</span>, <span class="string">'css'</span>]</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//原始的方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">function</span> <span class="title function_">hello</span>(<span class="params">person</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"hello "</span> + person.<span class="property">name</span>)</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//单纯的箭头函数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> <span class="title function_">hello2</span> = (<span class="params">obj</span>) => <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"hello,"</span> + obj.<span class="property">name</span>)</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">hello2</span>(person)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//箭头函数加解构表达式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">var</span> <span class="title function_">hello3</span> = (<span class="params">{name}</span>) => <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"hello,"</span> + name)</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">hello3</span>(person)</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4-对象优化"><a href="#2-4-对象优化" class="headerlink" title="2.4 对象优化"></a>2.4 对象优化</h3><ul>
|
||
<li>对象新增的API</li>
|
||
<li>声明对象的简写方式</li>
|
||
<li>对象函数属性的简写</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>对象优化<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.对象相关的API</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//定义一个person对象</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> person = {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>: <span class="string">"jack"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">age</span>: <span class="number">21</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">language</span>: [<span class="string">'java'</span>, <span class="string">'js'</span>, <span class="string">'css'</span>]</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//测试对象新增的API</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//返回对象所有的属性信息</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title class_">Object</span>.<span class="title function_">keys</span>(person)) <span class="comment">//['name', 'age', 'language']</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//返回对象中vaules</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title class_">Object</span>.<span class="title function_">values</span>(person))<span class="comment">// ['jack', 21, Array(3)]</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//返回key-vaues</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="title class_">Object</span>.<span class="title function_">entries</span>(person))<span class="comment">// [Array(2), Array(2), Array(2)]</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//将source1和source2的属性合并到target中</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> target = { <span class="attr">a</span>: <span class="number">1</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> source1 = { <span class="attr">b</span>: <span class="number">2</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> source2 = { <span class="attr">c</span>: <span class="number">3</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//将source1和source2中的属性合并在一起</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title class_">Object</span>.<span class="title function_">assign</span>(target, source1, source2)</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(target) <span class="comment">//{a: 1, b: 2, c: 3}</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//2.声明对象的简写方式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//声明两个变量</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> age = <span class="number">23</span>;</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> name = <span class="string">"张三"</span>;</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//原始的方式然后声明一个对象,属性值为这两个变量的值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> person1 = { <span class="attr">age</span>: age, <span class="attr">name</span>: name }</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(person1)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//ES6的方式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> person2 = { age, name }<span class="comment">// 属性名和属性值代表的变量的名字一样可以省写</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(person2)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//3.对象函数属性的简写</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> person3 = {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>: <span class="string">"jack"</span>,<span class="comment">//对象的属性</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//以前的语法格式</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">eat</span>: <span class="keyword">function</span> (<span class="params">food</span>) {<span class="comment">//对象的方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="variable language_">this</span>.<span class="property">name</span> + <span class="string">"在吃"</span> + food)</span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//使用箭头有函数简写 箭头函数中this.name无法使用</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">eat2</span>: <span class="function"><span class="params">food</span> =></span> <span class="variable language_">console</span>.<span class="title function_">log</span>(person3.<span class="property">name</span> + <span class="string">"在吃"</span> + food),</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">eat3</span>(<span class="params">food</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="variable language_">this</span>.<span class="property">name</span> + <span class="string">"在吃"</span> + food)</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> person3.<span class="title function_">eat</span>(<span class="string">"香蕉"</span>)</span></span><br><span class="line"><span class="language-javascript"> person3.<span class="title function_">eat2</span>(<span class="string">"苹果"</span>)</span></span><br><span class="line"><span class="language-javascript"> person3.<span class="title function_">eat3</span>(<span class="string">"梨子"</span>)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//4.对象的扩展运算符</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//拷贝对象(深拷贝)</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//将person01的值拷贝给someone</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> person01 = { <span class="attr">name</span>: <span class="string">"Amy"</span>, <span class="attr">age</span>: <span class="number">15</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> someone = { ...person01 }</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(someone)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//合并对象</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> age1 = { <span class="attr">age</span>: <span class="number">15</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> name1 = { <span class="attr">name</span>: <span class="string">"Amy"</span> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> person03 = { ...age1, ...name1 }<span class="comment">//两个对象属性的合并一个对象中,如果有相同的值,后一个覆盖前面的那一个属性的值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(person03)<span class="comment">//{age: 15, name: 'Amy'}</span></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-5-数组的map、reduce方法"><a href="#2-5-数组的map、reduce方法" class="headerlink" title="2.5 数组的map、reduce方法"></a>2.5 数组的map、reduce方法</h3><ul>
|
||
<li>map方法</li>
|
||
<li>reduce方法</li>
|
||
</ul>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>map和reduce<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//数组中新增了map和reduce方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//map():接收一个函数,将原数组中的所有元素用这个函数处理后放入新数组返回</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> arr = [<span class="string">'1'</span>, <span class="string">'20'</span>, <span class="string">'-5'</span>, <span class="string">'3'</span>]</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//需求:将原数组中的每一个值乘以2并返回</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//第一种方法</span></span></span><br><span class="line"><span class="language-javascript"> arr1 = arr.<span class="title function_">map</span>(<span class="function">(<span class="params">item</span>) =></span> {<span class="comment">//item为数组中的每一个元素</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> item * <span class="number">2</span></span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(arr1)</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//第二种方法</span></span></span><br><span class="line"><span class="language-javascript"> arr2 = arr.<span class="title function_">map</span>(<span class="function"><span class="params">item</span> =></span> item * <span class="number">2</span>)</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(arr2)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//reduce()方法:为数组中的每一个元素依次执行回调函数,不包括数组中被删除或从未被赋值的元素</span></span></span><br><span class="line"><span class="language-javascript"> arr3 = [<span class="number">2</span>, <span class="number">40</span>, -<span class="number">10</span>, <span class="number">6</span>]</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//arr.reduce(callback,[initialValue]) //可以传一个回调函数callback,也可以传一个初始值initialValue</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//传入的是回调函数 可以传入的值有</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">/**</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * previousValue (上一次调用回调返回的值,或者是提供的初始值initialValue)</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * currentValue (数组中当前被处理的元素)</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * index (当前元素在数组中的索引)</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * array (调用reduce的数组)</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * */</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> result = arr3.<span class="title function_">reduce</span>(<span class="function">(<span class="params">a, b</span>) =></span> {<span class="comment">//这个方法相当于求数组中每一个元素的和</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"上一次处理后的值:"</span> + a)</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"当前处理的值:"</span> + b)</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> a + b;</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(result)</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">/**结果</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> * 上一次处理后的值:2</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 当前处理的值:40</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 上一次处理后的值:42</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 当前处理的值:-10</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 上一次处理后的值:32</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 当前处理的值:6</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> 38</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript"> **/</span></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-6-promise异步编排"><a href="#2-6-promise异步编排" class="headerlink" title="2.6 promise异步编排"></a>2.6 promise异步编排</h3><p><strong>解决回调地域的问题</strong></p>
|
||
<p> Promise构造函数接受一个函数作为参数,该函数的两个参数分别是resolve和reject。它们是两个函数,由 JavaScript 引擎提供,不用自己部署。resolve函数的作用是,将Promise对象的状态从“未完成”变为“成功”(即从 pending 变为 resolved),在异步操作成功时调用,并将异步操作的结果,作为参数传递出去;reject函数的作用是,将Promise对象的状态从“未完成”变为“失败”(即从 pending 变为 rejected),在异步操作失败时调用,并将异步操作报出的错误,作为参数传递出去。</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="keyword">let</span> promise = <span class="keyword">new</span> <span class="title class_">Promise</span>(<span class="keyword">function</span>(<span class="params">resolve, reject</span>) {</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'Promise'</span>);</span><br><span class="line"> <span class="title function_">resolve</span>();</span><br><span class="line">});</span><br><span class="line"></span><br><span class="line">promise.<span class="title function_">then</span>(<span class="keyword">function</span>(<span class="params"></span>) {</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'resolved.'</span>);</span><br><span class="line">});</span><br><span class="line"></span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'Hi!'</span>);</span><br><span class="line"></span><br><span class="line"><span class="comment">// Promise</span></span><br><span class="line"><span class="comment">// Hi!</span></span><br><span class="line"><span class="comment">// resolved</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>原有的基础上进一步的封装,链式调用</strong></p>
|
||
<h2 id="3-模块化"><a href="#3-模块化" class="headerlink" title="3.模块化"></a>3.模块化</h2><h3 id="3-1-什么是模块化"><a href="#3-1-什么是模块化" class="headerlink" title="3.1 什么是模块化"></a>3.1 什么是模块化</h3><p> 模块化就是把代码进行拆分,分辨重复使用。类似java中的导包:要使用一个包,必须先导包。而JS中没有包的概念,换来的是模块。</p>
|
||
<p>模块功能主要由两个命令构成: export和import</p>
|
||
<ul>
|
||
<li>export命令用于规定模块的对外接口</li>
|
||
<li>import命令用于导入其他模块提供的功能</li>
|
||
</ul>
|
||
<h3 id="3-2-export"><a href="#3-2-export" class="headerlink" title="3.2 export"></a>3.2 export</h3><p><strong>export不仅可以导出对象,一切js对象都可以导出。比如:基本类型的变量、函数、数组、对象</strong></p>
|
||
<p>比如我们定义了一个js文件hello.js,里面有一个对象</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">const</span> util = {</span><br><span class="line"> <span class="title function_">dsum</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>我们可以使用export将这个对象导出</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">const</span> util = {</span><br><span class="line"> <span class="title function_">dsum</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//导出对象</span></span><br><span class="line"><span class="keyword">export</span> { util }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>也可以简写成</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">const</span> util = {</span><br><span class="line"> <span class="title function_">dsum</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>当要导出多个值时,还可以简写。比如我有一个文件: user.js</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> name = <span class="string">"jack"</span></span><br><span class="line"><span class="keyword">var</span> age = <span class="number">21</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span>{name, age}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-3-import"><a href="#3-3-import" class="headerlink" title="3.3 import"></a>3.3 import</h3><p>比如我们之前定义了两个JS文件</p>
|
||
<p>hello.js</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">const</span> util = {</span><br><span class="line"> <span class="title function_">dsum</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//导出对象</span></span><br><span class="line"><span class="keyword">export</span> { util }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>user.js</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">var</span> name = <span class="string">"jack"</span></span><br><span class="line"><span class="keyword">var</span> age = <span class="number">21</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">add</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> { name, age, add }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>我们在main.js文件中导入上面的两个文件,并使用上面的两个文件的方法</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> util <span class="keyword">from</span> <span class="string">"./hello"</span> <span class="comment">//这里只能是util 不能是其他的名字</span></span><br><span class="line"><span class="keyword">import</span> {name,age,add} <span class="keyword">from</span> <span class="string">'./user'</span> <span class="comment">//可以不用全部导入 只用导入需要的即可</span></span><br><span class="line"></span><br><span class="line">util.<span class="title function_">sum</span>(<span class="number">1</span>,<span class="number">2</span>)</span><br><span class="line"><span class="variable language_">console</span>.<span class="title function_">log</span>(name);</span><br><span class="line"><span class="title function_">add</span>(<span class="number">1</span>,<span class="number">2</span>)</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-4-注意"><a href="#3-4-注意" class="headerlink" title="3.4 注意"></a>3.4 注意</h3><p>当我们这样定义时,导入的时候可以自定义导入时使用的变量名</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> { <span class="comment">//导出的时候这样写</span></span><br><span class="line"> <span class="title function_">dsum</span>(<span class="params">a, b</span>) {</span><br><span class="line"> <span class="keyword">return</span> a + b;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="keyword">import</span> xxx <span class="keyword">from</span> <span class="string">"./hello"</span> <span class="comment">//这里使用可以随意的取名</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h1 id="三-Vue"><a href="#三-Vue" class="headerlink" title="三.Vue"></a>三.Vue</h1><h2 id="1-MVVM思想"><a href="#1-MVVM思想" class="headerlink" title="1.MVVM思想"></a>1.MVVM思想</h2><ul>
|
||
<li>M:即 Model,模型,包括数据和一些基本操作</li>
|
||
<li>V:即View视图,页面渲染结果</li>
|
||
<li>VM:即 View-Model,模型与视图间的双向操作(无需开发人员干涉)</li>
|
||
</ul>
|
||
<p> 在MVVM之前,开发人员从后端获取需要的数据模型,然后要通过DOM操作 Model渲染到View中。而后当用户操作视图,我们还需要通过DOM获取View中的数据,然后同步到Model中。而MVVM中的VM要做的事情就是把DOM操作完全封装起来,开发人员不用再关心Model和View之间是如何互相影响的:</p>
|
||
<h2 id="2-vue的简介"><a href="#2-vue的简介" class="headerlink" title="2.vue的简介"></a>2.vue的简介</h2><p> Vue (发音为 /vjuː/,类似 <strong>view</strong>) 是一款用于构建用户界面的 JavaScript 框架。它基于标准 HTML、CSS 和 JavaScript 构建,并提供了一套声明式的、组件化的编程模型,帮助你高效地开发用户界面。无论是简单还是复杂的界面,Vue 都可以胜任。</p>
|
||
<p><strong><a href="https://v2.cn.vuejs.org/">Vue2官方文档</a></strong></p>
|
||
<h2 id="3-语法基础"><a href="#3-语法基础" class="headerlink" title="3.语法基础"></a>3.语法基础</h2><h3 id="3-1-快速入门"><a href="#3-1-快速入门" class="headerlink" title="3.1 快速入门"></a>3.1 快速入门</h3><p>1.创建一个文件夹,用VSCode打开</p>
|
||
<p>2.下载vue的依赖</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">初始化项目</span></span><br><span class="line">npm init -y</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">安装vue的依赖,这里vue2和vue3版本语法有些差别,使用的时候要注意</span></span><br><span class="line">npm install vue@2 </span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.创建一个index.html文件</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Vue入门<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span>></span>{{name}},是个傻子<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//这里最新版的vue上面无法获取到name的值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> vm = <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>:<span class="string">"张三"</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> });</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-2-基本的语法和插件的安装"><a href="#3-2-基本的语法和插件的安装" class="headerlink" title="3.2 基本的语法和插件的安装"></a>3.2 基本的语法和插件的安装</h3><h4 id="3-2-1双向绑定v-model"><a href="#3-2-1双向绑定v-model" class="headerlink" title="3.2.1双向绑定v-model"></a>3.2.1双向绑定v-model</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Vue入门<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 双向绑定 --></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">v-model</span>=<span class="string">"num"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span>></span>{{name}}今年{{num}}岁了<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//声明式渲染</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> vm = <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>:<span class="string">"张三"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">num</span>: <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> });</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-2-2事件处理"><a href="#3-2-2事件处理" class="headerlink" title="3.2.2事件处理"></a>3.2.2事件处理</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Vue入门<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 双向绑定 --></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"text"</span> <span class="attr">v-model</span>=<span class="string">"num"</span>></span></span><br><span class="line"> <span class="comment"><!-- 点击事件绑定 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> <span class="attr">v-on:click</span>=<span class="string">"num++"</span>></span>点赞<span class="tag"></<span class="name">button</span>></span></span><br><span class="line"> <span class="comment"><!-- 取消点赞 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> <span class="attr">v-on:click</span>=<span class="string">"cancle()"</span>></span>取消点赞<span class="tag"></<span class="name">button</span>></span><span class="tag"></<span class="name">button</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span>></span>有{{num}}为{{name}}点赞!<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//声明式渲染</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">let</span> vm = <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>, <span class="comment">//绑定元素</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {<span class="comment">//封装数据</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">name</span>:<span class="string">"张三"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">num</span>: <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">methods</span>:{<span class="comment">//封装方法</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">cancle</span>(<span class="params"></span>){</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">this</span>.<span class="property">num</span>--;</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> });</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//v-xx 相当于指令</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//总结</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.创建vue的实例,关联页面的模板,将自己的数据(data)渲染到关联的模板</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//2.使用指令简化对dom的操作 例如 v-XX</span></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-2-3VUE代码提示插件和浏览器插件"><a href="#3-2-3VUE代码提示插件和浏览器插件" class="headerlink" title="3.2.3VUE代码提示插件和浏览器插件"></a>3.2.3VUE代码提示插件和浏览器插件</h4><p><strong><a href="https://wwvc.lanzouk.com/ibGDO0x9717i">浏览器插件地址</a></strong> 直接解压,打开浏览器插件的开发者模式,选择加载已解压的文件,选择chrome目录即可</p>
|
||
<p><img src="/pictures/image-20230525192244158.png" alt="image-20230525192244158"></p>
|
||
<img src="/pictures/image-20230525191246045.png" alt="image-20230525191246045" style="zoom:200%;" />
|
||
|
||
<h4 id="3-2-4常用指令"><a href="#3-2-4常用指令" class="headerlink" title="3.2.4常用指令"></a>3.2.4常用指令</h4><h5 id="v-html-和-v-text"><a href="#v-html-和-v-text" class="headerlink" title="v-html 和 v-text"></a>v-html 和 v-text</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>常用指令<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 1.显示类的指令 --></span></span><br><span class="line"> <span class="comment"><!-- 插值表达式会发生插值闪烁的问题,先显示{{msg}}后显示内容 --></span></span><br><span class="line"> <span class="comment"><!-- 打印的是<h1>Hello</h1> --></span></span><br><span class="line"> {{msg}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> {{1+1}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> {{hello()}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-text</span>=<span class="string">"msg"</span>></span><span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="comment"><!-- 直接显示h1的大标题 --></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-html</span>=<span class="string">"msg"</span>></span><span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>:<span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>:{</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">msg</span>:<span class="string">"<h1>Hello</h1>"</span></span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">methods</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">hello</span>(<span class="params"></span>){</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"hello"</span>;</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="v-bind单向绑定"><a href="#v-bind单向绑定" class="headerlink" title="v-bind单向绑定"></a>v-bind单向绑定</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>单向绑定<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span> = <span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 单向绑定 --></span></span><br><span class="line"> <span class="tag"><<span class="name">a</span> <span class="attr">v-bind:href</span>=<span class="string">"link"</span>></span>百度<span class="tag"></<span class="name">a</span>></span></span><br><span class="line"> <span class="comment"><!-- class style也可以通过标签进行单向绑定 --></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-bind:style</span>=<span class="string">"{color:color}"</span>></span>你好<span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">:style</span>=<span class="string">"{color:color}"</span>></span>使用缩写形式的单向绑定<span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">link</span>:<span class="string">"http://www.baidu.com"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">color</span>: <span class="string">'green'</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="v-model-双向绑定"><a href="#v-model-双向绑定" class="headerlink" title="v-model 双向绑定"></a>v-model 双向绑定</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>双向绑定<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span> = <span class="string">"app"</span>></span></span><br><span class="line"> 精通的语言:<span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"checkbox"</span> <span class="attr">v-model</span>=<span class="string">"language"</span> <span class="attr">value</span>=<span class="string">"java"</span>></span>JAVA <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"checkbox"</span> <span class="attr">v-model</span>=<span class="string">"language"</span> <span class="attr">value</span>=<span class="string">"php"</span>></span>PHP <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"checkbox"</span> <span class="attr">v-model</span>=<span class="string">"language"</span> <span class="attr">value</span>=<span class="string">"python"</span>></span>Python <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 选中了: {{language}}</span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">language</span>:[]</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230526164858205.png" alt="image-20230526164858205"></p>
|
||
<h5 id="v-on-事件绑定"><a href="#v-on-事件绑定" class="headerlink" title="v-on 事件绑定"></a>v-on 事件绑定</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>事件绑定<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 绑定一个单机事件 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> <span class="attr">v-on:click</span>=<span class="string">"num++"</span>></span>v-on:click的方式点赞<span class="tag"></<span class="name">button</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="comment"><!-- 简写的方式实现点赞 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> @<span class="attr">click</span>=<span class="string">"num++"</span>></span>@click的方式点赞<span class="tag"></<span class="name">button</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="comment"><!-- 点击事件指定一个回调函数 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> <span class="attr">v-on:click</span>=<span class="string">"cancle()"</span>></span>取消点赞<span class="tag"></<span class="name">button</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 点赞的数量:{{num}}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">num</span>: <span class="number">0</span></span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">methods</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">cancle</span>(<span class="params"></span>){</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">this</span>.<span class="property">num</span>--;</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<img src="/pictures/image-20230526170222378.png" alt="image-20230526170222378" style="zoom:150%;" />
|
||
|
||
<h5 id="v-for-循环显示"><a href="#v-for-循环显示" class="headerlink" title="v-for 循环显示"></a>v-for 循环显示</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>循环遍历<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">ul</span>></span></span><br><span class="line"> <span class="comment"><!-- 1.遍历数组 --></span></span><br><span class="line"> <span class="comment"><!-- 可以使用v-for="user in users"遍历用户信息 --></span></span><br><span class="line"> <span class="comment"><!-- 获取下标的信息加上一个index --></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span> <span class="attr">v-for</span>=<span class="string">"(user,index) in users"</span> <span class="attr">:key</span>=<span class="string">""</span>></span></span><br><span class="line"> 序号:{{index+1}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 姓名:{{user.name}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 性别:{{user.gender}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> 年龄:{{user.age}} <span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="comment"><!-- 2.遍历对象,获取每一个属性信息 --></span></span><br><span class="line"> 对象信息:</span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-for</span>=<span class="string">"(v,k,i) in user"</span>></span>属性索引={{i}}|属性名={{k}}|属性值={{v}}|<span class="tag"></<span class="name">span</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> <span class="comment"><!-- 遍历的时候加上 :key 提高渲染的效率 --></span></span><br><span class="line"> <span class="comment"><!-- <li v-for="(user,index) in users" :key=""> --></span></span><br><span class="line"> <span class="tag"></<span class="name">ul</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="comment"><!-- 遍历数组 --></span></span><br><span class="line"> <span class="tag"><<span class="name">ul</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span> <span class="attr">v-for</span>=<span class="string">"(item,index) in nums"</span> <span class="attr">::key</span>=<span class="string">"index"</span>></span></span><br><span class="line"> {{item}}</span><br><span class="line"> <span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">ul</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">users</span>: [</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">name</span>: <span class="string">"mary"</span>, <span class="attr">gender</span>: <span class="string">'女'</span>, <span class="attr">age</span>: <span class="number">21</span> },</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">name</span>: <span class="string">"tom"</span>, <span class="attr">gender</span>: <span class="string">'男'</span>, <span class="attr">age</span>: <span class="number">35</span> },</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">name</span>: <span class="string">"mike"</span>, <span class="attr">gender</span>: <span class="string">'男'</span>, <span class="attr">age</span>: <span class="number">21</span> },</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">name</span>: <span class="string">"amy"</span>, <span class="attr">gender</span>: <span class="string">'女'</span>, <span class="attr">age</span>: <span class="number">64</span> }</span></span><br><span class="line"><span class="language-javascript"> ],</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">nums</span>:[<span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span>,<span class="number">4</span>,<span class="number">5</span>,<span class="number">6</span>,<span class="number">7</span>,<span class="number">8</span>,<span class="number">9</span>,<span class="number">10</span>,<span class="number">11</span>]</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230526172228532.png" alt="image-20230526172228532"></p>
|
||
<h5 id="v-if-和-v-show"><a href="#v-if-和-v-show" class="headerlink" title="v-if 和 v-show"></a>v-if 和 v-show</h5><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>判断<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="comment"><!-- v-if 条件判断,当结果为true时,所有的元素才会被渲染 --></span></span><br><span class="line"> <span class="comment"><!-- v-show 当得到的结果为true时,所有的元素才会被显示 --></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> <span class="attr">v-on:click</span>=<span class="string">"show = !show"</span>></span>点击显示与否<span class="tag"></<span class="name">button</span>></span><span class="tag"></<span class="name">button</span>></span></span><br><span class="line"> <span class="comment"><!-- 1.使用v-if显示 --></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span> <span class="attr">v-if</span>=<span class="string">"show"</span>></span>if=看到我...<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="comment"><!-- 2.使用v-show显示 --></span></span><br><span class="line"> <span class="tag"><<span class="name">h1</span> <span class="attr">v-show</span>=<span class="string">"show"</span>></span>show=显示...<span class="tag"></<span class="name">h1</span>></span><span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"> <span class="comment"><!-- 多重判断 --></span></span><br><span class="line"> <span class="comment"><!-- v-if、v-else-if、v-else --></span></span><br><span class="line"> <span class="comment"><!-- 循环的时候也可以加上判断 --></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">show</span>:<span class="literal">true</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-2-5-计算属性和侦听器"><a href="#3-2-5-计算属性和侦听器" class="headerlink" title="3.2.5 计算属性和侦听器"></a>3.2.5 计算属性和侦听器</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>计算属性和侦听器<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 计算属性 --></span></span><br><span class="line"> <span class="tag"><<span class="name">ul</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span>></span>西游记;价格:{{xyjPrice}},数量:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"number"</span> <span class="attr">v-model</span>=<span class="string">"xyjNum"</span>></span><span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span>></span>水浒传;价格:{{shzPrice}},数量:<span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"number"</span> <span class="attr">v-model</span>=<span class="string">"shzNum"</span>></span><span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span>></span>总价:{{totalPrice}}<span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> {{msg}}</span><br><span class="line"> <span class="tag"></<span class="name">ul</span>></span></span><br><span class="line"> <span class="comment"><!-- 侦听器,监听属性值的变化 --></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">xyjPrice</span>: <span class="number">99.98</span>, <span class="comment">//西游记价格</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">shzPrice</span>: <span class="number">99.00</span>, <span class="comment">//水浒传价格</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">xyjNum</span>: <span class="number">0</span>, <span class="comment">//西游记的数量</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">shzNum</span>: <span class="number">0</span>, <span class="comment">//水浒传的数量</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">msg</span>: <span class="string">""</span> <span class="comment">//提示的消息</span></span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">computed</span>: {<span class="comment">//计算属性</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">totalPrice</span>(<span class="params"></span>) {<span class="comment">//计算总价</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="variable language_">this</span>.<span class="property">xyjPrice</span> * <span class="variable language_">this</span>.<span class="property">xyjNum</span> + <span class="variable language_">this</span>.<span class="property">shzPrice</span> * <span class="variable language_">this</span>.<span class="property">shzNum</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">watch</span>: {<span class="comment">//监听器</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//newVal:新值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//oldVal:旧值</span></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//下面的这个方法是监听当购买的数量超出了3,就提示超库存了,并把输入框的值设置为最大的3</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">xyjNum</span>: <span class="keyword">function</span> (<span class="params">newVal, oldVal</span>) {<span class="comment">//监听西游记数量的变化</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">"newVal:"</span> + newVal + <span class="string">" | "</span> + <span class="string">"oldVal:"</span> + oldVal)</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">if</span> (newVal >= <span class="number">3</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">this</span>.<span class="property">msg</span> = <span class="string">"库存超出了限制"</span></span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">this</span>.<span class="property">xyjNum</span> = <span class="number">3</span></span></span><br><span class="line"><span class="language-javascript"> } <span class="keyword">else</span> {</span></span><br><span class="line"><span class="language-javascript"> <span class="variable language_">this</span>.<span class="property">msg</span> = <span class="string">""</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-2-6-过滤器"><a href="#3-2-6-过滤器" class="headerlink" title="3.2.6 过滤器"></a>3.2.6 过滤器</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>过滤器<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="comment"><!-- 过滤器常用来处理文本格式化的操作,过滤器可以用在两个地方:插值表达式和v-bind表达式 --></span></span><br><span class="line"> <span class="tag"><<span class="name">ul</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">li</span> <span class="attr">v-for</span>=<span class="string">"user in userList"</span>></span></span><br><span class="line"> <span class="comment"><!-- 显示性别的时候不用代号显示,使用男女显示 --></span></span><br><span class="line"> <span class="comment"><!-- 方式一:通过三元运算符的形式显示 --></span></span><br><span class="line"> <span class="comment"><!-- 姓名:{{user.name}} | 性别:{{user.gender== 1?"男":"女"}} --></span></span><br><span class="line"> <span class="comment"><!-- 方式二:使用过滤器的方式 其中 | 是管道符 genderFilter是过滤器 --></span></span><br><span class="line"> 姓名:{{user.name}} | 性别:{{user.gender | genderFilter}}</span><br><span class="line"> <span class="tag"></<span class="name">li</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">ul</span>></span></span><br><span class="line"><span class="tag"></<span class="name">div</span>></span></span><br><span class="line"><span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="title class_">Vue</span>.<span class="title function_">filter</span>(<span class="string">"gFilter"</span>, <span class="keyword">function</span> (<span class="params">val</span>) {<span class="comment">//全局过滤器</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">if</span> (val == <span class="number">1</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"男··"</span></span></span><br><span class="line"><span class="language-javascript"> } <span class="keyword">else</span> {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"女··"</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">userList</span>: [</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">id</span>: <span class="number">1</span>, <span class="attr">name</span>: <span class="string">"jacky"</span>, <span class="attr">gender</span>: <span class="number">1</span> },</span></span><br><span class="line"><span class="language-javascript"> { <span class="attr">id</span>: <span class="number">2</span>, <span class="attr">name</span>: <span class="string">"peter"</span>, <span class="attr">gender</span>: <span class="number">0</span> },</span></span><br><span class="line"><span class="language-javascript"> ]</span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">filters</span>: {<span class="comment">//局部的过滤器</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">genderFilter</span>(<span class="params">val</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">if</span> (val == <span class="number">1</span>) {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"男"</span></span></span><br><span class="line"><span class="language-javascript"> } <span class="keyword">else</span> {</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> <span class="string">"女"</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-3-组件化"><a href="#3-3-组件化" class="headerlink" title="3.3 组件化"></a>3.3 组件化</h3><p> 在大型应用开发的时候,页面可以划分成很多部分。往往不同的页面,也会有相同的部分。例如可能会有相同的头部导航。但是每个页面都都独自开发,这无疑增加了开发的成本。所以我们会把页面的不同部分拆分成独立的组件,然后在不同的页面就可以共享这些组件,避免重复开发。</p>
|
||
<img src="/pictures/image-20230527215736955.png" alt="image-20230527215736955" style="zoom:150%;" />
|
||
|
||
<h4 id="3-3-1-全局组件"><a href="#3-3-1-全局组件" class="headerlink" title="3.3.1 全局组件"></a>3.3.1 全局组件</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>组件化<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> @<span class="attr">click</span>=<span class="string">"count++"</span>></span>我被点击了{{count}}次<span class="tag"></<span class="name">button</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 组件的使用 --></span></span><br><span class="line"> <span class="tag"><<span class="name">counter</span>></span><span class="tag"></<span class="name">counter</span>></span></span><br><span class="line"> </span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//1.全局声明一个组件</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title class_">Vue</span>.<span class="title function_">component</span>(<span class="string">"counter"</span>, {<span class="comment">//counter是组件的名称,可以随便起名,见名知意就行</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">template</span>: <span class="string">`<button @click="count++">我被点击了{{count}}次</button>`</span>,<span class="comment">//模板</span></span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">data</span>(<span class="params"></span>) { <span class="comment">//模板中的属性信息,这里的data必须是一个函数</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">count</span>: <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> });</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">count</span>: <span class="number">0</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<img src="/pictures/image-20230527220905922.png" alt="image-20230527220905922" style="zoom:150%;" />
|
||
|
||
<h4 id="3-3-2-局部组件"><a href="#3-3-2-局部组件" class="headerlink" title="3.3.2 局部组件"></a>3.3.2 局部组件</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">lang</span>=<span class="string">"en"</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>组件化<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">button</span> @<span class="attr">click</span>=<span class="string">"count++"</span>></span>我被点击了{{count}}次<span class="tag"></<span class="name">button</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 局部组件的使用 --></span></span><br><span class="line"> <span class="tag"><<span class="name">button-counter</span>></span><span class="tag"></<span class="name">button-counter</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"./node_modules/vue/dist/vue.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span>></span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//声明一个局部的组件</span></span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">const</span> buttonCounter = {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">template</span>: <span class="string">`<button @click="count++">我被点击了{{count}}次</button>`</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="title function_">data</span>(<span class="params"></span>) { </span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">return</span> {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">count</span>: <span class="number">1</span></span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> <span class="keyword">new</span> <span class="title class_">Vue</span>({</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">el</span>: <span class="string">"#app"</span>,</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">data</span>: {</span></span><br><span class="line"><span class="language-javascript"> <span class="attr">count</span>: <span class="number">0</span></span></span><br><span class="line"><span class="language-javascript"> },</span></span><br><span class="line"><span class="language-javascript"> <span class="comment">//声明一个局部的组件</span></span></span><br><span class="line"><span class="language-javascript"> <span class="attr">components</span>:{</span></span><br><span class="line"><span class="language-javascript"> <span class="string">'button-counter'</span>:buttonCounter</span></span><br><span class="line"><span class="language-javascript"> }</span></span><br><span class="line"><span class="language-javascript"> })</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"> </span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-3-生命周期和钩子函数"><a href="#3-3-生命周期和钩子函数" class="headerlink" title="3.3 生命周期和钩子函数"></a>3.3 生命周期和钩子函数</h3><p><strong>生命周期图</strong></p>
|
||
<p><img src="/pictures/image-20230527221756442.png" alt="image-20230527221756442"></p>
|
||
<h3 id="3-4-Vue模块化开发"><a href="#3-4-Vue模块化开发" class="headerlink" title="3.4 Vue模块化开发"></a>3.4 Vue模块化开发</h3><p><strong>1.全局安装webpack</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">npm install webpack -g</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.全局安装vue脚手架</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">npm install -g @vue/cli-init</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.初始化vue的项目</strong></p>
|
||
<p>创建一个文件夹,打开cmd,切换到这个文件夹,执行以下的命令</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">vue脚手架使用webpacke模板初始化一个项目</span></span><br><span class="line">vue init webpack 项目名称 </span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>4.启动vue的项目</strong></p>
|
||
<p>项目中的package.json中有scripts,代表我们能运行的命令</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">启动项目</span></span><br><span class="line">npm start </span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">或者</span></span><br><span class="line">npm run dev </span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">将项目打包</span></span><br><span class="line">npm run build </span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="4-Eelment-UI"><a href="#4-Eelment-UI" class="headerlink" title="4.Eelment-UI"></a>4.Eelment-UI</h2><p><strong>官方文档:<a href="https://element.eleme.cn/#/zh-CN/component/quickstart">https://element.eleme.cn/#/zh-CN/component/quickstart</a></strong></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>前端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>前端</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>面试题集锦</title>
|
||
<url>/posts/29985.html</url>
|
||
<content><![CDATA[<p> <a href="https://www.nowcoder.com/issue/tutorial?tutorialId=94&uuid=ea1986fcff294f6292385703e94689e8">【Java工程师面试宝典】学习说明_互联网校招面试真题面经汇总_牛客网 (nowcoder.com)</a></p>
|
||
<h2 id="一-Java基础面试题"><a href="#一-Java基础面试题" class="headerlink" title="一.Java基础面试题"></a>一.Java基础面试题</h2><h3 id="1-谈谈你对面向对象的理解"><a href="#1-谈谈你对面向对象的理解" class="headerlink" title="1.谈谈你对面向对象的理解"></a>1.谈谈你对面向对象的理解</h3><p> 对比面向过程,是两种不同处理问题的角度,面向过程更注重事情的每一步骤及顺序,面向对象更注重事情有哪些参与者(对象),以及各自需要做什么。面向过程比较直接高效,面向对象易于复用、扩展和维护。</p>
|
||
<p>面向对象的三大基本特征:封装、继承、多态(父类应用指向子类对象)</p>
|
||
<h3 id="2-JDK、JRE、JVM之间的区别"><a href="#2-JDK、JRE、JVM之间的区别" class="headerlink" title="2.JDK、JRE、JVM之间的区别"></a>2.JDK、JRE、JVM之间的区别</h3><p>JDK java 开发工具</p>
|
||
<p>JRE(Java Runtime Environment Java 运行环境)</p>
|
||
<p>JVM java虚拟机</p>
|
||
<p>JDK = JRE + 开发工具集(例如 Javac,java 编译工具等)</p>
|
||
<p>JRE = JVM + Java SE 标准类库(java 核心类库)</p>
|
||
<h3 id="3-和equals⽅法的区别"><a href="#3-和equals⽅法的区别" class="headerlink" title="3.==和equals⽅法的区别"></a>3.==和equals⽅法的区别</h3><p>==:如果是基本数据类型,⽐较是值,如果是引⽤类型,⽐较的是引⽤地址<br>equals:具体看各个类重写equals⽅法之后的⽐较逻辑,⽐如String类,虽然是引⽤类型,但是String类中重写了equals⽅法,⽅法内部⽐较的是字符串中的各个字符是否全部相等。</p>
|
||
<h3 id="4-String-StringBuffer-StringBuilder的区别"><a href="#4-String-StringBuffer-StringBuilder的区别" class="headerlink" title="4.String,StringBuffer,StringBuilder的区别"></a>4.String,StringBuffer,StringBuilder的区别</h3><p>1.String是不可变的,如果尝试去修改,会新⽣成⼀个字符串对象,StringBuffer和StringBuilder是可变的,修改是在原对象上操作的</p>
|
||
<p>2.StringBuffer是线程安全的,StringBuilder是线程不安全的,所以在单线程环境下StringBuilder效率会更⾼</p>
|
||
<p>性能: StringBuilder > StringBuffer > String</p>
|
||
<h3 id="5-重载和重写的区别"><a href="#5-重载和重写的区别" class="headerlink" title="5.重载和重写的区别"></a>5.重载和重写的区别</h3><p>重载:发生在同一个类中,方法名必须相同,参数类型不同、个数不同、顺序不同、方法返回值和访问修饰符可以不同,发生在编译时。</p>
|
||
<p>重写:发生在父子类中,方法名,参数列表必须相同,返回值范围小于等于父类,抛出异常范围小于等于父类,访问修饰符范围大于等于父类;如果父类访问修饰符为私有,子类不能重写该方法。</p>
|
||
<h3 id="6-接口和抽象类的区别"><a href="#6-接口和抽象类的区别" class="headerlink" title="6.接口和抽象类的区别"></a>6.接口和抽象类的区别</h3><p>1.抽象类可以有实现的方法和抽象的方法</p>
|
||
<p>2.抽象类的成员变量可以是各种类型的,接口中的成员变量只能是public static final类型(默认)的</p>
|
||
<p>3.抽象类只能继承一个,接口可以实现多个</p>
|
||
<p>4.关键字不同,接口的关键字是interface,抽象类的关键字是abstract</p>
|
||
<h3 id="7-List和set的区别"><a href="#7-List和set的区别" class="headerlink" title="7.List和set的区别"></a>7.List和set的区别</h3><p>List:有序,按对象进入的顺序保存对象,可重复,允许多个Null元素对象,可以使用iterator取出所有的元素,在逐一遍历,还可以使用get(int index)获取指定下标的元素。</p>
|
||
<p>Set:无序,不可重复,最多允许有一个Null元素对象,取元素时只能用iterator接口取得所有元素,再逐一遍历各个元素。</p>
|
||
<h3 id="8-hashCode-与equals-之间的关系"><a href="#8-hashCode-与equals-之间的关系" class="headerlink" title="8.hashCode()与equals()之间的关系"></a>8.hashCode()与equals()之间的关系</h3><p>hashCode()的作用是获取哈希码,也称散列码,哈希码的作用是确定该对象在哈希表中的索引位置。</p>
|
||
<ul>
|
||
<li><p>如果两个对象相等,那么它们的hashCode()值一定相同</p>
|
||
</li>
|
||
<li><p>如果两个对象hashCode()相等,它们并不一定相等</p>
|
||
</li>
|
||
</ul>
|
||
<h3 id="9-ArrayList和LinkedList的区别"><a href="#9-ArrayList和LinkedList的区别" class="headerlink" title="9.ArrayList和LinkedList的区别"></a>9.ArrayList和LinkedList的区别</h3><p>ArrayList:基于动态数组,连续内存存储,适合下标访问(随机访问)。扩容机制:因为数组长度固定,超出长度存数据时需要新建数组,将老数组的数据拷贝到新数组,然后插入需要加入到数组中的数据。</p>
|
||
<p>LinkedList:基于链表,可以存储在分散的内存中,适合做数据插入及删除操作,不适合查询。遍历LinkedList必须使用iterator不能使用for循环,因为for循环体内通过get(i)取得某一元素时都需要对list重新遍历,性能消耗大。</p>
|
||
<h3 id="10-HashMap和HashTable的区别?底层实现是什么"><a href="#10-HashMap和HashTable的区别?底层实现是什么" class="headerlink" title="10.HashMap和HashTable的区别?底层实现是什么?"></a>10.HashMap和HashTable的区别?底层实现是什么?</h3><p>区别:</p>
|
||
<p>1.HashMap方法没有synchronized修饰,线程非安全,HashTable线程安全</p>
|
||
<p>2.HashMap允许key和value为null,而HashTable不允许</p>
|
||
<p>底层实现: 数组 + 链表</p>
|
||
<h3 id="11-ConcurrentHashMap"><a href="#11-ConcurrentHashMap" class="headerlink" title="11.ConcurrentHashMap"></a>11.ConcurrentHashMap</h3><p>ConcurrentHashMap和HashTable都是线程安全的,但ConcurrentHashMap相比HashTable性能更高</p>
|
||
<h3 id="12-如何实现一个IOC容器"><a href="#12-如何实现一个IOC容器" class="headerlink" title="12.如何实现一个IOC容器"></a>12.如何实现一个IOC容器</h3><p>1.配置文件配置包扫描路径</p>
|
||
<p>2.递归包扫描获取.class文件</p>
|
||
<p>3.反射、确定需要交给IOC管理的类</p>
|
||
<p>4.对需要注入的类进行依赖注入</p>
|
||
<h3 id="13-什么是字节码?采用字节码的好处是什么?"><a href="#13-什么是字节码?采用字节码的好处是什么?" class="headerlink" title="13.什么是字节码?采用字节码的好处是什么?"></a>13.什么是字节码?采用字节码的好处是什么?</h3><p><strong>什么是字节码?</strong></p>
|
||
<p>Java中引入了虚拟机的概念,即在机器和编译程序之间加入了一层抽象的虚拟的机器。编译程序只需要面向虚拟机,生成虚拟机能够理解的代码,然后由解释器来将虚拟机代码转化为特定系统的机器码执行,在java中,这种供虚拟机理解的代码叫做字节码(即扩展名为.class的文件)。</p>
|
||
<p><strong>采用字节码的好处是什么?</strong></p>
|
||
<p>Java语言通过字节码的方式,在一定程度上解决了传统解释型语言执行效率的问题,同时又保留了解释型语言可移植的特点。所以Java程序运行时比较高效,而且,由于字节码并不专对一种特定的机器,因此,Java程序无需重新编译便可在多种计算机上运行。</p>
|
||
<h3 id="14-Java类加载器有哪些"><a href="#14-Java类加载器有哪些" class="headerlink" title="14.Java类加载器有哪些"></a>14.Java类加载器有哪些</h3><p>JDK有三个类加载器:</p>
|
||
<ol>
|
||
<li>bootstrap ClassLoader是ExClassLoader 的父类加载器,默认负责加载%JAVA_HOME%bin下的jar包和class文件</li>
|
||
<li>ExClassLoader是AppClassLoader的父类加载器,负责加载%JAVA_HOME%/bin/ext文件夹下的jar包和class文件</li>
|
||
<li>AppClassLoader是自定义加载器的父类,负责加载classpath下的类文件,系统类加载器,线程上下文加载器</li>
|
||
</ol>
|
||
<p>自定义加载器的方法: 继承ClassLoader实现自定义加载器</p>
|
||
<h3 id="15-双亲委派模型"><a href="#15-双亲委派模型" class="headerlink" title="15.双亲委派模型"></a>15.双亲委派模型</h3><p><strong>双亲委派模型的执行流程是这样的:</strong> </p>
|
||
<p>1、当加载一个类时,会先从应用程序类加载器的缓存里查找相应的类,如果能找到就返回对象,如果找不到就执行下面流程;</p>
|
||
<p>2、在扩展加载器缓存中查找相应的类,如果能找到就返回对象,如果找不到就继续下面流程;</p>
|
||
<p>3、在启动类加载器中查询相应的类,如果找到就返回对象,如果找不到就继续下面流程;</p>
|
||
<p>4、在扩展加载器中查找并加载类,如果能找到就返回对象,并将对象加入到缓存中,如果找不到就继续下面流程;</p>
|
||
<p>5、在应用程序类加载器中查找并加载类,如果能找到就返回对象,并将对象加入到缓存中,如果找不到就返回 ClassNotFound 异常。</p>
|
||
<p><strong>加载流程如下图所示:</strong></p>
|
||
<p><img src="/pictures/image-20230904161407239.png" alt="image-20230904161407239"></p>
|
||
<p>一般“双亲”指的是“父亲”和“母亲”,而在这里“双亲”指的是类加载类先向上找,再向下找的流程就叫做双亲委派模型。</p>
|
||
<p><strong>双亲委派模型的好处</strong></p>
|
||
<ol>
|
||
<li>主要是为了安全性,避免用户自己编写的类动他替换java的一些核心类,比如String</li>
|
||
<li>同时避免了类的重复加载,因为jvm中区分不同类,不仅仅是根据类名,相同的class文件被不同的ClassLoader加载就是不同的两个类</li>
|
||
</ol>
|
||
<h3 id="16-Java中的异常体系"><a href="#16-Java中的异常体系" class="headerlink" title="16.Java中的异常体系"></a>16.Java中的异常体系</h3><ol>
|
||
<li>Java中所有异常都来自顶级父类Throwable</li>
|
||
<li>Throwable下面有两个子类Exception和Error</li>
|
||
<li>Error是程序无法处理的错误,一旦出现这个错误,程序将被迫停止运行;Exception不会导致程序停止</li>
|
||
<li>Exception有分为两个部分RunTimeException运行时异常和CheckedException检查异常</li>
|
||
<li>RunTimeException常常发生在程序运行过程中,会导致程序当前线程执行失败。CheckedException常常发生在程序编译过程中,会导致程序编译不通过。</li>
|
||
</ol>
|
||
<h3 id="17-GC如何判断对象可以被回收"><a href="#17-GC如何判断对象可以被回收" class="headerlink" title="17.GC如何判断对象可以被回收"></a>17.GC如何判断对象可以被回收</h3><ul>
|
||
<li>引用计数法:每一个对象有一个引用计数属性,新增一个引用计数加1,引用释放减1,计数为0时可以回收。(java中没有使用这个方法,原因:可能会出现A引用了B,B又引用了A,这时就算他们都不再使用了,但是因为他们互相引用,计数器=1永远无法被回收)</li>
|
||
<li>可达性分析法:从GC Roots开始向下搜索,搜索所走过的路径称为引用链。当一个对象到GC Roots没有任何引用链相连时,则证明此对象是不可用的,那么虚拟机就可以判断是可回收对象。</li>
|
||
</ul>
|
||
<h3 id="18-线程的生命周期,线程有哪些状态"><a href="#18-线程的生命周期,线程有哪些状态" class="headerlink" title="18.线程的生命周期,线程有哪些状态"></a>18.线程的生命周期,线程有哪些状态</h3><p>线程通常有五种状态:创建、就绪、运行、阻塞、死亡状态</p>
|
||
<p>阻塞又分为三种情况:等待阻塞、同步阻塞、其他阻塞</p>
|
||
<ol>
|
||
<li>新建状态:新创建了一个线程对象</li>
|
||
<li>就绪状态:线程对象创建后,其他线程调用了该对象的start()方法。该线程位于可运行线程池中,变得可运行,等待获取CPU的使用权</li>
|
||
<li>运行状态:就绪状态的线程获取了CPU,执行了程序代码</li>
|
||
<li>阻塞状态:阻塞状态是线程因为某种原因放弃了CPU使用权,暂时停止运行。直到线程进入就绪状态,才有机会转到运行状态</li>
|
||
<li>死亡状态:线程执行完了或者因为异常退出了run()方法,该线程结束生命周期</li>
|
||
</ol>
|
||
<h3 id="19-sleep-wait-join-yield-的区别"><a href="#19-sleep-wait-join-yield-的区别" class="headerlink" title="19.sleep(),wait(),join(),yield()的区别"></a>19.sleep(),wait(),join(),yield()的区别</h3><p><strong>sleep(),wait()的区别</strong></p>
|
||
<ol>
|
||
<li>sleep()是Thread类的静态本地方法,wait()是Object类的本地方法</li>
|
||
<li>sleep()不会释放锁(把锁带着进入冻结状态),wait会释放锁</li>
|
||
<li>sleep方法不依赖于同步器synchronized,但是wait需要依赖synchronized关键字</li>
|
||
<li>sleep不需要被唤醒(休眠之后退出阻塞),但是wait需要(不指定时间需要被别人中断)</li>
|
||
<li>sleep一般用于当前线程休眠,或者轮循暂停操作,wait则用于多线程之间的通信</li>
|
||
<li>sleep会让出cpu执行时间且强制上下文切换,而wait则不一定,wait后可能还是有机会重新竞争到锁继续执行</li>
|
||
</ol>
|
||
<p><strong>yield()执行后线程直接进入就绪状态,马上释放了cpu,但是依然保留了cpu的执行资格,所有有可能cpu下次进行线程调度还会让这个线程取到执行权</strong></p>
|
||
<p><strong>join()执行后线程进入阻塞状态,例如在线程B中调用了A的join(),那线程B会进入到阻塞队列,直到线程A结束或者中断线程</strong></p>
|
||
<h3 id="20-说说你对线程安全的理解"><a href="#20-说说你对线程安全的理解" class="headerlink" title="20.说说你对线程安全的理解"></a>20.说说你对线程安全的理解</h3><p>线程安全讲的不是线程安全,应该是<strong>内存安全</strong>,<strong>堆是共享内存,可以被所有线程访问</strong></p>
|
||
<p><strong>线程安全的定义</strong>:当多个线程访问一个对象的时候,如果不用进行<strong>额外的同步控制或者其他的协调操作</strong>,调用这个对象的行为都可以获得<strong>正确的结果</strong>,我们就说这个线程数是安全的。</p>
|
||
<p><strong>产生线程安全问题的原因:</strong> 在每个进程的内存空间中都会有一块特殊的公共区域,通常称为堆(内存)。进程内所有线程都可以访问到该区域,这就是造成问题的潜在原因。</p>
|
||
<h3 id="21-说说你对守护线程的理解"><a href="#21-说说你对守护线程的理解" class="headerlink" title="21.说说你对守护线程的理解"></a>21.说说你对守护线程的理解</h3><p><strong>守护线程</strong>:为非守护线程(用户线程)提供服务的线程,任何一个守护线程都是整个jvm中所有非守护线程的守护线程。</p>
|
||
<p><strong>守护线程的作用:</strong></p>
|
||
<p>举例:GC垃圾回收机制,就是一个经典的守护线程,当我们的程序不再有任何运行的Thread,程序就不会再产生垃圾,垃圾回收器也就没事可做,所以当垃圾回收线程是jvm上仅剩的线程时,垃圾回收线程会自动离开,它始终再低级别的状态中运行,用于实时监控和管理系统中的可回收资源。</p>
|
||
<p><strong>应用场景:</strong></p>
|
||
<ol>
|
||
<li>为其他的线程提供服务支持情况</li>
|
||
<li>或者在任何情况下,程序结束时,这个线程必须正常的且立刻关闭,就可以作为守护线程来使用</li>
|
||
</ol>
|
||
<h3 id="22-ThreadLocal的原理和使用场景"><a href="#22-ThreadLocal的原理和使用场景" class="headerlink" title="22.ThreadLocal的原理和使用场景"></a>22.ThreadLocal的原理和使用场景</h3><p>同一个线程中通过ThreadLocal存进去的数据,在任何位置取出来是一致的</p>
|
||
<p><strong>原理</strong></p>
|
||
<p>每一个Thread对象均含有一个ThreadLocalMap类型的成员变量threadLocals,它存储<strong>本线程</strong>中所有ThreadLocal对象及对应的值。</p>
|
||
<p>当执行set()方法时,ThreadLocal首先会获取当前线程对象,然后获取当前线程的ThreadLocalMap对象。再以当前ThreadLocal对象为key,获取对应的value。</p>
|
||
<p>get方法的执行过程类似。ThreadLocal首先会获取当前线程对象,然后获取当前线程的ThreadLocalMap对象。再以当前ThreadLocal对象为key,获取对应的value。</p>
|
||
<p>由于每一条线程均含有各自<strong>私有</strong>的ThreadLocalMap容器,这些容器相互独立,互不影响,因此不会存在线程安全性问题,从而无需使用同步机制来保证多条线程访问容器的互斥性。</p>
|
||
<p><strong>使用场景</strong></p>
|
||
<ol>
|
||
<li>在进行对象的跨层传递的时候,使用ThreadLocal可以避免多次传递,打破层次间的约束</li>
|
||
<li>线程间数据隔离</li>
|
||
<li>进行事务操作,用于存储事务信息</li>
|
||
<li>数据库连接,Session会话管理</li>
|
||
</ol>
|
||
<h3 id="23-ThreadLocal内存泄漏原因,怎么避免"><a href="#23-ThreadLocal内存泄漏原因,怎么避免" class="headerlink" title="23.ThreadLocal内存泄漏原因,怎么避免"></a>23.ThreadLocal内存泄漏原因,怎么避免</h3><p><strong>内存泄漏</strong>:不会使用的对象或者变量占用的内存不能被回收,就是内存泄漏(内存泄漏为程序在申请内存后,无法释放已申请的内存空间,一次内存泄漏的危害可以忽略,但内存泄漏堆积后果很严重,无论多少内存,迟早会被占光,导致OOM。)</p>
|
||
<p>强引用:使用最普遍的引用(通过new),一个对象具有强应用,不会被垃圾回收器回收,即使是内存不足。我们想要取消强引用,可以显示的将引用赋值为null,jvm在合适的时间就会回收该对象。</p>
|
||
<p><strong>ThreadLocal内存泄漏的根源</strong></p>
|
||
<p>由于ThreadLocalMap的生命周期和Thread一样长,如果没有手动删除对应key就会导致内存泄漏</p>
|
||
<p><strong>怎么避免</strong></p>
|
||
<ol>
|
||
<li>每次使用ThreadLocal都调用它的remove()方法清除数据</li>
|
||
<li>将ThreadLocal变量定义成private static,这样就一直村子ThreadLocal的强应用,也就能保证任何时候都能通过ThreadLocal的弱引用访问到Entry的value值,进而清除掉。</li>
|
||
</ol>
|
||
<h3 id="24-产生内存泄漏的原因有哪些"><a href="#24-产生内存泄漏的原因有哪些" class="headerlink" title="24.产生内存泄漏的原因有哪些"></a>24.产生内存泄漏的原因有哪些</h3><ol>
|
||
<li>资源未关闭或释放导致内存泄露(io资源,数据库的连接)</li>
|
||
<li>使用 ThreadLocal 造成内存泄露</li>
|
||
<li>静态集合类引起内存泄漏,如HashMap、LinkedList等等。如果这些容器为静态的,那么它们的生命周期与程序一致,则容器中的对象在程序结束之前将不能被释放,从而造成内存泄漏。生命周期长的对象持有短生命周期对象的引用,尽管短生命周期的对象不再使用,但是因为长生命周期对象持有它的引用而导致不能被回收。</li>
|
||
<li>重写了 finalize() 的类,如果 finalize() 方法重写的不合理或 finalizer 队列无法跟上 Java 垃圾回收器的速度,那么迟早,应用程序会出现 OutOfMemoryError 异常</li>
|
||
</ol>
|
||
<h3 id="25-并发、并行、串行的区别"><a href="#25-并发、并行、串行的区别" class="headerlink" title="25.并发、并行、串行的区别"></a>25.并发、并行、串行的区别</h3><p>串行在时间上不可能发生重叠,前一个任务没有搞定,下一个任务只能等</p>
|
||
<p>并行在时间上是重叠的,两个任务在同一时刻互不干扰的同时执行</p>
|
||
<p>并发允许两个任务彼此干扰,同一时间点,只有一个任务运行,交替执行</p>
|
||
<h3 id="26-并发的三大特性"><a href="#26-并发的三大特性" class="headerlink" title="26.并发的三大特性"></a>26.并发的三大特性</h3><ul>
|
||
<li>原子性:是指在在一个操作中,CPU不可以在中途暂停然后再调度,即不被中断操作,要不全部执行完成,要不都不执行。</li>
|
||
<li>可见性:当多个线程访问同一个变量时,一个线程修改了这个变量的值,其他的线程能够立即看到修改的值。</li>
|
||
<li>有序性:虚拟机再进行代码编译的时,对于那些改变顺序之后不会对最终的结果造成影响的代码,虚拟机不一定会按照我们写的代码的顺序来执行,有可能将它们重排序。</li>
|
||
</ul>
|
||
<h3 id="27-为什么用线程池?解释线程池参数?"><a href="#27-为什么用线程池?解释线程池参数?" class="headerlink" title="27.为什么用线程池?解释线程池参数?"></a>27.为什么用线程池?解释线程池参数?</h3><p><strong>为什么</strong></p>
|
||
<ol>
|
||
<li>降低资源的消耗;提高线程的利用率,降低创建和销毁现成的消耗</li>
|
||
<li>提高响应速度,任务来了,直接有线程可用执行,不是创建线程之后再执行</li>
|
||
<li>提高线程的可管理性;线程是稀缺资源,使用线程池可以统一分配调优监控</li>
|
||
</ol>
|
||
<p><strong>线程池参数</strong></p>
|
||
<ul>
|
||
<li><code>corePoolSize</code>代表核心线程数,也就是正常情况下创建工作的线程数,这些线程创建之后不会消除,而是一种常驻线程。</li>
|
||
<li><code>maxnumPoolSize</code>代表最大线程数,它与核心线程数相对应,表示最大允许被创建的线程数,比如当前任务较多,将核心线程数都用完了,还无法满足要求时,此时就会创建新的线程,但是线程池总数不会超过最大线程数</li>
|
||
<li><code>keepAliveTime</code>空闲线程存活时间,当一个可被回收的线程的空闲时间大于keepAliveTime,就会被回收; unit:keepAliveTime的时间单位</li>
|
||
<li><code>workQueue</code>工作队列,存放待执行任务的队列:当提交的任务数超过核心线程数大小后,再提交的任务就存放在工作队列,任务调度时再从队列中取出任务。它仅仅用来存放被execute()方法提交的Runnable任务。工作队列实现了BlockingQueue接口。</li>
|
||
<li><code>threadFactory</code>线程工厂,创建线程的工厂,可以设定线程名、线程编号等。</li>
|
||
<li><code>handler</code>拒绝策略,当线程池线程数已满,并且工作队列达到限制,新提交的任务使用拒绝策略处理。可以自定义拒绝策略,拒绝策略需实现RejectedExecutionHandler接口。</li>
|
||
</ul>
|
||
<h3 id="28-简述线程池的处理流程"><a href="#28-简述线程池的处理流程" class="headerlink" title="28.简述线程池的处理流程"></a>28.简述线程池的处理流程</h3><p><img src="/pictures/image-20230905204135018.png" alt="image-20230905204135018"></p>
|
||
<h3 id="29-线程池中阻塞队列的作用?为什么是先添加队列而不是先创建最大线程?"><a href="#29-线程池中阻塞队列的作用?为什么是先添加队列而不是先创建最大线程?" class="headerlink" title="29.线程池中阻塞队列的作用?为什么是先添加队列而不是先创建最大线程?"></a>29.线程池中阻塞队列的作用?为什么是先添加队列而不是先创建最大线程?</h3><p><strong>线程池中阻塞队列的作用?</strong></p>
|
||
<p>1、一般的队列只能保证作为一个有限长度的缓冲区,如果超出了缓冲长度,就无法保留当前的任务了,阻塞队列通过阻塞可以保留住当前想要继续入队的任务。</p>
|
||
<p>2、阻塞队列可以保证任务队列中没有任务时阻塞获取任务的线程,使得线程进入wait状态,释放cpu资源。</p>
|
||
<p>3、阻塞队列自带阻塞和唤醒的功能,不需要额外处理,无任务执行时,线程池利用阻塞队列的take方法挂起,从而维持核心线程的存活,不至于一直占着cpu资源。</p>
|
||
<p><strong>为什么是先添加队列而不是先创建最大线程?</strong></p>
|
||
<p>在创建新线程的时候。是要获取全局锁的,这个时候其它就得阻塞,影响了整体效率。</p>
|
||
<p>就好比一个企业里面有10个(core)正式工的名额,最多招10个正式工,要是任务超过正式工人数,(task > core)的情况下,工厂领导(线程池)不是首先扩招工人,还是这10个人,但是任务会稍微的积压一下,即先放到队列去(代价低),10个正式工慢慢干,迟早会干完的,要是任务还在继续增加,超过正式工的加班忍耐极限了(队列满了),就得招外包帮忙了(注意是临时工),要是正式工加上外包还是不能完成任务,那新来的任务就会被领导拒绝了(线程池的拒绝策略)。</p>
|
||
<h3 id="30-线程池中线程复用原理"><a href="#30-线程池中线程复用原理" class="headerlink" title="30.线程池中线程复用原理"></a>30.线程池中线程复用原理</h3><p>线程池将线程和任务解耦,线程是线程,任务是任务,摆脱了之前通过Thread创建线程时的一个线程必须对应一个任务的限制。</p>
|
||
<p>在线程池中,同一个线程可以从阻塞队列中不断获取新任务来执行,其核心原理在于线程池对Thread进行了封装,并不是每次执行都会调用Thread.start()来创建新线程,而是让每个线程去执行一个“循环任务”,在这个“循环任务”中不停检查是否有任务需要被执行,如果有则执行,也就是调用任务中的run方法,将run方法当成一个普通的方法执行,通过这种方式只使用固定的线程就将所有任务的run方法串联起来。</p>
|
||
<h3 id="31-Spring是什么"><a href="#31-Spring是什么" class="headerlink" title="31.Spring是什么"></a>31.Spring是什么</h3><p>轻量级的开源的j2EE框架。他是一个容器框架,用来装javabean(java对象),中间层框架(万能胶)可以起一个连接作用,比如说把struts和hibernate粘合在一起运用,可以让我们的企业开发更快、更简洁</p>
|
||
<p>Spring是一个轻量级的控制反转(ioc)和面向切面(aop)的容器框架</p>
|
||
<ul>
|
||
<li>从大小与开销两方面而言Spring都是轻量级的</li>
|
||
<li>通过控制反转(ioc)的技术达到松耦合的目的</li>
|
||
<li>提供了面向切面编程的丰富支持,允许通过分离应用的业务逻辑与系统级服务进行内聚的开发</li>
|
||
<li>包含并管理应用对象(bean)的配置和生命周期,这个意义上是一个容器</li>
|
||
<li>将简单的组件配置、组合成复杂的应用,这个意义上是一个框架</li>
|
||
</ul>
|
||
<h3 id="32-谈谈你对AOP的理解"><a href="#32-谈谈你对AOP的理解" class="headerlink" title="32.谈谈你对AOP的理解"></a>32.谈谈你对AOP的理解</h3><p>系统是由许多不同的组件所组成的,每一个组件各负责一块特定的功能。除了实现自身的核心功能之外,这些组件还经常承担着额外的职责。例如日志、事务管理和安全这样的服务经常融入到自身具有核心业务逻辑的组件中去。这些系统服务经常被称为横切关注点,因为他们会跨域系统的多个组件。</p>
|
||
<p>当我们需要将分散的对象引入公共行为的时候,OOP则显得无能为力,也就是说,OOP允许你定义从上到下的关系,但并不适合定义从左到右的关系。例如日志功能</p>
|
||
<p>AOP:将程序中的交叉业务逻辑(比如安全、日志、事务),封装成一个切面。然后注入到目标对象(具体业务逻辑)中去。AOP可以对某个对象或者某些功能进行增强,比如对象中的方法进行增强,可以在执行某个方法之前额外做一些事情,在某个方法执行之后额外做一些事情。</p>
|
||
<h3 id="33-谈谈你对IOC的理解"><a href="#33-谈谈你对IOC的理解" class="headerlink" title="33.谈谈你对IOC的理解"></a>33.谈谈你对IOC的理解</h3><p>容器概念、控制反转、依赖注入三方面理解</p>
|
||
<p><strong>容器概念</strong></p>
|
||
<p>ioc容器:实际上就是个map(key、value),里面存的就是各种对象(在xml里配置bean节点、@Repository、@Service、@Controller),在项目启动的时候会读取配置文件路面的bean节点。</p>
|
||
<p><strong>控制反转</strong></p>
|
||
<p>在没有引入ioc容器之前,对象A依赖于对象B,那么对象A在初始化或者运行到某一点的时候,自己必须主动去创建对象B或者使用已经创建的对象B。无论是创建还是使用对象B,控制权都在自己手上。</p>
|
||
<p>引入ioc容器之后,对象A和对象B之间失去了直接联系。当对象A运行到需要对象B的时候,ioc容器会主动创建一个对象B注入到对象A需要的地方。</p>
|
||
<p>通过前后的对比,不难看出来:对象A获得依赖对象B的过程,由主动行为变成了被动行为,控制权颠倒过来了,这就是控制反转这个名称的由来。</p>
|
||
<p><strong>依赖注入</strong></p>
|
||
<p>“获得依赖对象的过程被反转了”。控制器反转之后,获得依赖对象的过程由自身管理变为了由IOC容器主动注入。依赖注入是实现IOC的方法,就是由IOC容器在运行期间,动态地将某种依赖关系注入到对象之中。</p>
|
||
<h3 id="34-BeanFactory和ApplicationContext有什么区别?"><a href="#34-BeanFactory和ApplicationContext有什么区别?" class="headerlink" title="34.BeanFactory和ApplicationContext有什么区别?"></a>34.BeanFactory和ApplicationContext有什么区别?</h3><p>ApplicationContext是BeanFactory的子接口</p>
|
||
<p>ApplicationContext提供了更完整的功能</p>
|
||
<p>1、继承了MessageSource,因此支持国际化</p>
|
||
<p>2、统一资源文件的访问方式</p>
|
||
<p>3、提供在监听器中注册bean的事件</p>
|
||
<p>4、同时加载多个配置文件</p>
|
||
<p>5、载入多个(有继承关系)上下文,使得每一个上下文都专注于一个特定的层次,比如应用的web层</p>
|
||
<h3 id="35-深拷贝和浅拷贝"><a href="#35-深拷贝和浅拷贝" class="headerlink" title="35.深拷贝和浅拷贝"></a>35.深拷贝和浅拷贝</h3><p>深拷贝和浅拷贝就是指对象的拷贝,一个对象中存在两种类型的属性,一种是基本数据类型,一种是实列对象的引用</p>
|
||
<ul>
|
||
<li>浅拷贝是指,只会拷贝基本数据类型的值,以及实例对象的引用地址,并不会复制一份引用地址所指向的对象,也就是浅拷贝出来的对象,内部的类属性指向的是一个对象</li>
|
||
<li>深拷贝是指,既会拷贝基本数据类型的值,也会针对实例对象的引用地址所指向的对象进行复制,深拷贝出来的对象,内部的类执行指向的不是同一个对象</li>
|
||
</ul>
|
||
<p>举例:A对象中有一个user属性,A1拷贝A对象,两个user指向同一个对象的话,就是浅拷贝,反之是深拷贝</p>
|
||
<h3 id="36-TCP和UDP有什么区别?TCP为什么是三次握手,而不是两次?"><a href="#36-TCP和UDP有什么区别?TCP为什么是三次握手,而不是两次?" class="headerlink" title="36.TCP和UDP有什么区别?TCP为什么是三次握手,而不是两次?"></a>36.TCP和UDP有什么区别?TCP为什么是三次握手,而不是两次?</h3><p><strong>TCP</strong> (Transfer Control Protocol)是一种面向连接的、可靠的、传输层通信协议</p>
|
||
<ul>
|
||
<li>面向连接的,点对点的通信,高可靠,效率比较低、占用系统的资源比较多(类似于打电话)</li>
|
||
</ul>
|
||
<p><strong>UDP</strong> (User Datagram Protocal) 是一种无连接、不可靠的、传输层通信协议</p>
|
||
<ul>
|
||
<li>不需要连接、发送方不管接收方有没有准备好,直接发消息;可以进行广播发送的;传输不可靠,有可能会丢失消息;效率比较高;协议比较简单,占用的系统资源少(类似于广播)</li>
|
||
</ul>
|
||
<p><strong>TCP为什么是三次握手,而不是两次?</strong></p>
|
||
<p>如果是两次握手,可能会造成连接资源浪费的问题</p>
|
||
<h3 id="37-JVM中有哪些垃圾回收算法?"><a href="#37-JVM中有哪些垃圾回收算法?" class="headerlink" title="37.JVM中有哪些垃圾回收算法?"></a>37.JVM中有哪些垃圾回收算法?</h3><p>MarkSweep标记清除算法</p>
|
||
<p>Copying拷贝算法</p>
|
||
<p>MarkCompack标记压缩算法</p>
|
||
<h2 id="二-框架篇相关面试题"><a href="#二-框架篇相关面试题" class="headerlink" title="二.框架篇相关面试题"></a>二.框架篇相关面试题</h2><h3 id="1-Spring-Bean的生命周期"><a href="#1-Spring-Bean的生命周期" class="headerlink" title="1.Spring Bean的生命周期"></a>1.Spring Bean的生命周期</h3><p><strong>1.创建前准备阶段</strong></p>
|
||
<p>这个阶段主要是在开始Bean加载之前,从Spring上下文和相关配置中解析并查找Bean有关的配置内容,比如<code>init-method</code>-容器在初始化bean时调用的方法、<code>destory-method</code>,容器在销毁Bean时调用的方法。以及,BeanFactoryPostProcessor这类的bean加载过程中的前置和后置处理。这些类或者配置其实是Spring提供给开发者,用来实现Bean加载过程中的扩展机制,在很多和Spring集成的中间件经常使用,比如Dubbo。</p>
|
||
<p><strong>2.创建实例阶段</strong></p>
|
||
<p>这个阶段主要是通过反射来创建Bean的实例对象,并且扫描和解析Bean声明的一些属性。</p>
|
||
<p><strong>3.依赖注入阶段</strong></p>
|
||
<p>在这个阶段,会检测被实例化的Bean是否存在其他依赖,如果存在其他依赖,就需要对这些被依赖Bean进行注入。比如通过<code>@Autowired</code>、@Setter等依赖注入的配置。在这个阶段还会触发一些扩展的调用,比如常见的扩展类:BeanPostProcessors(用来实现Bean初始化前后的回调)、InitializingBean类(这个类有一个afterPropertiesSet()方法,给属性赋值)、还有BeanFactoryAware等等。</p>
|
||
<p><strong>4.容器缓存阶段</strong></p>
|
||
<p>容器缓存阶段主要是把Bean保存到IoC容器中缓存起来,到了这个阶段,Bean就可以被开发者使用了。这个阶段涉及到的操作,常见的有<code>init-method</code>这个属性配置的方法,会在这个阶段调用。比如BeanPostProcessors方法中的后置处理器方法postProcessAfterInitialization,也是在这个阶段触发的。</p>
|
||
<p><strong>5.销毁实例阶段</strong></p>
|
||
<p>这个阶段,是完成Spring应用上下文关闭时,将销毁Spring上下文中所有的Bean。如果Bean实现了DisposableBean接口,或者配置了<code>destory-method</code>属 性,将会在这个阶段被调用。</p>
|
||
<h3 id="2-Spring框架中的单例Bean是线程安全的吗?"><a href="#2-Spring框架中的单例Bean是线程安全的吗?" class="headerlink" title="2.Spring框架中的单例Bean是线程安全的吗?"></a>2.Spring框架中的单例Bean是线程安全的吗?</h3><p>不是线程安全的!</p>
|
||
<p>Sping中Bean默认是单例模式的,框架中并没有对Bean进行多线程的封装处理。</p>
|
||
<p>线程安全这个问题,要从单例与原型Bean分别进行说明。</p>
|
||
<p><strong>「原型Bean」</strong>对于原型Bean,每次创建一个新对象,也就是线程之间并不存在Bean共享,自然是不会有线程安全的问题。</p>
|
||
<p><strong>「单例Bean」</strong>对于单例Bean,所有线程都共享一个单例实例Bean,因此是存在资源的竞争。</p>
|
||
<p>如果单例Bean,是一个无状态Bean,也就是线程中的操作不会对Bean的成员执行<strong>「查询」</strong>以外的操作,那么这个单例Bean是线程安全的。比如Spring mvc 的 Controller、Service、Dao等,这些Bean大多是无状态的,只关注于方法本身。</p>
|
||
<h3 id="3-Spring-Bean作用域"><a href="#3-Spring-Bean作用域" class="headerlink" title="3.Spring Bean作用域"></a>3.Spring Bean作用域</h3><p>Spring 的 bean 作用域(scope)类型有5种:</p>
|
||
<p>1、singleton:单例,默认作用域。</p>
|
||
<p>2、prototype:原型,每次创建一个新对象。</p>
|
||
<p>3、request:请求,每次Http请求创建一个新对象,适用于WebApplicationContext环境下。</p>
|
||
<p>4、session:会话,同一个会话共享一个实例,不同会话使用不用的实例。</p>
|
||
<p>5、global-session:全局会话,所有会话共享一个实例。</p>
|
||
<h3 id="4-Spring框架中用到了哪些设计模式?"><a href="#4-Spring框架中用到了哪些设计模式?" class="headerlink" title="4.Spring框架中用到了哪些设计模式?"></a>4.Spring框架中用到了哪些设计模式?</h3><ol>
|
||
<li>简单工厂:由一个工厂类根据传入的参数,动态决定应该创建哪一个产品类。Spring中的BeanFactory就是简单工厂模式的体现,根据传入的一个唯一的标识来获得Bean对象,但是否在传入参数后创建还是传入参数前创建这个要根据具体情况来定。</li>
|
||
<li>工厂方法:实现了FactoryBean接口的bean是一类叫做factory的bean.其特点是,spring会在使用getBean()调用获得该bean时,会自动调用该bean的getObject()方法,所以返回的不是factory这个bean,而是这个bean.getObject()方法的返回值。</li>
|
||
<li>单例模式:保证一个类仅有一个实例,并提供一个访问它的全局访问点。spring对单例的实现:spring中的单例模式完成了后半句话,即提供了全局访问点BeanFactory,但没有从构造器级别去控制单例,这时因为spring管理的是任意的java对象。</li>
|
||
<li>适配器模式:spring中定义了一个适配接口,使得每一种Controller有一种对应的适配器实现类,让适配器代替controller执行响应的方法。这样扩展controller时,只需要增加一个适配类就完成了springMvc的扩展了。</li>
|
||
<li>装饰器模式:动态地给一个对象增加一些额外的职责。就增加功能来说,Decorator模式相比生成子类更为灵活。spring中用到的装饰器模式在类名上有两种表现:一是类名中含有wrapper,另一种时类名中含有Decorator.</li>
|
||
<li>动态代理:切面在应用运行的时刻被织入。一般情况下,在织入切面时,AOP容器会为目标对象动态地创建一个代理对象。SpringAOP就是以这种方式织入切面的。 织入:把切面应用到目标对象并创建新代理对象的过程。</li>
|
||
<li>观察者模式:Spring的事件驱动模型使用的是观察者模式,spring中observer模式常用的地方是listener的实现。</li>
|
||
<li>策略模式:spring框架的资源访问Resource接口。该接口提供了更强的资源访问能力,spring框架本身大量使用了Resource接口来访问底层资源。</li>
|
||
</ol>
|
||
<h3 id="5-spring中事务实现方和原理式以及隔离级别?"><a href="#5-spring中事务实现方和原理式以及隔离级别?" class="headerlink" title="5.spring中事务实现方和原理式以及隔离级别?"></a>5.spring中事务实现方和原理式以及隔离级别?</h3><p><strong>实现方式</strong></p>
|
||
<p>在使用Spring框架时,可以有两种使用事务的方式,一种是编程式,一种是申明式的,@Transactional注解就是申明式的。</p>
|
||
<p>首先,事务这个概念是数据库层面的,Spring只是基于数据库中的事务进行了扩展,以及提供了一些能让程序员更加方便操作事务的方式。比如我们可以通过在某个方法上增加@Transactional注解,就可以开启事务,这个方法中所有的sql都会在一个事务中执行,统一成功失败。</p>
|
||
<p><strong>原理</strong></p>
|
||
<p>在一个方法上加了@Transactional注解后,Spring会基于这个类生成一个代理对象,会将这个代理对象作为bean,当在使用这个代理对象的方法时,如果这个方法存在@Transactional注解,那么代理逻辑会先把事务的自动提价设置为false,然后再去执行原本的业务逻辑方法,如果执行业务逻辑方法没有异常,那么代理逻辑中就会将事务进行提交,如果执行业务逻辑方法出现了异常,那么则会将事务进行回滚。当然,针对哪些异常回滚事务是可以配置的,可以利用@Transactional注解中的rollbackFor属性进行配置,默认情况下会对RuntimeException和Error进行回滚。</p>
|
||
<p><strong>隔离级别</strong></p>
|
||
<p>spring的事务隔离级别就是数据库的隔离级别外加一个默认级别</p>
|
||
<ol>
|
||
<li>read uncommitted(未提交读)</li>
|
||
<li>read committed(提交读、不可重复读)</li>
|
||
<li>repeatable read (可重复读)</li>
|
||
<li>serializable(可串行化)</li>
|
||
</ol>
|
||
<p>注:数据库设置的隔离级别会被spring的配置覆盖</p>
|
||
<h3 id="6-Spring事务传播机制"><a href="#6-Spring事务传播机制" class="headerlink" title="6.Spring事务传播机制"></a>6.Spring事务传播机制</h3><p>多个事务方法相互调用的时,事务是如何在这些方法间传播</p>
|
||
<p>方法A是一个事务的方法,方法A执行过程中调用了方法B,那么方法B有无事务以及方法B对事务的要求不同都会对方法A的事务具体执行造成影响,同时方法A的事务对方法B的事务执行也有影响,这种影响具体是什么就由两个方法所定义的事务传播类型所决定。</p>
|
||
<p><strong>REQUIRED</strong>(Spring默认的事务传播类型)如果当前没有事务,则自己创建一个事务,如果当前存在事务,则加入这个事务</p>
|
||
<p><strong>SUPPORTS</strong>:当前存在事务,则加入当前事务,如果当前没有事务,就以非事务方法执行</p>
|
||
<p><strong>MANDATORY</strong>:当前存在事务,则加入当前事务,如果当前的事务不存在,则抛出异常</p>
|
||
<p><strong>REQUIRES_NEW</strong>:创建一个新事务,如果存在当前事务,则挂起该事务</p>
|
||
<p><strong>NOT_SUPPORTED</strong>:以非事务方式执行,如果当前存在事务,则挂起当前事务</p>
|
||
<p><strong>NEVER</strong>:不使用事务,如果当前事务存在,则抛出异常</p>
|
||
<p><strong>NESTED</strong>:如果当前事务存在,则在嵌套事务中执行,否则REQUIRED的操作一样(开启一个事务)</p>
|
||
<h3 id="7-Spring事务什么时候会失效?"><a href="#7-Spring事务什么时候会失效?" class="headerlink" title="7.Spring事务什么时候会失效?"></a>7.Spring事务什么时候会失效?</h3><p>Spring事务原理是AOP,进行了切面增强,那么失效的根本原因是这个AOP不起作用了,常见情况有如下几种</p>
|
||
<ol>
|
||
<li>发生自调用,类里面使用this调用本类的方法,此时这个this对象不是代理类,而是UserService对象本身</li>
|
||
<li>方法不是public的,非要在非public上使用事务,可以开启Aspectj代理模式</li>
|
||
<li>数据库不支持事务,例如使用的MyISAM存储引擎</li>
|
||
<li>没有被spring管理</li>
|
||
<li>异常被吃掉,事务不会回滚(或者抛出的异常没有定义,默认为RuntimeException)</li>
|
||
</ol>
|
||
<h3 id="8-什么是bean的自动装配,有哪些方式?"><a href="#8-什么是bean的自动装配,有哪些方式?" class="headerlink" title="8.什么是bean的自动装配,有哪些方式?"></a>8.什么是bean的自动装配,有哪些方式?</h3><p>autowire属性有五种装配的方式</p>
|
||
<ul>
|
||
<li>no – 缺省情况下,自动配置是通过“ref”属性手动设定</li>
|
||
</ul>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--手动装配:以value或ref的方式明确指定属性值都是手动装配。 需要通过‘ref’属性来连接bean--></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>byName-根据bean的属性名称进行自动装配</li>
|
||
</ul>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--Cutomer的属性名称是person,Spring会将bean id为person的bean通过setter方法进行自动装配--></span></span><br><span class="line">< bean id=“cutomer” class=“com.xxx.xxx.Cutomer” autowire=“byName”/></span><br><span class="line">< bean id=“person” class=“com.xxx.xxx.Person”/></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>byType-根据bean的类型进行自动装配</li>
|
||
</ul>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--Cutomer的属性person的类型为Person,Spirng会将Person类型通过setter方法进行自动装配--></span></span><br><span class="line">< bean> id=“cutomer” class=“com.xxx.xxx.Cutomer” autowire=“byType”/></span><br><span class="line">< bean> id=“person” class=“com.xxx.xxx.Person”/></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>constructor-类似byType,不过是应用于构造器的参数。如果一个bean与构造器参数的类型形<br>同,则进行自动装配,否则导致异常</li>
|
||
</ul>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--Cutomer构造函数的参数person的类型为Person,Spirng会将Person类型通过构造方法进行自动装配--></span></span><br><span class="line">< bean> id=“cutomer” class=“com.xxx.xxx.Cutomer” autowire=“construtor”/></span><br><span class="line">< bean> id=“person” class=“com.xxx.xxx.Person”/></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>autodetect-如果有默认的构造器,则通过constructor方式进行自动装配,否则使用byType方式 进行自动装配</li>
|
||
</ul>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--如果有默认的构造器,则通过constructor方式进行自动装配,否则使用byType方式进行自动装配--></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="9-Spring-Boot、SpringMVC和Spring有什么区别?"><a href="#9-Spring-Boot、SpringMVC和Spring有什么区别?" class="headerlink" title="9.Spring Boot、SpringMVC和Spring有什么区别?"></a>9.Spring Boot、SpringMVC和Spring有什么区别?</h3><p><strong>Spring</strong>是一个IOC容器,用来管理Bean,使用依赖注入实现控制反转,可以很方便的整合各种框架,提供AOP机制弥补OOP的代码重复问题,更方便将不同方法中的共同处理抽取成切面,自动注入给方法执行,比如日志、异常等</p>
|
||
<p><strong>SpringMvc</strong>是spring对web框架的一个解决方案,提供了一个总的前端控制器Servlet,用来接受请求,然后定义了一套路由策略(url到handle的映射)及适配执行handle,将handle结果使用视图解析技术生成视图展现给前端</p>
|
||
<p><strong>SpringBoot</strong>是Spring提供的一个快速开发工具包,让程序员更方便、更快速的开发spring + springmvc应用,简化了配置(约定了默认配置),整合了一系列的解决方案(starter机制),redis、mongodb、es可以开箱即用</p>
|
||
<h3 id="10-SpringMVC的工作流程"><a href="#10-SpringMVC的工作流程" class="headerlink" title="10.SpringMVC的工作流程"></a>10.SpringMVC的工作流程</h3><ol>
|
||
<li>用户发送请求到前端控制器DispatcherServlet</li>
|
||
<li>DispatcherServlet收到请求调用HandlerMapping处理器映射器</li>
|
||
<li>处理器映射器找到具体的处理器(可以根据xml配置、注解进行查找),生成处理器及处理器拦截器(如果有则生成)一并返回给DispatcherServlet</li>
|
||
<li>DispatcherServlet调用HandlerAdapter处理器适配器</li>
|
||
<li>HandlerAdapter调用具体的处理器(controller,也叫后端控制器)</li>
|
||
<li>Controller执行完成返回ModelAndView</li>
|
||
<li>HandlerAdapter将Controller执行结果ModelAndView返回给DispatcherServlet</li>
|
||
<li>DispatcherServlet将ModelAndView传给ViewReslover视图解析器</li>
|
||
<li>ViewReslover解析后返回具体view</li>
|
||
<li>DispatcherServlet根据view进行渲染视图(即将模型数据填充到视图中)</li>
|
||
<li>DispatcherServlet响应给用户</li>
|
||
</ol>
|
||
<p><img src="/pictures/image-20230911141826287.png" alt="image-20230911141826287"></p>
|
||
<h3 id="11-SpringMvc中的九大组件"><a href="#11-SpringMvc中的九大组件" class="headerlink" title="11.SpringMvc中的九大组件"></a>11.SpringMvc中的九大组件</h3><p>Handler是用来干活的工具;HandlerMapping用于根据需要干的活找到相应的工具;HandlerAdapter是使用工具干活的人</p>
|
||
<ol>
|
||
<li><p><strong>HandlerMapping</strong>是用来查找Handler的。在SpringMVC中会有很多请求,每个请求都需要一个Handler处理,具体接收到一个请求之后使用哪个Handler进行处理呢?这就是HandlerMapping需要做的事。</p>
|
||
</li>
|
||
<li><p><strong>HandlerAdapter</strong>,从名字上看,它就是一个适配器。因为SpringMVC中的Handler可以是任意的形式,只要能处理请求就ok,但是Servlet需要的处理方法的结构却是固定的,都是以request和response为参数的方法。如何让固定的Servlet处理方法调用灵活的Handler来进行处理呢?这就是HandlerAdapter要做的事情。</p>
|
||
</li>
|
||
<li><p><strong>HandlerExceptionResolver</strong>其它组件都是用来干活的。在干活的过程中难免会出现问题,出问题后怎么办呢?这就需要有一个专门的角色对异常情况进行处理,在SpringMVC中就是HandlerExceptionResolver。具体来说,此组件的作用是根据异常设置ModelAndView,之后再交给render方法进行渲染。</p>
|
||
</li>
|
||
<li><p><strong>ViewResolverViewResolver</strong>用来将String类型的视图名和Locale解析为View类型的视图。View是用来渲染页面的,也就是将程序返回的参数填入模板里,生成html(也可能是其它类型)文件。这里就有两个关键问题:使用哪个模板?用什么技术(规则)填入参数?这其实是ViewResolver主要要做的工作,ViewResolver需要找到渲染所用的模板和所用的技术(也就是视图的类型)进行渲染,具体的渲染过程则交由不同的视图自己完成。</p>
|
||
</li>
|
||
<li><p><strong>RequestToViewNameTranslatorViewName</strong>是根据ViewName查找View,但有的Handler处理完后并没有设置View也没有设置ViewName,这时就需要从request获取ViewName了,如何从request中获取ViewName就是RequestToViewNameTranslator要做的事情了。RequestToViewNameTranslator在Spring MVC容器里只可以配置一个,所以所有request到ViewName的转换规则都要在一个Translator里面全部实现。</p>
|
||
</li>
|
||
<li><p><strong>LocaleResolver</strong>解析视图需要两个参数:一是视图名,另一个是Locale。视图名是处理器返回的,Locale是从哪里来的?这就是LocaleResolver要做的事情。LocaleResolver用于从request解析出Locale,Locale就是zh-cn之类,表示一个区域,有了这个就可以对不同区域的用户显示不同的结果。SpringMVC主要有两个地方用到了Locale:一是ViewResolver视图解析的时候;二是用到国际化资源或者主题的时候。</p>
|
||
</li>
|
||
<li><p><strong>ThemeResolver</strong>用于解析主题。SpringMVC中一个主题对应一个properties文件,里面存放着跟当前主题相关的所有资源、如图片、css样式等。SpringMVC的主题也支持国际化,同一个主题不同区域也可以显示不同的风格。SpringMVC中跟主题相关的类有 ThemeResolver、ThemeSource和Theme。主题是通过一系列资源来具体体现的,要得到一个主题的资源,首先要得到资源的名称,这是ThemeResolver的工作。然后通过主题名称找到对应的主题(可以理解为一个配置)文件,这是ThemeSource的工作。最后从主题中获取资源就可以了。</p>
|
||
</li>
|
||
<li><p><strong>MultipartResolver</strong>用于处理上传请求。处理方法是将普通的request包装成MultipartHttpServletRequest,后者可以直接调用getFile方法获取File,如果上传多个文件,还可以调用getFileMap得到FileName->File结构的Map。此组件中一共有三个方法,作用分别是判断是不是上传请求,将request包装成MultipartHttpServletRequest、处理完后清理上传过程中产生的临时资源。</p>
|
||
</li>
|
||
<li><p><strong>FlashMapManager</strong>用来管理FlashMap的,FlashMap主要用在redirect中传递参数。</p>
|
||
</li>
|
||
</ol>
|
||
<h3 id="12-SpringBoot自动配置原理(简答的阐述见下面15条)"><a href="#12-SpringBoot自动配置原理(简答的阐述见下面15条)" class="headerlink" title="12.SpringBoot自动配置原理(简答的阐述见下面15条)"></a>12.SpringBoot自动配置原理(简答的阐述见下面15条)</h3><p>自动装配,简单来说就是自动把第三方组件的Bean装载到Spring IOC器里面,不需要开发人员再去写Bean的装配配置。</p>
|
||
<p>在Spring Boot应用里面,只需要在启动类加上@SpringBootApplication注解就可以实现自动装配。@SpringBootApplication是一个复合注解,真正实现自动装配的注解是@EnableAutoConfiguration。</p>
|
||
<p><img src="/pictures/image-20230911195638524.png" alt="image-20230911195638524"></p>
|
||
<h3 id="13-MyBatis的优缺点"><a href="#13-MyBatis的优缺点" class="headerlink" title="13.MyBatis的优缺点"></a>13.MyBatis的优缺点</h3><p><strong>优点:</strong></p>
|
||
<ol>
|
||
<li>基于SQL语句编程,相当灵活,不会对应用程序或者数据库的现有设计造成任何影响,SQL写在XML里,解除sql与程序代码的耦合,便于统一管理;提供XML标签,支持编写动态SQL语句,并可重用</li>
|
||
<li>与JDBC相比,减少了50%以上的代码量,消除了JDBC大量冗余的代码,不需要手动开关连接</li>
|
||
<li>很好的与各种数据库兼容(因为MyBatis使用JDBC来连接数据库,所以只要JDBC支持的数据库MyBatis都支持)</li>
|
||
<li>能够与Spring很好的集成</li>
|
||
<li>提供映射标签,支持对象与数据库的ORM字段关系映射;提供对象关系映射标签,支持对象关系组件维护</li>
|
||
</ol>
|
||
<p><strong>缺点:</strong></p>
|
||
<p>1.<br> SQL语句的编写工作量较大,尤其当字段多、关联表多时,对开发人员编写SQL语句的功底有一定要求<br>2. SQL语句依赖于数据库,导致数据库移植性差,不能随意更换数据库</p>
|
||
<h3 id="14-MyBatis中-和-的区别是什么?"><a href="#14-MyBatis中-和-的区别是什么?" class="headerlink" title="14.MyBatis中#{}和${}的区别是什么?"></a>14.MyBatis中#{}和${}的区别是什么?</h3><ol>
|
||
<li>功能不同:${} 是直接替换,而 #{} 是预处理</li>
|
||
<li>使用场景不同:普通参数使用 #{},如果传递的是 SQL 命令或 SQL 关键字,需要使用 ${},但在使用前一定要做好安全验证</li>
|
||
<li>安全性不同:使用 ${} 存在安全问题(SQL注入),而 #{} 则不存在安全问题</li>
|
||
</ol>
|
||
<h3 id="15-Spring-Boot自动装配的过程"><a href="#15-Spring-Boot自动装配的过程" class="headerlink" title="15.Spring Boot自动装配的过程"></a>15.Spring Boot自动装配的过程</h3><p><img src="/pictures/image-20230921145126572.png" alt="image-20230921145126572"></p>
|
||
<p><strong>整个自动装配的过程是</strong>:Spring Boot通过@EnableAutoConfiguration注解开启自动配置,加载spring.factories中注册的各AutoConfiguration类,当某个AutoConfiguration类满足其注解@Conditional指定的生效条件(Starters提供的依赖、配置或Spring容器中是否存在某个Bean等)时,实例化该AutoConfiguration类中定义的Bean(组件等),并注入Spring容器,就可以完成依赖框架的自动配置。</p>
|
||
<h2 id="二-Mysql相关面试题"><a href="#二-Mysql相关面试题" class="headerlink" title="二.Mysql相关面试题"></a>二.Mysql相关面试题</h2><h3 id="1-存储引擎InnoDB-与MyISAM-的区别"><a href="#1-存储引擎InnoDB-与MyISAM-的区别" class="headerlink" title="1.存储引擎InnoDB 与MyISAM 的区别"></a>1.存储引擎InnoDB 与MyISAM 的区别</h3><ol>
|
||
<li>数据存储的方式不同,MyISAM中的数据和索引是分开存储的,而InnoDB是把索引和数据存储在同一个文件里面</li>
|
||
<li>对于事务的支持不同,MyISAM不支持事务,而InnoDB支持ACID特性的事务处理</li>
|
||
<li>对于锁的支持不同,MyISAM只支持表锁,而InnoDB可以根据不同的情况,支持行锁,表锁,间隙锁,临键锁</li>
|
||
<li>MyISAM不支持外键,InnoDB支持外键因此基于这些特性,我们在实际应用中,可以根据不同的场景来选择合适的存储引擎</li>
|
||
<li>比如如果需要支持事务,那必须要选择InnoDB。如果大部分的表操作都是查询,可以选择MyISAM</li>
|
||
</ol>
|
||
<h3 id="2-索引的基本原理"><a href="#2-索引的基本原理" class="headerlink" title="2.索引的基本原理"></a>2.索引的基本原理</h3><p>原理:把无序的数据变成有序的查询</p>
|
||
<ol>
|
||
<li>把创建了索引的列的内容进行排序</li>
|
||
<li>对排序结果生成倒排表</li>
|
||
<li>在倒排表内容上拼上数据地址链</li>
|
||
<li>在查询的时候,先拿到倒排表的内容,再取出数据地址链,从而拿到数据</li>
|
||
</ol>
|
||
<h3 id="3-索引失效的场景"><a href="#3-索引失效的场景" class="headerlink" title="3.索引失效的场景"></a>3.索引失效的场景</h3><ol>
|
||
<li>索引在使用的时候没有遵循最左匹配法则.</li>
|
||
<li>模糊查询,如果%号在前面也会导致索引失效。</li>
|
||
<li>在添加索引的字段上进行了运算操作或者类型转换也都会导致索引失效。</li>
|
||
<li>如果使用了复合索引,中间使用了范围查询,右边的条件索引也会失效</li>
|
||
<li>查询的时候发生了类型转换,在查询的时候做了运算的操作和模糊查询也会导致索引失效</li>
|
||
</ol>
|
||
<h3 id="4-事务的隔离级别有哪些?MySQL-的默认隔离级别是什么?"><a href="#4-事务的隔离级别有哪些?MySQL-的默认隔离级别是什么?" class="headerlink" title="4.事务的隔离级别有哪些?MySQL 的默认隔离级别是什么?"></a>4.事务的隔离级别有哪些?MySQL 的默认隔离级别是什么?</h3><p>读未提交(Read Uncommitted)可能读到其他事务未提交的数据,也叫做脏读<br>读已提交(Read Committed)两次读取结果不一致,叫做不可重复读<br>可重复读(Repeatable Read)是mysql默认的隔离级别,每次读取的结果都一样,当时可能产生幻读<br>串行化(Serializable)一般是不会使用的,他给每一行读取的数据加锁,会导致大量超时和锁竞争的问题<br>Mysql 默认的事务隔离级别是可重复读(Repeatable Read)</p>
|
||
<h3 id="5-事务的基本特性"><a href="#5-事务的基本特性" class="headerlink" title="5.事务的基本特性"></a>5.事务的基本特性</h3><p>事务的基本特性ACID分别是:</p>
|
||
<ol>
|
||
<li>A 原子性:一个事务的操作要么全部成功,要么全部失败</li>
|
||
<li>C 一致性:数据库从一个一致性的状态转换到另一个一致性的状态</li>
|
||
<li>I 隔离性:一个事务的修改在最终提交前,对其他事务是不可见的</li>
|
||
<li>D 持久性 一旦事务提交,所做的修改就会永远的保存到数据库中</li>
|
||
</ol>
|
||
<h3 id="6-怎么处理慢查询"><a href="#6-怎么处理慢查询" class="headerlink" title="6.怎么处理慢查询"></a>6.怎么处理慢查询</h3><p>SQL查询慢的原因</p>
|
||
<ol>
|
||
<li>查询没有命中索引</li>
|
||
<li>查询了不需要的数据列</li>
|
||
<li>数据量太大</li>
|
||
</ol>
|
||
<p>根据上面的原因给出优化的措施</p>
|
||
<ol>
|
||
<li>分析语句的执行计划,然后获得其使用索引的情况,然后修改语句或者索引,使得语句可以尽可能的命中索引</li>
|
||
<li>分析语句,是否查询了不需要的数据列</li>
|
||
<li>如果对语句的优化已经无法进行,可以考虑表中的数据量是否太大,如果是的话可以进行横向或者纵向的分表</li>
|
||
</ol>
|
||
<h3 id="7-ACID靠什么保证的"><a href="#7-ACID靠什么保证的" class="headerlink" title="7.ACID靠什么保证的"></a>7.ACID靠什么保证的</h3><p>A 原子性由<strong>undo log日志</strong>保证,它记录了需要回滚的日志信息,事务回滚时撤销已经执行成功的sql</p>
|
||
<p>C 一致性由其他的三大特性保证 程序代码要保证业务上的一致性</p>
|
||
<p>I 隔离性由<strong>MVCC</strong>来保证</p>
|
||
<p>D 持久性由<strong>内存 + redo log</strong> 来保证。Mysql修改数据同时在内存和redo log记录这次操作,宕机的时候可以从redo log恢复</p>
|
||
<h2 id="三-Redis相关面试题"><a href="#三-Redis相关面试题" class="headerlink" title="三.Redis相关面试题"></a>三.Redis相关面试题</h2><h3 id="1-Redis过期键的删除策略"><a href="#1-Redis过期键的删除策略" class="headerlink" title="1.Redis过期键的删除策略"></a>1.Redis过期键的删除策略</h3><p>redis是key-value数据库,我们可以设置redis中缓存的key的过期时间。redis的过期策略就是指当redis中缓存的key过期了,redis该如何处理。</p>
|
||
<ul>
|
||
<li><strong>惰性过期</strong>:只有当访问一个key时,才会判断该key是否已过期,过期则删除。该策略可以最大化地节省CU资源,但是对内存非常的不友好。极端地情况可能出现大量地过期key没有再次被访问,从而不被清除,占用大量内存。</li>
|
||
<li>**定期过期:**每隔一定地时间,会扫描一定数量地数据库地expires字典中一定数量地key,并清除其中已过期的key。该策略是前两者的一个折中方案。通过定时扫描的时间间隔和每次扫描的限定功耗,可以在不同情况下使得CPU和内存资源达到最优的平衡效果。</li>
|
||
</ul>
|
||
<p>在Redis中同时使用了这两种策略</p>
|
||
<h3 id="2-Redis的线程模型,单线程为什么快"><a href="#2-Redis的线程模型,单线程为什么快" class="headerlink" title="2.Redis的线程模型,单线程为什么快"></a>2.Redis的线程模型,单线程为什么快</h3><p>IO多路复用机制监听多个Socket</p>
|
||
<p><strong>单线程快的原因:</strong></p>
|
||
<ol>
|
||
<li>纯内存操作</li>
|
||
<li>核心是基于非阻塞的IO多路复用机制</li>
|
||
<li>单线程反而避免了多线程的频繁上下文切换带来的性能问题</li>
|
||
</ol>
|
||
<h3 id="3-缓存雪崩、缓存穿透、缓存击穿"><a href="#3-缓存雪崩、缓存穿透、缓存击穿" class="headerlink" title="3.缓存雪崩、缓存穿透、缓存击穿"></a>3.缓存雪崩、缓存穿透、缓存击穿</h3><p><strong>缓存雪崩</strong> 缓存在同一时间大面积失效,所以,后面的请求都会落在数据库上,造成数据库短时间内承受大量请求而崩掉。</p>
|
||
<p>解决方案:</p>
|
||
<ol>
|
||
<li>缓存数据的过期时间设置随机,防止同一时间大量数据过期现象发生</li>
|
||
<li>给每一个缓存数据增加响应的缓存标记,记录缓存是否失效,如果缓存标记失效,则更新数据缓存</li>
|
||
<li>缓存预热,启动系统之前先把热点数据放在缓存中去</li>
|
||
<li>互斥锁</li>
|
||
</ol>
|
||
<p><strong>缓存穿透</strong> 缓存和数据库中都没有数据,导致所有的请求都落在数据库上,造成数据库短时间内承受大量请求</p>
|
||
<p>解决方案:</p>
|
||
<ol>
|
||
<li>接口层增加校验,如用户鉴权校验,id做基础校验,id<=0的直接拦截掉</li>
|
||
<li>从缓存取不到数据,在数据库中也没有取到,这时也可以将key-value对写为key-null,缓存有效时间可以设置短一些,如30秒(设置太长会导致正常的情况也没法使用)。这样可以防止攻击用户反复用同一个id暴力攻击</li>
|
||
<li>采用布隆过滤器,将所有可能存在的数据哈希到一个足够大的bitmap中,一个一定不存在的数据会被这个bitmap拦截掉,从而避免了对底层存储系统的查询压力</li>
|
||
</ol>
|
||
<p><strong>缓存击穿</strong> 缓存中没有但数据库中有的数据(一般是缓存时间到期),这时由于并发用户特别多,同时读缓存没有读到数据,又同时去数据库取数据,引起数据库压力瞬间增大,造成过大压力。和缓存雪崩不同的是,缓存击穿指并发查同一条数据,缓存雪崩是不同数据都过期了,很多数据都查不到从而查数据库。</p>
|
||
<p>解决方案:</p>
|
||
<ol>
|
||
<li>设置热点数据永不过期</li>
|
||
<li>加互斥锁</li>
|
||
</ol>
|
||
<h3 id="4-Redis的数据结构"><a href="#4-Redis的数据结构" class="headerlink" title="4.Redis的数据结构"></a>4.Redis的数据结构</h3><p>Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(无序集合)及zset(有序集合)</p>
|
||
<p><img src="/pictures/image-20230914154911197.png" alt="image-20230914154911197"></p>
|
||
<p><strong>PDF</strong></p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/2023最新Java面试题全集.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>面试</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>面试</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>面试专题</title>
|
||
<url>/posts/46317.html</url>
|
||
<content><![CDATA[<h2 id="50W字的面试文档"><a href="#50W字的面试文档" class="headerlink" title="50W字的面试文档"></a>50W字的面试文档</h2><p>来源于:咕泡教育 个人使用 不外传</p>
|
||
<p><strong>在线预览链接:<a href="https://www.aliyundrive.com/s/F2wn9fxYhFs">https://www.aliyundrive.com/s/F2wn9fxYhFs</a></strong></p>
|
||
<p><img src="/pictures/image-20230513134435330.png" alt="image-20230513134435330"></p>
|
||
<h2 id="黑马程序员Java面试视频教程"><a href="#黑马程序员Java面试视频教程" class="headerlink" title="黑马程序员Java面试视频教程"></a>黑马程序员Java面试视频教程</h2><p>黑马程序员新版Java面试专题视频教程,java八股文面试全套真题+深度详解(含大厂高频面试真题) <a href="https://www.bilibili.com/video/BV1yT411H7YK/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584">https://www.bilibili.com/video/BV1yT411H7YK/?share_source=copy_web&vd_source=aee5e475191b69e6c781059ab6662584</a></p>
|
||
<h2 id="1-Redis篇"><a href="#1-Redis篇" class="headerlink" title="1.Redis篇"></a>1.Redis篇</h2><blockquote>
|
||
<p><strong>面试官</strong>:什么是缓存穿透 ? 怎么解决 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~~,我想一下</p>
|
||
<p>缓存穿透是指查询一个一定<strong>不存在</strong>的数据,如果从存储层查不到数据则不写入缓存,这将导致这个不存在的数据每次请求都要到 DB 去查询,可能导致 DB 挂掉。这种情况大概率是遭到了攻击。</p>
|
||
<p>解决方案的话,我们通常都会用布隆过滤器来解决它</p>
|
||
<p><strong>面试官</strong>:好的,你能介绍一下布隆过滤器吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,是这样~</p>
|
||
<p>布隆过滤器主要是用于检索一个元素是否在一个集合中。我们当时使用的是redisson实现的布隆过滤器。</p>
|
||
<p>它的底层主要是先去初始化一个比较大数组,里面存放的二进制0或1。在一开始都是0,当一个key来了之后经过3次hash计算,模于数组长度找到数据的下标然后把数组中原来的0改为1,这样的话,三个数组的位置就能标明一个key的存在。查找的过程也是一样的。</p>
|
||
<p>当然是有缺点的,布隆过滤器有可能会产生一定的误判,我们一般可以设置这个误判率,大概不会超过5%,其实这个误判是必然存在的,要不就得增加数组的长度,其实已经算是很划分了,5%以内的误判率一般的项目也能接受,不至于高并发下压倒数据库。</p>
|
||
<p><strong>面试官</strong>:什么是缓存击穿 ? 怎么解决 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!!</p>
|
||
<p>缓存击穿的意思是对于设置了过期时间的key,缓存在某个时间点过期的时候,恰好这时间点对这个Key有大量的并发请求过来,这些请求发现缓存过期一般都会从后端 DB 加载数据并回设到缓存,这个时候大并发的请求可能会瞬间把 DB 压垮。</p>
|
||
<p>解决方案有两种方式:</p>
|
||
<p>第一可以使用互斥锁:当缓存失效时,不立即去load db,先使用如 Redis 的 setnx 去设置一个互斥锁,当操作成功返回时再进行 load db的操作并回设缓存,否则重试get缓存的方法</p>
|
||
<p>第二种方案可以设置当前key逻辑过期,大概是思路如下:</p>
|
||
<p>①:在设置key的时候,设置一个过期时间字段一块存入缓存中,不给当前key设置过期时间</p>
|
||
<p>②:当查询的时候,从redis取出数据后判断时间是否过期</p>
|
||
<p>③:如果过期则开通另外一个线程进行数据同步,当前线程正常返回数据,这个数据不是最新</p>
|
||
<p>当然两种方案各有利弊:===============</p>
|
||
<p>如果选择数据的强一致性,建议使用分布式锁的方案,性能上可能没那么高,锁需要等,也有可能产生死锁的问题</p>
|
||
<p>如果选择key的逻辑删除,则优先考虑的高可用性,性能比较高,但是数据同步这块做不到强一致。</p>
|
||
<p><strong>面试官</strong>:什么是缓存雪崩 ? 怎么解决 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!!</p>
|
||
<p>缓存雪崩意思是设置缓存时采用了相同的过期时间,导致缓存在某一时刻同时失效,请求全部转发到DB,DB 瞬时压力过重雪崩。与缓存击穿的区别:雪崩是很多key,击穿是某一个key缓存。</p>
|
||
<p>解决方案主要是可以将缓存失效时间分散开,比如可以在原有的失效时间基础上增加一个随机值,比如1-5分钟随机,这样每一个缓存的过期时间的重复率就会降低,就很难引发集体失效的事件。</p>
|
||
<p><strong>面试官</strong>:redis做为缓存,mysql的数据如何与redis进行同步呢?(双写一致性)</p>
|
||
<p><strong>候选人</strong>:嗯!就说我最近做的这个项目,里面有xxxx(<strong>根据自己的简历上写</strong>)的功能,需要让数据库与redis高度保持一致,因为要求时效性比较高,我们当时采用的读写锁保证的强一致性。</p>
|
||
<p>我们采用的是redisson实现的读写锁,在读的时候添加共享锁,可以保证读读不互斥,读写互斥。当我们更新数据的时候,添加排他锁,它是读写,读读都互斥,这样就能保证在写数据的同时是不会让其他线程读数据的,避免了脏数据。这里面需要注意的是读方法和写方法上需要使用同一把锁才行。</p>
|
||
<p><strong>面试官</strong>:那这个排他锁是如何保证读写、读读互斥的呢?</p>
|
||
<p><strong>候选人</strong>:其实排他锁底层使用也是setnx,保证了同时只能有一个线程操作锁住的方法</p>
|
||
<p><strong>面试官</strong>:你听说过延时双删吗?为什么不用它呢?</p>
|
||
<p><strong>候选人</strong>:延迟双删,如果是写操作,我们先把缓存中的数据删除,然后更新数据库,最后再延时删除缓存中的数据,其中这个延时多久不太好确定,在延时的过程中可能会出现脏数据,并不能保证强一致性,所以没有采用它。</p>
|
||
<p><strong>面试官</strong>:redis做为缓存,mysql的数据如何与redis进行同步呢?(双写一致性)</p>
|
||
<p><strong>候选人</strong>:嗯!就说我最近做的这个项目,里面有xxxx(<strong>根据自己的简历上写</strong>)的功能,数据同步可以有一定的延时(符合大部分业务)</p>
|
||
<p>我们当时采用的阿里的canal组件实现数据同步:不需要更改业务代码,部署一个canal服务。canal服务把自己伪装成mysql的一个从节点,当mysql数据更新以后,canal会读取binlog数据,然后在通过canal的客户端获取到数据,更新缓存即可。</p>
|
||
<p><strong>面试官</strong>:redis做为缓存,数据的持久化是怎么做的?</p>
|
||
<p><strong>候选人</strong>:在Redis中提供了两种数据持久化的方式:1、RDB 2、AOF</p>
|
||
<p><strong>面试官</strong>:这两种持久化方式有什么区别呢?</p>
|
||
<p><strong>候选人</strong>:RDB是一个快照文件,它是把redis内存存储的数据写到磁盘上,当redis实例宕机恢复数据的时候,方便从RDB的快照文件中恢复数据。</p>
|
||
<p>AOF的含义是追加文件,当redis操作写命令的时候,都会存储这个文件中,当redis实例宕机恢复数据的时候,会从这个文件中再次执行一遍命令来恢复数据</p>
|
||
<p><strong>面试官</strong>:这两种方式,哪种恢复的比较快呢?</p>
|
||
<p><strong>候选人</strong>:RDB因为是二进制文件,在保存的时候体积也是比较小的,它恢复的比较快,但是它有可能会丢数据,我们通常在项目中也会使用AOF来恢复数据,虽然AOF恢复的速度慢一些,但是它丢数据的风险要小很多,在AOF文件中可以设置刷盘策略,我们当时设置的就是每秒批量写入一次命令</p>
|
||
<p><strong>面试官</strong>:Redis的数据过期策略有哪些 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~,在redis中提供了两种数据过期删除策略</p>
|
||
<p>第一种是惰性删除,在设置该key过期时间后,我们不去管它,当需要该key时,我们在检查其是否过期,如果过期,我们就删掉它,反之返回该key。</p>
|
||
<p>第二种是 定期删除,就是说每隔一段时间,我们就对一些key进行检查,删除里面过期的key</p>
|
||
<p>定期清理的两种模式:</p>
|
||
<ul>
|
||
<li>SLOW模式是定时任务,执行频率默认为10hz,每次不超过25ms,以通过修改配置文件redis.conf 的 <strong>hz</strong> 选项来调整这个次数</li>
|
||
<li>FAST模式执行频率不固定,每次事件循环会尝试执行,但两次间隔不低于2ms,每次耗时不超过1ms</li>
|
||
</ul>
|
||
<p>Redis的过期删除策略:<strong>惰性删除 + 定期删除</strong>两种策略进行配合使用。</p>
|
||
<p><strong>面试官</strong>:Redis的数据淘汰策略有哪些 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个在redis中提供了很多种,默认是noeviction,不删除任何数据,内部不足直接报错</p>
|
||
<p>是可以在redis的配置文件中进行设置的,里面有两个非常重要的概念,一个是LRU,另外一个是LFU</p>
|
||
<p>LRU的意思就是最少最近使用,用当前时间减去最后一次访问时间,这个值越大则淘汰优先级越高。</p>
|
||
<p>LFU的意思是最少频率使用。会统计每个key的访问频率,值越小淘汰优先级越高</p>
|
||
<p>我们在项目设置的allkeys-lru,挑选最近最少使用的数据淘汰,把一些经常访问的key留在redis中</p>
|
||
<p><strong>面试官</strong>:数据库有1000万数据 ,Redis只能缓存20w数据, 如何保证Redis中的数据都是热点数据 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,我想一下~~</p>
|
||
<p>可以使用 allkeys-lru (挑选最近最少使用的数据淘汰)淘汰策略,那留下来的都是经常访问的热点数据</p>
|
||
<p><strong>面试官</strong>:Redis的内存用完了会发生什么?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~,这个要看redis的数据淘汰策略是什么,如果是默认的配置,redis内存用完以后则直接报错。我们当时设置的 allkeys-lru 策略。把最近最常访问的数据留在缓存中。</p>
|
||
<p><strong>面试官</strong>:Redis分布式锁如何实现 ?</p>
|
||
<p><strong>候选人</strong>:嗯,在redis中提供了一个命令setnx(SET if not exists)</p>
|
||
<p>由于redis的单线程的,用了命令之后,只能有一个客户端对某一个key设置值,在没有过期或删除key的时候是其他客户端是不能设置这个key的</p>
|
||
<p><strong>面试官</strong>:好的,那你如何控制Redis实现分布式锁有效时长呢?</p>
|
||
<p><strong>候选人</strong>:嗯,的确,redis的setnx指令不好控制这个问题,我们当时采用的redis的一个框架redisson实现的。</p>
|
||
<p>在redisson中需要手动加锁,并且可以控制锁的失效时间和等待时间,当锁住的一个业务还没有执行完成的时候,在redisson中引入了一个看门狗机制,就是说每隔一段时间就检查当前业务是否还持有锁,如果持有就增加加锁的持有时间,当业务执行完成之后需要使用释放锁就可以了</p>
|
||
<p>还有一个好处就是,在高并发下,一个业务有可能会执行很快,先客户1持有锁的时候,客户2来了以后并不会马上拒绝,它会自旋不断尝试获取锁,如果客户1释放之后,客户2就可以马上持有锁,性能也得到了提升。</p>
|
||
<p><strong>面试官</strong>:好的,redisson实现的分布式锁是可重入的吗?</p>
|
||
<p><strong>候选人</strong>:嗯,是可以重入的。这样做是为了避免死锁的产生。这个重入其实在内部就是判断是否是当前线程持有的锁,如果是当前线程持有的锁就会计数,如果释放锁就会在计算上减一。在存储数据的时候采用的hash结构,大key可以按照自己的业务进行定制,其中小key是当前线程的唯一标识,value是当前线程重入的次数</p>
|
||
<p><strong>面试官</strong>:redisson实现的分布式锁能解决主从一致性的问题吗</p>
|
||
<p><strong>候选人</strong>:这个是不能的,比如,当线程1加锁成功后,master节点数据会异步复制到slave节点,此时当前持有Redis锁的master节点宕机,slave节点被提升为新的master节点,假如现在来了一个线程2,再次加锁,会在新的master节点上加锁成功,这个时候就会出现两个节点同时持有一把锁的问题。</p>
|
||
<p>我们可以利用redisson提供的红锁来解决这个问题,它的主要作用是,不能只在一个redis实例上创建锁,应该是在多个redis实例上创建锁,并且要求在大多数redis节点上都成功创建锁,红锁中要求是redis的节点数量要过半。这样就能避免线程1加锁成功后master节点宕机导致线程2成功加锁到新的master节点上的问题了。</p>
|
||
<p>但是,如果使用了红锁,因为需要同时在多个节点上都添加锁,性能就变的很低了,并且运维维护成本也非常高,所以,我们一般在项目中也不会直接使用红锁,并且官方也暂时废弃了这个红锁</p>
|
||
<p><strong>面试官</strong>:好的,如果业务非要保证数据的强一致性,这个该怎么解决呢?</p>
|
||
<p><strong>候选人:</strong>嗯~,redis本身就是支持高可用的,做到强一致性,就非常影响性能,所以,如果有强一致性要求高的业务,建议使用zookeeper实现的分布式锁,它是可以保证强一致性的。</p>
|
||
<p><strong>面试官</strong>:Redis集群有哪些方案, 知道嘛 ?</p>
|
||
<p><strong>候选人</strong>:嗯~~,在Redis中提供的集群方案总共有三种:主从复制、哨兵模式、Redis分片集群</p>
|
||
<p><strong>面试官</strong>:那你来介绍一下主从同步</p>
|
||
<p><strong>候选人</strong>:嗯,是这样的,单节点Redis的并发能力是有上限的,要进一步提高Redis的并发能力,可以搭建主从集群,实现读写分离。一般都是一主多从,主节点负责写数据,从节点负责读数据,主节点写入数据之后,需要把数据同步到从节点中</p>
|
||
<p><strong>面试官</strong>:能说一下,主从同步数据的流程</p>
|
||
<p><strong>候选人</strong>:嗯~~,好!主从同步分为了两个阶段,一个是全量同步,一个是增量同步</p>
|
||
<p>全量同步是指从节点第一次与主节点建立连接的时候使用全量同步,流程是这样的:</p>
|
||
<p>第一:从节点请求主节点同步数据,其中从节点会携带自己的replication id和offset偏移量。</p>
|
||
<p>第二:主节点判断是否是第一次请求,主要判断的依据就是,主节点与从节点是否是同一个replication id,如果不是,就说明是第一次同步,那主节点就会把自己的replication id和offset发送给从节点,让从节点与主节点的信息保持一致。</p>
|
||
<p>第三:在同时主节点会执行bgsave,生成rdb文件后,发送给从节点去执行,从节点先把自己的数据清空,然后执行主节点发送过来的rdb文件,这样就保持了一致</p>
|
||
<p>当然,如果在rdb生成执行期间,依然有请求到了主节点,而主节点会以命令的方式记录到缓冲区,缓冲区是一个日志文件,最后把这个日志文件发送给从节点,这样就能保证主节点与从节点完全一致了,后期再同步数据的时候,都是依赖于这个日志文件,这个就是全量同步</p>
|
||
<p>增量同步指的是,当从节点服务重启之后,数据就不一致了,所以这个时候,从节点会请求主节点同步数据,主节点还是判断不是第一次请求,不是第一次就获取从节点的offset值,然后主节点从命令日志中获取offset值之后的数据,发送给从节点进行数据同步</p>
|
||
<p><strong>面试官</strong>:怎么保证Redis的高并发高可用</p>
|
||
<p><strong>候选人</strong>:首先可以搭建主从集群,再加上使用redis中的哨兵模式,哨兵模式可以实现主从集群的自动故障恢复,里面就包含了对主从服务的监控、自动故障恢复、通知;如果master故障,Sentinel会将一个slave提升为master。当故障实例恢复后也以新的master为主;同时Sentinel也充当Redis客户端的服务发现来源,当集群发生故障转移时,会将最新信息推送给Redis的客户端,所以一般项目都会采用哨兵的模式来保证redis的高并发高可用</p>
|
||
<p><strong>面试官</strong>:你们使用redis是单点还是集群,哪种集群</p>
|
||
<p><strong>候选人</strong>:嗯!,我们当时使用的是主从(1主1从)加哨兵。一般单节点不超过10G内存,如果Redis内存不足则可以给不同服务分配独立的Redis主从节点。尽量不做分片集群。因为集群维护起来比较麻烦,并且集群之间的心跳检测和数据通信会消耗大量的网络带宽,也没有办法使用lua脚本和事务</p>
|
||
<p><strong>面试官</strong>:redis集群脑裂,该怎么解决呢?</p>
|
||
<p><strong>候选人</strong>:嗯! 这个在项目很少见,不过脑裂的问题是这样的,我们现在用的是redis的哨兵模式集群的</p>
|
||
<p>有的时候由于网络等原因可能会出现脑裂的情况,就是说,由于redis master节点和redis salve节点和sentinel处于不同的网络分区,使得sentinel没有能够心跳感知到master,所以通过选举的方式提升了一个salve为master,这样就存在了两个master,就像大脑分裂了一样,这样会导致客户端还在old master那里写入数据,新节点无法同步数据,当网络恢复后,sentinel会将old master降为salve,这时再从新master同步数据,这会导致old master中的大量数据丢失。</p>
|
||
<p>关于解决的话,我记得在redis的配置中可以设置:第一可以设置最少的salve节点个数,比如设置至少要有一个从节点才能同步数据,第二个可以设置主从数据复制和同步的延迟时间,达不到要求就拒绝请求,就可以避免大量的数据丢失</p>
|
||
<p><strong>面试官</strong>:redis的分片集群有什么作用</p>
|
||
<p><strong>候选人</strong>:分片集群主要解决的是,海量数据存储的问题,集群中有多个master,每个master保存不同数据,并且还可以给每个master设置多个slave节点,就可以继续增大集群的高并发能力。同时每个master之间通过ping监测彼此健康状态,就类似于哨兵模式了。当客户端请求可以访问集群任意节点,最终都会被转发到正确节点</p>
|
||
<p><strong>面试官</strong>:Redis分片集群中数据是怎么存储和读取的?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~,在redis集群中是这样的</p>
|
||
<p>Redis 集群引入了哈希槽的概念,有 16384 个哈希槽,集群中每个主节点绑定了一定范围的哈希槽范围, key通过 CRC16 校验后对 16384 取模来决定放置哪个槽,通过槽找到对应的节点进行存储。</p>
|
||
<p>取值的逻辑是一样的</p>
|
||
<p><strong>面试官</strong>:Redis是单线程的,但是为什么还那么快?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个有几个原因吧~~~</p>
|
||
<p>1、完全基于内存的,C语言编写</p>
|
||
<p>2、采用单线程,避免不必要的上下文切换可竞争条件</p>
|
||
<p>3、使用多路I/O复用模型,非阻塞IO</p>
|
||
<p>例如:bgsave 和 bgrewriteaof 都是在<strong>后台</strong>执行操作,不影响主线程的正常使用,不会产生阻塞</p>
|
||
<p><strong>面试官</strong>:能解释一下I/O多路复用模型?</p>
|
||
<p><strong>候选人</strong>:嗯~~,I/O多路复用是指利用单个线程来同时监听多个Socket ,并在某个Socket可读、可写时得到通知,从而避免无效的等待,充分利用CPU资源。目前的I/O多路复用都是采用的epoll模式实现,它会在通知用户进程Socket就绪的同时,把已就绪的Socket写入用户空间,不需要挨个遍历Socket来判断是否就绪,提升了性能。</p>
|
||
<p>其中Redis的网络模型就是使用I/O多路复用结合事件的处理器来应对多个Socket请求,比如,提供了连接应答处理器、命令回复处理器,命令请求处理器;</p>
|
||
<p>在Redis6.0之后,为了提升更好的性能,在命令回复处理器使用了多线程来处理回复事件,在命令请求处理器中,将命令的转换使用了多线程,增加命令转换速度,在命令执行的时候,依然是单线程</p>
|
||
</blockquote>
|
||
<p>pdf</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/Redis面试题-参考回答.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="2-数据库篇"><a href="#2-数据库篇" class="headerlink" title="2.数据库篇"></a>2.数据库篇</h2><blockquote>
|
||
<p><strong>面试官:</strong>MySQL中,如何定位慢查询?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>嗯~,我们当时做压测的时候有的接口非常的慢,接口的响应时间超过了2秒以上,因为我们当时的系统部署了运维的监控系统Skywalking ,在展示的报表中可以看到是哪一个接口比较慢,并且可以分析这个接口哪部分比较慢,这里可以看到SQL的具体的执行时间,所以可以定位是哪个sql出了问题</p>
|
||
<p>如果,项目中没有这种运维的监控系统,其实在MySQL中也提供了慢日志查询的功能,可以在MySQL的系统配置文件中开启这个慢日志的功能,并且也可以设置SQL执行超过多少时间来记录到一个日志文件中,我记得上一个项目配置的是2秒,只要SQL执行的时间超过了2秒就会记录到日志文件中,我们就可以在日志文件找到执行比较慢的SQL了。</p>
|
||
<p><strong>面试官:</strong>那这个SQL语句执行很慢, 如何分析呢?</p>
|
||
<p><strong>候选人:</strong>如果一条sql执行很慢的话,我们通常会使用mysql自动的执行计划explain来去查看这条sql的执行情况,比如在这里面可以通过key和key_len检查是否命中了索引,如果本身已经添加了索引,也可以判断索引是否有失效的情况,第二个,可以通过type字段查看sql是否有进一步的优化空间,是否存在全索引扫描或全盘扫描,第三个可以通过extra建议来判断,是否出现了回表的情况,如果出现了,可以尝试添加索引或修改返回字段来修复</p>
|
||
<p><strong>面试官:</strong>了解过索引吗?(什么是索引)</p>
|
||
<p><strong>候选人:</strong>嗯,索引在项目中还是比较常见的,它是帮助MySQL高效获取数据的数据结构,主要是用来提高数据检索的效率,降低数据库的IO成本,同时通过索引列对数据进行排序,降低数据排序的成本,也能降低了CPU的消耗</p>
|
||
<p><strong>面试官:</strong>索引的底层数据结构了解过嘛 ? </p>
|
||
<p><strong>候选人:</strong>MySQL的默认的存储引擎InnoDB采用的B+树的数据结构来存储索引,选择B+树的主要的原因是:第一阶数更多,路径更短,第二个磁盘读写代价B+树更低,非叶子节点只存储指针,叶子阶段存储数据,第三是B+树便于扫库和区间查询,叶子节点是一个双向链表</p>
|
||
<p><strong>面试官:</strong>B树和B+树的区别是什么呢?</p>
|
||
<p><strong>候选人</strong>:第一:在B树中,非叶子节点和叶子节点都会存放数据,而B+树的所有的数据都会出现在叶子节点,在查询的时候,B+树查找效率更加稳定</p>
|
||
<p>第二:在进行范围查询的时候,B+树效率更高,因为B+树都在叶子节点存储,并且叶子节点是一个双向链表</p>
|
||
<p><strong>面试官:</strong>什么是聚簇索引什么是非聚簇索引 ?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>好的~,聚簇索引主要是指数据与索引放到一块,B+树的叶子节点保存了整行数据,有且只有一个,一般情况下主键在作为聚簇索引的</p>
|
||
<p>非聚簇索引值的是数据与索引分开存储,B+树的叶子节点保存对应的主键,可以有多个,一般我们自己定义的索引都是非聚簇索引</p>
|
||
<p><strong>面试官:</strong>知道什么是回表查询嘛 ?</p>
|
||
<p><strong>候选人:</strong>嗯,其实跟刚才介绍的聚簇索引和非聚簇索引是有关系的,回表的意思就是通过二级索引找到对应的主键值,然后再通过主键值找到聚集索引中所对应的整行数据,这个过程就是回表</p>
|
||
<p>【<strong>备注</strong>:如果面试官直接问回表,则需要先介绍聚簇索引和非聚簇索引】</p>
|
||
<p><strong>面试官:</strong>知道什么叫覆盖索引嘛 ? </p>
|
||
<p><strong>候选人:</strong>嗯~,清楚的</p>
|
||
<p>覆盖索引是指select查询语句使用了索引,在返回的列,必须在索引中全部能够找到,如果我们使用id查询,它会直接走聚集索引查询,一次索引扫描,直接返回数据,性能高。</p>
|
||
<p>如果按照二级索引查询数据的时候,返回的列中没有创建索引,有可能会触发回表查询,尽量避免使用select *,尽量在返回的列中都包含添加索引的字段</p>
|
||
<p><strong>面试官:</strong>MYSQL超大分页怎么处理 ?</p>
|
||
<p><strong>候选人:</strong>嗯,超大分页一般都是在数据量比较大时,我们使用了limit分页查询,并且需要对数据进行排序,这个时候效率就很低,我们可以采用覆盖索引和子查询来解决</p>
|
||
<p>先分页查询数据的id字段,确定了id之后,再用子查询来过滤,只查询这个id列表中的数据就可以了</p>
|
||
<p>因为查询id的时候,走的覆盖索引,所以效率可以提升很多</p>
|
||
<p><strong>面试官:</strong>索引创建原则有哪些?</p>
|
||
<p><strong>候选人:</strong>嗯,这个情况有很多,不过都有一个大前提,就是表中的数据要超过10万以上,我们才会创建索引,并且添加索引的字段是查询比较频繁的字段,一般也是像作为查询条件,排序字段或分组的字段这些。</p>
|
||
<p>还有就是,我们通常创建索引的时候都是使用复合索引来创建,一条sql的返回值,尽量使用覆盖索引,如果字段的区分度不高的话,我们也会把它放在组合索引后面的字段。</p>
|
||
<p>如果某一个字段的内容较长,我们会考虑使用前缀索引来使用,当然并不是所有的字段都要添加索引,这个索引的数量也要控制,因为添加索引也会导致新增改的速度变慢。</p>
|
||
<p><strong>面试官:</strong>什么情况下索引会失效 ?</p>
|
||
<p><strong>候选人:</strong>嗯,这个情况比较多,我说一些自己的经验,以前遇到过的</p>
|
||
<p>比如,索引在使用的时候没有遵循最左匹配法则,第二个是,模糊查询,如果%号在前面也会导致索引失效。如果在添加索引的字段上进行了运算操作或者类型转换也都会导致索引失效。</p>
|
||
<p>我们之前还遇到过一个就是,如果使用了复合索引,中间使用了范围查询,右边的条件索引也会失效</p>
|
||
<p>查询的时候发生了类型转换,在查询的时候做了运算的操作和模糊查询也会导致索引失效</p>
|
||
<p>所以,通常情况下,想要判断出这条sql是否有索引失效的情况,可以使用explain执行计划来分析</p>
|
||
<p><strong>面试官:</strong>sql的优化的经验</p>
|
||
<p><strong>候选人:</strong>嗯,这个在项目还是挺常见的,当然如果直说sql优化的话,我们会从这几方面考虑,比如</p>
|
||
<p>建表的时候、使用索引、sql语句的编写、主从复制,读写分离,还有一个是如果量比较大的话,可以考虑分库分表</p>
|
||
<p>直接经验:</p>
|
||
<p>①SELECT语句务必指明字段名称(避免直接使用select * )</p>
|
||
<p>②SQL语句要避免造成索引失效的写法</p>
|
||
<p>③尽量用union all代替union union会多一次过滤,效率低</p>
|
||
<p>④避免在where子句中对字段进行表达式操作</p>
|
||
<p>⑤Join优化 能用innerjoin 就不用left join right join,如必须使用 一定要以小表为驱动,内连接会对两个表进行优化,优先把小表放到外边,把大表放到里边。left join 或 right join,不会重新调整顺序</p>
|
||
<p><strong>面试官:</strong>创建表的时候,你们是如何优化的呢?</p>
|
||
<p><strong>候选人:</strong>这个我们主要参考的阿里出的那个开发手册《嵩山版》,就比如,在定义字段的时候需要结合字段的内容来选择合适的类型,如果是数值的话,像tinyint、int 、bigint这些类型,要根据实际情况选择。如果是字符串类型,也是结合存储的内容来选择char和varchar或者text类型</p>
|
||
<p><strong>面试官:</strong>那在使用索引的时候,是如何优化呢?</p>
|
||
<p><strong>候选人:</strong>【参考索引创建原则 进行描述】</p>
|
||
<p>1). 针对于数据量较大,且查询比较频繁的表建立索引。</p>
|
||
<p>2). 针对于常作为查询条件(where)、排序(order by)、分组(group by)操作的字段建立索引。</p>
|
||
<p>3). 尽量选择区分度高的列作为索引,尽量建立唯一索引,区分度越高,使用索引的效率越高。</p>
|
||
<p>4). 如果是字符串类型的字段,字段的长度较长,可以针对于字段的特点,建立前缀索引。</p>
|
||
<p>5). 尽量使用联合索引,减少单列索引,查询时,联合索引很多时候可以覆盖索引,节省存储空间,避免回表,提高查询效率。</p>
|
||
<p>6). 要控制索引的数量,索引并不是多多益善,索引越多,维护索引结构的代价也就越大,会影响增删改的效率。</p>
|
||
<p>7). 如果索引列不能存储NULL值,请在创建表时使用NOT NULL约束它。当优化器知道每列是否包含NULL值时,它可以更好地确定哪个索引最有效地用于查询。</p>
|
||
<p><strong>面试官:</strong>你平时对sql语句做了哪些优化呢?</p>
|
||
<p><strong>候选人:</strong>嗯,这个也有很多,比如SELECT语句务必指明字段名称,不要直接使用select * ,还有就是要注意SQL语句避免造成索引失效的写法;如果是聚合查询,尽量用union all代替union ,union会多一次过滤,效率比较低;如果是表关联的话,尽量使用innerjoin ,不要使用用left join right join,如必须使用 一定要以小表为驱动</p>
|
||
<p><strong>面试官:</strong>事务的特性是什么?可以详细说一下吗?</p>
|
||
<p><strong>候选人:</strong>嗯,这个比较清楚,ACID,分别指的是:原子性、一致性、隔离性、持久性;我举个例子:</p>
|
||
<p>A向B转账500,转账成功,A扣除500元,B增加500元,原子操作体现在要么都成功,要么都失败</p>
|
||
<p>在转账的过程中,数据要一致,A扣除了500,B必须增加500</p>
|
||
<p>在转账的过程中,隔离性体现在A像B转账,不能受其他事务干扰</p>
|
||
<p>在转账的过程中,持久性体现在事务提交后,要把数据持久化(可以说是落盘操作)</p>
|
||
<p>ACID介绍:</p>
|
||
<p>原子性(<strong>A</strong>tomicity):事务是不可分割的最小操作单元,要么全部成功,要么全部失败。</p>
|
||
<p>一致性(<strong>C</strong>onsistency):事务完成时,必须使所有的数据都保持一致状态。</p>
|
||
<p>隔离性(<strong>I</strong>solation):数据库系统提供的隔离机制,保证事务在不受外部并发操作影响的独立环境下运行。</p>
|
||
<p>持久性(<strong>D</strong>urability):事务一旦提交或回滚,它对数据库中的数据的改变就是永久的。</p>
|
||
<p><strong>面试官</strong>:并发事务带来哪些问题?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>我们在项目开发中,多个事务并发进行是经常发生的,并发也是必然的,有可能导致一些问题</p>
|
||
<p>第一是脏读, 当一个事务正在访问数据并且对数据进行了修改,而这种修改还没有提交到数据库中,这时另外一个事务也访问了这个数据,因为这个数据是还没有提交的数据,那么另外一个事务读到的这个数据是“脏数据”,依据“脏数据”所做的操作可能是不正确的。</p>
|
||
<p>第二是不可重复读:比如在一个事务内多次读同一数据。在这个事务还没有结束时,另一个事务也访问该数据。那么,在第一个事务中的两次读数据之间,由于第二个事务的修改导致第一个事务两次读取的数据可能不太一样。这就发生了在一个事务内两次读到的数据是不一样的情况,因此称为不可重复读。</p>
|
||
<p>第三是幻读(Phantom read):幻读与不可重复读类似。它发生在一个事务(T1)读取了几行数据,接着另一个并发事务(T2)插入了一些数据时。在随后的查询中,第一个事务(T1)就会发现多了一些原本不存在的记录,就好像发生了幻觉一样,所以称为幻读。</p>
|
||
<p><img src="/pictures/image-20230511172226172.png" alt="image-20230511172226172"></p>
|
||
<p><strong>面试官</strong>:怎么解决这些问题呢?MySQL的默认隔离级别是?</p>
|
||
<p><strong>候选人</strong>:解决方案是对事务进行隔离</p>
|
||
<p>MySQL支持四种隔离级别,分别有:</p>
|
||
<p>第一个是,未提交读(read uncommitted)它解决不了刚才提出的所有问题,一般项目中也不用这个。第二个是读已提交(read committed)它能解决脏读的问题的,但是解决不了不可重复读和幻读。第三个是可重复读(repeatable read)它能解决脏读和不可重复读,但是解决不了幻读,这个也是mysql默认的隔离级别。第四个是串行化(serializable)它可以解决刚才提出来的所有问题,但是由于让是事务串行执行的,性能比较低。所以,我们一般使用的都是mysql默认的隔离级别:可重复读</p>
|
||
<p><img src="/pictures/image-20230511172259204.png" alt="image-20230511172259204"></p>
|
||
<p><strong>面试官</strong>:undo log和redo log的区别</p>
|
||
<p><strong>候选人</strong>:好的,其中redo log日志记录的是数据页的物理变化,服务宕机可用来同步数据,而undo log 不同,它主要记录的是逻辑日志,当事务回滚时,通过逆操作恢复原来的数据,比如我们删除一条数据的时候,就会在undo log日志文件中新增一条delete语句,如果发生回滚就执行逆操作;</p>
|
||
<p>redo log保证了事务的持久性,undo log保证了事务的原子性和一致性</p>
|
||
<p><strong>面试官</strong>:事务中的隔离性是如何保证的呢?(你解释一下MVCC)</p>
|
||
<p><strong>候选人</strong>:事务的隔离性是由锁和mvcc实现的。</p>
|
||
<p>其中mvcc的意思是多版本并发控制。指维护一个数据的多个版本,使得读写操作没有冲突,它的底层实现主要是分为了三个部分,第一个是隐藏字段,第二个是undo log日志,第三个是readView读视图</p>
|
||
<p>隐藏字段是指:在mysql中给每个表都设置了隐藏字段,有一个是trx_id(事务id),记录每一次操作的事务id,是自增的;另一个字段是roll_pointer(回滚指针),指向上一个版本的事务版本记录地址</p>
|
||
<p>undo log主要的作用是记录回滚日志,存储老版本数据,在内部会形成一个版本链,在多个事务并行操作某一行记录,记录不同事务修改数据的版本,通过roll_pointer指针形成一个链表</p>
|
||
<p>readView解决的是一个事务查询选择版本的问题,在内部定义了一些匹配规则和当前的一些事务id判断该访问那个版本的数据,不同的隔离级别快照读是不一样的,最终的访问的结果不一样。如果是rc隔离级别,每一次执行快照读时生成ReadView,如果是rr隔离级别仅在事务中第一次执行快照读时生成ReadView,后续复用</p>
|
||
<p><strong>面试官</strong>:MySQL主从同步原理 </p>
|
||
<p><strong>候选人</strong>:MySQL主从复制的核心就是二进制日志(DDL(数据定义语言)语句和 DML(数据操纵语言)语句),它的步骤是这样的:</p>
|
||
<p>第一:主库在事务提交时,会把数据变更记录在二进制日志文件 Binlog 中。</p>
|
||
<p>第二:从库读取主库的二进制日志文件 Binlog ,写入到从库的中继日志 Relay Log 。</p>
|
||
<p>第三:从库重做中继日志中的事件,将改变反映它自己的数据</p>
|
||
<p><strong>面试官</strong>:你们项目用过MySQL的分库分表吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,因为我们都是微服务开发,每个微服务对应了一个数据库,是根据业务进行拆分的,这个其实就是垂直拆分。</p>
|
||
<p><strong>面试官</strong>:那你之前使用过水平分库吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个是使用过的,我们当时的业务是(xxx),一开始,我们也是单库,后来这个业务逐渐发展,业务量上来的很迅速,其中(xx)表已经存放了超过1000万的数据,我们做了很多优化也不好使,性能依然很慢,所以当时就使用了水平分库。</p>
|
||
<p>我们一开始先做了3台服务器对应了3个数据库,由于库多了,需要分片,我们当时采用的mycat来作为数据库的中间件。数据都是按照id(自增)取模的方式来存取的。</p>
|
||
<p>当然一开始的时候,那些旧数据,我们做了一些清洗的工作,我们也是按照id取模规则分别存储到了各个数据库中,好处就是可以让各个数据库分摊存储和读取的压力,解决了我们当时性能的问题</p>
|
||
</blockquote>
|
||
<p>pdf</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/MySQL面试题-参考回答.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="3-框架篇"><a href="#3-框架篇" class="headerlink" title="3.框架篇"></a>3.框架篇</h2><blockquote>
|
||
<p><strong>面试官</strong>:Spring框架中的单例bean是线程安全的吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!</p>
|
||
<p>不是线程安全的,是这样的</p>
|
||
<p>当多用户同时请求一个服务时,容器会给每一个请求分配一个线程,这是多个线程会并发执行该请求对应的业务逻辑(成员方法),如果该处理逻辑中有对该单列状态的修改(体现为该单例的成员属性),则必须考虑线程同步问题。</p>
|
||
<p>Spring框架并没有对单例bean进行任何多线程的封装处理。关于单例bean的线程安全和并发问题需要开发者自行去搞定。</p>
|
||
<p>比如:我们通常在项目中使用的Spring bean都是不可可变的状态(比如Service类和DAO类),所以在某种程度上说Spring的单例bean是线程安全的。</p>
|
||
<p>如果你的bean有多种状态的话(比如 View Model对象),就需要自行保证线程安全。最浅显的解决办法就是将多态bean的作用由“<strong>singleton</strong>”变更为“<strong>prototype</strong>”。</p>
|
||
<p><strong>面试官</strong>:什么是AOP</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>aop是面向切面编程,在spring中用于将那些与业务无关,但却对多个对象产生影响的公共行为和逻辑,抽取公共模块复用,降低耦合,一般比如可以做为公共日志保存,事务处理等</p>
|
||
<p><strong>面试官</strong>:你们项目中有没有使用到AOP</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>我们当时在后台管理系统中,就是使用aop来记录了系统的操作日志</p>
|
||
<p>主要思路是这样的,使用aop中的环绕通知+切点表达式,这个表达式就是要找到要记录日志的方法,然后通过环绕通知的参数获取请求方法的参数,比如类信息、方法信息、注解、请求方式等,获取到这些参数以后,保存到数据库</p>
|
||
<p><strong>面试官</strong>:Spring中的事务是如何实现的</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>spring实现的事务本质就是aop完成,对方法前后进行拦截,在执行方法之前开启事务,在执行完目标方法之后根据执行情况提交或者回滚事务。</p>
|
||
<p><strong>面试官</strong>:Spring中事务失效的场景有哪些</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!这个在项目中之前遇到过,我想想啊</p>
|
||
<p>第一个,如果方法上异常捕获处理,自己处理了异常,没有抛出,就会导致事务失效,所以一般处理了异常以后,别忘了跑出去就行了</p>
|
||
<p>第二个,如果方法抛出检查异常,如果报错也会导致事务失效,最后在spring事务的注解上,就是@Transactional上配置rollbackFor属性为Exception,这样别管是什么异常,都会回滚事务</p>
|
||
<p>第三,我之前还遇到过一个,如果方法上不是public修饰的,也会导致事务失效</p>
|
||
<p>嗯,就能想起来那么多</p>
|
||
<p><strong>面试官</strong>:Spring的bean的生命周期</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!,这个步骤还是挺多的,我之前看过一些源码,它大概流程是这样的</p>
|
||
<p>首先会通过一个非常重要的类,叫做BeanDefinition获取bean的定义信息,这里面就封装了bean的所有信息,比如,类的全路径,是否是延迟加载,是否是单例等等这些信息</p>
|
||
<p>在创建bean的时候,第一步是调用构造函数实例化bean</p>
|
||
<p>第二步是bean的依赖注入,比如一些set方法注入,像平时开发用的@Autowire都是这一步完成</p>
|
||
<p>第三步是处理Aware接口,如果某一个bean实现了Aware接口就会重写方法执行</p>
|
||
<p>第四步是bean的后置处理器BeanPostProcessor,这个是前置处理器</p>
|
||
<p>第五步是初始化方法,比如实现了接口InitializingBean或者自定义了方法init-method标签或@PostContruct</p>
|
||
<p>第六步是执行了bean的后置处理器BeanPostProcessor,主要是对bean进行增强,有可能在这里产生代理对象</p>
|
||
<p>最后一步是销毁bean</p>
|
||
<p><strong>面试官</strong>:Spring中的循环引用</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,好的,我来解释一下</p>
|
||
<p>循环依赖:循环依赖其实就是循环引用,也就是两个或两个以上的bean互相持有对方,最终形成闭环。比如A依赖于B,B依赖于A</p>
|
||
<p>循环依赖在spring中是允许存在,spring框架依据三级缓存已经解决了大部分的循环依赖</p>
|
||
<p>①一级缓存:单例池,缓存已经经历了完整的生命周期,已经初始化完成的bean对象</p>
|
||
<p>②二级缓存:缓存早期的bean对象(生命周期还没走完)</p>
|
||
<p>③三级缓存:缓存的是ObjectFactory,表示对象工厂,用来创建某个对象的</p>
|
||
<p><strong>面试官</strong>:那具体解决流程清楚吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>第一,先实例A对象,同时会创建ObjectFactory对象存入三级缓存singletonFactories</p>
|
||
<p>第二,A在初始化的时候需要B对象,这个走B的创建的逻辑</p>
|
||
<p>第三,B实例化完成,也会创建ObjectFactory对象存入三级缓存singletonFactories</p>
|
||
<p>第四,B需要注入A,通过三级缓存中获取ObjectFactory来生成一个A的对象同时存入二级缓存,这个是有两种情况,一个是可能是A的普通对象,另外一个是A的代理对象,都可以让ObjectFactory来生产对应的对象,这也是三级缓存的关键</p>
|
||
<p>第五,B通过从通过二级缓存earlySingletonObjects 获得到A的对象后可以正常注入,B创建成功,存入一级缓存singletonObjects</p>
|
||
<p>第六,回到A对象初始化,因为B对象已经创建完成,则可以直接注入B,A创建成功存入一次缓存singletonObjects</p>
|
||
<p>第七,二级缓存中的临时对象A清除</p>
|
||
<p><strong>面试官</strong>:构造方法出现了循环依赖怎么解决?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>由于bean的生命周期中构造函数是第一个执行的,spring框架并不能解决构造函数的的依赖注入,可以使用@Lazy懒加载,什么时候需要对象再进行bean对象的创建</p>
|
||
<p><strong>面试官</strong>:SpringMVC的执行流程知道嘛</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个知道的,它分了好多步骤</p>
|
||
<p>1、用户发送出请求到前端控制器DispatcherServlet,这是一个调度中心</p>
|
||
<p>2、DispatcherServlet收到请求调用HandlerMapping(处理器映射器)。</p>
|
||
<p>3、HandlerMapping找到具体的处理器(可查找xml配置或注解配置),生成处理器对象及处理器拦截器(如果有),再一起返回给DispatcherServlet。</p>
|
||
<p>4、DispatcherServlet调用HandlerAdapter(处理器适配器)。</p>
|
||
<p>5、HandlerAdapter经过适配调用具体的处理器(Handler/Controller)。</p>
|
||
<p>6、Controller执行完成返回ModelAndView对象。</p>
|
||
<p>7、HandlerAdapter将Controller执行结果ModelAndView返回给DispatcherServlet。</p>
|
||
<p>8、DispatcherServlet将ModelAndView传给ViewReslover(视图解析器)。</p>
|
||
<p>9、ViewReslover解析后返回具体View(视图)。</p>
|
||
<p>10、DispatcherServlet根据View进行渲染视图(即将模型数据填充至视图中)。</p>
|
||
<p>11、DispatcherServlet响应用户。</p>
|
||
<p>当然现在的开发,基本都是前后端分离的开发的,并没有视图这些,一般都是handler中使用Response直接结果返回</p>
|
||
<p><strong>面试官</strong>:Springboot自动配置原理</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,好的,它是这样的。</p>
|
||
<p>在Spring Boot项目中的引导类上有一个注解@SpringBootApplication,这个注解是对三个注解进行了封装,分别是:</p>
|
||
<ul>
|
||
<li>@SpringBootConfiguration</li>
|
||
<li>@EnableAutoConfiguration</li>
|
||
<li>@ComponentScan</li>
|
||
</ul>
|
||
<p>其中<code>@EnableAutoConfiguration</code>是实现自动化配置的核心注解。</p>
|
||
<p>该注解通过<code>@Import</code>注解导入对应的配置选择器。关键的是内部就是读取了该项目和该项目引用的Jar包的的classpath路径下<strong>META-INF/spring.factories</strong>文件中的所配置的类的全类名。</p>
|
||
<p>在这些配置类中所定义的Bean会根据条件注解所<strong>指定的条件来决定</strong>是否需要将其导入到Spring容器中。</p>
|
||
<p>一般条件判断会有像<code>@ConditionalOnClass</code>这样的注解,判断是否有对应的class文件,如果有则加载该类,把这个配置类的所有的Bean放入spring容器中使用。</p>
|
||
<p><strong>面试官</strong>:Spring 的常见注解有哪些?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个就很多了</p>
|
||
<p>第一类是:声明bean,有@Component、@Service、@Repository、@Controller</p>
|
||
<p>第二类是:依赖注入相关的,有@Autowired、@Qualifier、@Resourse</p>
|
||
<p>第三类是:设置作用域 @Scope</p>
|
||
<p>第四类是:spring配置相关的,比如@Configuration,@ComponentScan 和 @Bean</p>
|
||
<p>第五类是:跟aop相关做增强的注解 @Aspect,@Before,@After,@Around,@Pointcut</p>
|
||
<p><strong>面试官</strong>:SpringMVC常见的注解有哪些?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个也很多的</p>
|
||
<p>有@RequestMapping:用于映射请求路径;</p>
|
||
<p>@RequestBody:注解实现接收http请求的json数据,将json转换为java对象;</p>
|
||
<p>@RequestParam:指定请求参数的名称;</p>
|
||
<p>@PathViriable:从请求路径下中获取请求参数(/user/{id}),传递给方法的形式参数;@ResponseBody:注解实现将controller方法返回对象转化为json对象响应给客户端。@RequestHeader:获取指定的请求头数据,还有像@PostMapping、@GetMapping这些。</p>
|
||
<p><strong>面试官</strong>:Springboot常见注解有哪些?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~~</p>
|
||
<p>Spring Boot的核心注解是@SpringBootApplication , 他由几个注解组成 :</p>
|
||
<ul>
|
||
<li>@SpringBootConfiguration: 组合了- @Configuration注解,实现配置文件的功能;</li>
|
||
<li>@EnableAutoConfiguration:打开自动配置的功能,也可以关闭某个自动配置的选项</li>
|
||
<li>@ComponentScan:Spring组件扫描</li>
|
||
</ul>
|
||
<p><strong>面试官</strong>:MyBatis执行流程</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>好,这个知道的,不过步骤也很多</p>
|
||
<p>①读取MyBatis配置文件:mybatis-config.xml加载运行环境和映射文件</p>
|
||
<p>②构造会话工厂SqlSessionFactory,一个项目只需要一个,单例的,一般由spring进行管理</p>
|
||
<p>③会话工厂创建SqlSession对象,这里面就含了执行SQL语句的所有方法</p>
|
||
<p>④操作数据库的接口,Executor执行器,同时负责查询缓存的维护</p>
|
||
<p>⑤Executor接口的执行方法中有一个MappedStatement类型的参数,封装了映射信息</p>
|
||
<p>⑥输入参数映射</p>
|
||
<p>⑦输出结果映射</p>
|
||
<p><strong>面试官</strong>:Mybatis是否支持延迟加载?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>是支持的~</p>
|
||
<p>延迟加载的意思是:就是在需要用到数据时才进行加载,不需要用到数据时就不加载数据。</p>
|
||
<p>Mybatis支持一对一关联对象和一对多关联集合对象的延迟加载</p>
|
||
<p>在Mybatis配置文件中,可以配置是否启用延迟加载lazyLoadingEnabled=true|false,默认是关闭的</p>
|
||
<p><strong>面试官</strong>:延迟加载的底层原理知道吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,我想想啊</p>
|
||
<p>延迟加载在底层主要使用的CGLIB动态代理完成的</p>
|
||
<p>第一是,使用CGLIB创建目标对象的代理对象,这里的目标对象就是开启了延迟加载的mapper</p>
|
||
<p>第二个是当调用目标方法时,进入拦截器invoke方法,发现目标方法是null值,再执行sql查询</p>
|
||
<p>第三个是获取数据以后,调用set方法设置属性值,再继续查询目标方法,就有值了</p>
|
||
<p><strong>面试官</strong>:Mybatis的一级、二级缓存用过吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯~~,用过的~</p>
|
||
<p>mybatis的一级缓存: 基于 PerpetualCache 的 HashMap 本地缓存,其存储作用域为 Session,当Session进行flush或close之后,该Session中的所有Cache就将清空,默认打开一级缓存</p>
|
||
<p>关于二级缓存需要单独开启</p>
|
||
<p>二级缓存是基于namespace和mapper的作用域起作用的,不是依赖于SQL session,默认也是采用 PerpetualCache,HashMap 存储。</p>
|
||
<p>如果想要开启二级缓存需要在全局配置文件和映射文件中开启配置才行。</p>
|
||
<p><strong>面试官</strong>:Mybatis的二级缓存什么时候会清理缓存中的数据</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!!</p>
|
||
<p>当某一个作用域(一级缓存 Session/二级缓存Namespaces)的进行了新增、修改、删除操作后,默认该作用域下所有 select 中的缓存将被 clear。</p>
|
||
</blockquote>
|
||
<p>pdf</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/框架篇面试题-参考回答.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h2 id="4-微服务篇"><a href="#4-微服务篇" class="headerlink" title="4.微服务篇"></a>4.微服务篇</h2><blockquote>
|
||
<p><strong>面试官:</strong>Spring Cloud 5大组件有哪些?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>早期我们一般认为的Spring Cloud五大组件是</p>
|
||
<ul>
|
||
<li>Eureka : 注册中心</li>
|
||
<li>Ribbon : 负载均衡</li>
|
||
<li>Feign : 远程调用</li>
|
||
<li>Hystrix : 服务熔断</li>
|
||
<li>Zuul/Gateway : 网关</li>
|
||
</ul>
|
||
<p>随着SpringCloudAlibba在国内兴起 , 我们项目中使用了一些阿里巴巴的组件</p>
|
||
<ul>
|
||
<li>注册中心/配置中心 Nacos</li>
|
||
<li>负载均衡 Ribbon</li>
|
||
<li>服务调用 Feign</li>
|
||
<li>服务保护 sentinel</li>
|
||
<li>服务网关 Gateway</li>
|
||
</ul>
|
||
<p><strong>面试官:</strong>服务注册和发现是什么意思?Spring Cloud 如何实现服务注册发现?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我理解的是主要三块大功能,分别是服务注册 、服务发现、服务状态监控</p>
|
||
<p>我们当时项目采用的eureka作为注册中心,这个也是spring cloud体系中的一个核心组件</p>
|
||
<p><strong>服务注册</strong>:服务提供者需要把自己的信息注册到eureka,由eureka来保存这些信息,比如服务名称、ip、端口等等</p>
|
||
<p><strong>服务发现</strong>:消费者向eureka拉取服务列表信息,如果服务提供者有集群,则消费者会利用负载均衡算法,选择一个发起调用</p>
|
||
<p><strong>服务监控</strong>:服务提供者会每隔30秒向eureka发送心跳,报告健康状态,如果eureka服务90秒没接收到心跳,从eureka中剔除</p>
|
||
<p><strong>面试官:</strong>我看你之前也用过nacos、你能说下nacos与eureka的区别?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我们当时xx项目就是采用的nacos作为注册中心,选择nacos还要一个重要原因就是它支持配置中心,不过nacos作为注册中心,也比eureka要方便好用一些,主要相同不同点在于几点:</p>
|
||
<ul>
|
||
<li>共同点</li>
|
||
</ul>
|
||
<p>Nacos与eureka都支持服务注册和服务拉取,都支持服务提供者心跳方式做健康检测</p>
|
||
<ul>
|
||
<li>Nacos与Eureka的区别</li>
|
||
</ul>
|
||
<p>①Nacos支持服务端主动检测提供者状态:临时实例采用心跳模式,非临时实例采用主动检测模式</p>
|
||
<p>②临时实例心跳不正常会被剔除,非临时实例则不会被剔除</p>
|
||
<p>③Nacos支持服务列表变更的消息推送模式,服务列表更新更及时</p>
|
||
<p>④Nacos集群默认采用AP方式,当集群中存在非临时实例时,采用CP模式;Eureka采用AP方式</p>
|
||
<p><strong>面试官:</strong>你们项目负载均衡如何实现的 ?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>是这样~~</p>
|
||
<p>在服务调用过程中的负载均衡一般使用SpringCloud的Ribbon 组件实现 , Feign的底层已经自动集成了Ribbon , 使用起来非常简单</p>
|
||
<p>当发起远程调用时,ribbon先从注册中心拉取服务地址列表,然后按照一定的路由策略选择一个发起远程调用,一般的调用策略是轮询</p>
|
||
<p><strong>面试官:</strong>Ribbon负载均衡策略有哪些 ?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我想想啊,有很多种,我记得几个:</p>
|
||
<ul>
|
||
<li>RoundRobinRule:简单轮询服务列表来选择服务器</li>
|
||
<li>WeightedResponseTimeRule:按照权重来选择服务器,响应时间越长,权重越小</li>
|
||
<li>RandomRule:随机选择一个可用的服务器</li>
|
||
<li>ZoneAvoidanceRule:区域敏感策略,以区域可用的服务器为基础进行服务器的选择。使用Zone对服务器进行分类,这个Zone可以理解为一个机房、一个机架等。而后再对Zone内的多个服务做轮询(默认)</li>
|
||
</ul>
|
||
<p><strong>面试官:</strong>如果想自定义负载均衡策略如何实现 ?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>提供了两种方式:</p>
|
||
<p>1,创建类实现IRule接口,可以指定负载均衡策略,这个是全局的,对所有的远程调用都起作用</p>
|
||
<p>2,在客户端的配置文件中,可以配置某一个服务调用的负载均衡策略,只是对配置的这个服务生效远程调用</p>
|
||
<p><strong>面试官:</strong>什么是服务雪崩,怎么解决这个问题?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>服务雪崩是指一个服务失败,导致整条链路的服务都失败的情形,一般我们在项目解决的话就是两种方案,第一个是服务降级,第二个是服务熔断,如果流量太大的话,可以考虑限流</p>
|
||
<p>服务降级:服务自我保护的一种方式,或者保护下游服务的一种方式,用于确保服务不会受请求突增影响变得不可用,确保服务不会崩溃,一般在实际开发中与feign接口整合,编写降级逻辑</p>
|
||
<p>服务熔断:默认关闭,需要手动打开,如果检测到 10 秒内请求的失败率超过 50%,就触发熔断机制。之后每隔 5 秒重新尝试请求微服务,如果微服务不能响应,继续走熔断机制。如果微服务可达,则关闭熔断机制,恢复正常请求</p>
|
||
<p><strong>面试官:</strong>你们的微服务是怎么监控的?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我们项目中采用的skywalking进行监控的</p>
|
||
<p>1,skywalking主要可以监控接口、服务、物理实例的一些状态。特别是在压测的时候可以看到众多服务中哪些服务和接口比较慢,我们可以针对性的分析和优化。</p>
|
||
<p>2,我们还在skywalking设置了告警规则,特别是在项目上线以后,如果报错,我们分别设置了可以给相关负责人发短信和发邮件,第一时间知道项目的bug情况,第一时间修复</p>
|
||
<p><strong>面试官:</strong>你们项目中有没有做过限流 ? 怎么做的 ?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我当时做的xx项目,采用就是微服务的架构,因为xx因为,应该会有突发流量,最大QPS可以达到2000,但是服务支撑不住,我们项目都通过压测最多可以支撑1200QPS。因为我们平时的QPS也就不到100,为了解决这些突发流量,所以采用了限流。</p>
|
||
<p>【版本1】</p>
|
||
<p>我们当时采用的nginx限流操作,nginx使用的漏桶算法来实现过滤,让请求以固定的速率处理请求,可以应对突发流量,我们控制的速率是按照ip进行限流,限制的流量是每秒20</p>
|
||
<p>【版本2】</p>
|
||
<p>我们当时采用的是spring cloud gateway中支持局部过滤器RequestRateLimiter来做限流,使用的是令牌桶算法,可以根据ip或路径进行限流,可以设置每秒填充平均速率,和令牌桶总容量</p>
|
||
<p><strong>面试官:</strong>限流常见的算法有哪些呢?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>比较常见的限流算法有漏桶算法和令牌桶算法</p>
|
||
<p>漏桶算法是把请求存入到桶中,以固定速率从桶中流出,可以让我们的服务做到绝对的平均,起到很好的限流效果</p>
|
||
<p>令牌桶算法在桶中存储的是令牌,按照一定的速率生成令牌,每个请求都要先申请令牌,申请到令牌以后才能正常请求,也可以起到很好的限流作用</p>
|
||
<p>它们的区别是,漏桶和令牌桶都可以处理突发流量,其中漏桶可以做到绝对的平滑,令牌桶有可能会产生突发大量请求的情况,一般nginx限流采用的漏桶,spring cloud gateway中可以支持令牌桶算法</p>
|
||
<p><strong>面试官</strong>:什么是CAP理论?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>CAP主要是在分布式项目下的一个理论。包含了三项,一致性、可用性、分区容错性</p>
|
||
<ul>
|
||
<li>一致性(Consistency)是指更新操作成功并返回客户端完成后,所有节点在同一时间的数据完全一致(强一致性),不能存在中间状态。</li>
|
||
<li>可用性(Availability) 是指系统提供的服务必须一直处于可用的状态,对于用户的每一个操作请求总是能够在有限的时间内返回结果。</li>
|
||
<li>分区容错性(Partition tolerance) 是指分布式系统在遇到任何网络分区故障时,仍然需要能够保证对外提供满足一致性和可用性的服务,除非是整个网络环境都发生了故障。</li>
|
||
</ul>
|
||
<p><strong>面试官</strong>:为什么分布式系统中无法同时保证一致性和可用性?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,是这样的~~</p>
|
||
<p>首先一个前提,对于分布式系统而言,分区容错性是一个最基本的要求,因此基本上我们在设计分布式系统的时候只能从一致性(C)和可用性(A)之间进行取舍。</p>
|
||
<p>如果保证了一致性(C):对于节点N1和N2,当往N1里写数据时,N2上的操作必须被暂停,只有当N1同步数据到N2时才能对N2进行读写请求,在N2被暂停操作期间客户端提交的请求会收到失败或超时。显然,这与可用性是相悖的。</p>
|
||
<p>如果保证了可用性(A):那就不能暂停N2的读写操作,但同时N1在写数据的话,这就违背了一致性的要求。</p>
|
||
<p><strong>面试官</strong>:什么是BASE理论?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个也是CAP分布式系统设计理论</p>
|
||
<p>BASE是CAP理论中AP方案的延伸,核心思想是即使无法做到强一致性(StrongConsistency,CAP的一致性就是强一致性),但应用可以采用适合的方式达到最终一致性(Eventual Consitency)。它的思想包含三方面:</p>
|
||
<p>1、Basically Available(基本可用):基本可用是指分布式系统在出现不可预知的故障的时候,允许损失部分可用性,但不等于系统不可用。</p>
|
||
<p>2、Soft state(软状态):即是指允许系统中的数据存在中间状态,并认为该中间状态的存在不会影响系统的整体可用性,即允许系统在不同节点的数据副本之间进行数据同步的过程存在延时。</p>
|
||
<p>3、Eventually consistent(最终一致性):强调系统中所有的数据副本,在经过一段时间的同步后,最终能够达到一个一致的状态。其本质是需要系统保证最终数据能够达到一致,而不需要实时保证系统数据的强一致性。</p>
|
||
<p><strong>面试官:</strong>你们采用哪种分布式事务解决方案?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我们当时是xx项目,主要使用到的seata的at模式解决的分布式事务</p>
|
||
<p>seata的AT模型分为两个阶段:</p>
|
||
<p>1、阶段一RM的工作:① 注册分支事务 ② 记录undo-log(数据快照)③ 执行业务sql并提交 ④报告事务状态</p>
|
||
<p>2、阶段二提交时RM的工作:删除undo-log即可</p>
|
||
<p>3、阶段二回滚时RM的工作:根据undo-log恢复数据到更新前</p>
|
||
<p>at模式牺牲了一致性,保证了可用性,不过,它保证的是最终一致性</p>
|
||
<p><strong>面试官:</strong>分布式服务的接口幂等性如何设计?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>嗯,我们当时有一个xx项目的下单操作,采用的token+redis实现的,流程是这样的</p>
|
||
<p>第一次请求,也就是用户打开了商品详情页面,我们会发起一个请求,在后台生成一个唯一token存入redis,key就是用户的id,value就是这个token,同时把这个token返回前端</p>
|
||
<p>第二次请求,当用户点击了下单操作会后,会携带之前的token,后台先到redis进行验证,如果存在token,可以执行业务,同时删除token;如果不存在,则直接返回,不处理业务,就保证了同一个token只处理一次业务,就保证了幂等性</p>
|
||
<p><strong>面试官:</strong>xxl-job路由策略有哪些?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>xxl-job提供了很多的路由策略,我们平时用的较多就是:轮询、故障转移、分片广播…</p>
|
||
<p><strong>面试官:</strong>xxl-job任务执行失败怎么解决?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>有这么几个操作</p>
|
||
<p>第一:路由策略选择故障转移,优先使用健康的实例来执行任务</p>
|
||
<p>第二,如果还有失败的,我们在创建任务时,可以设置重试次数</p>
|
||
<p>第三,如果还有失败的,就可以查看日志或者配置邮件告警来通知相关负责人解决</p>
|
||
<p><strong>面试官:</strong>如果有大数据量的任务同时都需要执行,怎么解决?</p>
|
||
<p><strong>候选人:</strong></p>
|
||
<p>我们会让部署多个实例,共同去执行这些批量的任务,其中任务的路由策略是分片广播</p>
|
||
<p>在任务执行的代码中可以获取分片总数和当前分片,按照取模的方式分摊到各个实例执行就可以了</p>
|
||
</blockquote>
|
||
<p>pdf</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/微服务面试题-参考回答.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<h2 id="5-消息中间件篇"><a href="#5-消息中间件篇" class="headerlink" title="5.消息中间件篇"></a>5.消息中间件篇</h2><blockquote>
|
||
<p><strong>面试官</strong>:RabbitMQ-如何保证消息不丢失</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!我们当时MYSQL和Redis的数据双写一致性就是采用RabbitMQ实现同步的,这里面就要求了消息的高可用性,我们要保证消息的不丢失。主要从三个层面考虑</p>
|
||
<p>第一个是开启生产者确认机制,确保生产者的消息能到达队列,如果报错可以先记录到日志中,再去修复数据</p>
|
||
<p>第二个是开启持久化功能,确保消息未消费前在队列中不会丢失,其中的交换机、队列、和消息都要做持久化</p>
|
||
<p>第三个是开启消费者确认机制为auto,由spring确认消息处理成功后完成ack,当然也需要设置一定的重试次数,我们当时设置了3次,如果重试3次还没有收到消息,就将失败后的消息投递到异常交换机,交由人工处理</p>
|
||
<p><strong>面试官</strong>:RabbitMQ消息的重复消费问题如何解决的</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个我们还真遇到过,是这样的,我们当时消费者是设置了自动确认机制,当服务还没来得及给MQ确认的时候,服务宕机了,导致服务重启之后,又消费了一次消息。这样就重复消费了</p>
|
||
<p>因为我们当时处理的支付(订单|业务唯一标识),它有一个业务的唯一标识,我们再处理消息时,先到数据库查询一下,这个数据是否存在,如果不存在,说明没有处理过,这个时候就可以正常处理这个消息了。如果已经存在这个数据了,就说明消息重复消费了,我们就不需要再消费了</p>
|
||
<p><strong>面试官</strong>:那你还知道其他的解决方案吗?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,我想想~</p>
|
||
<p>其实这个就是典型的幂等的问题,比如,redis分布式锁、数据库的锁都是可以的</p>
|
||
<p><strong>面试官</strong>:RabbitMQ中死信交换机 ? (RabbitMQ延迟队列有了解过嘛)</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯!了解过!</p>
|
||
<p>我们当时的xx项目有一个xx业务,需要用到延迟队列,其中就是使用RabbitMQ来实现的。</p>
|
||
<p>延迟队列就是用到了死信交换机和TTL(消息存活时间)实现的。</p>
|
||
<p>如果消息超时未消费就会变成死信,在RabbitMQ中如果消息成为死信,队列可以绑定一个死信交换机,在死信交换机上可以绑定其他队列,在我们发消息的时候可以按照需求指定TTL的时间,这样就实现了延迟队列的功能了。</p>
|
||
<p>我记得RabbitMQ还有一种方式可以实现延迟队列,在RabbitMQ中安装一个死信插件,这样更方便一些,我们只需要在声明交互机的时候,指定这个就是死信交换机,然后在发送消息的时候直接指定超时时间就行了,相对于死信交换机+TTL要省略了一些步骤</p>
|
||
<p><strong>面试官</strong>:如果有100万消息堆积在MQ , 如何解决 ?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>我在实际的开发中,没遇到过这种情况,不过,如果发生了堆积的问题,解决方案也所有很多的</p>
|
||
<p>第一:提高消费者的消费能力 ,可以使用多线程消费任务</p>
|
||
<p>第二:增加更多消费者,提高消费速度</p>
|
||
<p> 使用工作队列模式, 设置多个消费者消费消费同一个队列中的消息</p>
|
||
<p>第三:扩大队列容积,提高堆积上限</p>
|
||
<p>可以使用RabbitMQ惰性队列,惰性队列的好处主要是</p>
|
||
<p>①接收到消息后直接存入磁盘而非内存</p>
|
||
<p>②消费者要消费消息时才会从磁盘中读取并加载到内存</p>
|
||
<p>③支持数百万条的消息存储</p>
|
||
<p><strong>面试官</strong>:RabbitMQ的高可用机制有了解过嘛</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,熟悉的~</p>
|
||
<p>我们当时项目在生产环境下,使用的集群,当时搭建是镜像模式集群,使用了3台机器。</p>
|
||
<p>镜像队列结构是一主多从,所有操作都是主节点完成,然后同步给镜像节点,如果主节点宕机后,镜像节点会替代成新的主节点,不过在主从同步完成前,主节点就已经宕机,可能出现数据丢失</p>
|
||
<p><strong>面试官</strong>:那出现丢数据怎么解决呢?</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>我们可以采用仲裁队列,与镜像队列一样,都是主从模式,支持主从数据同步,主从同步基于Raft协议,强一致。</p>
|
||
<p>并且使用起来也非常简单,不需要额外的配置,在声明队列的时候只要指定这个是仲裁队列即可</p>
|
||
<p><strong>面试官</strong>:Kafka是如何保证消息不丢失</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,这个保证机制很多,在发送消息到消费者接收消息,在每个阶段都有可能会丢失消息,所以我们解决的话也是从多个方面考虑</p>
|
||
<p>第一个是生产者发送消息的时候,可以使用异步回调发送,如果消息发送失败,我们可以通过回调获取失败后的消息信息,可以考虑重试或记录日志,后边再做补偿都是可以的。同时在生产者这边还可以设置消息重试,有的时候是由于网络抖动的原因导致发送不成功,就可以使用重试机制来解决</p>
|
||
<p>第二个在broker中消息有可能会丢失,我们可以通过kafka的复制机制来确保消息不丢失,在生产者发送消息的时候,可以设置一个acks,就是确认机制。我们可以设置参数为all,这样的话,当生产者发送消息到了分区之后,不仅仅只在leader分区保存确认,在follwer分区也会保存确认,只有当所有的副本都保存确认以后才算是成功发送了消息,所以,这样设置就很大程度了保证了消息不会在broker丢失</p>
|
||
<p>第三个有可能是在消费者端丢失消息,kafka消费消息都是按照offset进行标记消费的,消费者默认是自动按期提交已经消费的偏移量,默认是每隔5s提交一次,如果出现重平衡的情况,可能会重复消费或丢失数据。我们一般都会禁用掉自动提价偏移量,改为手动提交,当消费成功以后再报告给broker消费的位置,这样就可以避免消息丢失和重复消费了</p>
|
||
<p><strong>面试官</strong>:Kafka中消息的重复消费问题如何解决的</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>kafka消费消息都是按照offset进行标记消费的,消费者默认是自动按期提交已经消费的偏移量,默认是每隔5s提交一次,如果出现重平衡的情况,可能会重复消费或丢失数据。我们一般都会禁用掉自动提价偏移量,改为手动提交,当消费成功以后再报告给broker消费的位置,这样就可以避免消息丢失和重复消费了</p>
|
||
<p>为了消息的幂等,我们也可以设置唯一主键来进行区分,或者是加锁,数据库的锁,或者是redis分布式锁,都能解决幂等的问题</p>
|
||
<p><strong>面试官</strong>:Kafka是如何保证消费的顺序性</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>kafka默认存储和消费消息,是不能保证顺序性的,因为一个topic数据可能存储在不同的分区中,每个分区都有一个按照顺序的存储的偏移量,如果消费者关联了多个分区不能保证顺序性</p>
|
||
<p>如果有这样的需求的话,我们是可以解决的,把消息都存储同一个分区下就行了,有两种方式都可以进行设置,第一个是发送消息时指定分区号,第二个是发送消息时按照相同的业务设置相同的key,因为默认情况下分区也是通过key的hashcode值来选择分区的,hash值如果一样的话,分区肯定也是一样的</p>
|
||
<p><strong>面试官</strong>:Kafka的高可用机制有了解过嘛</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,主要是有两个层面,第一个是集群,第二个是提供了复制机制</p>
|
||
<p>kafka集群指的是由多个broker实例组成,即使某一台宕机,也不耽误其他broker继续对外提供服务</p>
|
||
<p>复制机制是可以保证kafka的高可用的,一个topic有多个分区,每个分区有多个副本,有一个leader,其余的是follower,副本存储在不同的broker中;所有的分区副本的内容是都是相同的,如果leader发生故障时,会自动将其中一个follower提升为leader,保证了系统的容错性、高可用性</p>
|
||
<p><strong>面试官</strong>:解释一下复制机制中的ISR</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>ISR的意思是in-sync replica,就是需要同步复制保存的follower</p>
|
||
<p>其中分区副本有很多的follower,分为了两类,一个是ISR,与leader副本同步保存数据,另外一个普通的副本,是异步同步数据,当leader挂掉之后,会优先从ISR副本列表中选取一个作为leader,因为ISR是同步保存数据,数据更加的完整一些,所以优先选择ISR副本列表</p>
|
||
<p><strong>面试官</strong>:Kafka数据清理机制了解过嘛</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>嗯,了解过~~</p>
|
||
<p>Kafka中topic的数据存储在分区上,分区如果文件过大会分段存储segment</p>
|
||
<p>每个分段都在磁盘上以索引(xxxx.index)和日志文件(xxxx.log)的形式存储,这样分段的好处是,第一能够减少单个文件内容的大小,查找数据方便,第二方便kafka进行日志清理。</p>
|
||
<p>在kafka中提供了两个日志的清理策略:</p>
|
||
<p>第一,根据消息的保留时间,当消息保存的时间超过了指定的时间,就会触发清理,默认是168小时( 7天)</p>
|
||
<p>第二是根据topic存储的数据大小,当topic所占的日志文件大小大于一定的阈值,则开始删除最久的消息。这个默认是关闭的</p>
|
||
<p>这两个策略都可以通过kafka的broker中的配置文件进行设置</p>
|
||
<p><strong>面试官</strong>:Kafka中实现高性能的设计有了解过嘛</p>
|
||
<p><strong>候选人</strong>:</p>
|
||
<p>Kafka 高性能,是多方面协同的结果,包括宏观架构、分布式存储、ISR 数据同步、以及高效的利用磁盘、操作系统特性等。主要体现有这么几点:</p>
|
||
<p>消息分区:不受单台服务器的限制,可以不受限的处理更多的数据</p>
|
||
<p>顺序读写:磁盘顺序读写,提升读写效率</p>
|
||
<p>页缓存:把磁盘中的数据缓存到内存中,把对磁盘的访问变为对内存的访问</p>
|
||
<p>零拷贝:减少上下文切换及数据拷贝</p>
|
||
<p>消息压缩:减少磁盘IO和网络IO</p>
|
||
<p>分批发送:将消息打包批量发送,减少网络开销</p>
|
||
</blockquote>
|
||
<p>pdf</p>
|
||
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/消息中间件面试题-参考回答.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>面试</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>面试</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>常用类及其方法</title>
|
||
<url>/posts/28687.html</url>
|
||
<content><![CDATA[<h3 id="1-String类的常用方法"><a href="#1-String类的常用方法" class="headerlink" title="1.String类的常用方法"></a>1.String类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.string_;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">StringMethod01</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//1. equals 前面已经讲过了. 比较内容是否相同,区分大小写</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">str1</span> <span class="operator">=</span> <span class="string">"hello"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">str2</span> <span class="operator">=</span> <span class="string">"Hello"</span>;</span><br><span class="line"> System.out.println(str1.equals(str2));<span class="comment">//</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">// 2.equalsIgnoreCase 忽略大小写的判断内容是否相等</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">username</span> <span class="operator">=</span> <span class="string">"johN"</span>;</span><br><span class="line"> <span class="keyword">if</span> (<span class="string">"john"</span>.equalsIgnoreCase(username)) {</span><br><span class="line"> System.out.println(<span class="string">"Success!"</span>);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(<span class="string">"Failure!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">// 3.length 获取字符的个数,字符串的长度</span></span><br><span class="line"> System.out.println(<span class="string">"韩顺平"</span>.length());</span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 4.indexOf 获取字符在字符串对象中第一次出现的索引,索引从0开始,如果找不到,返回-1</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s1</span> <span class="operator">=</span> <span class="string">"wer@terwe@g"</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> s1.indexOf(<span class="string">'@'</span>);</span><br><span class="line"> System.out.println(index);<span class="comment">// 3</span></span><br><span class="line"> System.out.println(<span class="string">"weIndex="</span> + s1.indexOf(<span class="string">"we"</span>));<span class="comment">//0</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 5.lastIndexOf 获取字符在字符串中最后一次出现的索引,索引从0开始,如果找不到,返回-1</span></span><br><span class="line"> s1 = <span class="string">"wer@terwe@g@"</span>;</span><br><span class="line"> index = s1.lastIndexOf(<span class="string">'@'</span>);</span><br><span class="line"> System.out.println(index);<span class="comment">//11</span></span><br><span class="line"> System.out.println(<span class="string">"ter的位置="</span> + s1.lastIndexOf(<span class="string">"ter"</span>));<span class="comment">//4</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 6.substring 截取指定范围的子串</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> <span class="string">"hello,张三"</span>;</span><br><span class="line"> <span class="comment">//下面name.substring(6) 从索引6开始截取后面所有的内容</span></span><br><span class="line"> System.out.println(name.substring(<span class="number">6</span>));<span class="comment">//截取后面的字符</span></span><br><span class="line"> <span class="comment">//name.substring(0,5)表示从索引0开始截取,截取到索引 5-1=4位置</span></span><br><span class="line"> System.out.println(name.substring(<span class="number">2</span>,<span class="number">5</span>));<span class="comment">//llo</span></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.string_;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">StringMethod02</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">// 1.toUpperCase转换成大写</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> <span class="string">"heLLo"</span>;</span><br><span class="line"> System.out.println(s.toUpperCase());<span class="comment">//HELLO</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 2.toLowerCase</span></span><br><span class="line"> System.out.println(s.toLowerCase());<span class="comment">//hello</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 3.concat拼接字符串</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s1</span> <span class="operator">=</span> <span class="string">"宝玉"</span>;</span><br><span class="line"> s1 = s1.concat(<span class="string">"林黛玉"</span>).concat(<span class="string">"薛宝钗"</span>).concat(<span class="string">"together"</span>);</span><br><span class="line"> System.out.println(s1);<span class="comment">//宝玉林黛玉薛宝钗together</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 4.replace 替换字符串中的字符</span></span><br><span class="line"> s1 = <span class="string">"宝玉 and 林黛玉 林黛玉 林黛玉"</span>;</span><br><span class="line"> <span class="comment">//在s1中,将 所有的 林黛玉 替换成薛宝钗</span></span><br><span class="line"> <span class="comment">// 老韩解读: s1.replace() 方法执行后,返回的结果才是替换过的.</span></span><br><span class="line"> <span class="comment">// 注意对 s1没有任何影响</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s11</span> <span class="operator">=</span> s1.replace(<span class="string">"宝玉"</span>, <span class="string">"jack"</span>);</span><br><span class="line"> System.out.println(s1);<span class="comment">//宝玉 and 林黛玉 林黛玉 林黛玉</span></span><br><span class="line"> System.out.println(s11);<span class="comment">//jack and 林黛玉 林黛玉 林黛玉</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 5.split 分割字符串, 对于某些分割字符,我们需要 转义比如 | \\等</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">poem</span> <span class="operator">=</span> <span class="string">"锄禾日当午,汗滴禾下土,谁知盘中餐,粒粒皆辛苦"</span>;</span><br><span class="line"> <span class="comment">//老韩解读:</span></span><br><span class="line"> <span class="comment">// 1. 以 , 为标准对 poem 进行分割 , 返回一个数组</span></span><br><span class="line"> <span class="comment">// 2. 在对字符串进行分割时,如果有特殊字符,需要加入 转义符 \</span></span><br><span class="line"> String[] split = poem.split(<span class="string">","</span>);</span><br><span class="line"> poem = <span class="string">"E:\\aaa\\bbb"</span>;</span><br><span class="line"> split = poem.split(<span class="string">"\\\\"</span>);</span><br><span class="line"> System.out.println(<span class="string">"==分割后内容==="</span>);</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < split.length; i++) {</span><br><span class="line"> System.out.println(split[i]);</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 6.toCharArray 转换成字符数组</span></span><br><span class="line"> s = <span class="string">"happy"</span>;</span><br><span class="line"> <span class="type">char</span>[] chs = s.toCharArray();</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < chs.length; i++) {</span><br><span class="line"> System.out.println(chs[i]);</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> <span class="comment">// 7.compareTo 比较两个字符串的大小,如果前者大,</span></span><br><span class="line"> <span class="comment">// 则返回正数,后者大,则返回负数,如果相等,返回0</span></span><br><span class="line"> <span class="comment">// 老韩解读</span></span><br><span class="line"> <span class="comment">// (1) 如果长度相同,并且每个字符也相同,就返回 0</span></span><br><span class="line"> <span class="comment">// (2) 如果长度相同或者不相同,但是在进行比较时,可以区分大小</span></span><br><span class="line"> <span class="comment">// 就返回 if (c1 != c2) {</span></span><br><span class="line"> <span class="comment">// return c1 - c2;</span></span><br><span class="line"> <span class="comment">// }</span></span><br><span class="line"> <span class="comment">// (3) 如果前面的部分都相同,就返回 str1.len - str2.len</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">a</span> <span class="operator">=</span> <span class="string">"jcck"</span>;<span class="comment">// len = 3</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">b</span> <span class="operator">=</span> <span class="string">"jack"</span>;<span class="comment">// len = 4</span></span><br><span class="line"> System.out.println(a.compareTo(b)); <span class="comment">// 返回值是 'c' - 'a' = 2的值</span></span><br><span class="line"> </span><br><span class="line"><span class="comment">// 8.format 格式字符串</span></span><br><span class="line"> <span class="comment">/* 占位符有:</span></span><br><span class="line"><span class="comment"> * %s 字符串 %c 字符 %d 整型 %.2f 浮点型</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> <span class="string">"john"</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">age</span> <span class="operator">=</span> <span class="number">10</span>;</span><br><span class="line"> <span class="type">double</span> <span class="variable">score</span> <span class="operator">=</span> <span class="number">56.857</span>;</span><br><span class="line"> <span class="type">char</span> <span class="variable">gender</span> <span class="operator">=</span> <span class="string">'男'</span>;</span><br><span class="line"> <span class="comment">//将所有的信息都拼接在一个字符串.</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">info</span> <span class="operator">=</span></span><br><span class="line"> <span class="string">"我的姓名是"</span> + name + <span class="string">"年龄是"</span> + age + <span class="string">",成绩是"</span> + score + <span class="string">"性别是"</span> + gender + <span class="string">"。希望大家喜欢我!"</span>;</span><br><span class="line"></span><br><span class="line"> System.out.println(info);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. %s , %d , %.2f %c 称为占位符</span></span><br><span class="line"> <span class="comment">//2. 这些占位符由后面变量来替换</span></span><br><span class="line"> <span class="comment">//3. %s 表示后面由 字符串来替换</span></span><br><span class="line"> <span class="comment">//4. %d 是整数来替换</span></span><br><span class="line"> <span class="comment">//5. %.2f 表示使用小数来替换,替换后,只会保留小数点两位, 并且进行四舍五入的处理</span></span><br><span class="line"> <span class="comment">//6. %c 使用char 类型来替换</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">formatStr</span> <span class="operator">=</span> <span class="string">"我的姓名是%s 年龄是%d,成绩是%.2f 性别是%c.希望大家喜欢我!"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">info2</span> <span class="operator">=</span> String.format(formatStr, name, age, score, gender);</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"info2="</span> + info2);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-StringBufferd类的常用方法"><a href="#2-StringBufferd类的常用方法" class="headerlink" title="2.StringBufferd类的常用方法"></a>2.StringBufferd类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.stringbuffer_;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">StringBufferMethod</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">StringBuffer</span> <span class="variable">s</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringBuffer</span>(<span class="string">"hello"</span>);</span><br><span class="line"> <span class="comment">//增</span></span><br><span class="line"> s.append(<span class="string">','</span>);<span class="comment">// "hello,"</span></span><br><span class="line"> s.append(<span class="string">"张三丰"</span>);<span class="comment">//"hello,张三丰"</span></span><br><span class="line"> s.append(<span class="string">"赵敏"</span>).append(<span class="number">100</span>).append(<span class="literal">true</span>).append(<span class="number">10.5</span>);<span class="comment">//"hello,张三丰赵敏100true10.5"</span></span><br><span class="line"> System.out.println(s);<span class="comment">//"hello,张三丰赵敏100true10.5"</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//删</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 删除索引为>=start && <end 处的字符</span></span><br><span class="line"><span class="comment"> * 解读: 删除 11~14的字符 [11, 14)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> s.delete(<span class="number">11</span>, <span class="number">14</span>);</span><br><span class="line"> System.out.println(s);<span class="comment">//"hello,张三丰赵敏true10.5"</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//改</span></span><br><span class="line"> <span class="comment">//老韩解读,使用 周芷若 替换 索引9-11的字符 [9,11)</span></span><br><span class="line"> s.replace(<span class="number">9</span>, <span class="number">11</span>, <span class="string">"周芷若"</span>);</span><br><span class="line"> System.out.println(s);<span class="comment">//"hello,张三丰周芷若true10.5"</span></span><br><span class="line"> <span class="comment">//查找指定的子串在字符串第一次出现的索引,如果找不到返回-1</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">indexOf</span> <span class="operator">=</span> s.indexOf(<span class="string">"张三丰"</span>);</span><br><span class="line"> System.out.println(indexOf);<span class="comment">//6</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//插</span></span><br><span class="line"> <span class="comment">//老韩解读,在索引为9的位置插入 "赵敏",原来索引为9的内容自动后移</span></span><br><span class="line"> s.insert(<span class="number">9</span>, <span class="string">"赵敏"</span>);</span><br><span class="line"> System.out.println(s);<span class="comment">//"hello,张三丰赵敏周芷若true10.5"</span></span><br><span class="line"> <span class="comment">//长度</span></span><br><span class="line"> System.out.println(s.length());<span class="comment">//22</span></span><br><span class="line"> System.out.println(s);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-Math类的常用方法"><a href="#3-Math类的常用方法" class="headerlink" title="3.Math类的常用方法"></a>3.Math类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.math_;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MathMethod</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//看看Math常用的方法(静态方法)</span></span><br><span class="line"> <span class="comment">//1.abs 绝对值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">abs</span> <span class="operator">=</span> Math.abs(-<span class="number">9</span>);</span><br><span class="line"> System.out.println(abs);<span class="comment">//9</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//2.pow 求幂</span></span><br><span class="line"> <span class="type">double</span> <span class="variable">pow</span> <span class="operator">=</span> Math.pow(<span class="number">2</span>, <span class="number">4</span>);<span class="comment">//2的4次方</span></span><br><span class="line"> System.out.println(pow);<span class="comment">//16</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//3.ceil 向上取整,返回>=该参数的最小整数(转成double);</span></span><br><span class="line"> <span class="type">double</span> <span class="variable">ceil</span> <span class="operator">=</span> Math.ceil(<span class="number">3.9</span>);</span><br><span class="line"> System.out.println(ceil);<span class="comment">//4.0</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//4.floor 向下取整,返回<=该参数的最大整数(转成double)</span></span><br><span class="line"> <span class="type">double</span> <span class="variable">floor</span> <span class="operator">=</span> Math.floor(<span class="number">4.001</span>);</span><br><span class="line"> System.out.println(floor);<span class="comment">//4.0</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//5.round 四舍五入 Math.floor(该参数+0.5)</span></span><br><span class="line"> <span class="type">long</span> <span class="variable">round</span> <span class="operator">=</span> Math.round(<span class="number">5.51</span>);</span><br><span class="line"> System.out.println(round);<span class="comment">//6</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//6.sqrt 求开方</span></span><br><span class="line"> <span class="type">double</span> <span class="variable">sqrt</span> <span class="operator">=</span> Math.sqrt(<span class="number">9.0</span>);</span><br><span class="line"> System.out.println(sqrt);<span class="comment">//3.0</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//7.random 求随机数</span></span><br><span class="line"> <span class="comment">// random 返回的是 0 <= x < 1 之间的一个随机小数</span></span><br><span class="line"> <span class="comment">// 思考:请写出获取 a-b之间的一个随机整数,a,b均为整数 ,比如 a = 2, b=7</span></span><br><span class="line"> <span class="comment">// 即返回一个数 x 2 <= x <= 7</span></span><br><span class="line"> <span class="comment">// 老韩解读 Math.random() * (b-a) 返回的就是 0 <= 数 <= b-a</span></span><br><span class="line"> <span class="comment">// (1) (int)(a) <= x <= (int)(a + Math.random() * (b-a +1) )</span></span><br><span class="line"> <span class="comment">// (2) 使用具体的数给小伙伴介绍 a = 2 b = 7</span></span><br><span class="line"> <span class="comment">// (int)(a + Math.random() * (b-a +1) ) = (int)( 2 + Math.random()*6)</span></span><br><span class="line"> <span class="comment">// Math.random()*6 返回的是 0 <= x < 6 小数</span></span><br><span class="line"> <span class="comment">// 2 + Math.random()*6 返回的就是 2<= x < 8 小数</span></span><br><span class="line"> <span class="comment">// (int)(2 + Math.random()*6) = 2 <= x <= 7</span></span><br><span class="line"> <span class="comment">// (3) 公式就是 (int)(a + Math.random() * (b-a +1) )</span></span><br><span class="line"> <span class="keyword">for</span>(<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < <span class="number">100</span>; i++) {</span><br><span class="line"> System.out.println((<span class="type">int</span>)(<span class="number">2</span> + Math.random() * (<span class="number">7</span> - <span class="number">2</span> + <span class="number">1</span>)));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//8.max , min 返回最大值和最小值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">min</span> <span class="operator">=</span> Math.min(<span class="number">1</span>, <span class="number">9</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">max</span> <span class="operator">=</span> Math.max(<span class="number">45</span>, <span class="number">90</span>);</span><br><span class="line"> System.out.println(<span class="string">"min="</span> + min);</span><br><span class="line"> System.out.println(<span class="string">"max="</span> + max);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-Arrays类的常用方法"><a href="#4-Arrays类的常用方法" class="headerlink" title="4.Arrays类的常用方法"></a>4.Arrays类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.arrays_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"><span class="keyword">import</span> java.util.Comparator;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArraysMethod01</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> Integer[] integers = {<span class="number">1</span>, <span class="number">20</span>, <span class="number">90</span>};</span><br><span class="line"> <span class="comment">//遍历数组</span></span><br><span class="line"><span class="comment">// for(int i = 0; i < integers.length; i++) {</span></span><br><span class="line"><span class="comment">// System.out.println(integers[i]);</span></span><br><span class="line"><span class="comment">// }</span></span><br><span class="line"> <span class="comment">//直接使用Arrays.toString方法,显示数组</span></span><br><span class="line"><span class="comment">// System.out.println(Arrays.toString(integers));//</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//演示 sort方法的使用</span></span><br><span class="line"></span><br><span class="line"> Integer arr[] = {<span class="number">1</span>, -<span class="number">1</span>, <span class="number">7</span>, <span class="number">0</span>, <span class="number">89</span>};</span><br><span class="line"> <span class="comment">//进行排序</span></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 可以直接使用冒泡排序 , 也可以直接使用Arrays提供的sort方法排序</span></span><br><span class="line"> <span class="comment">//2. 因为数组是引用类型,所以通过sort排序后,会直接影响到 实参 arr</span></span><br><span class="line"> <span class="comment">//3. sort重载的,也可以通过传入一个接口 Comparator 实现定制排序</span></span><br><span class="line"> <span class="comment">//4. 调用 定制排序 时,传入两个参数 (1) 排序的数组 arr</span></span><br><span class="line"> <span class="comment">// (2) 实现了Comparator接口的匿名内部类 , 要求实现 compare方法</span></span><br><span class="line"> <span class="comment">//5. 先演示效果,再解释</span></span><br><span class="line"> <span class="comment">//6. 这里体现了接口编程的方式 , 看看源码,就明白</span></span><br><span class="line"> <span class="comment">// 源码分析</span></span><br><span class="line"> <span class="comment">//(1) Arrays.sort(arr, new Comparator()</span></span><br><span class="line"> <span class="comment">//(2) 最终到 TimSort类的 private static <T> void binarySort(T[] a, int lo, int hi, int start,</span></span><br><span class="line"> <span class="comment">// Comparator<? super T> c)()</span></span><br><span class="line"> <span class="comment">//(3) 执行到 binarySort方法的代码, 会根据动态绑定机制 c.compare()执行我们传入的</span></span><br><span class="line"> <span class="comment">// 匿名内部类的 compare ()</span></span><br><span class="line"> <span class="comment">// while (left < right) {</span></span><br><span class="line"> <span class="comment">// int mid = (left + right) >>> 1;</span></span><br><span class="line"> <span class="comment">// if (c.compare(pivot, a[mid]) < 0)</span></span><br><span class="line"> <span class="comment">// right = mid;</span></span><br><span class="line"> <span class="comment">// else</span></span><br><span class="line"> <span class="comment">// left = mid + 1;</span></span><br><span class="line"> <span class="comment">// }</span></span><br><span class="line"> <span class="comment">//(4) new Comparator() {</span></span><br><span class="line"> <span class="comment">// @Override</span></span><br><span class="line"> <span class="comment">// public int compare(Object o1, Object o2) {</span></span><br><span class="line"> <span class="comment">// Integer i1 = (Integer) o1;</span></span><br><span class="line"> <span class="comment">// Integer i2 = (Integer) o2;</span></span><br><span class="line"> <span class="comment">// return i2 - i1;</span></span><br><span class="line"> <span class="comment">// }</span></span><br><span class="line"> <span class="comment">// }</span></span><br><span class="line"> <span class="comment">//(5) public int compare(Object o1, Object o2) 返回的值>0 还是 <0</span></span><br><span class="line"> <span class="comment">// 会影响整个排序结果, 这就充分体现了 接口编程+动态绑定+匿名内部类的综合使用</span></span><br><span class="line"> <span class="comment">// 将来的底层框架和源码的使用方式,会非常常见</span></span><br><span class="line"> <span class="comment">//Arrays.sort(arr); // 默认排序方法</span></span><br><span class="line"> <span class="comment">//定制排序</span></span><br><span class="line"> Arrays.sort(arr, <span class="keyword">new</span> <span class="title class_">Comparator</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">compare</span><span class="params">(Object o1, Object o2)</span> {</span><br><span class="line"> <span class="type">Integer</span> <span class="variable">i1</span> <span class="operator">=</span> (Integer) o1;</span><br><span class="line"> <span class="type">Integer</span> <span class="variable">i2</span> <span class="operator">=</span> (Integer) o2;</span><br><span class="line"> <span class="keyword">return</span> i2 - i1;</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> System.out.println(<span class="string">"===排序后==="</span>);</span><br><span class="line"> System.out.println(Arrays.toString(arr));<span class="comment">//</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.arrays_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArraysMethod02</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> Integer[] arr = {<span class="number">1</span>, <span class="number">2</span>, <span class="number">90</span>, <span class="number">123</span>, <span class="number">567</span>};</span><br><span class="line"> <span class="comment">// binarySearch 通过二分搜索法进行查找,要求必须排好</span></span><br><span class="line"> <span class="comment">// 老韩解读</span></span><br><span class="line"> <span class="comment">//1. 使用 binarySearch 二叉查找</span></span><br><span class="line"> <span class="comment">//2. 要求该数组是有序的. 如果该数组是无序的,不能使用binarySearch</span></span><br><span class="line"> <span class="comment">//3. 如果数组中不存在该元素,就返回 return -(low + 1); // key not found.</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> Arrays.binarySearch(arr, <span class="number">567</span>);</span><br><span class="line"> System.out.println(<span class="string">"index="</span> + index);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//copyOf 数组元素的复制</span></span><br><span class="line"> <span class="comment">// 老韩解读</span></span><br><span class="line"> <span class="comment">//1. 从 arr 数组中,拷贝 arr.length个元素到 newArr数组中</span></span><br><span class="line"> <span class="comment">//2. 如果拷贝的长度 > arr.length 就在新数组的后面 增加 null</span></span><br><span class="line"> <span class="comment">//3. 如果拷贝长度 < 0 就抛出异常NegativeArraySizeException</span></span><br><span class="line"> <span class="comment">//4. 该方法的底层使用的是 System.arraycopy()</span></span><br><span class="line"> Integer[] newArr = Arrays.copyOf(arr, arr.length);</span><br><span class="line"> System.out.println(<span class="string">"==拷贝执行完毕后=="</span>);</span><br><span class="line"> System.out.println(Arrays.toString(newArr));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//ill 数组元素的填充</span></span><br><span class="line"> Integer[] num = <span class="keyword">new</span> <span class="title class_">Integer</span>[]{<span class="number">9</span>,<span class="number">3</span>,<span class="number">2</span>};</span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 使用 99 去填充 num数组,可以理解成是替换原理的元素</span></span><br><span class="line"> Arrays.fill(num, <span class="number">99</span>);</span><br><span class="line"> System.out.println(<span class="string">"==num数组填充后=="</span>);</span><br><span class="line"> System.out.println(Arrays.toString(num));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//equals 比较两个数组元素内容是否完全一致</span></span><br><span class="line"> Integer[] arr2 = {<span class="number">1</span>, <span class="number">2</span>, <span class="number">90</span>, <span class="number">123</span>};</span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 如果arr 和 arr2 数组的元素一样,则方法true;</span></span><br><span class="line"> <span class="comment">//2. 如果不是完全一样,就返回 false</span></span><br><span class="line"> <span class="type">boolean</span> <span class="variable">equals</span> <span class="operator">=</span> Arrays.equals(arr, arr2);</span><br><span class="line"> System.out.println(<span class="string">"equals="</span> + equals);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//asList 将一组值,转换成list</span></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. asList方法,会将 (2,3,4,5,6,1)数据转成一个List集合</span></span><br><span class="line"> <span class="comment">//2. 返回的 asList 编译类型 List(接口)</span></span><br><span class="line"> <span class="comment">//3. asList 运行类型 java.util.Arrays#ArrayList, 是Arrays类的</span></span><br><span class="line"> <span class="comment">// 静态内部类 private static class ArrayList<E> extends AbstractList<E></span></span><br><span class="line"> <span class="comment">// implements RandomAccess, java.io.Serializable</span></span><br><span class="line"> <span class="type">List</span> <span class="variable">asList</span> <span class="operator">=</span> Arrays.asList(<span class="number">2</span>,<span class="number">3</span>,<span class="number">4</span>,<span class="number">5</span>,<span class="number">6</span>,<span class="number">1</span>);</span><br><span class="line"> System.out.println(<span class="string">"asList="</span> + asList);</span><br><span class="line"> System.out.println(<span class="string">"asList的运行类型"</span> + asList.getClass());</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="5-System类的常用方法"><a href="#5-System类的常用方法" class="headerlink" title="5.System类的常用方法"></a>5.System类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.system_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">System_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//exit 退出当前程序</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// System.out.println("ok1");</span></span><br><span class="line"><span class="comment">// //老韩解读</span></span><br><span class="line"><span class="comment">// //1. exit(0) 表示程序退出</span></span><br><span class="line"><span class="comment">// //2. 0 表示一个状态 , 正常的状态</span></span><br><span class="line"><span class="comment">// System.exit(0);//</span></span><br><span class="line"><span class="comment">// System.out.println("ok2");</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//arraycopy :复制数组元素,比较适合底层调用,</span></span><br><span class="line"> <span class="comment">// 一般使用Arrays.copyOf完成复制数组</span></span><br><span class="line"></span><br><span class="line"> <span class="type">int</span>[] src={<span class="number">1</span>,<span class="number">2</span>,<span class="number">3</span>};</span><br><span class="line"> <span class="type">int</span>[] dest = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">3</span>];<span class="comment">// dest 当前是 {0,0,0}</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 主要是搞清楚这五个参数的含义</span></span><br><span class="line"> <span class="comment">//2.</span></span><br><span class="line"> <span class="comment">// 源数组</span></span><br><span class="line"> <span class="comment">// * @param src the source array.</span></span><br><span class="line"> <span class="comment">// srcPos: 从源数组的哪个索引位置开始拷贝</span></span><br><span class="line"> <span class="comment">// * @param srcPos starting position in the source array.</span></span><br><span class="line"> <span class="comment">// dest : 目标数组,即把源数组的数据拷贝到哪个数组</span></span><br><span class="line"> <span class="comment">// * @param dest the destination array.</span></span><br><span class="line"> <span class="comment">// destPos: 把源数组的数据拷贝到 目标数组的哪个索引</span></span><br><span class="line"> <span class="comment">// * @param destPos starting position in the destination data.</span></span><br><span class="line"> <span class="comment">// length: 从源数组拷贝多少个数据到目标数组</span></span><br><span class="line"> <span class="comment">// * @param length the number of array elements to be copied.</span></span><br><span class="line"> System.arraycopy(src, <span class="number">0</span>, dest, <span class="number">0</span>, src.length);</span><br><span class="line"> <span class="comment">// int[] src={1,2,3};</span></span><br><span class="line"> System.out.println(<span class="string">"dest="</span> + Arrays.toString(dest));<span class="comment">//[1, 2, 3]</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//currentTimeMillens:返回当前时间距离1970-1-1 的毫秒数</span></span><br><span class="line"> <span class="comment">// 老韩解读:</span></span><br><span class="line"> System.out.println(System.currentTimeMillis());</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="6-BigDecimal类和BigInteger类使用(大数处理)"><a href="#6-BigDecimal类和BigInteger类使用(大数处理)" class="headerlink" title="6.BigDecimal类和BigInteger类使用(大数处理)"></a>6.BigDecimal类和BigInteger类使用(大数处理)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.bignum;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.math.BigDecimal;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BigDecimal_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//当我们需要保存一个精度很高的数时,double 不够用</span></span><br><span class="line"> <span class="comment">//可以是 BigDecimal</span></span><br><span class="line"><span class="comment">// double d = 1999.11111111111999999999999977788d;</span></span><br><span class="line"><span class="comment">// System.out.println(d);</span></span><br><span class="line"> <span class="type">BigDecimal</span> <span class="variable">bigDecimal</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BigDecimal</span>(<span class="string">"1999.11"</span>);</span><br><span class="line"> <span class="type">BigDecimal</span> <span class="variable">bigDecimal2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BigDecimal</span>(<span class="string">"3"</span>);</span><br><span class="line"> System.out.println(bigDecimal);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 如果对 BigDecimal进行运算,比如加减乘除,需要使用对应的方法</span></span><br><span class="line"> <span class="comment">//2. 创建一个需要操作的 BigDecimal 然后调用相应的方法即可</span></span><br><span class="line"> System.out.println(bigDecimal.add(bigDecimal2));</span><br><span class="line"> System.out.println(bigDecimal.subtract(bigDecimal2));</span><br><span class="line"> System.out.println(bigDecimal.multiply(bigDecimal2));</span><br><span class="line"> <span class="comment">//System.out.println(bigDecimal.divide(bigDecimal2));//可能抛出异常ArithmeticException</span></span><br><span class="line"> <span class="comment">//在调用divide 方法时,指定精度即可. BigDecimal.ROUND_CEILING</span></span><br><span class="line"> <span class="comment">//如果有无限循环小数,就会保留 分子 的精度</span></span><br><span class="line"> System.out.println(bigDecimal.divide(bigDecimal2, BigDecimal.ROUND_CEILING));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.bignum;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.math.BigInteger;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BigInteger_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//当我们编程中,需要处理很大的整数,long 不够用</span></span><br><span class="line"> <span class="comment">//可以使用BigInteger的类来搞定</span></span><br><span class="line"><span class="comment">// long l = 23788888899999999999999999999l;</span></span><br><span class="line"><span class="comment">// System.out.println("l=" + l);</span></span><br><span class="line"></span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">bigInteger</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BigInteger</span>(<span class="string">"23788888899999999999999999999"</span>);</span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">bigInteger2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BigInteger</span>(<span class="string">"10099999999999999999999999999999999999999999999999999999999999999999999999999999999"</span>);</span><br><span class="line"> System.out.println(bigInteger);</span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 在对 BigInteger 进行加减乘除的时候,需要使用对应的方法,不能直接进行 + - * /</span></span><br><span class="line"> <span class="comment">//2. 可以创建一个 要操作的 BigInteger 然后进行相应操作</span></span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">add</span> <span class="operator">=</span> bigInteger.add(bigInteger2);</span><br><span class="line"> System.out.println(add);<span class="comment">//</span></span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">subtract</span> <span class="operator">=</span> bigInteger.subtract(bigInteger2);</span><br><span class="line"> System.out.println(subtract);<span class="comment">//减</span></span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">multiply</span> <span class="operator">=</span> bigInteger.multiply(bigInteger2);</span><br><span class="line"> System.out.println(multiply);<span class="comment">//乘</span></span><br><span class="line"> <span class="type">BigInteger</span> <span class="variable">divide</span> <span class="operator">=</span> bigInteger.divide(bigInteger2);</span><br><span class="line"> System.out.println(divide);<span class="comment">//除</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="7-时间类、日期类的常用方法(Date、Calendar-第三代日期类)"><a href="#7-时间类、日期类的常用方法(Date、Calendar-第三代日期类)" class="headerlink" title="7.时间类、日期类的常用方法(Date、Calendar,第三代日期类)"></a>7.时间类、日期类的常用方法(Date、Calendar,第三代日期类)</h3><p>第一代日期类:</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.date_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.text.ParseException;</span><br><span class="line"><span class="keyword">import</span> java.text.SimpleDateFormat;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Date01</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ParseException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 获取当前系统时间</span></span><br><span class="line"> <span class="comment">//2. 这里的Date 类是在java.util包</span></span><br><span class="line"> <span class="comment">//3. 默认输出的日期格式是国外的方式, 因此通常需要对格式进行转换</span></span><br><span class="line"> <span class="type">Date</span> <span class="variable">d1</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>(); <span class="comment">//获取当前系统时间</span></span><br><span class="line"> System.out.println(<span class="string">"当前日期="</span> + d1);</span><br><span class="line"> <span class="type">Date</span> <span class="variable">d2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>(<span class="number">9234567</span>); <span class="comment">//通过指定毫秒数得到时间</span></span><br><span class="line"> System.out.println(<span class="string">"d2="</span> + d2); <span class="comment">//获取某个时间对应的毫秒数</span></span><br><span class="line"><span class="comment">//</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 创建 SimpleDateFormat对象,可以指定相应的格式</span></span><br><span class="line"> <span class="comment">//2. 这里的格式使用的字母是规定好,不能乱写</span></span><br><span class="line"></span><br><span class="line"> <span class="type">SimpleDateFormat</span> <span class="variable">sdf</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SimpleDateFormat</span>(<span class="string">"yyyy年MM月dd日 hh:mm:ss E"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">format</span> <span class="operator">=</span> sdf.format(d1); <span class="comment">// format:将日期转换成指定格式的字符串</span></span><br><span class="line"> System.out.println(<span class="string">"当前日期="</span> + format);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 可以把一个格式化的String 转成对应的 Date</span></span><br><span class="line"> <span class="comment">//2. 得到Date 仍然在输出时,还是按照国外的形式,如果希望指定格式输出,需要转换</span></span><br><span class="line"> <span class="comment">//3. 在把String -> Date , 使用的 sdf 格式需要和你给的String的格式一样,否则会抛出转换异常</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> <span class="string">"1996年01月01日 10:20:30 星期一"</span>;</span><br><span class="line"> <span class="type">Date</span> <span class="variable">parse</span> <span class="operator">=</span> sdf.parse(s);</span><br><span class="line"> System.out.println(<span class="string">"parse="</span> + sdf.format(parse));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第二代日期类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.date_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Calendar;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Calendar_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. Calendar是一个抽象类, 并且构造器是private,不能实例化对象</span></span><br><span class="line"> <span class="comment">//2. 可以通过 getInstance() 来获取实例</span></span><br><span class="line"> <span class="comment">//3. 提供大量的方法和字段提供给程序员</span></span><br><span class="line"> <span class="comment">//4. Calendar没有提供对应的格式化的类,因此需要程序员自己组合来输出(灵活)</span></span><br><span class="line"> <span class="comment">//5. 如果我们需要按照 24小时进制来获取时间, Calendar.HOUR ==改成=> Calendar.HOUR_OF_DAY</span></span><br><span class="line"> <span class="type">Calendar</span> <span class="variable">c</span> <span class="operator">=</span> Calendar.getInstance(); <span class="comment">//创建日历类对象//比较简单,自由</span></span><br><span class="line"> System.out.println(<span class="string">"c="</span> + c);</span><br><span class="line"> <span class="comment">//2.获取日历对象的某个日历字段</span></span><br><span class="line"> System.out.println(<span class="string">"年:"</span> + c.get(Calendar.YEAR));</span><br><span class="line"> <span class="comment">// 这里为什么要 + 1, 因为Calendar 返回月时候,是按照 0 开始编号</span></span><br><span class="line"> System.out.println(<span class="string">"月:"</span> + (c.get(Calendar.MONTH) + <span class="number">1</span>));</span><br><span class="line"> System.out.println(<span class="string">"日:"</span> + c.get(Calendar.DAY_OF_MONTH));</span><br><span class="line"> System.out.println(<span class="string">"小时:"</span> + c.get(Calendar.HOUR));</span><br><span class="line"> System.out.println(<span class="string">"分钟:"</span> + c.get(Calendar.MINUTE));</span><br><span class="line"> System.out.println(<span class="string">"秒:"</span> + c.get(Calendar.SECOND));</span><br><span class="line"> <span class="comment">//Calender 没有专门的格式化方法,所以需要程序员自己来组合显示</span></span><br><span class="line"> System.out.println(c.get(Calendar.YEAR) + <span class="string">"-"</span> + (c.get(Calendar.MONTH) + <span class="number">1</span>) + <span class="string">"-"</span> + c.get(Calendar.DAY_OF_MONTH) +</span><br><span class="line"> <span class="string">" "</span> + c.get(Calendar.HOUR_OF_DAY) + <span class="string">":"</span> + c.get(Calendar.MINUTE) + <span class="string">":"</span> + c.get(Calendar.SECOND) );</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第三代日期类(开发中尽量使用第三代日期类)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.date_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.time.Instant;</span><br><span class="line"><span class="keyword">import</span> java.time.LocalDate;</span><br><span class="line"><span class="keyword">import</span> java.time.LocalDateTime;</span><br><span class="line"><span class="keyword">import</span> java.time.LocalTime;</span><br><span class="line"><span class="keyword">import</span> java.time.format.DateTimeFormatter;</span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.Collection;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">LocalDate_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//第三代日期</span></span><br><span class="line"> <span class="comment">//老韩解读</span></span><br><span class="line"> <span class="comment">//1. 使用now() 返回表示当前日期时间的 对象</span></span><br><span class="line"> <span class="type">LocalDateTime</span> <span class="variable">ldt</span> <span class="operator">=</span> LocalDateTime.now(); <span class="comment">//LocalDate.now();//LocalTime.now()</span></span><br><span class="line"> System.out.println(ldt);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2. 使用DateTimeFormatter 对象来进行格式化</span></span><br><span class="line"> <span class="comment">// 创建 DateTimeFormatter对象</span></span><br><span class="line"> <span class="type">DateTimeFormatter</span> <span class="variable">dateTimeFormatter</span> <span class="operator">=</span> DateTimeFormatter.ofPattern(<span class="string">"yyyy-MM-dd HH:mm:ss"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">format</span> <span class="operator">=</span> dateTimeFormatter.format(ldt);</span><br><span class="line"> System.out.println(<span class="string">"格式化的日期="</span> + format);</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"年="</span> + ldt.getYear());</span><br><span class="line"> System.out.println(<span class="string">"月="</span> + ldt.getMonth());</span><br><span class="line"> System.out.println(<span class="string">"月="</span> + ldt.getMonthValue());</span><br><span class="line"> System.out.println(<span class="string">"日="</span> + ldt.getDayOfMonth());</span><br><span class="line"> System.out.println(<span class="string">"时="</span> + ldt.getHour());</span><br><span class="line"> System.out.println(<span class="string">"分="</span> + ldt.getMinute());</span><br><span class="line"> System.out.println(<span class="string">"秒="</span> + ldt.getSecond());</span><br><span class="line"></span><br><span class="line"> <span class="type">LocalDate</span> <span class="variable">now</span> <span class="operator">=</span> LocalDate.now(); <span class="comment">//可以获取年月日</span></span><br><span class="line"> <span class="type">LocalTime</span> <span class="variable">now2</span> <span class="operator">=</span> LocalTime.now();<span class="comment">//获取到时分秒</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//提供 plus 和 minus方法可以对当前时间进行加或者减</span></span><br><span class="line"> <span class="comment">//看看890天后,是什么时候 把 年月日-时分秒</span></span><br><span class="line"> <span class="type">LocalDateTime</span> <span class="variable">localDateTime</span> <span class="operator">=</span> ldt.plusDays(<span class="number">890</span>);</span><br><span class="line"> System.out.println(<span class="string">"890天后="</span> + dateTimeFormatter.format(localDateTime));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//看看在 3456分钟前是什么时候,把 年月日-时分秒输出</span></span><br><span class="line"> <span class="type">LocalDateTime</span> <span class="variable">localDateTime2</span> <span class="operator">=</span> ldt.minusMinutes(<span class="number">3456</span>);</span><br><span class="line"> System.out.println(<span class="string">"3456分钟前 日期="</span> + dateTimeFormatter.format(localDateTime2));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.date_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.time.Instant;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Instant_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1.通过 静态方法 now() 获取表示当前时间戳的对象</span></span><br><span class="line"> <span class="type">Instant</span> <span class="variable">now</span> <span class="operator">=</span> Instant.now();<span class="comment">//获取时间戳对象,时间更加精准</span></span><br><span class="line"> System.out.println(now);</span><br><span class="line"> <span class="comment">//2. 通过 from 可以把 Instant转成 Date</span></span><br><span class="line"> <span class="type">Date</span> <span class="variable">date</span> <span class="operator">=</span> Date.from(now);</span><br><span class="line"> <span class="comment">//3. 通过 date的toInstant() 可以把 date 转成Instant对象</span></span><br><span class="line"> <span class="type">Instant</span> <span class="variable">instant</span> <span class="operator">=</span> date.toInstant();</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="8-实现List接口实现类的常用方法"><a href="#8-实现List接口实现类的常用方法" class="headerlink" title="8.实现List接口实现类的常用方法"></a>8.实现List接口实现类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.list_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ListMethod</span> {</span><br><span class="line"> <span class="meta">@SuppressWarnings({"all"})</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">List</span> <span class="variable">list</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span>();</span><br><span class="line"> list.add(<span class="string">"张三丰"</span>);</span><br><span class="line"> list.add(<span class="string">"贾宝玉"</span>);</span><br><span class="line"><span class="comment">// void add(int index, Object ele):在index位置插入ele元素</span></span><br><span class="line"> <span class="comment">//在index = 1的位置插入一个对象</span></span><br><span class="line"> list.add(<span class="number">1</span>, <span class="string">"韩顺平"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// boolean addAll(int index, Collection eles):从index位置开始将eles中的所有元素添加进来</span></span><br><span class="line"> <span class="type">List</span> <span class="variable">list2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span>();</span><br><span class="line"> list2.add(<span class="string">"jack"</span>);</span><br><span class="line"> list2.add(<span class="string">"tom"</span>);</span><br><span class="line"> list.addAll(<span class="number">1</span>, list2);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// Object get(int index):获取指定index位置的元素</span></span><br><span class="line"> <span class="comment">//说过</span></span><br><span class="line"><span class="comment">// int indexOf(Object obj):返回obj在集合中首次出现的位置</span></span><br><span class="line"> System.out.println(list.indexOf(<span class="string">"tom"</span>));<span class="comment">//2</span></span><br><span class="line"><span class="comment">// int lastIndexOf(Object obj):返回obj在当前集合中末次出现的位置</span></span><br><span class="line"> list.add(<span class="string">"韩顺平"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"> System.out.println(list.lastIndexOf(<span class="string">"韩顺平"</span>));</span><br><span class="line"><span class="comment">// Object remove(int index):移除指定index位置的元素,并返回此元素</span></span><br><span class="line"> list.remove(<span class="number">0</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// Object set(int index, Object ele):设置指定index位置的元素为ele , 相当于是替换.</span></span><br><span class="line"> list.set(<span class="number">1</span>, <span class="string">"玛丽"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// List subList(int fromIndex, int toIndex):返回从fromIndex到toIndex位置的子集合</span></span><br><span class="line"> <span class="comment">// 注意返回的子集合 fromIndex <= subList < toIndex</span></span><br><span class="line"> <span class="type">List</span> <span class="variable">returnlist</span> <span class="operator">=</span> list.subList(<span class="number">0</span>, <span class="number">2</span>);</span><br><span class="line"> System.out.println(<span class="string">"returnlist="</span> + returnlist);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="9-Map接口的常用方法以及遍历方式"><a href="#9-Map接口的常用方法以及遍历方式" class="headerlink" title="9.Map接口的常用方法以及遍历方式"></a>9.Map接口的常用方法以及遍历方式</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.map_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SuppressWarnings({"all"})</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MapMethod</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//演示map接口常用方法</span></span><br><span class="line"></span><br><span class="line"> <span class="type">Map</span> <span class="variable">map</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HashMap</span>();</span><br><span class="line"> map.put(<span class="string">"邓超"</span>, <span class="keyword">new</span> <span class="title class_">Book</span>(<span class="string">""</span>, <span class="number">100</span>));<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="string">"邓超"</span>, <span class="string">"孙俪"</span>);<span class="comment">//替换-> 一会分析源码</span></span><br><span class="line"> map.put(<span class="string">"王宝强"</span>, <span class="string">"马蓉"</span>);<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="string">"宋喆"</span>, <span class="string">"马蓉"</span>);<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="string">"刘令博"</span>, <span class="literal">null</span>);<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="literal">null</span>, <span class="string">"刘亦菲"</span>);<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="string">"鹿晗"</span>, <span class="string">"关晓彤"</span>);<span class="comment">//OK</span></span><br><span class="line"> map.put(<span class="string">"hsp"</span>, <span class="string">"hsp的老婆"</span>);</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"map="</span> + map);</span><br><span class="line"></span><br><span class="line"><span class="comment">// remove:根据键删除映射关系</span></span><br><span class="line"> map.remove(<span class="literal">null</span>);</span><br><span class="line"> System.out.println(<span class="string">"map="</span> + map);</span><br><span class="line"><span class="comment">// get:根据键获取值</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">val</span> <span class="operator">=</span> map.get(<span class="string">"鹿晗"</span>);</span><br><span class="line"> System.out.println(<span class="string">"val="</span> + val);</span><br><span class="line"><span class="comment">// size:获取元素个数</span></span><br><span class="line"> System.out.println(<span class="string">"k-v="</span> + map.size());</span><br><span class="line"><span class="comment">// isEmpty:判断个数是否为0</span></span><br><span class="line"> System.out.println(map.isEmpty());<span class="comment">//F</span></span><br><span class="line"><span class="comment">// clear:清除k-v</span></span><br><span class="line"> <span class="comment">//map.clear();</span></span><br><span class="line"> System.out.println(<span class="string">"map="</span> + map);</span><br><span class="line"><span class="comment">// containsKey:查找键是否存在</span></span><br><span class="line"> System.out.println(<span class="string">"结果="</span> + map.containsKey(<span class="string">"hsp"</span>));<span class="comment">//T</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Book</span> {</span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> num;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Book</span><span class="params">(String name, <span class="type">int</span> num)</span> {</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> <span class="built_in">this</span>.num = num;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>遍历方式</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.map_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SuppressWarnings({"all"})</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MapFor</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">Map</span> <span class="variable">map</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HashMap</span>();</span><br><span class="line"> map.put(<span class="string">"邓超"</span>, <span class="string">"孙俪"</span>);</span><br><span class="line"> map.put(<span class="string">"王宝强"</span>, <span class="string">"马蓉"</span>);</span><br><span class="line"> map.put(<span class="string">"宋喆"</span>, <span class="string">"马蓉"</span>);</span><br><span class="line"> map.put(<span class="string">"刘令博"</span>, <span class="literal">null</span>);</span><br><span class="line"> map.put(<span class="literal">null</span>, <span class="string">"刘亦菲"</span>);</span><br><span class="line"> map.put(<span class="string">"鹿晗"</span>, <span class="string">"关晓彤"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//第一组: 先取出 所有的Key , 通过Key 取出对应的Value</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//着重记住第一种方式,其他的方式开发中用到了,可以查</span></span><br><span class="line"> <span class="type">Set</span> <span class="variable">keyset</span> <span class="operator">=</span> map.keySet();</span><br><span class="line"> <span class="comment">//(1) 增强for</span></span><br><span class="line"> System.out.println(<span class="string">"-----第一种方式-------"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Object key : keyset) {</span><br><span class="line"> System.out.println(key + <span class="string">"-"</span> + map.get(key));</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"> <span class="comment">//(2) 迭代器</span></span><br><span class="line"> System.out.println(<span class="string">"----第二种方式--------"</span>);</span><br><span class="line"> <span class="type">Iterator</span> <span class="variable">iterator</span> <span class="operator">=</span> keyset.iterator();</span><br><span class="line"> <span class="keyword">while</span> (iterator.hasNext()) {</span><br><span class="line"> <span class="type">Object</span> <span class="variable">key</span> <span class="operator">=</span> iterator.next();</span><br><span class="line"> System.out.println(key + <span class="string">"-"</span> + map.get(key));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//第二组: 把所有的values取出</span></span><br><span class="line"> <span class="type">Collection</span> <span class="variable">values</span> <span class="operator">=</span> map.values();</span><br><span class="line"> <span class="comment">//这里可以使用所有的Collections使用的遍历方法</span></span><br><span class="line"> <span class="comment">//(1) 增强for</span></span><br><span class="line"> System.out.println(<span class="string">"---取出所有的value 增强for----"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Object value : values) {</span><br><span class="line"> System.out.println(value);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//(2) 迭代器</span></span><br><span class="line"> System.out.println(<span class="string">"---取出所有的value 迭代器----"</span>);</span><br><span class="line"> <span class="type">Iterator</span> <span class="variable">iterator2</span> <span class="operator">=</span> values.iterator();</span><br><span class="line"> <span class="keyword">while</span> (iterator2.hasNext()) {</span><br><span class="line"> <span class="type">Object</span> <span class="variable">value</span> <span class="operator">=</span> iterator2.next();</span><br><span class="line"> System.out.println(value);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//第三组: 通过EntrySet 来获取 k-v</span></span><br><span class="line"> <span class="type">Set</span> <span class="variable">entrySet</span> <span class="operator">=</span> map.entrySet();<span class="comment">// EntrySet<Map.Entry<K,V>></span></span><br><span class="line"> <span class="comment">//(1) 增强for</span></span><br><span class="line"> System.out.println(<span class="string">"----使用EntrySet 的 for增强(第3种)----"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Object entry : entrySet) {</span><br><span class="line"> <span class="comment">//将entry 转成 Map.Entry</span></span><br><span class="line"> Map.<span class="type">Entry</span> <span class="variable">m</span> <span class="operator">=</span> (Map.Entry) entry;</span><br><span class="line"> System.out.println(m.getKey() + <span class="string">"-"</span> + m.getValue());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//(2) 迭代器</span></span><br><span class="line"> System.out.println(<span class="string">"----使用EntrySet 的 迭代器(第4种)----"</span>);</span><br><span class="line"> <span class="type">Iterator</span> <span class="variable">iterator3</span> <span class="operator">=</span> entrySet.iterator();</span><br><span class="line"> <span class="keyword">while</span> (iterator3.hasNext()) {</span><br><span class="line"> <span class="type">Object</span> <span class="variable">entry</span> <span class="operator">=</span> iterator3.next();</span><br><span class="line"> <span class="comment">//System.out.println(next.getClass());//HashMap$Node -实现-> Map.Entry (getKey,getValue)</span></span><br><span class="line"> <span class="comment">//向下转型 Map.Entry</span></span><br><span class="line"> Map.<span class="type">Entry</span> <span class="variable">m</span> <span class="operator">=</span> (Map.Entry) entry;</span><br><span class="line"> System.out.println(m.getKey() + <span class="string">"-"</span> + m.getValue());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="9-Collections工具类"><a href="#9-Collections工具类" class="headerlink" title="9.Collections工具类"></a>9.Collections工具类</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.collections_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SuppressWarnings({"all"})</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Collections_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//创建ArrayList 集合,用于测试.</span></span><br><span class="line"> <span class="type">List</span> <span class="variable">list</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span>();</span><br><span class="line"> list.add(<span class="string">"tom"</span>);</span><br><span class="line"> list.add(<span class="string">"smith"</span>);</span><br><span class="line"> list.add(<span class="string">"king"</span>);</span><br><span class="line"> list.add(<span class="string">"milan"</span>);</span><br><span class="line"> list.add(<span class="string">"tom"</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">// reverse(List):反转 List 中元素的顺序</span></span><br><span class="line"> Collections.reverse(list);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// shuffle(List):对 List 集合元素进行随机排序</span></span><br><span class="line"><span class="comment">// for (int i = 0; i < 5; i++) {</span></span><br><span class="line"><span class="comment">// Collections.shuffle(list);</span></span><br><span class="line"><span class="comment">// System.out.println("list=" + list);</span></span><br><span class="line"><span class="comment">// }</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// sort(List):根据元素的自然顺序对指定 List 集合元素按升序排序</span></span><br><span class="line"> Collections.sort(list);</span><br><span class="line"> System.out.println(<span class="string">"自然排序后"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"><span class="comment">// sort(List,Comparator):根据指定的 Comparator 产生的顺序对 List 集合元素进行排序</span></span><br><span class="line"> <span class="comment">//我们希望按照 字符串的长度大小排序</span></span><br><span class="line"> Collections.sort(list, <span class="keyword">new</span> <span class="title class_">Comparator</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">compare</span><span class="params">(Object o1, Object o2)</span> {</span><br><span class="line"> <span class="comment">//可以加入校验代码.</span></span><br><span class="line"> <span class="keyword">return</span> ((String) o2).length() - ((String) o1).length();</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> System.out.println(<span class="string">"字符串长度大小排序="</span> + list);</span><br><span class="line"><span class="comment">// swap(List,int, int):将指定 list 集合中的 i 处元素和 j 处元素进行交换</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//比如</span></span><br><span class="line"> Collections.swap(list, <span class="number">0</span>, <span class="number">1</span>);</span><br><span class="line"> System.out.println(<span class="string">"交换后的情况"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list="</span> + list);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//Object max(Collection):根据元素的自然顺序,返回给定集合中的最大元素</span></span><br><span class="line"> System.out.println(<span class="string">"自然顺序最大元素="</span> + Collections.max(list));</span><br><span class="line"> <span class="comment">//Object max(Collection,Comparator):根据 Comparator 指定的顺序,返回给定集合中的最大元素</span></span><br><span class="line"> <span class="comment">//比如,我们要返回长度最大的元素</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">maxObject</span> <span class="operator">=</span> Collections.max(list, <span class="keyword">new</span> <span class="title class_">Comparator</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">compare</span><span class="params">(Object o1, Object o2)</span> {</span><br><span class="line"> <span class="keyword">return</span> ((String)o1).length() - ((String)o2).length();</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> System.out.println(<span class="string">"长度最大的元素="</span> + maxObject);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//Object min(Collection)</span></span><br><span class="line"> <span class="comment">//Object min(Collection,Comparator)</span></span><br><span class="line"> <span class="comment">//上面的两个方法,参考max即可</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//int frequency(Collection,Object):返回指定集合中指定元素的出现次数</span></span><br><span class="line"> System.out.println(<span class="string">"tom出现的次数="</span> + Collections.frequency(list, <span class="string">"tom"</span>));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//void copy(List dest,List src):将src中的内容复制到dest中</span></span><br><span class="line"></span><br><span class="line"> <span class="type">ArrayList</span> <span class="variable">dest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span>();</span><br><span class="line"> <span class="comment">//为了完成一个完整拷贝,我们需要先给dest 赋值,大小和list.size()一样</span></span><br><span class="line"> <span class="keyword">for</span>(<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < list.size(); i++) {</span><br><span class="line"> dest.add(<span class="string">""</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//拷贝</span></span><br><span class="line"> Collections.copy(dest, list);</span><br><span class="line"> System.out.println(<span class="string">"dest="</span> + dest);<span class="comment">//把后一个集合的数据拷贝到前一个集合</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//boolean replaceAll(List list,Object oldVal,Object newVal):使用新值替换 List 对象的所有旧值</span></span><br><span class="line"> <span class="comment">//如果list中,有tom 就替换成 汤姆</span></span><br><span class="line"> Collections.replaceAll(list, <span class="string">"tom"</span>, <span class="string">"汤姆"</span>);</span><br><span class="line"> System.out.println(<span class="string">"list替换后="</span> + list);</span><br><span class="line"></span><br><span class="line"> </span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="10-创建文件的三种方式以及文件的相关操作-相关方法"><a href="#10-创建文件的三种方式以及文件的相关操作-相关方法" class="headerlink" title="10.创建文件的三种方式以及文件的相关操作(相关方法)"></a>10.创建文件的三种方式以及文件的相关操作(相关方法)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.file;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.File;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> * 创建文件的方式</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileCreate</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="comment">//第一种方式:new File(fileName);</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">create01</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"c:\\news1.txt"</span>;<span class="comment">//也可以写成"c:/news1.txt"</span></span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(filePath);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> file.createNewFile();</span><br><span class="line"> System.out.println(<span class="string">"文件创建成功"</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//第二种方式:new File(File parent,String child)//根据父目录文件+子路径构建</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">create02</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">File</span> <span class="variable">parentFile</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(<span class="string">"c:\\"</span>);<span class="comment">//也可以写成"c:/"</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">fileName</span> <span class="operator">=</span> <span class="string">"news2.txt"</span>;</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(parentFile, fileName);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> file.createNewFile();</span><br><span class="line"> System.out.println(fileName+<span class="string">" 文件创建成功"</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//第三种方式:new File(String parent,String child)//根据父目录+子路径构建</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">create03</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">String</span> <span class="variable">parentPath</span> <span class="operator">=</span> <span class="string">"c:\\"</span>;<span class="comment">//也可以写成"c:/"</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">fileName</span> <span class="operator">=</span> <span class="string">"news3.txt"</span>;</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(parentPath, fileName);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> file.createNewFile();</span><br><span class="line"> System.out.println(fileName+<span class="string">"文件创建成功"</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.file;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.File;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileInformation</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取文件信息</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">info</span><span class="params">()</span>{</span><br><span class="line"> <span class="comment">//先创建文件的对象,这里并没有创建文件,有点像是读取文件</span></span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(<span class="string">"c:\\news1.txt"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//调用相应的方法,得到对应的信息</span></span><br><span class="line"> <span class="comment">//得到文件名</span></span><br><span class="line"> System.out.println(<span class="string">"文件名="</span>+file.getName());</span><br><span class="line"> <span class="comment">//文件的绝对路径</span></span><br><span class="line"> System.out.println(<span class="string">"文件的绝对路径="</span>+file.getAbsolutePath());</span><br><span class="line"> <span class="comment">//文件的父级目录</span></span><br><span class="line"> System.out.println(<span class="string">"文件父级目录="</span>+file.getParent());</span><br><span class="line"> <span class="comment">//文件的大小,返回的是字节(一个英文字母对应的是一个字节,一个汉字对应的是三个字节)</span></span><br><span class="line"> System.out.println(<span class="string">"文件的大小(字节)="</span>+file.length());</span><br><span class="line"> <span class="comment">//文件是否存在,返回的是true /false</span></span><br><span class="line"> System.out.println(<span class="string">"文件是否存在="</span>+file.exists());</span><br><span class="line"> <span class="comment">//是不是一个文件</span></span><br><span class="line"> System.out.println(<span class="string">"是不是一个文件="</span>+file.isFile());</span><br><span class="line"> <span class="comment">//是不是一个目录</span></span><br><span class="line"> System.out.println(<span class="string">"是不是一个目录="</span>+file.isDirectory());</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.file;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.File;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.OutputStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Directory_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//判断 d:\\news1.txt 是否存在,如果存在就删除</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">m1</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\news1.txt"</span>;</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(filePath);</span><br><span class="line"> <span class="keyword">if</span> (file.exists()) {</span><br><span class="line"> <span class="keyword">if</span> (file.delete()) {</span><br><span class="line"> System.out.println(filePath + <span class="string">"删除成功"</span>);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(filePath + <span class="string">"删除失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(<span class="string">"该文件不存在..."</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//判断 D:\\demo02 是否存在,存在就删除,否则提示不存在</span></span><br><span class="line"> <span class="comment">//这里我们需要体会到,在java编程中,目录也被当做文件</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">m2</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"D:\\demo02"</span>;</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(filePath);</span><br><span class="line"> <span class="keyword">if</span> (file.exists()) {</span><br><span class="line"> <span class="keyword">if</span> (file.delete()) {</span><br><span class="line"> System.out.println(filePath + <span class="string">"删除成功"</span>);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(filePath + <span class="string">"删除失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(<span class="string">"该目录不存在..."</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//判断 D:\\demo\\a\\b\\c 目录是否存在,如果存在就提示已经存在,否则就创建</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">m3</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">directoryPath</span> <span class="operator">=</span> <span class="string">"D:\\demo\\a\\b\\c"</span>;</span><br><span class="line"> <span class="type">File</span> <span class="variable">file</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">File</span>(directoryPath);</span><br><span class="line"> <span class="keyword">if</span> (file.exists()) {</span><br><span class="line"> System.out.println(directoryPath + <span class="string">"存在.."</span>);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">if</span> (file.mkdirs()) { <span class="comment">//创建一级目录使用mkdir() ,创建多级目录使用mkdirs()</span></span><br><span class="line"> System.out.println(directoryPath + <span class="string">"创建成功.."</span>);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> System.out.println(directoryPath + <span class="string">"创建失败..."</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="11-FileInputStream-字节输入流"><a href="#11-FileInputStream-字节输入流" class="headerlink" title="11.FileInputStream 字节输入流"></a>11.FileInputStream 字节输入流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.inputstream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileInputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.FileNotFoundException;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示FileInputStream的使用(字节输入流 文件--> 程序)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileInputStream_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 演示读取文件...</span></span><br><span class="line"><span class="comment"> * 单个字节的读取,效率比较低</span></span><br><span class="line"><span class="comment"> * -> 使用 read(byte[] b)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">readFile01</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\hello.txt"</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">readData</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">fileInputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//创建 FileInputStream 对象,用于读取 文件</span></span><br><span class="line"> fileInputStream = <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath);</span><br><span class="line"> <span class="comment">//从该输入流读取一个字节的数据。 如果没有输入可用,此方法将阻止。</span></span><br><span class="line"> <span class="comment">//如果返回-1 , 表示读取完毕</span></span><br><span class="line"> <span class="keyword">while</span> ((readData = fileInputStream.read()) != -<span class="number">1</span>) {<span class="comment">//返回的是一个int类型的字节值</span></span><br><span class="line"> System.out.print((<span class="type">char</span>)readData);<span class="comment">//转成char显示</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="comment">//关闭文件流,释放资源.</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileInputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用 read(byte[] b) 读取文件,提高效率</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">readFile02</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\hello.txt"</span>;</span><br><span class="line"> <span class="comment">//字节数组</span></span><br><span class="line"> <span class="type">byte</span>[] buf = <span class="keyword">new</span> <span class="title class_">byte</span>[<span class="number">8</span>]; <span class="comment">//一次读取8个字节.</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">readLen</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">fileInputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//创建 FileInputStream 对象,用于读取 文件</span></span><br><span class="line"> fileInputStream = <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath);</span><br><span class="line"> <span class="comment">//从该输入流读取最多b.length字节的数据到字节数组。 此方法将阻塞,直到某些输入可用。</span></span><br><span class="line"> <span class="comment">//如果返回-1 , 表示读取完毕</span></span><br><span class="line"> <span class="comment">//如果读取正常, 返回实际读取的字节数</span></span><br><span class="line"> <span class="keyword">while</span> ((readLen = fileInputStream.read(buf)) != -<span class="number">1</span>) {<span class="comment">//返回的是读取的字节数</span></span><br><span class="line"> System.out.print(<span class="keyword">new</span> <span class="title class_">String</span>(buf, <span class="number">0</span>, readLen));<span class="comment">//显示</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="comment">//关闭文件流,释放资源.</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileInputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="12-FileOutputStream-字节输出流"><a href="#12-FileOutputStream-字节输出流" class="headerlink" title="12.FileOutputStream 字节输出流"></a>12.FileOutputStream 字节输出流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.outputstream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileNotFoundException;</span><br><span class="line"><span class="keyword">import</span> java.io.FileOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileOutputStream01</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 演示使用FileOutputStream 将数据写到文件中,</span></span><br><span class="line"><span class="comment"> * 如果该文件不存在,则创建该文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">writeFile</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//创建 FileOutputStream对象</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\a.txt"</span>;</span><br><span class="line"> <span class="type">FileOutputStream</span> <span class="variable">fileOutputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//得到 FileOutputStream对象 对象</span></span><br><span class="line"> <span class="comment">//老师说明</span></span><br><span class="line"> <span class="comment">//1. new FileOutputStream(filePath) 创建方式,当写入内容是,会覆盖原来的内容</span></span><br><span class="line"> <span class="comment">//2. new FileOutputStream(filePath, true) 创建方式,当写入内容是,是追加到文件后面</span></span><br><span class="line"> fileOutputStream = <span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(filePath, <span class="literal">true</span>);</span><br><span class="line"> <span class="comment">//写入一个字节</span></span><br><span class="line"> <span class="comment">//fileOutputStream.write('H');//</span></span><br><span class="line"> <span class="comment">//写入字符串</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">str</span> <span class="operator">=</span> <span class="string">"hsp,world!"</span>;</span><br><span class="line"> <span class="comment">//str.getBytes() 可以把 字符串-> 字节数组</span></span><br><span class="line"> <span class="comment">//fileOutputStream.write(str.getBytes());</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> write(byte[] b, int off, int len) 将 len字节从位于偏移量 off的指定字节数组写入此文件输出流</span></span><br><span class="line"><span class="comment"> 从off开始,写len个字节写入到文件中</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> fileOutputStream.write(str.getBytes(), <span class="number">0</span>, <span class="number">3</span>);</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileOutputStream.close();</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="13-文件拷贝-FileInputStream和FileOutputStream"><a href="#13-文件拷贝-FileInputStream和FileOutputStream" class="headerlink" title="13.文件拷贝(FileInputStream和FileOutputStream)"></a>13.文件拷贝(FileInputStream和FileOutputStream)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.outputstream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.hspedu.inputstream_.FileInputStream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileCopy</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//完成 文件拷贝,将 e:\\Koala.jpg 拷贝 c:\\</span></span><br><span class="line"> <span class="comment">//思路分析</span></span><br><span class="line"> <span class="comment">//1. 创建文件的输入流 , 将文件读入到程序</span></span><br><span class="line"> <span class="comment">//2. 创建文件的输出流, 将读取到的文件数据,写入到指定的文件.</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">srcFilePath</span> <span class="operator">=</span> <span class="string">"e:\\Koala.jpg"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">destFilePath</span> <span class="operator">=</span> <span class="string">"e:\\Koala3.jpg"</span>;</span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">fileInputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">FileOutputStream</span> <span class="variable">fileOutputStream</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"></span><br><span class="line"> fileInputStream = <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(srcFilePath);</span><br><span class="line"> fileOutputStream = <span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(destFilePath);</span><br><span class="line"> <span class="comment">//定义一个字节数组,提高读取效果</span></span><br><span class="line"> <span class="type">byte</span>[] buf = <span class="keyword">new</span> <span class="title class_">byte</span>[<span class="number">1024</span>];</span><br><span class="line"> <span class="type">int</span> <span class="variable">readLen</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">while</span> ((readLen = fileInputStream.read(buf)) != -<span class="number">1</span>) {</span><br><span class="line"> <span class="comment">//读取到后,就写入到文件 通过 fileOutputStream</span></span><br><span class="line"> <span class="comment">//即,是一边读,一边写</span></span><br><span class="line"> fileOutputStream.write(buf, <span class="number">0</span>, readLen);<span class="comment">//一定要使用这个方法</span></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"拷贝ok~"</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//关闭输入流和输出流,释放资源</span></span><br><span class="line"> <span class="keyword">if</span> (fileInputStream != <span class="literal">null</span>) {</span><br><span class="line"> fileInputStream.close();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (fileOutputStream != <span class="literal">null</span>) {</span><br><span class="line"> fileOutputStream.close();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.writer_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> * 拷贝文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BufferedCopy_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">//源文件</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">srcFilePath</span> <span class="operator">=</span> <span class="string">"c:\\story.txt"</span>;</span><br><span class="line"> <span class="comment">//目标文件</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">destFilePath</span> <span class="operator">=</span> <span class="string">"c:\\dest.txt"</span>;</span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">bufferedReader</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">FileReader</span>(srcFilePath));</span><br><span class="line"> <span class="type">BufferedWriter</span> <span class="variable">bufferedWriter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedWriter</span>(<span class="keyword">new</span> <span class="title class_">FileWriter</span>(destFilePath));</span><br><span class="line"> String line;</span><br><span class="line"> <span class="keyword">while</span> ((line = bufferedReader.readLine()) != <span class="literal">null</span>){</span><br><span class="line"> <span class="comment">//取到的每一行加入到目标文件中</span></span><br><span class="line"> bufferedWriter.write(line);</span><br><span class="line"> <span class="comment">//换行符</span></span><br><span class="line"> bufferedWriter.newLine();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//关闭流</span></span><br><span class="line"> bufferedReader.close();</span><br><span class="line"> bufferedWriter.close();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="14-FileReader-字符输入流"><a href="#14-FileReader-字符输入流" class="headerlink" title="14.FileReader 字符输入流"></a>14.FileReader 字符输入流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reader_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileNotFoundException;</span><br><span class="line"><span class="keyword">import</span> java.io.FileReader;</span><br><span class="line"><span class="keyword">import</span> java.io.FileWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileReader_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 单个字符读取文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">readFile01</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\story.txt"</span>;</span><br><span class="line"> <span class="type">FileReader</span> <span class="variable">fileReader</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">data</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="comment">//1. 创建FileReader对象</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileReader = <span class="keyword">new</span> <span class="title class_">FileReader</span>(filePath);</span><br><span class="line"> <span class="comment">//循环读取 使用read, 单个字符读取</span></span><br><span class="line"> <span class="keyword">while</span> ((data = fileReader.read()) != -<span class="number">1</span>) {</span><br><span class="line"> System.out.print((<span class="type">char</span>) data);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span> (fileReader != <span class="literal">null</span>) {</span><br><span class="line"> fileReader.close();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 字符数组读取文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">readFile02</span><span class="params">()</span> {</span><br><span class="line"> System.out.println(<span class="string">"~~~readFile02 ~~~"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\story.txt"</span>;</span><br><span class="line"> <span class="type">FileReader</span> <span class="variable">fileReader</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">int</span> <span class="variable">readLen</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">char</span>[] buf = <span class="keyword">new</span> <span class="title class_">char</span>[<span class="number">8</span>];</span><br><span class="line"> <span class="comment">//1. 创建FileReader对象</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileReader = <span class="keyword">new</span> <span class="title class_">FileReader</span>(filePath);</span><br><span class="line"> <span class="comment">//循环读取 使用read(buf), 返回的是实际读取到的字符数</span></span><br><span class="line"> <span class="comment">//如果返回-1, 说明到文件结束</span></span><br><span class="line"> <span class="keyword">while</span> ((readLen = fileReader.read(buf)) != -<span class="number">1</span>) {</span><br><span class="line"> System.out.print(<span class="keyword">new</span> <span class="title class_">String</span>(buf, <span class="number">0</span>, readLen));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span> (fileReader != <span class="literal">null</span>) {</span><br><span class="line"> fileReader.close();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="15-FileWriter-字符输出流"><a href="#15-FileWriter-字符输出流" class="headerlink" title="15.FileWriter 字符输出流"></a>15.FileWriter 字符输出流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.writer_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">FileWriter_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"c:\\note.txt"</span>;</span><br><span class="line"> <span class="type">FileWriter</span> <span class="variable">fileWriter</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">char</span>[] chars = {<span class="string">'a'</span>,<span class="string">'b'</span>,<span class="string">'c'</span>};</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileWriter = <span class="keyword">new</span> <span class="title class_">FileWriter</span>(filePath);</span><br><span class="line"> fileWriter.write(<span class="string">'H'</span>);<span class="comment">//写入单个字符</span></span><br><span class="line"> fileWriter.write(chars);<span class="comment">//写入字符数组</span></span><br><span class="line"> fileWriter.write(<span class="string">"韩顺平教育"</span>.toCharArray(),<span class="number">0</span>,<span class="number">3</span>);<span class="comment">//写入数组的指定部分</span></span><br><span class="line"> fileWriter.write(<span class="string">" 你好北京~"</span>);<span class="comment">//写入整个字符串</span></span><br><span class="line"> fileWriter.write(<span class="string">"上海你好"</span>,<span class="number">0</span>,<span class="number">2</span>);<span class="comment">//写入字符串的指定部分</span></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }<span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//下面的两种方式二选一,必须选一个,否则文件无法写入</span></span><br><span class="line"> fileWriter.flush();</span><br><span class="line"> fileWriter.close();<span class="comment">//等价于 flush() + 关闭</span></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="16-BufferedReader-字符处理流(包装流)"><a href="#16-BufferedReader-字符处理流(包装流)" class="headerlink" title="16.BufferedReader 字符处理流(包装流)"></a>16.BufferedReader 字符处理流(包装流)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reader_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.BufferedReader;</span><br><span class="line"><span class="keyword">import</span> java.io.FileReader;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示bufferedReader 使用</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BufferedReader_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\a.java"</span>;</span><br><span class="line"> <span class="comment">//创建bufferedReader</span></span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">bufferedReader</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">FileReader</span>(filePath));</span><br><span class="line"> <span class="comment">//读取</span></span><br><span class="line"> String line; <span class="comment">//按行读取, 效率高</span></span><br><span class="line"> <span class="comment">//说明</span></span><br><span class="line"> <span class="comment">//1. bufferedReader.readLine() 是按行读取文件</span></span><br><span class="line"> <span class="comment">//2. 当返回null 时,表示文件读取完毕</span></span><br><span class="line"> <span class="keyword">while</span> ((line = bufferedReader.readLine()) != <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(line);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//关闭流, 这里注意,只需要关闭 BufferedReader ,因为底层会自动的去关闭 节点流</span></span><br><span class="line"> <span class="comment">//FileReader。</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> public void close() throws IOException {</span></span><br><span class="line"><span class="comment"> synchronized (lock) {</span></span><br><span class="line"><span class="comment"> if (in == null)</span></span><br><span class="line"><span class="comment"> return;</span></span><br><span class="line"><span class="comment"> try {</span></span><br><span class="line"><span class="comment"> in.close();//in 就是我们传入的 new FileReader(filePath), 关闭了.</span></span><br><span class="line"><span class="comment"> } finally {</span></span><br><span class="line"><span class="comment"> in = null;</span></span><br><span class="line"><span class="comment"> cb = null;</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> bufferedReader.close();</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="17-BufferedWriter-字符处理流(包装流)"><a href="#17-BufferedWriter-字符处理流(包装流)" class="headerlink" title="17.BufferedWriter 字符处理流(包装流)"></a>17.BufferedWriter 字符处理流(包装流)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.writer_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.BufferedWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.FileWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BufferWriter_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"c:\\note.txt"</span>;</span><br><span class="line"> <span class="comment">//new FileWriter(filePath,true);表示以追加的方式加入</span></span><br><span class="line"> <span class="comment">//new FileWriter(filePath);表示以覆盖的方式加入</span></span><br><span class="line"> <span class="type">BufferedWriter</span> <span class="variable">bufferedWriter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedWriter</span>(<span class="keyword">new</span> <span class="title class_">FileWriter</span>(filePath,<span class="literal">true</span>));</span><br><span class="line"> bufferedWriter.write(<span class="string">"你好,韩顺平!"</span>);</span><br><span class="line"> bufferedWriter.newLine();<span class="comment">//插入一个和系统相关的换行</span></span><br><span class="line"> bufferedWriter.write(<span class="string">"你好,韩顺平!"</span>);</span><br><span class="line"> bufferedWriter.newLine();</span><br><span class="line"> bufferedWriter.write(<span class="string">"你好,韩顺平!"</span>);</span><br><span class="line"> <span class="comment">//关闭的是外层流(BufferedWriter),在底层也关闭了FileWriter节点流</span></span><br><span class="line"> bufferedWriter.close();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="18-文件拷贝(BufferedInputStream和BufferedOutputStream)"><a href="#18-文件拷贝(BufferedInputStream和BufferedOutputStream)" class="headerlink" title="18.文件拷贝(BufferedInputStream和BufferedOutputStream)"></a>18.文件拷贝(BufferedInputStream和BufferedOutputStream)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.outputstream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示使用BufferedOutputStream 和 BufferedInputStream使用</span></span><br><span class="line"><span class="comment"> * 使用他们,可以完成二进制文件拷贝.</span></span><br><span class="line"><span class="comment"> * 思考:字节流可以操作二进制文件,可以操作文本文件吗?当然可以</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BufferedCopy02</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"><span class="comment">// String srcFilePath = "e:\\Koala.jpg";</span></span><br><span class="line"><span class="comment">// String destFilePath = "e:\\hsp.jpg";</span></span><br><span class="line"><span class="comment">// String srcFilePath = "e:\\0245_韩顺平零基础学Java_引出this.avi";</span></span><br><span class="line"><span class="comment">// String destFilePath = "e:\\hsp.avi";</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">srcFilePath</span> <span class="operator">=</span> <span class="string">"e:\\a.java"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">destFilePath</span> <span class="operator">=</span> <span class="string">"e:\\a3.java"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//创建BufferedOutputStream对象BufferedInputStream对象</span></span><br><span class="line"> <span class="type">BufferedInputStream</span> <span class="variable">bis</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">BufferedOutputStream</span> <span class="variable">bos</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//因为 FileInputStream 是 InputStream 子类</span></span><br><span class="line"> bis = <span class="keyword">new</span> <span class="title class_">BufferedInputStream</span>(<span class="keyword">new</span> <span class="title class_">FileInputStream</span>(srcFilePath));</span><br><span class="line"> bos = <span class="keyword">new</span> <span class="title class_">BufferedOutputStream</span>(<span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(destFilePath));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//循环的读取文件,并写入到 destFilePath</span></span><br><span class="line"> <span class="type">byte</span>[] buff = <span class="keyword">new</span> <span class="title class_">byte</span>[<span class="number">1024</span>];</span><br><span class="line"> <span class="type">int</span> <span class="variable">readLen</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="comment">//当返回 -1 时,就表示文件读取完毕</span></span><br><span class="line"> <span class="keyword">while</span> ((readLen = bis.read(buff)) != -<span class="number">1</span>) {</span><br><span class="line"> bos.write(buff, <span class="number">0</span>, readLen);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"文件拷贝完毕~~~"</span>);</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//关闭流 , 关闭外层的处理流即可,底层会去关闭节点流</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="keyword">if</span>(bis != <span class="literal">null</span>) {</span><br><span class="line"> bis.close();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span>(bos != <span class="literal">null</span>) {</span><br><span class="line"> bos.close();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="19-ObjectOutputStream-序列化操作(对象字节输出流-)保存数据类型和数据"><a href="#19-ObjectOutputStream-序列化操作(对象字节输出流-)保存数据类型和数据" class="headerlink" title="19. ObjectOutputStream 序列化操作(对象字节输出流 )保存数据类型和数据"></a>19. ObjectOutputStream 序列化操作(对象字节输出流 )保存数据类型和数据</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.outputstream_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.ObjectOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示ObjectOutputStream的使用, 完成数据的序列化</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ObjectOutStream_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">//序列化后,保存的文件格式,不是纯文本,而是按照他的格式来保存</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\data.dat"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">ObjectOutputStream</span> <span class="variable">oos</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ObjectOutputStream</span>(<span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(filePath));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//序列化数据到 e:\data.dat</span></span><br><span class="line"> oos.writeInt(<span class="number">100</span>);<span class="comment">// int -> Integer (实现了 Serializable)</span></span><br><span class="line"> oos.writeBoolean(<span class="literal">true</span>);<span class="comment">// boolean -> Boolean (实现了 Serializable)</span></span><br><span class="line"> oos.writeChar(<span class="string">'a'</span>);<span class="comment">// char -> Character (实现了 Serializable)</span></span><br><span class="line"> oos.writeDouble(<span class="number">9.5</span>);<span class="comment">// double -> Double (实现了 Serializable)</span></span><br><span class="line"> oos.writeUTF(<span class="string">"韩顺平教育"</span>);<span class="comment">//String (实现了 Serializable) </span></span><br><span class="line"> <span class="comment">//保存一个dog对象</span></span><br><span class="line"> <span class="comment">//Dog也要实现序列化接口</span></span><br><span class="line"> oos.writeObject(<span class="keyword">new</span> <span class="title class_">Dog</span>(<span class="string">"旺财"</span>, <span class="number">10</span>, <span class="string">"日本"</span>, <span class="string">"白色"</span>));</span><br><span class="line"> oos.close();</span><br><span class="line"> System.out.println(<span class="string">"数据保存完毕(序列化形式)"</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="20-ObjectInputStream-反序列化操作(对象字节输入流-)恢复数据类型和数据"><a href="#20-ObjectInputStream-反序列化操作(对象字节输入流-)恢复数据类型和数据" class="headerlink" title="20.ObjectInputStream 反序列化操作(对象字节输入流 )恢复数据类型和数据"></a>20.ObjectInputStream 反序列化操作(对象字节输入流 )恢复数据类型和数据</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.inputstream_;</span><br><span class="line"><span class="keyword">import</span> com.hspedu.outputstream_.Dog;</span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ObjectInputStream_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException, ClassNotFoundException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//指定反序列化的文件</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\data.dat"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">ObjectInputStream</span> <span class="variable">ois</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ObjectInputStream</span>(<span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//读取</span></span><br><span class="line"> <span class="comment">//老师解读</span></span><br><span class="line"> <span class="comment">//1. 读取(反序列化)的顺序需要和你保存数据(序列化)的顺序一致</span></span><br><span class="line"> <span class="comment">//2. 否则会出现异常</span></span><br><span class="line"></span><br><span class="line"> System.out.println(ois.readInt());</span><br><span class="line"> System.out.println(ois.readBoolean());</span><br><span class="line"></span><br><span class="line"> System.out.println(ois.readChar());</span><br><span class="line"> System.out.println(ois.readDouble());</span><br><span class="line"> System.out.println(ois.readUTF());</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//dog 的编译类型是 Object , dog 的运行类型是 Dog</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">dog</span> <span class="operator">=</span> ois.readObject();</span><br><span class="line"> System.out.println(<span class="string">"运行类型="</span> + dog.getClass());</span><br><span class="line"> System.out.println(<span class="string">"dog信息="</span> + dog);<span class="comment">//底层 Object -> Dog</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//这里是特别重要的细节:</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 如果我们希望调用Dog的方法, 需要向下转型</span></span><br><span class="line"> <span class="type">Dog</span> <span class="variable">dog2</span> <span class="operator">=</span> (Dog)dog;</span><br><span class="line"> System.out.println(dog2.getName()); <span class="comment">//旺财..</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//关闭流, 关闭外层流即可,底层会关闭 FileInputStream 流</span></span><br><span class="line"> ois.close();</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="21-InputStreamReader-(转换流-字节流转化成字符流)"><a href="#21-InputStreamReader-(转换流-字节流转化成字符流)" class="headerlink" title="21.InputStreamReader (转换流 字节流转化成字符流)"></a>21.InputStreamReader (转换流 字节流转化成字符流)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.transformation;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示使用 InputStreamReader 转换流解决中文乱码问题</span></span><br><span class="line"><span class="comment"> * 将字节流 FileInputStream 转成字符流 InputStreamReader, 指定编码 gbk/utf-8</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">InputStreamReader_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\a.txt"</span>;</span><br><span class="line"> <span class="comment">//解读</span></span><br><span class="line"> <span class="comment">//1. 把 FileInputStream 转成 InputStreamReader</span></span><br><span class="line"> <span class="comment">//2. 指定编码 gbk</span></span><br><span class="line"> <span class="comment">//InputStreamReader isr = new InputStreamReader(new FileInputStream(filePath), "gbk");</span></span><br><span class="line"> <span class="comment">//3. 把 InputStreamReader 传入 BufferedReader</span></span><br><span class="line"> <span class="comment">//BufferedReader br = new BufferedReader(isr);</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//将2 和 3 合在一起</span></span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">br</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">InputStreamReader</span>(<span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath), <span class="string">"gbk"</span>));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//4. 读取</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> br.readLine();</span><br><span class="line"> System.out.println(<span class="string">"读取内容="</span> + s);</span><br><span class="line"> <span class="comment">//5. 关闭外层流</span></span><br><span class="line"> br.close();</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="22-OutputStreamWriter(转换流-字节流转成成字符流)"><a href="#22-OutputStreamWriter(转换流-字节流转成成字符流)" class="headerlink" title="22.OutputStreamWriter(转换流 字节流转成成字符流)"></a>22.OutputStreamWriter(转换流 字节流转成成字符流)</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.transformation;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示 OutputStreamWriter 使用</span></span><br><span class="line"><span class="comment"> * 把FileOutputStream 字节流,转成字符流 OutputStreamWriter</span></span><br><span class="line"><span class="comment"> * 指定处理的编码 gbk/utf-8/utf8</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">OutputStreamWriter_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"e:\\hsp.txt"</span>;</span><br><span class="line"> <span class="type">String</span> <span class="variable">charSet</span> <span class="operator">=</span> <span class="string">"utf-8"</span>;</span><br><span class="line"> <span class="type">OutputStreamWriter</span> <span class="variable">osw</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OutputStreamWriter</span>(<span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(filePath), charSet);</span><br><span class="line"> osw.write(<span class="string">"hi, 韩顺平教育"</span>);</span><br><span class="line"> osw.close();</span><br><span class="line"> System.out.println(<span class="string">"按照 "</span> + charSet + <span class="string">" 保存文件成功~"</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="23-PrintStream(字节打印流)只有输出流,没有输入流"><a href="#23-PrintStream(字节打印流)只有输出流,没有输入流" class="headerlink" title="23.PrintStream(字节打印流)只有输出流,没有输入流"></a>23.PrintStream(字节打印流)只有输出流,没有输入流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.printstream;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.PrintStream;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示PrintStream (字节打印流/输出流)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">PrintStream_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"></span><br><span class="line"> <span class="type">PrintStream</span> <span class="variable">out</span> <span class="operator">=</span> System.out;</span><br><span class="line"> <span class="comment">//在默认情况下,PrintStream 输出数据的位置是 标准输出,即显示器</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> public void print(String s) {</span></span><br><span class="line"><span class="comment"> if (s == null) {</span></span><br><span class="line"><span class="comment"> s = "null";</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"> write(s);</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> out.print(<span class="string">"john, hello"</span>);</span><br><span class="line"> <span class="comment">//因为print底层使用的是write , 所以我们可以直接调用write进行打印/输出</span></span><br><span class="line"> out.write(<span class="string">"韩顺平,你好"</span>.getBytes());</span><br><span class="line"> out.close();</span><br><span class="line"></span><br><span class="line"> <span class="comment">//我们可以去修改打印流输出的位置/设备</span></span><br><span class="line"> <span class="comment">//1. 输出修改成到 "e:\\f1.txt"</span></span><br><span class="line"> <span class="comment">//2. "hello, 韩顺平教育~" 就会输出到 e:\f1.txt</span></span><br><span class="line"> <span class="comment">//3. public static void setOut(PrintStream out) {</span></span><br><span class="line"> <span class="comment">// checkIO();</span></span><br><span class="line"> <span class="comment">// setOut0(out); // native 方法,修改了out</span></span><br><span class="line"> <span class="comment">// }</span></span><br><span class="line"> System.setOut(<span class="keyword">new</span> <span class="title class_">PrintStream</span>(<span class="string">"e:\\f1.txt"</span>));</span><br><span class="line"> System.out.println(<span class="string">"hello, 韩顺平教育~"</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="24-PrintWriter-(字符打印流)只有输出流,没有输入流"><a href="#24-PrintWriter-(字符打印流)只有输出流,没有输入流" class="headerlink" title="24.PrintWriter (字符打印流)只有输出流,没有输入流"></a>24.PrintWriter (字符打印流)只有输出流,没有输入流</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.transformation;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileWriter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.PrintWriter;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示 PrintWriter 使用方式</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">PrintWriter_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//PrintWriter printWriter = new PrintWriter(System.out);//默认显示在显示器上</span></span><br><span class="line"> <span class="type">PrintWriter</span> <span class="variable">printWriter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PrintWriter</span>(<span class="keyword">new</span> <span class="title class_">FileWriter</span>(<span class="string">"e:\\f2.txt"</span>));</span><br><span class="line"> printWriter.print(<span class="string">"hi, 北京你好~~~~"</span>);</span><br><span class="line"> <span class="comment">//关闭或者刷新才会写入</span></span><br><span class="line"> printWriter.close();<span class="comment">//flush + 关闭流, 才会将数据写入到文件..</span></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="25-Properties读取修改配置文件"><a href="#25-Properties读取修改配置文件" class="headerlink" title="25.Properties读取修改配置文件"></a>25.Properties读取修改配置文件</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.properties_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileNotFoundException;</span><br><span class="line"><span class="keyword">import</span> java.io.FileReader;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.Properties;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Properties02</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//使用Properties 类来读取mysql.properties 文件</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 创建Properties 对象</span></span><br><span class="line"> <span class="type">Properties</span> <span class="variable">properties</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Properties</span>();</span><br><span class="line"> <span class="comment">//2. 加载指定配置文件</span></span><br><span class="line"> properties.load(<span class="keyword">new</span> <span class="title class_">FileReader</span>(<span class="string">"src\\mysql.properties"</span>));</span><br><span class="line"> <span class="comment">//3. 把k-v显示控制台</span></span><br><span class="line"> properties.list(System.out);</span><br><span class="line"> <span class="comment">//4. 根据key 获取对应的值</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">user</span> <span class="operator">=</span> properties.getProperty(<span class="string">"user"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">pwd</span> <span class="operator">=</span> properties.getProperty(<span class="string">"pwd"</span>);</span><br><span class="line"> System.out.println(<span class="string">"用户名="</span> + user);</span><br><span class="line"> System.out.println(<span class="string">"密码是="</span> + pwd);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.properties_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.FileNotFoundException;</span><br><span class="line"><span class="keyword">import</span> java.io.FileOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.Properties;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Properties03</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//使用Properties 类来创建 配置文件, 修改配置文件内容</span></span><br><span class="line"></span><br><span class="line"> <span class="type">Properties</span> <span class="variable">properties</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Properties</span>();</span><br><span class="line"> <span class="comment">//创建</span></span><br><span class="line"> <span class="comment">//1.如果该文件没有key 就是创建</span></span><br><span class="line"> <span class="comment">//2.如果该文件有key ,就是修改</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> Properties 父类是 Hashtable , 底层就是Hashtable 核心方法</span></span><br><span class="line"><span class="comment"> public synchronized V put(K key, V value) {</span></span><br><span class="line"><span class="comment"> // Make sure the value is not null</span></span><br><span class="line"><span class="comment"> if (value == null) {</span></span><br><span class="line"><span class="comment"> throw new NullPointerException();</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> // Makes sure the key is not already in the hashtable.</span></span><br><span class="line"><span class="comment"> Entry<?,?> tab[] = table;</span></span><br><span class="line"><span class="comment"> int hash = key.hashCode();</span></span><br><span class="line"><span class="comment"> int index = (hash & 0x7FFFFFFF) % tab.length;</span></span><br><span class="line"><span class="comment"> @SuppressWarnings("unchecked")</span></span><br><span class="line"><span class="comment"> Entry<K,V> entry = (Entry<K,V>)tab[index];</span></span><br><span class="line"><span class="comment"> for(; entry != null ; entry = entry.next) {</span></span><br><span class="line"><span class="comment"> if ((entry.hash == hash) && entry.key.equals(key)) {</span></span><br><span class="line"><span class="comment"> V old = entry.value;</span></span><br><span class="line"><span class="comment"> entry.value = value;//如果key 存在,就替换</span></span><br><span class="line"><span class="comment"> return old;</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> addEntry(hash, key, value, index);//如果是新k, 就addEntry</span></span><br><span class="line"><span class="comment"> return null;</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> properties.setProperty(<span class="string">"charset"</span>, <span class="string">"utf8"</span>);</span><br><span class="line"> properties.setProperty(<span class="string">"user"</span>, <span class="string">"汤姆"</span>);<span class="comment">//注意保存时,是中文的 unicode码值</span></span><br><span class="line"> properties.setProperty(<span class="string">"pwd"</span>, <span class="string">"888888"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//将k-v 存储文件中即可</span></span><br><span class="line"> properties.store(<span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(<span class="string">"src\\mysql2.properties"</span>), <span class="literal">null</span>);</span><br><span class="line"> System.out.println(<span class="string">"保存配置文件成功~"</span>);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="26-InetAddress类的常用方法"><a href="#26-InetAddress类的常用方法" class="headerlink" title="26.InetAddress类的常用方法"></a>26.InetAddress类的常用方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.api;</span><br><span class="line"><span class="keyword">import</span> java.net.InetAddress;</span><br><span class="line"><span class="keyword">import</span> java.net.UnknownHostException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示InetAddress 类的使用</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">API_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> UnknownHostException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 获取本机的InetAddress 对象</span></span><br><span class="line"> <span class="type">InetAddress</span> <span class="variable">localHost</span> <span class="operator">=</span> InetAddress.getLocalHost();</span><br><span class="line"> System.out.println(localHost);<span class="comment">//DESKTOP-S4MP84S/192.168.12.1</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//2. 根据指定主机名 获取 InetAddress对象</span></span><br><span class="line"> <span class="type">InetAddress</span> <span class="variable">host1</span> <span class="operator">=</span> InetAddress.getByName(<span class="string">"DESKTOP-S4MP84S"</span>);</span><br><span class="line"> System.out.println(<span class="string">"host1="</span> + host1);<span class="comment">//DESKTOP-S4MP84S/192.168.12.1</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//3. 根据域名返回 InetAddress对象, 比如 www.baidu.com 对应</span></span><br><span class="line"> <span class="type">InetAddress</span> <span class="variable">host2</span> <span class="operator">=</span> InetAddress.getByName(<span class="string">"www.baidu.com"</span>);</span><br><span class="line"> System.out.println(<span class="string">"host2="</span> + host2);<span class="comment">//www.baidu.com / 110.242.68.4</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//4. 通过 InetAddress 对象,获取对应的地址</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">hostAddress</span> <span class="operator">=</span> host2.getHostAddress();<span class="comment">//IP 110.242.68.4</span></span><br><span class="line"> System.out.println(<span class="string">"host2 对应的ip = "</span> + hostAddress);<span class="comment">//110.242.68.4</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//5. 通过 InetAddress 对象,获取对应的主机名/或者的域名</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">hostName</span> <span class="operator">=</span> host2.getHostName();</span><br><span class="line"> System.out.println(<span class="string">"host2对应的主机名/域名="</span> + hostName); <span class="comment">// www.baidu.com</span></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="27-网络编程相关题目的源码"><a href="#27-网络编程相关题目的源码" class="headerlink" title="27.网络编程相关题目的源码"></a>27.网络编程相关题目的源码</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment">题目</span></span><br><span class="line"><span class="comment">(1)编写客户端程序和服务器端程序</span></span><br><span class="line"><span class="comment">(2)客户端可以输入一个 音乐 的文件名,比如 高山流水,服务端 收到音乐后,可以给客户端 返回这个 音乐文件</span></span><br><span class="line"><span class="comment"> 如果服务器没有这文件,返回一个默认的音乐即可。</span></span><br><span class="line"><span class="comment">(3)客户端收到文件后,保存在本地 c:\\</span></span><br><span class="line"><span class="comment">(4)该程序可以使用StreamUtils.java</span></span><br><span class="line"><span class="comment">*/</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">package</span> com.hspedu.homework;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"><span class="keyword">import</span> java.net.InetAddress;</span><br><span class="line"><span class="keyword">import</span> java.net.Socket;</span><br><span class="line"><span class="keyword">import</span> java.util.Scanner;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> * 客户端</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Homework03Client</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">//通过对方的IP地址和端口向对方发送数据</span></span><br><span class="line"> <span class="type">Socket</span> <span class="variable">socket</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Socket</span>(InetAddress.getLocalHost(), <span class="number">9898</span>);</span><br><span class="line"> <span class="type">BufferedWriter</span> <span class="variable">bufferedWriter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedWriter</span>(<span class="keyword">new</span> <span class="title class_">OutputStreamWriter</span>(socket.getOutputStream()));</span><br><span class="line"> <span class="type">Scanner</span> <span class="variable">scanner</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Scanner</span>(System.in);</span><br><span class="line"> System.out.println(<span class="string">"请输入一个歌曲名:"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">songName</span> <span class="operator">=</span> scanner.next();</span><br><span class="line"> bufferedWriter.write(songName);</span><br><span class="line"> bufferedWriter.flush();</span><br><span class="line"> socket.shutdownOutput();</span><br><span class="line"> <span class="comment">//接收相应的歌曲</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">destFilePath</span> <span class="operator">=</span> <span class="string">"src\\歌曲.mp3"</span>;</span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> socket.getInputStream();</span><br><span class="line"> <span class="type">byte</span>[] bytes = StreamUtils.streamToByteArray(inputStream);</span><br><span class="line"> <span class="type">BufferedOutputStream</span> <span class="variable">bufferedOutputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedOutputStream</span>(<span class="keyword">new</span> <span class="title class_">FileOutputStream</span>(destFilePath));</span><br><span class="line"> bufferedOutputStream.write(bytes);</span><br><span class="line"> bufferedOutputStream.flush();</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//关闭对应的流和socket</span></span><br><span class="line"> System.out.println(<span class="string">"客户端退出"</span>);</span><br><span class="line"> socket.close();</span><br><span class="line"> bufferedWriter.close();</span><br><span class="line"> bufferedOutputStream.close();</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.homework;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.*;</span><br><span class="line"><span class="keyword">import</span> java.net.ServerSocket;</span><br><span class="line"><span class="keyword">import</span> java.net.Socket;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 我亦无他 惟手熟尔</span></span><br><span class="line"><span class="comment"> * 服务端</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Homework03Server</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> System.out.println(<span class="string">"服务器端正在9898端口监听......"</span>);</span><br><span class="line"> <span class="type">ServerSocket</span> <span class="variable">serverSocket</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ServerSocket</span>(<span class="number">9898</span>);</span><br><span class="line"> <span class="type">Socket</span> <span class="variable">socket</span> <span class="operator">=</span> serverSocket.accept();</span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">bufferedReader</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">InputStreamReader</span>(socket.getInputStream()));</span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> bufferedReader.readLine();</span><br><span class="line"> System.out.println(s);</span><br><span class="line"> <span class="comment">//根据输入的歌曲名做出相应的操作</span></span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span>(<span class="string">"高山流水"</span>.equals(s)){</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"c:\\AlYun\\高山流水.mp3"</span>;</span><br><span class="line"> <span class="type">BufferedInputStream</span> <span class="variable">bufferedInputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedInputStream</span>(<span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath));</span><br><span class="line"> <span class="type">byte</span>[] bytes = StreamUtils.streamToByteArray(bufferedInputStream);</span><br><span class="line"> <span class="type">OutputStream</span> <span class="variable">outputStream</span> <span class="operator">=</span> socket.getOutputStream();</span><br><span class="line"> outputStream.write(bytes);</span><br><span class="line"> socket.shutdownOutput();</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">filePath</span> <span class="operator">=</span> <span class="string">"c:\\AlYun\\无名.mp3"</span>;</span><br><span class="line"> <span class="type">BufferedInputStream</span> <span class="variable">bufferedInputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedInputStream</span>(<span class="keyword">new</span> <span class="title class_">FileInputStream</span>(filePath));</span><br><span class="line"> <span class="type">byte</span>[] bytes = StreamUtils.streamToByteArray(bufferedInputStream);</span><br><span class="line"> <span class="type">OutputStream</span> <span class="variable">outputStream</span> <span class="operator">=</span> socket.getOutputStream();</span><br><span class="line"> outputStream.write(bytes);</span><br><span class="line"> socket.shutdownOutput();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//关闭相应的流和socket</span></span><br><span class="line"> System.out.println(<span class="string">"服务端退出"</span>);</span><br><span class="line"> serverSocket.close();</span><br><span class="line"> socket.close();</span><br><span class="line"> bufferedReader.close();</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.homework;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.BufferedReader;</span><br><span class="line"><span class="keyword">import</span> java.io.ByteArrayOutputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStreamReader;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 此类用于演示关于流的读写方法</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">StreamUtils</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 功能:将输入流转换成byte[], 即可以把文件的内容读入到byte[]</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> is</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">byte</span>[] streamToByteArray(InputStream is) <span class="keyword">throws</span> Exception{</span><br><span class="line"> <span class="type">ByteArrayOutputStream</span> <span class="variable">bos</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ByteArrayOutputStream</span>();<span class="comment">//创建输出流对象</span></span><br><span class="line"> <span class="type">byte</span>[] b = <span class="keyword">new</span> <span class="title class_">byte</span>[<span class="number">1024</span>];<span class="comment">//字节数组</span></span><br><span class="line"> <span class="type">int</span> len;</span><br><span class="line"> <span class="keyword">while</span>((len=is.read(b))!=-<span class="number">1</span>){<span class="comment">//循环读取</span></span><br><span class="line"> bos.write(b, <span class="number">0</span>, len);<span class="comment">//把读取到的数据,写入bos </span></span><br><span class="line"> }</span><br><span class="line"> <span class="type">byte</span>[] array = bos.toByteArray();<span class="comment">//然后将bos 转成字节数组</span></span><br><span class="line"> bos.close();</span><br><span class="line"> <span class="keyword">return</span> array;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 功能:将InputStream转换成String</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> is</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> </span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">streamToString</span><span class="params">(InputStream is)</span> <span class="keyword">throws</span> Exception{</span><br><span class="line"> <span class="type">BufferedReader</span> <span class="variable">reader</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BufferedReader</span>(<span class="keyword">new</span> <span class="title class_">InputStreamReader</span>(is));</span><br><span class="line"> StringBuilder builder= <span class="keyword">new</span> <span class="title class_">StringBuilder</span>();</span><br><span class="line"> String line;</span><br><span class="line"> <span class="keyword">while</span>((line=reader.readLine())!=<span class="literal">null</span>){</span><br><span class="line"> builder.append(line+<span class="string">"\r\n"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> builder.toString();</span><br><span class="line"> </span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="28-Class类对象的常用方法举例"><a href="#28-Class类对象的常用方法举例" class="headerlink" title="28.Class类对象的常用方法举例"></a>28.Class类对象的常用方法举例</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection.class_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.hspedu.Car;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Field;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示Class类的常用方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Class02</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchFieldException {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">classAllPath</span> <span class="operator">=</span> <span class="string">"com.hspedu.Car"</span>;</span><br><span class="line"> <span class="comment">//1 . 获取到Car类 对应的 Class对象</span></span><br><span class="line"> <span class="comment">//<?> 表示不确定的Java类型</span></span><br><span class="line"> Class<?> cls = Class.forName(classAllPath);</span><br><span class="line"> <span class="comment">//2. 输出cls</span></span><br><span class="line"> System.out.println(cls); <span class="comment">//显示cls对象, 是哪个类的Class对象 com.hspedu.Car</span></span><br><span class="line"> System.out.println(cls.getClass());<span class="comment">//输出cls运行类型 java.lang.Class</span></span><br><span class="line"> <span class="comment">//3. 得到包名</span></span><br><span class="line"> System.out.println(cls.getPackage().getName());<span class="comment">//包名</span></span><br><span class="line"> <span class="comment">//4. 得到全类名</span></span><br><span class="line"> System.out.println(cls.getName());</span><br><span class="line"> <span class="comment">//5. 通过cls创建对象实例</span></span><br><span class="line"> <span class="type">Car</span> <span class="variable">car</span> <span class="operator">=</span> (Car) cls.newInstance();</span><br><span class="line"> System.out.println(car);<span class="comment">//car.toString()</span></span><br><span class="line"> <span class="comment">//6. 通过反射获取属性 brand</span></span><br><span class="line"> <span class="type">Field</span> <span class="variable">brand</span> <span class="operator">=</span> cls.getField(<span class="string">"brand"</span>);</span><br><span class="line"> System.out.println(brand.get(car));<span class="comment">//宝马</span></span><br><span class="line"> <span class="comment">//7. 通过反射给属性赋值</span></span><br><span class="line"> brand.set(car, <span class="string">"奔驰"</span>);</span><br><span class="line"> System.out.println(brand.get(car));<span class="comment">//奔驰</span></span><br><span class="line"> <span class="comment">//8 我希望大家可以得到所有的属性(字段)</span></span><br><span class="line"> System.out.println(<span class="string">"=======所有的字段属性===="</span>);</span><br><span class="line"> Field[] fields = cls.getFields();</span><br><span class="line"> <span class="keyword">for</span> (Field f : fields) {</span><br><span class="line"> System.out.println(f.getName());<span class="comment">//名称</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"><span class="comment">//用于举例的辅助类</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Car</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">String</span> <span class="variable">brand</span> <span class="operator">=</span> <span class="string">"宝马"</span>;<span class="comment">//品牌</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="variable">price</span> <span class="operator">=</span> <span class="number">500000</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="type">String</span> <span class="variable">color</span> <span class="operator">=</span> <span class="string">"白色"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"Car{"</span> +</span><br><span class="line"> <span class="string">"brand='"</span> + brand + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", price="</span> + price +</span><br><span class="line"> <span class="string">", color='"</span> + color + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="29-获取Class对象的六种方式"><a href="#29-获取Class对象的六种方式" class="headerlink" title="29.获取Class对象的六种方式"></a>29.获取Class对象的六种方式</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection.class_;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.hspedu.Car;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示得到Class对象的各种方式(6)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GetClass_</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ClassNotFoundException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. Class.forName</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">classAllPath</span> <span class="operator">=</span> <span class="string">"com.hspedu.Car"</span>; <span class="comment">//通过读取配置文件获取</span></span><br><span class="line"> Class<?> cls1 = Class.forName(classAllPath);</span><br><span class="line"> System.out.println(cls1);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2. 类名.class , 应用场景: 用于参数传递</span></span><br><span class="line"> <span class="type">Class</span> <span class="variable">cls2</span> <span class="operator">=</span> Car.class;</span><br><span class="line"> System.out.println(cls2);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3. 对象.getClass(), 应用场景,有对象实例</span></span><br><span class="line"> <span class="type">Car</span> <span class="variable">car</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Car</span>();</span><br><span class="line"> <span class="type">Class</span> <span class="variable">cls3</span> <span class="operator">=</span> car.getClass();</span><br><span class="line"> System.out.println(cls3);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//4. 通过类加载器【4种】来获取到类的Class对象</span></span><br><span class="line"> <span class="comment">//(1)先得到类加载器 car</span></span><br><span class="line"> <span class="type">ClassLoader</span> <span class="variable">classLoader</span> <span class="operator">=</span> car.getClass().getClassLoader();</span><br><span class="line"> <span class="comment">//(2)通过类加载器得到Class对象</span></span><br><span class="line"> <span class="type">Class</span> <span class="variable">cls4</span> <span class="operator">=</span> classLoader.loadClass(classAllPath);</span><br><span class="line"> System.out.println(cls4);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//cls1 , cls2 , cls3 , cls4 其实是同一个对象</span></span><br><span class="line"> System.out.println(cls1.hashCode());</span><br><span class="line"> System.out.println(cls2.hashCode());</span><br><span class="line"> System.out.println(cls3.hashCode());</span><br><span class="line"> System.out.println(cls4.hashCode());</span><br><span class="line"></span><br><span class="line"> <span class="comment">//5. 基本数据(int, char,boolean,float,double,byte,long,short) 按如下方式得到Class类对象</span></span><br><span class="line"> Class<Integer> integerClass = <span class="type">int</span>.class;</span><br><span class="line"> Class<Character> characterClass = <span class="type">char</span>.class;</span><br><span class="line"> Class<Boolean> booleanClass = <span class="type">boolean</span>.class;</span><br><span class="line"> System.out.println(integerClass);<span class="comment">//int</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//6. 基本数据类型对应的包装类,可以通过 .TYPE 得到Class类对象</span></span><br><span class="line"> Class<Integer> type1 = Integer.TYPE;</span><br><span class="line"> Class<Character> type2 = Character.TYPE; <span class="comment">//其它包装类BOOLEAN, DOUBLE, LONG,BYTE等待</span></span><br><span class="line"> System.out.println(type1);</span><br><span class="line"></span><br><span class="line"> System.out.println(integerClass.hashCode());<span class="comment">//?</span></span><br><span class="line"> System.out.println(type1.hashCode());<span class="comment">//?</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="30-通过Class对象获取类的结构信息的相关方法"><a href="#30-通过Class对象获取类的结构信息的相关方法" class="headerlink" title="30.通过Class对象获取类的结构信息的相关方法"></a>30.通过Class对象获取类的结构信息的相关方法</h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.annotation.Annotation;</span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Constructor;</span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Field;</span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Method;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示如何通过反射获取类的结构信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ReflectionUtils</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//第二组方法API</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">api_02</span><span class="params">()</span> <span class="keyword">throws</span> ClassNotFoundException, NoSuchMethodException {</span><br><span class="line"> <span class="comment">//得到Class对象</span></span><br><span class="line"> Class<?> personCls = Class.forName(<span class="string">"com.hspedu.reflection.Person"</span>);</span><br><span class="line"> <span class="comment">//getDeclaredFields:获取本类中所有属性</span></span><br><span class="line"> <span class="comment">//规定 说明: 默认修饰符 是0 , public 是1 ,private 是 2 ,protected 是 4 , static 是 8 ,final 是 16</span></span><br><span class="line"> Field[] declaredFields = personCls.getDeclaredFields();</span><br><span class="line"> <span class="keyword">for</span> (Field declaredField : declaredFields) {</span><br><span class="line"> System.out.println(<span class="string">"本类中所有属性="</span> + declaredField.getName()</span><br><span class="line"> + <span class="string">" 该属性的修饰符值="</span> + declaredField.getModifiers()</span><br><span class="line"> + <span class="string">" 该属性的类型="</span> + declaredField.getType());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//getDeclaredMethods:获取本类中所有方法</span></span><br><span class="line"> Method[] declaredMethods = personCls.getDeclaredMethods();</span><br><span class="line"> <span class="keyword">for</span> (Method declaredMethod : declaredMethods) {</span><br><span class="line"> System.out.println(<span class="string">"本类中所有方法="</span> + declaredMethod.getName()</span><br><span class="line"> + <span class="string">" 该方法的访问修饰符值="</span> + declaredMethod.getModifiers()</span><br><span class="line"> + <span class="string">" 该方法返回类型"</span> + declaredMethod.getReturnType());</span><br><span class="line"></span><br><span class="line"> <span class="comment">//输出当前这个方法的形参数组情况</span></span><br><span class="line"> Class<?>[] parameterTypes = declaredMethod.getParameterTypes();</span><br><span class="line"> <span class="keyword">for</span> (Class<?> parameterType : parameterTypes) {</span><br><span class="line"> System.out.println(<span class="string">"该方法的形参类型="</span> + parameterType);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//getDeclaredConstructors:获取本类中所有构造器</span></span><br><span class="line"> Constructor<?>[] declaredConstructors = personCls.getDeclaredConstructors();</span><br><span class="line"> <span class="keyword">for</span> (Constructor<?> declaredConstructor : declaredConstructors) {</span><br><span class="line"> System.out.println(<span class="string">"===================="</span>);</span><br><span class="line"> System.out.println(<span class="string">"本类中所有构造器="</span> + declaredConstructor.getName());<span class="comment">//这里老师只是输出名</span></span><br><span class="line"></span><br><span class="line"> Class<?>[] parameterTypes = declaredConstructor.getParameterTypes();</span><br><span class="line"> <span class="keyword">for</span> (Class<?> parameterType : parameterTypes) {</span><br><span class="line"> System.out.println(<span class="string">"该构造器的形参类型="</span> + parameterType);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//第一组方法API</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">api_01</span><span class="params">()</span> <span class="keyword">throws</span> ClassNotFoundException, NoSuchMethodException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//得到Class对象</span></span><br><span class="line"> Class<?> personCls = Class.forName(<span class="string">"com.hspedu.reflection.Person"</span>);</span><br><span class="line"> <span class="comment">//getName:获取全类名</span></span><br><span class="line"> System.out.println(personCls.getName());<span class="comment">//com.hspedu.reflection.Person</span></span><br><span class="line"> <span class="comment">//getSimpleName:获取简单类名</span></span><br><span class="line"> System.out.println(personCls.getSimpleName());<span class="comment">//Person</span></span><br><span class="line"> <span class="comment">//getFields:获取所有public修饰的属性,包含本类以及父类的</span></span><br><span class="line"> Field[] fields = personCls.getFields();</span><br><span class="line"> <span class="keyword">for</span> (Field field : fields) {<span class="comment">//增强for</span></span><br><span class="line"> System.out.println(<span class="string">"本类以及父类的属性="</span> + field.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getDeclaredFields:获取本类中所有属性</span></span><br><span class="line"> Field[] declaredFields = personCls.getDeclaredFields();</span><br><span class="line"> <span class="keyword">for</span> (Field declaredField : declaredFields) {</span><br><span class="line"> System.out.println(<span class="string">"本类中所有属性="</span> + declaredField.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getMethods:获取所有public修饰的方法,包含本类以及父类的</span></span><br><span class="line"> Method[] methods = personCls.getMethods();</span><br><span class="line"> <span class="keyword">for</span> (Method method : methods) {</span><br><span class="line"> System.out.println(<span class="string">"本类以及父类的方法="</span> + method.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getDeclaredMethods:获取本类中所有方法</span></span><br><span class="line"> Method[] declaredMethods = personCls.getDeclaredMethods();</span><br><span class="line"> <span class="keyword">for</span> (Method declaredMethod : declaredMethods) {</span><br><span class="line"> System.out.println(<span class="string">"本类中所有方法="</span> + declaredMethod.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getConstructors: 获取所有public修饰的构造器,包含本类</span></span><br><span class="line"> Constructor<?>[] constructors = personCls.getConstructors();</span><br><span class="line"> <span class="keyword">for</span> (Constructor<?> constructor : constructors) {</span><br><span class="line"> System.out.println(<span class="string">"本类的构造器="</span> + constructor.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getDeclaredConstructors:获取本类中所有构造器</span></span><br><span class="line"> Constructor<?>[] declaredConstructors = personCls.getDeclaredConstructors();</span><br><span class="line"> <span class="keyword">for</span> (Constructor<?> declaredConstructor : declaredConstructors) {</span><br><span class="line"> System.out.println(<span class="string">"本类中所有构造器="</span> + declaredConstructor.getName());<span class="comment">//这里老师只是输出名</span></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getPackage:以Package形式返回 包信息</span></span><br><span class="line"> System.out.println(personCls.getPackage());<span class="comment">//com.hspedu.reflection</span></span><br><span class="line"> <span class="comment">//getSuperClass:以Class形式返回父类信息</span></span><br><span class="line"> Class<?> superclass = personCls.getSuperclass();</span><br><span class="line"> System.out.println(<span class="string">"父类的class对象="</span> + superclass);<span class="comment">//</span></span><br><span class="line"> <span class="comment">//getInterfaces:以Class[]形式返回接口信息</span></span><br><span class="line"> Class<?>[] interfaces = personCls.getInterfaces();</span><br><span class="line"> <span class="keyword">for</span> (Class<?> anInterface : interfaces) {</span><br><span class="line"> System.out.println(<span class="string">"接口信息="</span> + anInterface);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//getAnnotations:以Annotation[] 形式返回注解信息</span></span><br><span class="line"> Annotation[] annotations = personCls.getAnnotations();</span><br><span class="line"> <span class="keyword">for</span> (Annotation annotation : annotations) {</span><br><span class="line"> System.out.println(<span class="string">"注解信息="</span> + annotation);<span class="comment">//注解</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//用于举例的类、接口和方法</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">A</span> {</span><br><span class="line"> <span class="keyword">public</span> String hobby;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">hi</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">A</span><span class="params">()</span> {</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">A</span><span class="params">(String name)</span> {</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">interface</span> <span class="title class_">IA</span> {</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">interface</span> <span class="title class_">IB</span> {</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@Deprecated</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Person</span> <span class="keyword">extends</span> <span class="title class_">A</span> <span class="keyword">implements</span> <span class="title class_">IA</span>, IB {</span><br><span class="line"> <span class="comment">//属性</span></span><br><span class="line"> <span class="keyword">public</span> String name;</span><br><span class="line"> <span class="keyword">protected</span> <span class="keyword">static</span> <span class="type">int</span> age; <span class="comment">// 4 + 8 = 12</span></span><br><span class="line"> String job;</span><br><span class="line"> <span class="keyword">private</span> <span class="type">double</span> sal;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Person</span><span class="params">()</span> {</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Person</span><span class="params">(String name)</span> {</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//私有的</span></span><br><span class="line"> <span class="keyword">private</span> <span class="title function_">Person</span><span class="params">(String name, <span class="type">int</span> age)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//方法</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">m1</span><span class="params">(String name, <span class="type">int</span> age, <span class="type">double</span> sal)</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">protected</span> String <span class="title function_">m2</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">m3</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">void</span> <span class="title function_">m4</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="31-反射暴破创建实例-操作属性-操作方法"><a href="#31-反射暴破创建实例-操作属性-操作方法" class="headerlink" title="31.反射暴破创建实例/操作属性/操作方法"></a>31.反射暴破创建实例/操作属性/操作方法</h3><p>暴破创建实例</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Constructor;</span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.InvocationTargetException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示通过反射机制创建实例</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ReflecCreateInstance</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 先获取到User类的Class对象</span></span><br><span class="line"> Class<?> userClass = Class.forName(<span class="string">"com.hspedu.reflection.User"</span>);</span><br><span class="line"> <span class="comment">//2. 通过public的无参构造器创建实例</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">o</span> <span class="operator">=</span> userClass.newInstance();</span><br><span class="line"> System.out.println(o);</span><br><span class="line"> <span class="comment">//3. 通过public的有参构造器创建实例</span></span><br><span class="line"> <span class="comment">/*</span></span><br><span class="line"><span class="comment"> constructor 对象就是</span></span><br><span class="line"><span class="comment"> public User(String name) {//public的有参构造器</span></span><br><span class="line"><span class="comment"> this.name = name;</span></span><br><span class="line"><span class="comment"> }</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="comment">//3.1 先得到对应构造器</span></span><br><span class="line"> Constructor<?> constructor = userClass.getConstructor(String.class);</span><br><span class="line"> <span class="comment">//3.2 创建实例,并传入实参</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">hsp</span> <span class="operator">=</span> constructor.newInstance(<span class="string">"hsp"</span>);</span><br><span class="line"> System.out.println(<span class="string">"hsp="</span> + hsp);</span><br><span class="line"> <span class="comment">//4. 通过非public的有参构造器创建实例</span></span><br><span class="line"> <span class="comment">//4.1 得到private的构造器对象</span></span><br><span class="line"> Constructor<?> constructor1 = userClass.getDeclaredConstructor(<span class="type">int</span>.class, String.class);</span><br><span class="line"> <span class="comment">//4.2 创建实例</span></span><br><span class="line"> <span class="comment">//暴破【暴力破解】 , 使用反射可以访问private构造器/方法/属性, 反射面前,都是纸老虎</span></span><br><span class="line"> constructor1.setAccessible(<span class="literal">true</span>);</span><br><span class="line"> <span class="type">Object</span> <span class="variable">user2</span> <span class="operator">=</span> constructor1.newInstance(<span class="number">100</span>, <span class="string">"张三丰"</span>);</span><br><span class="line"> System.out.println(<span class="string">"user2="</span> + user2);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">User</span> { <span class="comment">//User类</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> <span class="variable">age</span> <span class="operator">=</span> <span class="number">10</span>;</span><br><span class="line"> <span class="keyword">private</span> <span class="type">String</span> <span class="variable">name</span> <span class="operator">=</span> <span class="string">"韩顺平教育"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">User</span><span class="params">()</span> {<span class="comment">//无参 public</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">User</span><span class="params">(String name)</span> {<span class="comment">//public的有参构造器</span></span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="title function_">User</span><span class="params">(<span class="type">int</span> age, String name)</span> {<span class="comment">//private 有参构造器</span></span><br><span class="line"> <span class="built_in">this</span>.age = age;</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"User [age="</span> + age + <span class="string">", name="</span> + name + <span class="string">"]"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>暴破操作属性</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Field;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示反射操作属性</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ReflecAccessProperty</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchFieldException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 得到Student类对应的 Class对象</span></span><br><span class="line"> Class<?> stuClass = Class.forName(<span class="string">"com.hspedu.reflection.Student"</span>);</span><br><span class="line"> <span class="comment">//2. 创建对象</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">o</span> <span class="operator">=</span> stuClass.newInstance();<span class="comment">//o 的运行类型就是Student</span></span><br><span class="line"> System.out.println(o.getClass());<span class="comment">//Student</span></span><br><span class="line"> <span class="comment">//3. 使用反射得到age 属性对象</span></span><br><span class="line"> <span class="type">Field</span> <span class="variable">age</span> <span class="operator">=</span> stuClass.getField(<span class="string">"age"</span>);</span><br><span class="line"> age.set(o, <span class="number">88</span>);<span class="comment">//通过反射来操作属性</span></span><br><span class="line"> System.out.println(o);<span class="comment">//</span></span><br><span class="line"> System.out.println(age.get(o));<span class="comment">//返回age属性的值</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//4. 使用反射操作name 属性</span></span><br><span class="line"> <span class="type">Field</span> <span class="variable">name</span> <span class="operator">=</span> stuClass.getDeclaredField(<span class="string">"name"</span>);</span><br><span class="line"> <span class="comment">//对name 进行暴破, 可以操作private 属性</span></span><br><span class="line"> name.setAccessible(<span class="literal">true</span>);</span><br><span class="line"> <span class="comment">//name.set(o, "老韩");</span></span><br><span class="line"> name.set(<span class="literal">null</span>, <span class="string">"老韩~"</span>);<span class="comment">//因为name是static属性,因此 o 也可以写出null</span></span><br><span class="line"> System.out.println(o);</span><br><span class="line"> System.out.println(name.get(o)); <span class="comment">//获取属性值</span></span><br><span class="line"> System.out.println(name.get(<span class="literal">null</span>));<span class="comment">//获取属性值, 要求name是static</span></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Student</span> {<span class="comment">//类</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> age;</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> String name;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Student</span><span class="params">()</span> {<span class="comment">//构造器</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"Student [age="</span> + age + <span class="string">", name="</span> + name + <span class="string">"]"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>暴破操作方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.hspedu.reflection;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.InvocationTargetException;</span><br><span class="line"><span class="keyword">import</span> java.lang.reflect.Method;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> 韩顺平</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * 演示通过反射调用方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ReflecAccessMethod</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> <span class="keyword">throws</span> ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//1. 得到Boss类对应的Class对象</span></span><br><span class="line"> Class<?> bossCls = Class.forName(<span class="string">"com.hspedu.reflection.Boss"</span>);</span><br><span class="line"> <span class="comment">//2. 创建对象</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">o</span> <span class="operator">=</span> bossCls.newInstance();</span><br><span class="line"> <span class="comment">//3. 调用public的hi方法</span></span><br><span class="line"> <span class="comment">//Method hi = bossCls.getMethod("hi", String.class);//OK</span></span><br><span class="line"> <span class="comment">//3.1 得到hi方法对象</span></span><br><span class="line"> <span class="type">Method</span> <span class="variable">hi</span> <span class="operator">=</span> bossCls.getDeclaredMethod(<span class="string">"hi"</span>, String.class);<span class="comment">//OK</span></span><br><span class="line"> <span class="comment">//3.2 调用</span></span><br><span class="line"> hi.invoke(o, <span class="string">"韩顺平教育~"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//4. 调用private static 方法</span></span><br><span class="line"> <span class="comment">//4.1 得到 say 方法对象</span></span><br><span class="line"> <span class="type">Method</span> <span class="variable">say</span> <span class="operator">=</span> bossCls.getDeclaredMethod(<span class="string">"say"</span>, <span class="type">int</span>.class, String.class, <span class="type">char</span>.class);</span><br><span class="line"> <span class="comment">//4.2 因为say方法是private, 所以需要暴破,原理和前面讲的构造器和属性一样</span></span><br><span class="line"> say.setAccessible(<span class="literal">true</span>);</span><br><span class="line"> System.out.println(say.invoke(o, <span class="number">100</span>, <span class="string">"张三"</span>, <span class="string">'男'</span>));</span><br><span class="line"> <span class="comment">//4.3 因为say方法是static的,还可以这样调用 ,可以传入null</span></span><br><span class="line"> System.out.println(say.invoke(<span class="literal">null</span>, <span class="number">200</span>, <span class="string">"李四"</span>, <span class="string">'女'</span>));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//5. 在反射中,如果方法有返回值,统一返回Object , 但是他运行类型和方法定义的返回类型一致</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">reVal</span> <span class="operator">=</span> say.invoke(<span class="literal">null</span>, <span class="number">300</span>, <span class="string">"王五"</span>, <span class="string">'男'</span>);</span><br><span class="line"> System.out.println(<span class="string">"reVal 的运行类型="</span> + reVal.getClass());<span class="comment">//String</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//在演示一个返回的案例</span></span><br><span class="line"> <span class="type">Method</span> <span class="variable">m1</span> <span class="operator">=</span> bossCls.getDeclaredMethod(<span class="string">"m1"</span>);</span><br><span class="line"> <span class="type">Object</span> <span class="variable">reVal2</span> <span class="operator">=</span> m1.invoke(o);</span><br><span class="line"> System.out.println(<span class="string">"reVal2的运行类型="</span> + reVal2.getClass());<span class="comment">//Monster</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Monster</span> {}</span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Boss</span> {<span class="comment">//类</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> age;</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> String name;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Boss</span><span class="params">()</span> {<span class="comment">//构造器</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> Monster <span class="title function_">m1</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">Monster</span>();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> String <span class="title function_">say</span><span class="params">(<span class="type">int</span> n, String s, <span class="type">char</span> c)</span> {<span class="comment">//静态方法</span></span><br><span class="line"> <span class="keyword">return</span> n + <span class="string">" "</span> + s + <span class="string">" "</span> + c;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">hi</span><span class="params">(String s)</span> {<span class="comment">//普通public方法</span></span><br><span class="line"> System.out.println(<span class="string">"hi "</span> + s);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id=""><a href="#" class="headerlink" title=""></a></h2>]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>Java</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>项目实战-黑马头条</title>
|
||
<url>/posts/64695.html</url>
|
||
<content><![CDATA[<div class="note success flat"><p>本项目基于黑马程序员黑马头条项目,编写此文档的目的是锻炼文档编写能力,完整正确的项目文档请关注黑马程序员!</p>
|
||
<p>项目文档或有欠缺,不对项目文档的完整性负责!</p>
|
||
</div>
|
||
|
||
<h1 id="一-项目介绍"><a href="#一-项目介绍" class="headerlink" title="一.项目介绍"></a>一.项目介绍</h1><h2 id="1-项目概述"><a href="#1-项目概述" class="headerlink" title="1.项目概述"></a>1.项目概述</h2><p> 随着智能手机的普及,人们更加习惯于通过手机来看新闻。由于生活节奏的加快,很多人只能利用碎片时间来获取信息,因此,对于移动资讯客户端的需求也越来越高。黑马头条项目正是在这样背景下开发出来。黑马头条项目采用当下火热的微服务+大数据技术架构实现。本项目主要着手于获取最新最热新闻资讯,通过大数据分析用户喜好精确推送咨询新闻。</p>
|
||
<p><img src="/pictures/image-20230810153039562.png" alt="image-20230810153039562"></p>
|
||
<h2 id="2-业务说明"><a href="#2-业务说明" class="headerlink" title="2.业务说明"></a>2.业务说明</h2><p><strong>功能架构图</strong></p>
|
||
<p><img src="/pictures/image-20230810153700690.png" alt="image-20230810153700690"></p>
|
||
<h2 id="3-技术栈"><a href="#3-技术栈" class="headerlink" title="3.技术栈"></a>3.技术栈</h2><ul>
|
||
<li>Spring-Cloud-Gateway : 微服务之前架设的网关服务,实现服务注册中的API请求路由,以及控制流速控制和熔断处理都是常用的架构手段,而这些功能Gateway天然支持</li>
|
||
<li>运用Spring Boot快速开发框架,构建项目工程;并结合Spring Cloud全家桶技术,实现后端个人中心、自媒体、管理中心等微服务。</li>
|
||
<li>运用Spring Cloud Alibaba Nacos作为项目中的注册中心和配置中心</li>
|
||
<li>运用mybatis-plus作为持久层提升开发效率</li>
|
||
<li>运用Kafka完成内部系统消息通知;与客户端系统消息通知;以及实时数据计算</li>
|
||
<li>运用Redis缓存技术,实现热数据的计算,提升系统性能指标</li>
|
||
<li>使用Mysql存储用户数据,以保证上层数据查询的高性能</li>
|
||
<li>使用Mongo存储用户热数据,以保证用户热数据高扩展和高性能指标</li>
|
||
<li>使用FastDFS作为静态资源存储器,在其上实现热静态资源缓存、淘汰等功能</li>
|
||
<li>运用Hbase技术,存储系统中的冷数据,保证系统数据的可靠性</li>
|
||
<li>运用ES搜索技术,对冷数据、文章数据建立索引,以保证冷数据、文章查询性能</li>
|
||
<li>运用AI技术,来完成系统自动化功能,以提升效率及节省成本。比如实名认证自动化</li>
|
||
<li>PMD&P3C : 静态代码扫描工具,在项目中扫描项目代码,检查异常点、优化点、代码规范等,为开发团队提供规范统一,提升项目代码质量</li>
|
||
</ul>
|
||
<p><strong>技术栈</strong></p>
|
||
<p><img src="/pictures/image-20230809170653756.png" alt="image-20230809170653756"></p>
|
||
<p><strong>解决方案</strong></p>
|
||
<p><img src="/pictures/image-20230809170929986.png" alt="image-20230809170929986"></p>
|
||
<h1 id="二-环境搭建"><a href="#二-环境搭建" class="headerlink" title="二.环境搭建"></a>二.环境搭建</h1><h2 id="1-Linxu环境的搭建"><a href="#1-Linxu环境的搭建" class="headerlink" title="1.Linxu环境的搭建"></a>1.Linxu环境的搭建</h2><h3 id="1-1-虚拟机的安装"><a href="#1-1-虚拟机的安装" class="headerlink" title="1.1 虚拟机的安装"></a>1.1 虚拟机的安装</h3><p><strong>1.解压分享的虚拟机镜像文件</strong></p>
|
||
<p><img src="/pictures/image-20230811103629846.png" alt="image-20230811103629846"></p>
|
||
<p><strong>2.使用VmWare打开.vmx文件</strong><br><img src="/pictures/image-20230811103800217.png" alt="image-20230811103800217"></p>
|
||
<p><strong>3.配置虚拟机的网络环境</strong></p>
|
||
<p><img src="/pictures/image-20230811104150226.png" alt="image-20230811104150226"></p>
|
||
<p><img src="/pictures/image-20230811104320075.png" alt="image-20230811104320075"></p>
|
||
<p><strong>4.开启虚拟机</strong></p>
|
||
<p><img src="/pictures/image-20230811104523506.png" alt="image-20230811104523506"></p>
|
||
<p><strong>5.使用FinalShell连接此虚拟机</strong></p>
|
||
<p>用户名: root 密码:root IP地址: 192.168.200.130</p>
|
||
<p><img src="/pictures/image-20230811104741394.png" alt="image-20230811104741394"></p>
|
||
<h3 id="1-2-Linux软件安装"><a href="#1-2-Linux软件安装" class="headerlink" title="1.2 Linux软件安装"></a>1.2 Linux软件安装</h3><p><strong><a href="https://jasonsgong.gitee.io/posts/20683.html">Linux中开发环境的搭建 | The Blog (gitee.io)</a></strong></p>
|
||
<h2 id="2-开发环境的配置"><a href="#2-开发环境的配置" class="headerlink" title="2.开发环境的配置"></a>2.开发环境的配置</h2><h3 id="2-1-项目依赖的环境"><a href="#2-1-项目依赖的环境" class="headerlink" title="2.1 项目依赖的环境"></a>2.1 项目依赖的环境</h3><ul>
|
||
<li><p><strong>JDK1.8</strong></p>
|
||
</li>
|
||
<li><p><strong>Intellij Idea</strong></p>
|
||
</li>
|
||
<li><p><strong>maven-3.6.1</strong></p>
|
||
</li>
|
||
<li><p><strong>Git</strong></p>
|
||
</li>
|
||
</ul>
|
||
<h3 id="2-2-后端工程的搭建"><a href="#2-2-后端工程的搭建" class="headerlink" title="2.2 后端工程的搭建"></a>2.2 后端工程的搭建</h3><p><img src="/pictures/image-20230811160530674.png" alt="image-20230811160530674"></p>
|
||
<p>解压heima-leadnews.zip文件并用IDEA工具打开</p>
|
||
<p><img src="/pictures/image-20230811152915886.png" alt="image-20230811152915886"></p>
|
||
<p>编码格式的设置</p>
|
||
<p><img src="/pictures/image-20230811154426723.png" alt="image-20230811154426723"></p>
|
||
<h1 id="三-app端功能开发"><a href="#三-app端功能开发" class="headerlink" title="三.app端功能开发"></a>三.app端功能开发</h1><h2 id="1-app登录"><a href="#1-app登录" class="headerlink" title="1.app登录"></a>1.app登录</h2><p>登录相关的表结构</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>表名称</strong></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>ap_user</td>
|
||
<td>APP用户信息表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_user_fan</td>
|
||
<td>APP用户粉丝信息表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_user_follow</td>
|
||
<td>APP用户关注信息表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_user_realname</td>
|
||
<td>APP实名认证信息表</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p>ap_user表对应的实体类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.user.pojos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.IdType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * APP用户信息表</span></span><br><span class="line"><span class="comment"> * </p></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("ap_user")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ApUser</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 主键</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId(value = "id", type = IdType.AUTO)</span></span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 密码、通信等加密盐</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("salt")</span></span><br><span class="line"> <span class="keyword">private</span> String salt;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 用户名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("name")</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 密码,md5加密</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("password")</span></span><br><span class="line"> <span class="keyword">private</span> String password;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 手机号</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("phone")</span></span><br><span class="line"> <span class="keyword">private</span> String phone;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 头像</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("image")</span></span><br><span class="line"> <span class="keyword">private</span> String image;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 0 男</span></span><br><span class="line"><span class="comment"> 1 女</span></span><br><span class="line"><span class="comment"> 2 未知</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("sex")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean sex;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 0 未</span></span><br><span class="line"><span class="comment"> 1 是</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("is_certification")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean certification;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否身份认证</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("is_identity_authentication")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean identityAuthentication;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 0正常</span></span><br><span class="line"><span class="comment"> 1锁定</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("status")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean status;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 0 普通用户</span></span><br><span class="line"><span class="comment"> 1 自媒体人</span></span><br><span class="line"><span class="comment"> 2 大V</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("flag")</span></span><br><span class="line"> <span class="keyword">private</span> Short flag;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 注册时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("created_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date createdTime;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-1-用户登录逻辑"><a href="#1-1-用户登录逻辑" class="headerlink" title="1.1 用户登录逻辑"></a>1.1 用户登录逻辑</h3><p><strong>注册加盐的过程</strong></p>
|
||
<p> 用户在登录的时候会生成一个随机的字符串(salt),这个随机的字符串会加到密码后面然后连同密码加密存储到数据库。</p>
|
||
<p><img src="/pictures/image-20230811165505210.png" alt="image-20230811165505210"></p>
|
||
<p><strong>登录加盐的过程</strong></p>
|
||
<p> 先根据账号查询是否存在该用户,如果存在的话,根据用户输入的密码和数据库中的salt进行md5加密,并和数据库中的密码比对,一致的话,比对通过,不一样的话不通过。</p>
|
||
<p><img src="/pictures/image-20230811165808912.png" alt="image-20230811165808912"></p>
|
||
<h3 id="1-2-用户模块搭建"><a href="#1-2-用户模块搭建" class="headerlink" title="1.2 用户模块搭建"></a>1.2 用户模块搭建</h3><p>heima-leadnews-service父工程依赖文件</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">project</span> <span class="attr">xmlns</span>=<span class="string">"http://maven.apache.org/POM/4.0.0"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-leadnews<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">packaging</span>></span>pom<span class="tag"></<span class="name">packaging</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">modules</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">module</span>></span>heima-leadnews-user<span class="tag"></<span class="name">module</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">modules</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">modelVersion</span>></span>4.0.0<span class="tag"></<span class="name">modelVersion</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-leadnews-service<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maven.compiler.source</span>></span>8<span class="tag"></<span class="name">maven.compiler.source</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">maven.compiler.target</span>></span>8<span class="tag"></<span class="name">maven.compiler.target</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">properties</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="comment"><!-- 数据模型子模块 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-leadnews-model<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 公共子模块 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-leadnews-common<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 远程调用子模块 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-leadnews-feign-api<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Spring Boot Web starter --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Spring Boot Test测试 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Nacos注册中心 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-discovery<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Nacos配置中心 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-config<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Feign远程调用客户端 --></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-openfeign<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependencies</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">project</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<ol>
|
||
<li><p>创建子模块并创建出对应的目录结构</p>
|
||
<p>在heima-leadnews-service父工程下创建工程heima-leadnews-user</p>
|
||
<p><img src="/pictures/image-20230812172036450.png" alt="image-20230812172036450"></p>
|
||
</li>
|
||
<li><p>编写用户模块的配置文件</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">51801</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">leadnews-user</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">nacos:</span></span><br><span class="line"> <span class="attr">discovery:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">192.168</span><span class="number">.200</span><span class="number">.130</span><span class="string">:8848</span></span><br><span class="line"> <span class="attr">config:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">192.168</span><span class="number">.200</span><span class="number">.130</span><span class="string">:8848</span></span><br><span class="line"> <span class="attr">file-extension:</span> <span class="string">yml</span></span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>在配置中心中添加数据库等相关的配置</p>
|
||
<p><img src="/pictures/image-20230812173024036.png" alt="image-20230812173024036"></p>
|
||
</li>
|
||
<li><p>在resources目录下添加日志的配置文件</p>
|
||
<p>logback.xml</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">configuration</span>></span></span><br><span class="line"> <span class="comment"><!--定义日志文件的存储地址,使用绝对路径--></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"LOG_HOME"</span> <span class="attr">value</span>=<span class="string">"e:/logs"</span>/></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- Console 输出设置 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"CONSOLE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.ConsoleAppender"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="comment"><!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符--></span></span><br><span class="line"> <span class="tag"><<span class="name">pattern</span>></span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n<span class="tag"></<span class="name">pattern</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">charset</span>></span>utf8<span class="tag"></<span class="name">charset</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 按照每天生成日志文件 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"FILE"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.RollingFileAppender"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">rollingPolicy</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span>></span></span><br><span class="line"> <span class="comment"><!--日志文件输出的文件名--></span></span><br><span class="line"> <span class="tag"><<span class="name">fileNamePattern</span>></span>${LOG_HOME}/leadnews.%d{yyyy-MM-dd}.log<span class="tag"></<span class="name">fileNamePattern</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">rollingPolicy</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">pattern</span>></span>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n<span class="tag"></<span class="name">pattern</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">encoder</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 异步输出 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender</span> <span class="attr">name</span>=<span class="string">"ASYNC"</span> <span class="attr">class</span>=<span class="string">"ch.qos.logback.classic.AsyncAppender"</span>></span></span><br><span class="line"> <span class="comment"><!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 --></span></span><br><span class="line"> <span class="tag"><<span class="name">discardingThreshold</span>></span>0<span class="tag"></<span class="name">discardingThreshold</span>></span></span><br><span class="line"> <span class="comment"><!-- 更改默认的队列的深度,该值会影响性能.默认值为256 --></span></span><br><span class="line"> <span class="tag"><<span class="name">queueSize</span>></span>512<span class="tag"></<span class="name">queueSize</span>></span></span><br><span class="line"> <span class="comment"><!-- 添加附加的appender,最多只能添加一个 --></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"FILE"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">appender</span>></span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">logger</span> <span class="attr">name</span>=<span class="string">"org.apache.ibatis.cache.decorators.LoggingCache"</span> <span class="attr">level</span>=<span class="string">"DEBUG"</span> <span class="attr">additivity</span>=<span class="string">"false"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"CONSOLE"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">logger</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">logger</span> <span class="attr">name</span>=<span class="string">"org.springframework.boot"</span> <span class="attr">level</span>=<span class="string">"debug"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">root</span> <span class="attr">level</span>=<span class="string">"info"</span>></span></span><br><span class="line"> <span class="comment"><!--<appender-ref ref="ASYNC"/>--></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"FILE"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">appender-ref</span> <span class="attr">ref</span>=<span class="string">"CONSOLE"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">root</span>></span></span><br><span class="line"><span class="tag"></<span class="name">configuration</span>></span></span><br></pre></td></tr></table></figure></li>
|
||
</ol>
|
||
<p><strong>遇到的问题:</strong></p>
|
||
<ol>
|
||
<li><p>问题一:引入@EnableDiscoveryClient注解的时候爆红</p>
|
||
<p>解决方案:在heima-leadnews-service父工程下加入如下的注解</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- Feign远程调用客户端 --></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-openfeign<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure></li>
|
||
</ol>
|
||
<h3 id="1-3-登录功能实现"><a href="#1-3-登录功能实现" class="headerlink" title="1.3 登录功能实现"></a>1.3 登录功能实现</h3><h4 id="1-3-1-接口定义"><a href="#1-3-1-接口定义" class="headerlink" title="1.3.1 接口定义"></a>1.3.1 接口定义</h4><table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>接口路径</strong></th>
|
||
<th>/api/v1/login/login_auth</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>LoginDto</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p>LoginDto </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">LoginDto</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 手机号</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ApiModelProperty(value = "手机号",required = true)</span></span><br><span class="line"> <span class="keyword">private</span> String phone;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 密码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ApiModelProperty(value = "密码",required = true)</span></span><br><span class="line"> <span class="keyword">private</span> String password;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>统一返回结果类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.common.dtos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.fastjson.JSON;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.enums.AppHttpCodeEnum;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 通用的结果返回类</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> <T></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ResponseResult</span><T> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String host;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Integer code;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String errorMessage;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> T data;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ResponseResult</span><span class="params">()</span> {</span><br><span class="line"> <span class="built_in">this</span>.code = <span class="number">200</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ResponseResult</span><span class="params">(Integer code, T data)</span> {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ResponseResult</span><span class="params">(Integer code, String msg, T data)</span> {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.errorMessage = msg;</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ResponseResult</span><span class="params">(Integer code, String msg)</span> {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.errorMessage = msg;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">errorResult</span><span class="params">(<span class="type">int</span> code, String msg)</span> {</span><br><span class="line"> <span class="type">ResponseResult</span> <span class="variable">result</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ResponseResult</span>();</span><br><span class="line"> <span class="keyword">return</span> result.error(code, msg);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">okResult</span><span class="params">(<span class="type">int</span> code, String msg)</span> {</span><br><span class="line"> <span class="type">ResponseResult</span> <span class="variable">result</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ResponseResult</span>();</span><br><span class="line"> <span class="keyword">return</span> result.ok(code, <span class="literal">null</span>, msg);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">okResult</span><span class="params">(Object data)</span> {</span><br><span class="line"> <span class="type">ResponseResult</span> <span class="variable">result</span> <span class="operator">=</span> setAppHttpCodeEnum(AppHttpCodeEnum.SUCCESS, AppHttpCodeEnum.SUCCESS.getErrorMessage());</span><br><span class="line"> <span class="keyword">if</span>(data!=<span class="literal">null</span>) {</span><br><span class="line"> result.setData(data);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">errorResult</span><span class="params">(AppHttpCodeEnum enums)</span>{</span><br><span class="line"> <span class="keyword">return</span> setAppHttpCodeEnum(enums,enums.getErrorMessage());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">errorResult</span><span class="params">(AppHttpCodeEnum enums, String errorMessage)</span>{</span><br><span class="line"> <span class="keyword">return</span> setAppHttpCodeEnum(enums,errorMessage);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> ResponseResult <span class="title function_">setAppHttpCodeEnum</span><span class="params">(AppHttpCodeEnum enums)</span>{</span><br><span class="line"> <span class="keyword">return</span> okResult(enums.getCode(),enums.getErrorMessage());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> ResponseResult <span class="title function_">setAppHttpCodeEnum</span><span class="params">(AppHttpCodeEnum enums, String errorMessage)</span>{</span><br><span class="line"> <span class="keyword">return</span> okResult(enums.getCode(),errorMessage);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<?> error(Integer code, String msg) {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.errorMessage = msg;</span><br><span class="line"> <span class="keyword">return</span> <span class="built_in">this</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<?> ok(Integer code, T data) {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> <span class="keyword">return</span> <span class="built_in">this</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<?> ok(Integer code, T data, String msg) {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> <span class="built_in">this</span>.errorMessage = msg;</span><br><span class="line"> <span class="keyword">return</span> <span class="built_in">this</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<?> ok(T data) {</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> <span class="keyword">return</span> <span class="built_in">this</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> Integer <span class="title function_">getCode</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> code;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setCode</span><span class="params">(Integer code)</span> {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">getErrorMessage</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> errorMessage;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setErrorMessage</span><span class="params">(String errorMessage)</span> {</span><br><span class="line"> <span class="built_in">this</span>.errorMessage = errorMessage;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> T <span class="title function_">getData</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> data;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setData</span><span class="params">(T data)</span> {</span><br><span class="line"> <span class="built_in">this</span>.data = data;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">getHost</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> host;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setHost</span><span class="params">(String host)</span> {</span><br><span class="line"> <span class="built_in">this</span>.host = host;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//前置</span></span><br><span class="line"> <span class="comment">/*AppHttpCodeEnum success = AppHttpCodeEnum.SUCCESS;</span></span><br><span class="line"><span class="comment"> System.out.println(success.getCode());</span></span><br><span class="line"><span class="comment"> System.out.println(success.getErrorMessage());*/</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//查询一个对象</span></span><br><span class="line"> <span class="comment">/*Map map = new HashMap();</span></span><br><span class="line"><span class="comment"> map.put("name","zhangsan");</span></span><br><span class="line"><span class="comment"> map.put("age",18);</span></span><br><span class="line"><span class="comment"> ResponseResult result = ResponseResult.okResult(map);</span></span><br><span class="line"><span class="comment"> System.out.println(JSON.toJSONString(result));*/</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//新增,修改,删除 在项目中统一返回成功即可</span></span><br><span class="line"> <span class="comment">/* ResponseResult result = ResponseResult.errorResult(AppHttpCodeEnum.SUCCESS);</span></span><br><span class="line"><span class="comment"> System.out.println(JSON.toJSONString(result));*/</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//根据不用的业务返回不同的提示信息 比如:当前操作需要登录、参数错误</span></span><br><span class="line"> <span class="comment">/*ResponseResult result = ResponseResult.errorResult(AppHttpCodeEnum.NEED_LOGIN);</span></span><br><span class="line"><span class="comment"> System.out.println(JSON.toJSONString(result));*/</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//查询分页信息</span></span><br><span class="line"> <span class="type">PageResponseResult</span> <span class="variable">responseResult</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PageResponseResult</span>(<span class="number">1</span>,<span class="number">5</span>,<span class="number">50</span>);</span><br><span class="line"> <span class="type">List</span> <span class="variable">list</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span>();</span><br><span class="line"> list.add(<span class="string">"itcast"</span>);</span><br><span class="line"> list.add(<span class="string">"itheima"</span>);</span><br><span class="line"> responseResult.setData(list);</span><br><span class="line"> System.out.println(JSON.toJSONString(responseResult));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-3-2-登录思路分析"><a href="#1-3-2-登录思路分析" class="headerlink" title="1.3.2 登录思路分析"></a>1.3.2 登录思路分析</h4><p><img src="/pictures/image-20230812180918302.png" alt="image-20230812180918302"></p>
|
||
<h4 id="1-3-3-登录关键代码实现"><a href="#1-3-3-登录关键代码实现" class="headerlink" title="1.3.3 登录关键代码实现"></a>1.3.3 登录关键代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.user.service.impl;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.toolkit.Wrappers;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.dtos.ResponseResult;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.enums.AppHttpCodeEnum;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.user.dtos.LoginDto;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.user.pojos.ApUser;</span><br><span class="line"><span class="keyword">import</span> com.heima.user.mapper.ApUserMapper;</span><br><span class="line"><span class="keyword">import</span> com.heima.user.service.ApUserService;</span><br><span class="line"><span class="keyword">import</span> com.heima.utils.common.AppJwtUtil;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.apache.commons.lang3.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"><span class="keyword">import</span> org.springframework.transaction.annotation.Transactional;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.DigestUtils;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/12</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ApUserServiceImpl</span> <span class="keyword">extends</span> <span class="title class_">ServiceImpl</span><ApUserMapper, ApUser> <span class="keyword">implements</span> <span class="title class_">ApUserService</span> {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult <span class="title function_">login</span><span class="params">(LoginDto loginDto)</span> {</span><br><span class="line"> <span class="comment">//1 正常的登录 用户名和密码</span></span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isNotBlank(loginDto.getPhone()) && StringUtils.isNotBlank(loginDto.getPassword())) {</span><br><span class="line"> <span class="comment">//1.1 根据手机号查询用户的信息</span></span><br><span class="line"> <span class="type">ApUser</span> <span class="variable">dbUser</span> <span class="operator">=</span> getOne(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><ApUser>().eq(ApUser::getPhone, loginDto.getPhone()));</span><br><span class="line"> <span class="keyword">if</span>(dbUser == <span class="literal">null</span>){</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST,<span class="string">"用户信息不存在"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">salt</span> <span class="operator">=</span> dbUser.getSalt();</span><br><span class="line"> <span class="type">String</span> <span class="variable">password</span> <span class="operator">=</span> loginDto.getPassword();</span><br><span class="line"> <span class="type">String</span> <span class="variable">pwd</span> <span class="operator">=</span> DigestUtils.md5DigestAsHex((password + salt).getBytes());</span><br><span class="line"> <span class="comment">//1.2 比对密码</span></span><br><span class="line"> <span class="keyword">if</span>(!pwd.equals(dbUser.getPassword())){</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.errorResult(AppHttpCodeEnum.LOGIN_PASSWORD_ERROR);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//1.3 生成token</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">token</span> <span class="operator">=</span> AppJwtUtil.getToken(dbUser.getId().longValue());</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"token"</span>,token);</span><br><span class="line"> dbUser.setSalt(<span class="string">""</span>);</span><br><span class="line"> dbUser.setPassword(<span class="string">""</span>);</span><br><span class="line"> map.put(<span class="string">"user"</span>,dbUser);</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.okResult(map);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//2.游客登录</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">token</span> <span class="operator">=</span> AppJwtUtil.getToken(<span class="number">0L</span>);</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"token"</span>,token);</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.okResult(map);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-3-4-使用接口工具测试"><a href="#1-3-4-使用接口工具测试" class="headerlink" title="1.3.4 使用接口工具测试"></a>1.3.4 使用接口工具测试</h4><p>接口测试工具使用教程:<a href="https://jasonsgong.gitee.io/posts/35630.html">https://jasonsgong.gitee.io/posts/35630.html</a></p>
|
||
<p><img src="/pictures/image-20230813165436808.png" alt="image-20230813165436808"></p>
|
||
<h2 id="2-app端网关搭建"><a href="#2-app端网关搭建" class="headerlink" title="2. app端网关搭建"></a>2. app端网关搭建</h2><p>网关的概述</p>
|
||
<p><img src="/pictures/image-20230814142355139.png" alt="image-20230814142355139"></p>
|
||
<p>项目中搭建的网关</p>
|
||
<p><img src="/pictures/image-20230814142700349.png" alt="image-20230814142700349"></p>
|
||
<h3 id="2-1-搭建过程"><a href="#2-1-搭建过程" class="headerlink" title="2.1 搭建过程"></a>2.1 搭建过程</h3><p><strong>1.在heima-leadnews-gateway导入以下依赖</strong></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-gateway<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-discovery<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-config<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.jsonwebtoken<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jjwt<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.创建网关的模块</strong></p>
|
||
<p><img src="/pictures/image-20230814143113564.png" alt="image-20230814143113564"></p>
|
||
<p><strong>3.创建启动类和bootstrap.yml配置文件</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@EnableDiscoveryClient</span></span><br><span class="line"><span class="meta">@SpringBootApplication</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AppGatewayApplication</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> SpringApplication.run(AppGatewayApplication.class,args);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">51601</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">leadnews-app-gateway</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">nacos:</span></span><br><span class="line"> <span class="attr">discovery:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">192.168</span><span class="number">.200</span><span class="number">.130</span><span class="string">:8848</span></span><br><span class="line"> <span class="attr">config:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">192.168</span><span class="number">.200</span><span class="number">.130</span><span class="string">:8848</span></span><br><span class="line"> <span class="attr">file-extension:</span> <span class="string">yml</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>4.在nacos中创建app端网关的配置</strong></p>
|
||
<p><img src="/pictures/image-20230814143939252.png" alt="image-20230814143939252"></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">globalcors:</span></span><br><span class="line"> <span class="attr">add-to-simple-url-handler-mapping:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">corsConfigurations:</span></span><br><span class="line"> <span class="string">'[/**]'</span><span class="string">:</span></span><br><span class="line"> <span class="attr">allowedHeaders:</span> <span class="string">"*"</span></span><br><span class="line"> <span class="attr">allowedOrigins:</span> <span class="string">"*"</span></span><br><span class="line"> <span class="attr">allowedMethods:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">GET</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">POST</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DELETE</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUT</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">OPTION</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment"># 平台管理</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">user</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://leadnews-user</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/user/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">StripPrefix=</span> <span class="number">1</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>5.使用Postman测试网关</strong></p>
|
||
<p><a href="http://localhost:51601/user/api/v1/login/login_auth">http://localhost:51601/user/api/v1/login/login_auth</a></p>
|
||
<p><img src="/pictures/image-20230814144314358.png" alt="image-20230814144314358"></p>
|
||
<h3 id="2-2-全局过滤器实现jwt校验"><a href="#2-2-全局过滤器实现jwt校验" class="headerlink" title="2.2 全局过滤器实现jwt校验"></a>2.2 全局过滤器实现jwt校验</h3><p>网关的过滤流程</p>
|
||
<p><img src="/pictures/image-20230814144806282.png" alt="image-20230814144806282"></p>
|
||
<p>思路分析:</p>
|
||
<ol>
|
||
<li>用户进入网关开始登陆,网关过滤器进行判断,如果是登录,则路由到后台管理微服务进行登录</li>
|
||
<li>用户登录成功,后台管理微服务签发JWT TOKEN信息返回给用户</li>
|
||
<li>用户再次进入网关开始访问,网关过滤器接收用户携带的TOKEN </li>
|
||
<li>网关过滤器解析TOKEN ,判断是否有权限,如果有,则放行,如果没有则返回未认证错误</li>
|
||
</ol>
|
||
<p><strong>JWT认证的过滤器</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 权限认证的过滤器</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AuthorizeFilter</span> <span class="keyword">implements</span> <span class="title class_">Ordered</span>, GlobalFilter {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 过滤的设置</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Mono<Void> <span class="title function_">filter</span><span class="params">(ServerWebExchange exchange, GatewayFilterChain chain)</span> {</span><br><span class="line"> <span class="comment">//1.获取request和response对象</span></span><br><span class="line"> <span class="type">ServerHttpRequest</span> <span class="variable">request</span> <span class="operator">=</span> exchange.getRequest();</span><br><span class="line"> <span class="type">ServerHttpResponse</span> <span class="variable">response</span> <span class="operator">=</span> exchange.getResponse();</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.判断是否登录</span></span><br><span class="line"> <span class="comment">//通过请求的路径的url判断</span></span><br><span class="line"> <span class="keyword">if</span> (request.getURI().getPath().contains(<span class="string">"/login"</span>)) {</span><br><span class="line"> <span class="comment">//放行</span></span><br><span class="line"> <span class="keyword">return</span> chain.filter(exchange);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//3.获取token</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">token</span> <span class="operator">=</span> request.getHeaders().getFirst(<span class="string">"token"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//4.判断token是否存在</span></span><br><span class="line"> <span class="keyword">if</span> (StringUtils.isBlank(token)) {</span><br><span class="line"> <span class="comment">//设置401的状态码</span></span><br><span class="line"> response.setStatusCode(HttpStatus.UNAUTHORIZED);</span><br><span class="line"> <span class="keyword">return</span> response.setComplete();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//5.判断token是否有效</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//获取token中的数据</span></span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claims</span> <span class="operator">=</span> AppJwtUtil.getClaimsBody(token);</span><br><span class="line"> <span class="comment">//判断token是否过期 -1:有效,0:有效,1:过期,2:过期</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> AppJwtUtil.verifyToken(claims);</span><br><span class="line"> <span class="keyword">if</span> (res == <span class="number">1</span> || res == <span class="number">2</span>) {</span><br><span class="line"> <span class="comment">//设置401的状态码</span></span><br><span class="line"> response.setStatusCode(HttpStatus.UNAUTHORIZED);</span><br><span class="line"> <span class="keyword">return</span> response.setComplete();</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="comment">//设置401的状态码</span></span><br><span class="line"> response.setStatusCode(HttpStatus.UNAUTHORIZED);</span><br><span class="line"> <span class="keyword">return</span> response.setComplete();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//6.放行</span></span><br><span class="line"> <span class="keyword">return</span> chain.filter(exchange);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 优先级设置 值越小 优先值越高</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getOrder</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-app前端项目集成"><a href="#3-app前端项目集成" class="headerlink" title="3.app前端项目集成"></a>3.app前端项目集成</h2><p><img src="/pictures/image-20230814151319382.png" alt="image-20230814151319382"></p>
|
||
<p>通过nginx来进行配置,功能如下</p>
|
||
<ul>
|
||
<li>通过nginx的反向代理功能访问后台的网关资源</li>
|
||
<li>通过nginx的静态服务器功能访问前端静态页面</li>
|
||
</ul>
|
||
<h3 id="3-1-Nginx集成前端项目步骤"><a href="#3-1-Nginx集成前端项目步骤" class="headerlink" title="3.1 Nginx集成前端项目步骤"></a>3.1 Nginx集成前端项目步骤</h3><p><strong>①:解压资料文件夹中的压缩包nginx-1.18.0.zip</strong></p>
|
||
<p>cmd切换到nginx所有的目录输入nginx启动nginx</p>
|
||
<p><img src="/pictures/image-20230814152058708.png" alt="image-20230814152058708"></p>
|
||
<p><img src="/pictures/image-20230814152144765.png" alt="image-20230814152144765"></p>
|
||
<p><strong>②:解压资料文件夹中的前端项目app-web.zip</strong></p>
|
||
<p>解压到一个没有中文的文件夹中,后面nginx配置中会指向这个目录</p>
|
||
<p><strong>③:配置nginx.conf文件</strong></p>
|
||
<p>在nginx安装的conf目录下新建一个文件夹<code>leadnews.conf</code>,在当前文件夹中新建<code>heima-leadnews-app.conf</code>文件</p>
|
||
<p>heima-leadnews-app.conf配置如下:</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">upstream heima-app-gateway{</span><br><span class="line"> #APP端网关所在的端口</span><br><span class="line"> server localhost:51601;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">server {</span><br><span class="line"> listen 8801;</span><br><span class="line"> location / {</span><br><span class="line"> root C:/Gong/data/app-web/;</span><br><span class="line"> index index.html;</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> location ~/app/(.*) {</span><br><span class="line"> proxy_pass http://heima-app-gateway/$1;</span><br><span class="line"> proxy_set_header HOST $host; # 不改变源请求头的值</span><br><span class="line"> proxy_pass_request_body on; #开启获取请求体</span><br><span class="line"> proxy_pass_request_headers on; #开启获取请求头</span><br><span class="line"> proxy_set_header X-Real-IP $remote_addr; # 记录真实发出请求的客户端IP</span><br><span class="line"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #记录代理信息</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>nginx.conf 把里面注释的内容和静态资源配置相关删除,引入heima-leadnews-app.conf文件加载</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line">#user nobody;</span><br><span class="line">worker_processes <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line">events {</span><br><span class="line"> worker_connections <span class="number">1024</span>;</span><br><span class="line">}</span><br><span class="line">http {</span><br><span class="line"> include mime.<span class="property">types</span>;</span><br><span class="line"> default_type application/octet-stream;</span><br><span class="line"> sendfile on;</span><br><span class="line"> keepalive_timeout <span class="number">65</span>;</span><br><span class="line"> # 引入自定义配置文件</span><br><span class="line"> include leadnews.<span class="property">conf</span><span class="comment">/*.conf;</span></span><br><span class="line"><span class="comment">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>④ :启动nginx</strong></p>
|
||
<p> 在nginx安装包中使用命令提示符打开,输入命令nginx启动项目</p>
|
||
<p> 可查看进程,检查nginx是否启动</p>
|
||
<p> 重新加载配置文件:<code>nginx -s reload</code></p>
|
||
<p><strong>⑤:打开前端项目进行测试 – > <a href="http://localhost:8801/">http://localhost:8801</a></strong></p>
|
||
<p> 用谷歌浏览器打开,调试移动端模式进行访问</p>
|
||
<p><img src="/pictures/image-20230814153335349.png" alt="image-20230814153335349"></p>
|
||
<h2 id="4-app端文章列表功能"><a href="#4-app端文章列表功能" class="headerlink" title="4.app端文章列表功能"></a>4.app端文章列表功能</h2><p><strong>开发前app的首页面</strong></p>
|
||
<p><img src="/pictures/image-20230814154205134.png" alt="image-20230814154205134"></p>
|
||
<p><strong>文章的布局展示</strong></p>
|
||
<p><img src="/pictures/image-20230814154405531.png" alt="image-20230814154405531"></p>
|
||
<h3 id="4-1-数据库表的创建"><a href="#4-1-数据库表的创建" class="headerlink" title="4.1 数据库表的创建"></a>4.1 数据库表的创建</h3><p><strong>文章的相关的数据库</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>表名称</strong></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>ap_article</td>
|
||
<td>文章信息表,存储已发布的文章</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_article_config</td>
|
||
<td>APP已发布文章配置表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_article_content</td>
|
||
<td>APP已发布文章内容表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_author</td>
|
||
<td>APP文章作者信息表</td>
|
||
</tr>
|
||
<tr>
|
||
<td>ap_collection</td>
|
||
<td>APP收藏信息表</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>导入资料中的sql文件创建相关的数据库表</strong></p>
|
||
<p><img src="/pictures/image-20230814160312382.png" alt="image-20230814160312382"></p>
|
||
<p><strong>关键的数据库表</strong></p>
|
||
<p>文章基本信息表</p>
|
||
<p><img src="/pictures/image-20230814160547893.png" alt="image-20230814160547893"></p>
|
||
<p> APP已发布文章配置表 </p>
|
||
<p><img src="/pictures/image-20230814160652330.png" alt="image-20230814160652330"></p>
|
||
<p>APP已发布文章内容表 </p>
|
||
<p><img src="/pictures/image-20230814160728715.png" alt="image-20230814160728715"></p>
|
||
<p>APP文章作者信息表 </p>
|
||
<p><img src="/pictures/image-20230814160805398.png" alt="image-20230814160805398"></p>
|
||
<p>APP收藏信息表 </p>
|
||
<p><img src="/pictures/image-20230814160823771.png" alt="image-20230814160823771"></p>
|
||
<p><strong>垂直分表</strong></p>
|
||
<p>将文章相关的表分成文章配置表和文章内容表和文章信息表</p>
|
||
<p><img src="/pictures/image-20230814161909312.png" alt="image-20230814161909312"></p>
|
||
<p>垂直分表:将一个表的字段分散到多个表中,每个表存储其中一部分字段</p>
|
||
<p><strong>优势:</strong></p>
|
||
<ol>
|
||
<li><p>减少IO争抢,减少锁表的几率,查看文章概述与文章详情互不影响</p>
|
||
</li>
|
||
<li><p>充分发挥高频数据的操作效率,对文章概述数据操作的高效率不会被操作文章详情数据的低效率所拖累</p>
|
||
</li>
|
||
</ol>
|
||
<p><strong>拆分规则:</strong></p>
|
||
<p>1.把不常用的字段单独放在一张表</p>
|
||
<p>2.把text,blob等大字段拆分出来单独放在一张表</p>
|
||
<p>3.经常组合查询的字段单独放在一张表中</p>
|
||
<h3 id="4-2-文章模块搭建"><a href="#4-2-文章模块搭建" class="headerlink" title="4.2 文章模块搭建"></a>4.2 文章模块搭建</h3><p><strong>导入资料中的模块</strong></p>
|
||
<p><img src="/pictures/image-20230815184540157.png" alt="image-20230815184540157"></p>
|
||
<p><strong>在nacos中添加配置</strong></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">driver-class-name:</span> <span class="string">com.mysql.jdbc.Driver</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://localhost:3306/leadnews_article?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="number">123456</span></span><br><span class="line"><span class="comment"># 设置Mapper接口所对应的XML文件位置,如果你在Mapper接口中有自定义方法,需要进行该配置</span></span><br><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">mapper-locations:</span> <span class="string">classpath*:mapper/*.xml</span></span><br><span class="line"> <span class="comment"># 设置别名包扫描路径,通过该属性可以给包中的类注册别名</span></span><br><span class="line"> <span class="attr">type-aliases-package:</span> <span class="string">com.heima.model.article.pojos</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230815162119814.png" alt="image-20230815162119814"></p>
|
||
<p><strong>踩坑</strong>: 在导入项目的时候提示Caused by: java.io.FileNotFoundException: class path resource [com/heima/apis/article/IArticleClient.class] cannot be opened because it does not exist ,先删除这个项目,手动创建这个项目,然后复制资料里面文件到这个项目即可,直接复制整个项目可能会报这个错!</p>
|
||
<h3 id="4-3-首页文章的列表显示"><a href="#4-3-首页文章的列表显示" class="headerlink" title="4.3 首页文章的列表显示"></a>4.3 首页文章的列表显示</h3><p><strong>首页上拉和下拉的实现思路</strong></p>
|
||
<p><img src="/pictures/image-20230814163019582.png" alt="image-20230814163019582"></p>
|
||
<p><strong>Sql语句实现</strong></p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line">#按照发布时间倒序查询十条文章</span><br><span class="line"><span class="keyword">select</span> <span class="operator">*</span> <span class="keyword">from</span> ap_article aa <span class="keyword">order</span> <span class="keyword">by</span> aa.publish_time <span class="keyword">desc</span> limit <span class="number">10</span></span><br><span class="line">#频道筛选</span><br><span class="line"><span class="keyword">select</span> <span class="operator">*</span> <span class="keyword">from</span> ap_article aa <span class="keyword">where</span> aa.channel_id <span class="operator">=</span> <span class="number">1</span> <span class="keyword">order</span> <span class="keyword">by</span> aa.publish_time <span class="keyword">desc</span> limit <span class="number">10</span></span><br><span class="line">#加载首页</span><br><span class="line"><span class="keyword">select</span> <span class="operator">*</span> <span class="keyword">from</span> ap_article aa <span class="keyword">where</span> aa.channel_id <span class="operator">=</span> <span class="number">1</span> <span class="keyword">and</span> aa.publish_time <span class="operator"><</span> <span class="string">'2063-09-08 10:20:12'</span> <span class="keyword">order</span> <span class="keyword">by</span> aa.publish_time <span class="keyword">desc</span> limit <span class="number">10</span></span><br><span class="line">#加载更多</span><br><span class="line"><span class="keyword">select</span> <span class="operator">*</span> <span class="keyword">from</span> ap_article aa <span class="keyword">where</span> aa.channel_id <span class="operator">=</span> <span class="number">1</span> <span class="keyword">and</span> aa.publish_time <span class="operator"><</span> <span class="string">'2020-09-07 22:30:09'</span> <span class="keyword">order</span> <span class="keyword">by</span> aa.publish_time <span class="keyword">desc</span> limit <span class="number">10</span></span><br><span class="line">#加载最新</span><br><span class="line"><span class="keyword">select</span> <span class="operator">*</span> <span class="keyword">from</span> ap_article aa <span class="keyword">where</span> aa.channel_id <span class="operator">=</span> <span class="number">1</span> <span class="keyword">and</span> aa.publish_time <span class="operator">></span> <span class="string">'2020-09-07 22:30:09'</span> <span class="keyword">order</span> <span class="keyword">by</span> aa.publish_time <span class="keyword">desc</span> limit <span class="number">10</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230815160034436.png" alt="image-20230815160034436"></p>
|
||
<h4 id="4-2-1-接口定义"><a href="#4-2-1-接口定义" class="headerlink" title="4.2.1 接口定义"></a>4.2.1 接口定义</h4><table>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th><strong>加载首页</strong></th>
|
||
<th><strong>加载更多</strong></th>
|
||
<th><strong>加载最新</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>接口路径</td>
|
||
<td>/api/v1/article/load</td>
|
||
<td>/api/v1/article/loadmore</td>
|
||
<td>/api/v1/article/loadnew</td>
|
||
</tr>
|
||
<tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
<td>POST</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>ArticleHomeDto</td>
|
||
<td>ArticleHomeDto</td>
|
||
<td>ArticleHomeDto</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
<td>ResponseResult</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p>ArticleHomeDto</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.article.dtos;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArticleHomeDto</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 最大时间</span></span><br><span class="line"> Date maxBehotTime;</span><br><span class="line"> <span class="comment">// 最小时间</span></span><br><span class="line"> Date minBehotTime;</span><br><span class="line"> <span class="comment">// 分页size</span></span><br><span class="line"> Integer size;</span><br><span class="line"> <span class="comment">// 频道ID</span></span><br><span class="line"> String tag;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-2-2-实现思路"><a href="#4-2-2-实现思路" class="headerlink" title="4.2.2 实现思路"></a>4.2.2 实现思路</h4><p><strong>①:导入heima-leadnews-article微服务,资料在当天的文件夹中</strong></p>
|
||
<p> <strong>需要在nacos中添加对应的配置</strong></p>
|
||
<p><strong>②:定义接口</strong></p>
|
||
<p> <strong>接口路径、请求方式、入参、出参</strong></p>
|
||
<p><strong>③:编写mapper文件</strong></p>
|
||
<p> <strong>文章表与文章配置表多表查询</strong></p>
|
||
<p><strong>④:编写业务层代码</strong></p>
|
||
<p><strong>⑤:编写控制器代码</strong></p>
|
||
<p><strong>⑥:swagger测试或前后端联调测试</strong></p>
|
||
<h4 id="4-2-3-功能的关键代码实现"><a href="#4-2-3-功能的关键代码实现" class="headerlink" title="4.2.3 功能的关键代码实现"></a>4.2.3 功能的关键代码实现</h4><p>mapper层的代码</p>
|
||
<p><img src="/pictures/image-20230816142705510.png" alt="image-20230816142705510"></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">mapper</span> <span class="keyword">PUBLIC</span> <span class="string">"-//mybatis.org//DTD Mapper 3.0//EN"</span> <span class="string">"http://mybatis.org/dtd/mybatis-3-mapper.dtd"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">mapper</span> <span class="attr">namespace</span>=<span class="string">"com.heima.article.mapper.ApArticleMapper"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">resultMap</span> <span class="attr">id</span>=<span class="string">"resultMap"</span> <span class="attr">type</span>=<span class="string">"com.heima.model.article.pojos.ApArticle"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">id</span> <span class="attr">column</span>=<span class="string">"id"</span> <span class="attr">property</span>=<span class="string">"id"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"title"</span> <span class="attr">property</span>=<span class="string">"title"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"author_id"</span> <span class="attr">property</span>=<span class="string">"authorId"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"author_name"</span> <span class="attr">property</span>=<span class="string">"authorName"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"channel_id"</span> <span class="attr">property</span>=<span class="string">"channelId"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"channel_name"</span> <span class="attr">property</span>=<span class="string">"channelName"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"layout"</span> <span class="attr">property</span>=<span class="string">"layout"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"flag"</span> <span class="attr">property</span>=<span class="string">"flag"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"images"</span> <span class="attr">property</span>=<span class="string">"images"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"labels"</span> <span class="attr">property</span>=<span class="string">"labels"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"likes"</span> <span class="attr">property</span>=<span class="string">"likes"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"collection"</span> <span class="attr">property</span>=<span class="string">"collection"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"comment"</span> <span class="attr">property</span>=<span class="string">"comment"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"views"</span> <span class="attr">property</span>=<span class="string">"views"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"province_id"</span> <span class="attr">property</span>=<span class="string">"provinceId"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"city_id"</span> <span class="attr">property</span>=<span class="string">"cityId"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"county_id"</span> <span class="attr">property</span>=<span class="string">"countyId"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"created_time"</span> <span class="attr">property</span>=<span class="string">"createdTime"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"publish_time"</span> <span class="attr">property</span>=<span class="string">"publishTime"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"sync_status"</span> <span class="attr">property</span>=<span class="string">"syncStatus"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">result</span> <span class="attr">column</span>=<span class="string">"static_url"</span> <span class="attr">property</span>=<span class="string">"staticUrl"</span>/></span></span><br><span class="line"> <span class="tag"></<span class="name">resultMap</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">select</span> <span class="attr">id</span>=<span class="string">"loadArticleList"</span> <span class="attr">resultMap</span>=<span class="string">"resultMap"</span>></span></span><br><span class="line"> SELECT</span><br><span class="line"> aa.*</span><br><span class="line"> FROM</span><br><span class="line"> `ap_article` aa</span><br><span class="line"> LEFT JOIN ap_article_config aac ON aa.id = aac.article_id</span><br><span class="line"> <span class="tag"><<span class="name">where</span>></span></span><br><span class="line"> and aac.is_delete != 1</span><br><span class="line"> and aac.is_down != 1</span><br><span class="line"> <span class="comment"><!-- loadmore --></span></span><br><span class="line"> <span class="tag"><<span class="name">if</span> <span class="attr">test</span>=<span class="string">"type != null and type == 1"</span>></span></span><br><span class="line"> and aa.publish_time <![CDATA[<]]> #{dto.minBehotTime}</span><br><span class="line"> <span class="tag"></<span class="name">if</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">if</span> <span class="attr">test</span>=<span class="string">"type != null and type == 2"</span>></span></span><br><span class="line"> and aa.publish_time <![CDATA[>]]> #{dto.maxBehotTime}</span><br><span class="line"> <span class="tag"></<span class="name">if</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">if</span> <span class="attr">test</span>=<span class="string">"dto.tag != '__all__'"</span>></span></span><br><span class="line"> and aa.channel_id = #{dto.tag}</span><br><span class="line"> <span class="tag"></<span class="name">if</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">where</span>></span></span><br><span class="line"> order by aa.publish_time desc</span><br><span class="line"> limit #{dto.size}</span><br><span class="line"> <span class="tag"></<span class="name">select</span>></span></span><br><span class="line"><span class="tag"></<span class="name">mapper</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service层的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.article.service.Impl;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;</span><br><span class="line"><span class="keyword">import</span> com.heima.article.mapper.ApArticleMapper;</span><br><span class="line"><span class="keyword">import</span> com.heima.article.service.ApArticleService;</span><br><span class="line"><span class="keyword">import</span> com.heima.common.constants.ArticleConstants;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.article.dtos.ArticleHomeDto;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.article.pojos.ApArticle;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.dtos.ResponseResult;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.apache.commons.lang.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"><span class="keyword">import</span> org.springframework.transaction.annotation.Transactional;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ApArticleServiceImpl</span> <span class="keyword">extends</span> <span class="title class_">ServiceImpl</span><ApArticleMapper, ApArticle> <span class="keyword">implements</span> <span class="title class_">ApArticleService</span> {</span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> ApArticleMapper apArticleMapper;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Integer</span> <span class="variable">MAX_PAGE_SIZE</span> <span class="operator">=</span> <span class="number">50</span>;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult <span class="title function_">load</span><span class="params">(ArticleHomeDto dto, Short type)</span> {</span><br><span class="line"> <span class="comment">//1.参数校验</span></span><br><span class="line"> <span class="comment">//分页条数的校验</span></span><br><span class="line"> <span class="type">Integer</span> <span class="variable">size</span> <span class="operator">=</span> dto.getSize();</span><br><span class="line"> <span class="keyword">if</span> (size == <span class="literal">null</span> || size == <span class="number">0</span>) {</span><br><span class="line"> size = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//最大分页条数的限制</span></span><br><span class="line"> size = Math.min(size, <span class="number">50</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//type参数的校验</span></span><br><span class="line"> <span class="keyword">if</span> (!type.equals(ArticleConstants.LOADTYPE_LOAD_MORE) && !type.equals(ArticleConstants.LOADTYPE_LOAD_NEW)) {</span><br><span class="line"> type = <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//频道参数校验</span></span><br><span class="line"> <span class="keyword">if</span> (StringUtils.isBlank(dto.getTag())) {</span><br><span class="line"> dto.setTag(ArticleConstants.DEFAULT_TAG);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//时间检验</span></span><br><span class="line"> <span class="keyword">if</span> (dto.getMinBehotTime() == <span class="literal">null</span>) dto.setMinBehotTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="keyword">if</span> (dto.getMaxBehotTime() == <span class="literal">null</span>) dto.setMaxBehotTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.查询</span></span><br><span class="line"> List<ApArticle> apArticles = apArticleMapper.loadArticleList(dto, type);</span><br><span class="line"> <span class="comment">//3.数据返回</span></span><br><span class="line"> <span class="keyword">return</span> ResponseResult.okResult(apArticles);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>controller层的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.article.controller.v1;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.article.service.ApArticleService;</span><br><span class="line"><span class="keyword">import</span> com.heima.common.constants.ArticleConstants;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.article.dtos.ArticleHomeDto;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.dtos.ResponseResult;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="meta">@RequestMapping("/api/v1/article")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArticleHomeController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> ApArticleService apArticleService;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 加载首页</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/load")</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<Object> <span class="title function_">load</span><span class="params">(<span class="meta">@RequestBody</span> ArticleHomeDto articleHomeDto)</span>{</span><br><span class="line"> <span class="keyword">return</span> apArticleService.load(articleHomeDto, ArticleConstants.LOADTYPE_LOAD_MORE);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 加载更多</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/loadmore")</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<Object> <span class="title function_">loadmore</span><span class="params">(<span class="meta">@RequestBody</span> ArticleHomeDto articleHomeDto)</span>{</span><br><span class="line"> <span class="keyword">return</span> apArticleService.load(articleHomeDto, ArticleConstants.LOADTYPE_LOAD_MORE);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 加载更新</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/loadnew")</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult<Object> <span class="title function_">loadnew</span><span class="params">(<span class="meta">@RequestBody</span> ArticleHomeDto articleHomeDto)</span>{</span><br><span class="line"> <span class="keyword">return</span> apArticleService.load(articleHomeDto, ArticleConstants.LOADTYPE_LOAD_NEW);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>网关中增加文章模块的路由</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">globalcors:</span></span><br><span class="line"> <span class="attr">add-to-simple-url-handler-mapping:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">corsConfigurations:</span></span><br><span class="line"> <span class="string">'[/**]'</span><span class="string">:</span></span><br><span class="line"> <span class="attr">allowedHeaders:</span> <span class="string">"*"</span></span><br><span class="line"> <span class="attr">allowedOrigins:</span> <span class="string">"*"</span></span><br><span class="line"> <span class="attr">allowedMethods:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">GET</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">POST</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DELETE</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUT</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">OPTION</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment"># 平台管理</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">user</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://leadnews-user</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/user/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">StripPrefix=</span> <span class="number">1</span></span><br><span class="line"> <span class="comment"># 文章管理</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">article</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://leadnews-article</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/article/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">StripPrefix=</span> <span class="number">1</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="5-app端文章详情功能"><a href="#5-app端文章详情功能" class="headerlink" title="5. app端文章详情功能"></a>5. app端文章详情功能</h2><h3 id="5-1-需求分析"><a href="#5-1-需求分析" class="headerlink" title="5.1 需求分析"></a>5.1 需求分析</h3><p><img src="/pictures/image-20230816143201242.png" alt="image-20230816143201242"></p>
|
||
<h3 id="5-2-实现方案-静态模板展示"><a href="#5-2-实现方案-静态模板展示" class="headerlink" title="5.2 实现方案-静态模板展示"></a>5.2 实现方案-静态模板展示</h3><p><img src="/pictures/image-20230816143544351.png" alt="image-20230816143544351"></p>
|
||
<p><strong>静态模板展示关键技术-Freemarker</strong></p>
|
||
<p>Freemarker教程: <a href="https://jasonsgong.gitee.io/posts/29367.html">https://jasonsgong.gitee.io/posts/29367.html</a></p>
|
||
<h3 id="5-3-对象存储服务MinIO"><a href="#5-3-对象存储服务MinIO" class="headerlink" title="5.3 对象存储服务MinIO"></a>5.3 对象存储服务MinIO</h3><p>MinIO 教程: <a href="https://jasonsgong.gitee.io/posts/36397.html">https://jasonsgong.gitee.io/posts/36397.html</a></p>
|
||
<h3 id="5-4-实现思路以及代码实现"><a href="#5-4-实现思路以及代码实现" class="headerlink" title="5.4 实现思路以及代码实现"></a>5.4 实现思路以及代码实现</h3><p><img src="/pictures/image-20230818210507999.png" alt="image-20230818210507999"></p>
|
||
<p><img src="/pictures/image-20230818210638036.png" alt="image-20230818210638036"></p>
|
||
<p><strong>代码实现</strong></p>
|
||
<p>1.在文章模块的pom.xml文件中加入以下的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-freemarker<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-file-starter<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.在nacos中有关文章模块的配置中添加以下的内容</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">minio:</span></span><br><span class="line"> <span class="attr">accessKey:</span> <span class="string">minio</span></span><br><span class="line"> <span class="attr">secretKey:</span> <span class="string">minio123</span></span><br><span class="line"> <span class="attr">bucket:</span> <span class="string">leadnews</span></span><br><span class="line"> <span class="attr">endpoint:</span> <span class="string">http://192.168.200.130:9000</span></span><br><span class="line"> <span class="attr">readPath:</span> <span class="string">http://192.168.200.130:9000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230818211310728.png" alt="image-20230818211310728"></p>
|
||
<p>3.将资料中的article.ftl文件拷贝到文章模块的templates目录下,article.ftl文件内容如下</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"utf-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">"X-UA-Compatible"</span> <span class="attr">content</span>=<span class="string">"IE=edge"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">name</span>=<span class="string">"viewport"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">content</span>=<span class="string">"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>黑马头条<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"> <span class="comment"><!-- 引入样式文件 --></span></span><br><span class="line"> <span class="tag"><<span class="name">link</span> <span class="attr">rel</span>=<span class="string">"stylesheet"</span> <span class="attr">href</span>=<span class="string">"https://fastly.jsdelivr.net/npm/vant@2.12.20/lib/index.css"</span>></span></span><br><span class="line"> <span class="comment"><!-- 页面样式 --></span></span><br><span class="line"> <span class="tag"><<span class="name">link</span> <span class="attr">rel</span>=<span class="string">"stylesheet"</span> <span class="attr">href</span>=<span class="string">"../../../plugins/css/index.css"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"app"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">class</span>=<span class="string">"article"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"24"</span> <span class="attr">class</span>=<span class="string">"article-title"</span> <span class="attr">v-html</span>=<span class="string">"title"</span>></span><span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">align</span>=<span class="string">"center"</span> <span class="attr">class</span>=<span class="string">"article-header"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-image</span> <span class="attr">round</span> <span class="attr">class</span>=<span class="string">"article-avatar"</span> <span class="attr">src</span>=<span class="string">"https://p3.pstatp.com/thumb/1480/7186611868"</span>></span><span class="tag"></<span class="name">van-image</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"16"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span> <span class="attr">v-html</span>=<span class="string">"authorName"</span>></span><span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">div</span>></span>{{ publishTime | timestampToDateTime }}<span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"5"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">:icon</span>=<span class="string">"relation.isfollow ? '' : 'plus'"</span> <span class="attr">type</span>=<span class="string">"info"</span> <span class="attr">class</span>=<span class="string">"article-focus"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:text</span>=<span class="string">"relation.isfollow ? '取消关注' : '关注'"</span> <span class="attr">:loading</span>=<span class="string">"followLoading"</span> @<span class="attr">click</span>=<span class="string">"handleClickArticleFollow"</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">class</span>=<span class="string">"article-content"</span>></span></span><br><span class="line"> <#if content??></span><br><span class="line"> <#list content as item></span><br><span class="line"> <#if item.type='text'></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"24"</span> <span class="attr">class</span>=<span class="string">"article-text"</span>></span>${item.value}<span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <#else></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"24"</span> <span class="attr">class</span>=<span class="string">"article-image"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-image</span> <span class="attr">width</span>=<span class="string">"100%"</span> <span class="attr">src</span>=<span class="string">"${item.value}"</span>></span><span class="tag"></<span class="name">van-image</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> </#if></span><br><span class="line"> </#list></span><br><span class="line"> </#if></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">justify</span>=<span class="string">"center"</span> <span class="attr">class</span>=<span class="string">"article-action"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">:icon</span>=<span class="string">"relation.islike ? 'good-job' : 'good-job-o'"</span> <span class="attr">class</span>=<span class="string">"article-like"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:loading</span>=<span class="string">"likeLoading"</span> <span class="attr">:text</span>=<span class="string">"relation.islike ? '取消赞' : '点赞'"</span> @<span class="attr">click</span>=<span class="string">"handleClickArticleLike"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">:icon</span>=<span class="string">"relation.isunlike ? 'delete' : 'delete-o'"</span> <span class="attr">class</span>=<span class="string">"article-unlike"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:loading</span>=<span class="string">"unlikeLoading"</span> @<span class="attr">click</span>=<span class="string">"handleClickArticleUnlike"</span>></span>不喜欢<span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 文章评论列表 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-list</span> <span class="attr">v-model</span>=<span class="string">"commentsLoading"</span> <span class="attr">:finished</span>=<span class="string">"commentsFinished"</span> <span class="attr">finished-text</span>=<span class="string">"没有更多了"</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">load</span>=<span class="string">"onLoadArticleComments"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">id</span>=<span class="string">"#comment-view"</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">class</span>=<span class="string">"article-comment"</span> <span class="attr">v-for</span>=<span class="string">"(item, index) in comments"</span> <span class="attr">:key</span>=<span class="string">"index"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-image</span> <span class="attr">round</span> <span class="attr">src</span>=<span class="string">"https://p3.pstatp.com/thumb/1480/7186611868"</span> <span class="attr">class</span>=<span class="string">"article-avatar"</span>></span><span class="tag"></<span class="name">van-image</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"21"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">align</span>=<span class="string">"center"</span> <span class="attr">justify</span>=<span class="string">"space-between"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">class</span>=<span class="string">"comment-author"</span> <span class="attr">v-html</span>=<span class="string">"item.authorName"</span>></span><span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">:icon</span>=<span class="string">"item.operation === 0 ? 'good-job' : 'good-job-o'"</span> <span class="attr">size</span>=<span class="string">"normal"</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">click</span>=<span class="string">"handleClickCommentLike(item)"</span>></span>{{ item.likes || '' }}</span><br><span class="line"> <span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">class</span>=<span class="string">"comment-content"</span> <span class="attr">v-html</span>=<span class="string">"item.content"</span>></span><span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">align</span>=<span class="string">"center"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"10"</span> <span class="attr">class</span>=<span class="string">"comment-time"</span>></span></span><br><span class="line"> {{ item.createdTime | timestampToDateTime }}</span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">size</span>=<span class="string">"normal"</span> <span class="attr">v-html</span>=<span class="string">"item.reply"</span> @<span class="attr">click</span>=<span class="string">"showCommentRepliesPopup(item.id)"</span>></span>回复 {{</span><br><span class="line"> item.reply || '' }}</span><br><span class="line"> <span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-list</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">div</span>></span></span><br><span class="line"> <span class="comment"><!-- 文章底部栏 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">justify</span>=<span class="string">"space-around"</span> <span class="attr">align</span>=<span class="string">"center"</span> <span class="attr">class</span>=<span class="string">"article-bottom-bar"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"13"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-field</span> <span class="attr">v-model</span>=<span class="string">"commentValue"</span> <span class="attr">placeholder</span>=<span class="string">"写评论"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">template</span> #<span class="attr">button</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"back-top"</span> @<span class="attr">click</span>=<span class="string">"handleSaveComment"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">template</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-field</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"comment-o"</span> @<span class="attr">click</span>=<span class="string">"handleScrollIntoCommentView"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">:icon</span>=<span class="string">"relation.iscollection ? 'star' : 'star-o'"</span> <span class="attr">:loading</span>=<span class="string">"collectionLoading"</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">click</span>=<span class="string">"handleClickArticleCollection"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"share-o"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="comment"><!-- 评论Popup 弹出层 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-popup</span> <span class="attr">v-model</span>=<span class="string">"showPopup"</span> <span class="attr">closeable</span> <span class="attr">position</span>=<span class="string">"bottom"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:style</span>=<span class="string">"{ width: '750px', height: '60%', left: '50%', 'margin-left': '-375px' }"</span>></span></span><br><span class="line"> <span class="comment"><!-- 评论回复列表 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-list</span> <span class="attr">v-model</span>=<span class="string">"commentRepliesLoading"</span> <span class="attr">:finished</span>=<span class="string">"commentRepliesFinished"</span> <span class="attr">finished-text</span>=<span class="string">"没有更多了"</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">load</span>=<span class="string">"onLoadCommentReplies"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">id</span>=<span class="string">"#comment-reply-view"</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">class</span>=<span class="string">"article-comment-reply"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">v-for</span>=<span class="string">"(item, index) in commentReplies"</span> <span class="attr">:key</span>=<span class="string">"index"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-image</span> <span class="attr">round</span> <span class="attr">src</span>=<span class="string">"https://p3.pstatp.com/thumb/1480/7186611868"</span> <span class="attr">class</span>=<span class="string">"article-avatar"</span>></span><span class="tag"></<span class="name">van-image</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"21"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">align</span>=<span class="string">"center"</span> <span class="attr">justify</span>=<span class="string">"space-between"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">class</span>=<span class="string">"comment-author"</span> <span class="attr">v-html</span>=<span class="string">"item.authorName"</span>></span><span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">round</span> <span class="attr">:icon</span>=<span class="string">"item.operation === 0 ? 'good-job' : 'good-job-o'"</span> <span class="attr">size</span>=<span class="string">"normal"</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">click</span>=<span class="string">"handleClickCommentReplyLike(item)"</span>></span>{{ item.likes || '' }}</span><br><span class="line"> <span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">class</span>=<span class="string">"comment-content"</span> <span class="attr">v-html</span>=<span class="string">"item.content"</span>></span><span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">align</span>=<span class="string">"center"</span>></span></span><br><span class="line"> <span class="comment"><!-- <span class="doctag">TODO:</span> js计算时间差 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"10"</span> <span class="attr">class</span>=<span class="string">"comment-time"</span>></span></span><br><span class="line"> {{ item.createdTime | timestampToDateTime }}</span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-list</span>></span></span><br><span class="line"> <span class="comment"><!-- 评论回复底部栏 --></span></span><br><span class="line"> <span class="tag"><<span class="name">van-row</span> <span class="attr">type</span>=<span class="string">"flex"</span> <span class="attr">justify</span>=<span class="string">"space-around"</span> <span class="attr">align</span>=<span class="string">"center"</span> <span class="attr">class</span>=<span class="string">"comment-reply-bottom-bar"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"13"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-field</span> <span class="attr">v-model</span>=<span class="string">"commentReplyValue"</span> <span class="attr">placeholder</span>=<span class="string">"写评论"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">template</span> #<span class="attr">button</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"back-top"</span> @<span class="attr">click</span>=<span class="string">"handleSaveCommentReply"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">template</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-field</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"comment-o"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"star-o"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-col</span> <span class="attr">span</span>=<span class="string">"3"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">van-button</span> <span class="attr">icon</span>=<span class="string">"share-o"</span>></span><span class="tag"></<span class="name">van-button</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-col</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-row</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">van-popup</span>></span></span><br><span class="line"><span class="tag"></<span class="name">div</span>></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!-- 引入 Vue 和 Vant 的 JS 文件 --></span></span><br><span class="line"><span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">" https://fastly.jsdelivr.net/npm/vue/dist/vue.min.js"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"https://fastly.jsdelivr.net/npm/vant@2.12.20/lib/vant.min.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="comment"><!-- 引入 Axios 的 JS 文件 --></span></span><br><span class="line"><#--<span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"https://unpkg.com/axios/dist/axios.min.js"</span>></span><span class="tag"></<span class="name">script</span>></span>--></span><br><span class="line"><span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"../../../plugins/js/axios.min.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="comment"><!-- 页面逻辑 --></span></span><br><span class="line"><span class="tag"><<span class="name">script</span> <span class="attr">src</span>=<span class="string">"../../../plugins/js/index.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.手动上传资料中index.js和index.css两个文件到MinIO中</p>
|
||
<p>上传index.js</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">testMinIO</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//读取一个文件</span></span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"C:\\Gong\\java\\黑马头条\\day02-app端文章查看,静态化freemarker,分布式文件系统minIO\\资料\\模板文件\\plugins\\js\\index.js"</span>);</span><br><span class="line"> <span class="comment">//1.获取MinIO的连接信息,创建一个minio的客户端</span></span><br><span class="line"> <span class="type">MinioClient</span> <span class="variable">minioClient</span> <span class="operator">=</span> MinioClient.builder()</span><br><span class="line"> .credentials(<span class="string">"minio"</span>, <span class="string">"minio123"</span>)<span class="comment">//minio的账号密码</span></span><br><span class="line"> .endpoint(<span class="string">"http://192.168.200.130:9000"</span>)<span class="comment">//minio的地址</span></span><br><span class="line"> .build();</span><br><span class="line"> <span class="comment">//2.上传</span></span><br><span class="line"> <span class="type">PutObjectArgs</span> <span class="variable">putObjectArgs</span> <span class="operator">=</span> PutObjectArgs.builder()</span><br><span class="line"> .object(<span class="string">"plugins/js/index.js"</span>)<span class="comment">//文件的名称</span></span><br><span class="line"> .contentType(<span class="string">"text/js"</span>)<span class="comment">//文件的类型</span></span><br><span class="line"> .bucket(<span class="string">"leadnews"</span>)<span class="comment">//桶的名称,与之前的minio管理界面创建的bucket名称一致即可</span></span><br><span class="line"> .stream(inputStream,inputStream.available(),-<span class="number">1</span>)</span><br><span class="line"> .build();</span><br><span class="line"> minioClient.putObject(putObjectArgs);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>上传index.css</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">testMinIO</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//读取一个文件</span></span><br><span class="line"> <span class="type">FileInputStream</span> <span class="variable">inputStream</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FileInputStream</span>(<span class="string">"C:\\Gong\\java\\黑马头条\\day02-app端文章查看,静态化freemarker,分布式文件系统minIO\\资料\\模板文件\\plugins\\css\\index.css"</span>);</span><br><span class="line"> <span class="comment">//1.获取MinIO的连接信息,创建一个minio的客户端</span></span><br><span class="line"> <span class="type">MinioClient</span> <span class="variable">minioClient</span> <span class="operator">=</span> MinioClient.builder()</span><br><span class="line"> .credentials(<span class="string">"minio"</span>, <span class="string">"minio123"</span>)<span class="comment">//minio的账号密码</span></span><br><span class="line"> .endpoint(<span class="string">"http://192.168.200.130:9000"</span>)<span class="comment">//minio的地址</span></span><br><span class="line"> .build();</span><br><span class="line"> <span class="comment">//2.上传</span></span><br><span class="line"> <span class="type">PutObjectArgs</span> <span class="variable">putObjectArgs</span> <span class="operator">=</span> PutObjectArgs.builder()</span><br><span class="line"> .object(<span class="string">"plugins/css/index.css"</span>)<span class="comment">//文件的名称</span></span><br><span class="line"> .contentType(<span class="string">"text/css"</span>)<span class="comment">//文件的类型</span></span><br><span class="line"> .bucket(<span class="string">"leadnews"</span>)<span class="comment">//桶的名称,与之前的minio管理界面创建的bucket名称一致即可</span></span><br><span class="line"> .stream(inputStream,inputStream.available(),-<span class="number">1</span>)</span><br><span class="line"> .build();</span><br><span class="line"> minioClient.putObject(putObjectArgs);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>5.测试根据文章的内容生成html文件上传到minio中</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.article.test;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.fastjson.JSONArray;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;</span><br><span class="line"><span class="keyword">import</span> com.heima.article.ArticleApplication;</span><br><span class="line"><span class="keyword">import</span> com.heima.article.mapper.ApArticleContentMapper;</span><br><span class="line"><span class="keyword">import</span> com.heima.article.service.ApArticleService;</span><br><span class="line"><span class="keyword">import</span> com.heima.file.service.FileStorageService;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.article.pojos.ApArticle;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.article.pojos.ApArticleContent;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.Configuration;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.Template;</span><br><span class="line"><span class="keyword">import</span> freemarker.template.TemplateException;</span><br><span class="line"><span class="keyword">import</span> org.apache.commons.lang.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.junit.Test;</span><br><span class="line"><span class="keyword">import</span> org.junit.runner.RunWith;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.test.context.junit4.SpringRunner;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.ByteArrayInputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.InputStream;</span><br><span class="line"><span class="keyword">import</span> java.io.StringWriter;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/19</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootTest(classes = ArticleApplication.class)</span></span><br><span class="line"><span class="meta">@RunWith(SpringRunner.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArticleFreeMarkerTest</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> ApArticleContentMapper apArticleContentMapper;</span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> Configuration configuration;</span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> FileStorageService fileStorageService;</span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> ApArticleService apArticleService;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">createStaticUrlTest</span><span class="params">()</span> <span class="keyword">throws</span> IOException, TemplateException {</span><br><span class="line"> <span class="comment">//已知文章的id</span></span><br><span class="line"> <span class="comment">//1.获取文章的内容</span></span><br><span class="line"> <span class="type">ApArticleContent</span> <span class="variable">apArticleContent</span> <span class="operator">=</span> apArticleContentMapper.selectOne(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><ApArticleContent>().eq(ApArticleContent::getArticleId, <span class="string">"1383827995813531650L"</span>));</span><br><span class="line"> <span class="keyword">if</span> (apArticleContent != <span class="literal">null</span> && StringUtils.isNotBlank(apArticleContent.getContent())) {</span><br><span class="line"> <span class="comment">//2.文章内容通过freemarker生成html文件 详细教程见:https://jasonsgong.gitee.io/posts/29367.html</span></span><br><span class="line"> <span class="type">Template</span> <span class="variable">template</span> <span class="operator">=</span> configuration.getTemplate(<span class="string">"article.ftl"</span>);</span><br><span class="line"> <span class="comment">//构建数据模型</span></span><br><span class="line"> HashMap<String, Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"content"</span>, JSONArray.parseArray(apArticleContent.getContent()));</span><br><span class="line"> <span class="comment">//输出流</span></span><br><span class="line"> <span class="type">StringWriter</span> <span class="variable">out</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">StringWriter</span>();</span><br><span class="line"> <span class="comment">//合成html文件</span></span><br><span class="line"> template.process(map, out);</span><br><span class="line"> <span class="comment">//3.把html文件上传到minio中</span></span><br><span class="line"> <span class="comment">//构建一个输入流</span></span><br><span class="line"> <span class="type">InputStream</span> <span class="variable">in</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ByteArrayInputStream</span>(out.toString().getBytes());</span><br><span class="line"> <span class="comment">//上传到minio并返回访问的路径</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">path</span> <span class="operator">=</span> fileStorageService.uploadHtmlFile(<span class="string">""</span>, apArticleContent.getArticleId() + <span class="string">".html"</span>, in);</span><br><span class="line"> System.out.println(<span class="string">"文件在minio中的路径:"</span>+path);</span><br><span class="line"> <span class="comment">//4.修改ap_article表,保存static_url字段</span></span><br><span class="line"> <span class="type">ApArticle</span> <span class="variable">apArticle</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ApArticle</span>();</span><br><span class="line"> apArticle.setId(apArticleContent.getArticleId());</span><br><span class="line"> apArticle.setStaticUrl(path);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isSuccess</span> <span class="operator">=</span> apArticleService.updateById(apArticle);</span><br><span class="line"> System.out.println(isSuccess ? <span class="string">"文件上传成功"</span> : <span class="string">"文件上传失败"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>6.实现效果</p>
|
||
<p><img src="/pictures/image-20230819153507360.png" alt="image-20230819153507360"></p>
|
||
<h1 id="四-自媒体端功能开发"><a href="#四-自媒体端功能开发" class="headerlink" title="四.自媒体端功能开发"></a>四.自媒体端功能开发</h1><h2 id="1-后端环境搭建"><a href="#1-后端环境搭建" class="headerlink" title="1.后端环境搭建"></a>1.后端环境搭建</h2><p><strong>需要搭建的模块</strong></p>
|
||
<p><img src="/pictures/image-20230819155333131.png" alt="image-20230819155333131"></p>
|
||
<p><strong>搭建步骤</strong></p>
|
||
<p><img src="/pictures/image-20230819155229550.png" alt="image-20230819155229550"></p>
|
||
<p>1.创建自媒体模块的数据库</p>
|
||
<p><img src="/pictures/image-20230819155853252.png" alt="image-20230819155853252"></p>
|
||
<p>2.导入相应的工程文件</p>
|
||
<p><img src="/pictures/image-20230819161650118.png" alt="image-20230819161650118"></p>
|
||
<p>3.配置自媒体模块和网关模块在nacos中的配置</p>
|
||
<p>自媒体模块的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">driver-class-name:</span> <span class="string">com.mysql.jdbc.Driver</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://localhost:3306/leadnews_wemedia?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="string">root</span></span><br><span class="line"><span class="comment"># 设置Mapper接口所对应的XML文件位置,如果你在Mapper接口中有自定义方法,需要进行该配置</span></span><br><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">mapper-locations:</span> <span class="string">classpath*:mapper/*.xml</span></span><br><span class="line"> <span class="comment"># 设置别名包扫描路径,通过该属性可以给包中的类注册别名</span></span><br><span class="line"> <span class="attr">type-aliases-package:</span> <span class="string">com.heima.model.media.pojos</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230819161148830.png" alt="image-20230819161148830"></p>
|
||
<p>网关模块的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">globalcors:</span></span><br><span class="line"> <span class="attr">cors-configurations:</span></span><br><span class="line"> <span class="string">'[/**]'</span><span class="string">:</span> <span class="comment"># 匹配所有请求</span></span><br><span class="line"> <span class="attr">allowedOrigins:</span> <span class="string">"*"</span> <span class="comment">#跨域处理 允许所有的域</span></span><br><span class="line"> <span class="attr">allowedMethods:</span> <span class="comment"># 支持的方法</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">GET</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">POST</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">PUT</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">DELETE</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment"># 平台管理</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">wemedia</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://leadnews-wemedia</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/wemedia/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">StripPrefix=</span> <span class="number">1</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230819161529210.png" alt="image-20230819161529210"></p>
|
||
<h2 id="2-前端环境搭建"><a href="#2-前端环境搭建" class="headerlink" title="2.前端环境搭建"></a>2.前端环境搭建</h2><p><strong>搭建思路</strong></p>
|
||
<p><img src="/pictures/image-20230819162116240.png" alt="image-20230819162116240"></p>
|
||
<p><strong>搭建步骤</strong></p>
|
||
<p><img src="/pictures/image-20230819162230133.png" alt="image-20230819162230133"></p>
|
||
<p><strong>heima-leadnews-wemedia配置文件</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">upstream heima-wemedia-gateway{</span><br><span class="line"> #APP端网关所在的端口</span><br><span class="line"> server localhost:51602;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line">server {</span><br><span class="line"> listen 8802;</span><br><span class="line"> location / {</span><br><span class="line"> root C:/Gong/data/wemedia-web/;</span><br><span class="line"> index index.html;</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> location ~/wemedia/MEDIA/(.*) {</span><br><span class="line"> proxy_pass http://heima-wemedia-gateway/$1;</span><br><span class="line"> proxy_set_header HOST $host; # 不改变源请求头的值</span><br><span class="line"> proxy_pass_request_body on; #开启获取请求体</span><br><span class="line"> proxy_pass_request_headers on; #开启获取请求头</span><br><span class="line"> proxy_set_header X-Real-IP $remote_addr; # 记录真实发出请求的客户端IP</span><br><span class="line"> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; #记录代理信息</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>重启nginx访问</strong></p>
|
||
<p><img src="/pictures/image-20230902145814017.png" alt="image-20230902145814017"></p>
|
||
<h2 id="3-自媒体素材管理功能"><a href="#3-自媒体素材管理功能" class="headerlink" title="3.自媒体素材管理功能"></a>3.自媒体素材管理功能</h2><h3 id="3-1-素材管理-图片上传"><a href="#3-1-素材管理-图片上传" class="headerlink" title="3.1 素材管理-图片上传"></a>3.1 素材管理-图片上传</h3><p><strong>图片素材相关的实体类</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.wemedia.pojos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.IdType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * 自媒体图文素材信息表</span></span><br><span class="line"><span class="comment"> * </p></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("wm_material")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmMaterial</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 主键</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId(value = "id", type = IdType.AUTO)</span></span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自媒体用户ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("user_id")</span></span><br><span class="line"> <span class="keyword">private</span> Integer userId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 图片地址</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("url")</span></span><br><span class="line"> <span class="keyword">private</span> String url;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 素材类型</span></span><br><span class="line"><span class="comment"> 0 图片</span></span><br><span class="line"><span class="comment"> 1 视频</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("type")</span></span><br><span class="line"> <span class="keyword">private</span> Short type;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否收藏</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("is_collection")</span></span><br><span class="line"> <span class="keyword">private</span> Short isCollection;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("created_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date createdTime;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-1-1-解决图片素材实体类中获取图片userId的问题"><a href="#3-1-1-解决图片素材实体类中获取图片userId的问题" class="headerlink" title="3.1.1 解决图片素材实体类中获取图片userId的问题"></a>3.1.1 解决图片素材实体类中获取图片userId的问题</h4><p><strong>实现思路</strong></p>
|
||
<p><img src="/pictures/image-20230902154806019.png" alt="image-20230902154806019"></p>
|
||
<p>1.token解析为用户存入header</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.wemedia.gateway.filter;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.wemedia.gateway.util.AppJwtUtil;</span><br><span class="line"><span class="keyword">import</span> io.jsonwebtoken.Claims;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.apache.commons.lang.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cloud.gateway.filter.GatewayFilterChain;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cloud.gateway.filter.GlobalFilter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.core.Ordered;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpStatus;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.server.reactive.ServerHttpRequest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.server.reactive.ServerHttpResponse;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.server.ServerWebExchange;</span><br><span class="line"><span class="keyword">import</span> reactor.core.publisher.Mono;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AuthorizeFilter</span> <span class="keyword">implements</span> <span class="title class_">Ordered</span>, GlobalFilter {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Mono<Void> <span class="title function_">filter</span><span class="params">(ServerWebExchange exchange, GatewayFilterChain chain)</span> {</span><br><span class="line"> <span class="comment">//1.获取request和response对象</span></span><br><span class="line"> <span class="type">ServerHttpRequest</span> <span class="variable">request</span> <span class="operator">=</span> exchange.getRequest();</span><br><span class="line"> <span class="type">ServerHttpResponse</span> <span class="variable">response</span> <span class="operator">=</span> exchange.getResponse();</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.判断是否是登录</span></span><br><span class="line"> <span class="keyword">if</span>(request.getURI().getPath().contains(<span class="string">"/login"</span>)){</span><br><span class="line"> <span class="comment">//放行</span></span><br><span class="line"> <span class="keyword">return</span> chain.filter(exchange);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3.获取token</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">token</span> <span class="operator">=</span> request.getHeaders().getFirst(<span class="string">"token"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//4.判断token是否存在</span></span><br><span class="line"> <span class="keyword">if</span>(StringUtils.isBlank(token)){</span><br><span class="line"> response.setStatusCode(HttpStatus.UNAUTHORIZED);</span><br><span class="line"> <span class="keyword">return</span> response.setComplete();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//5.判断token是否有效</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">Claims</span> <span class="variable">claimsBody</span> <span class="operator">=</span> AppJwtUtil.getClaimsBody(token);</span><br><span class="line"> <span class="comment">//是否是过期</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">result</span> <span class="operator">=</span> AppJwtUtil.verifyToken(claimsBody);</span><br><span class="line"> <span class="keyword">if</span>(result == <span class="number">1</span> || result == <span class="number">2</span>){</span><br><span class="line"> response.setStatusCode(HttpStatus.UNAUTHORIZED);</span><br><span class="line"> <span class="keyword">return</span> response.setComplete();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取用户信息</span></span><br><span class="line"> <span class="type">Object</span> <span class="variable">userId</span> <span class="operator">=</span> claimsBody.get(<span class="string">"id"</span>);</span><br><span class="line"> <span class="comment">//存入header中</span></span><br><span class="line"> <span class="type">ServerHttpRequest</span> <span class="variable">serverHttpRequest</span> <span class="operator">=</span> request.mutate().headers(httpHeaders -> {</span><br><span class="line"> httpHeaders.add(<span class="string">"userId"</span>, userId + <span class="string">""</span>);</span><br><span class="line"> }).build();</span><br><span class="line"> <span class="comment">//重置请求</span></span><br><span class="line"> exchange.mutate().request(serverHttpRequest);</span><br><span class="line"></span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//6.放行</span></span><br><span class="line"> <span class="keyword">return</span> chain.filter(exchange);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 优先级设置 值越小 优先级越高</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getOrder</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.创建拦截器</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.wemedia.interceptor;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.model.wemedia.pojos.WmUser;</span><br><span class="line"><span class="keyword">import</span> com.heima.utils.thread.WmThreadLocalUtil;</span><br><span class="line"><span class="keyword">import</span> io.swagger.models.auth.In;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.HandlerInterceptor;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.ModelAndView;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.util.Enumeration;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/9/2</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmTokenInterceptor</span> <span class="keyword">implements</span> <span class="title class_">HandlerInterceptor</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取header中的信息 存入当前的线程中</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">preHandle</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="comment">//获取header中的userId信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">userId</span> <span class="operator">=</span> request.getHeader(<span class="string">"userId"</span>);</span><br><span class="line"> <span class="comment">//判断userId是否为空</span></span><br><span class="line"> <span class="keyword">if</span>(userId != <span class="literal">null</span>){</span><br><span class="line"> <span class="comment">//将userId存入当前的线程中,我们可以在任何位置获取</span></span><br><span class="line"> <span class="type">WmUser</span> <span class="variable">wmUser</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">WmUser</span>();</span><br><span class="line"> wmUser.setId(Integer.valueOf(userId));</span><br><span class="line"> WmThreadLocalUtil.setUser(wmUser);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 清理线程中的数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">postHandle</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> WmThreadLocalUtil.clear();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>ThreadLocal工具类,实现在线程中存储、获取、清理用户信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.utils.thread;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.model.wemedia.pojos.WmUser;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmThreadLocalUtil</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">final</span> <span class="keyword">static</span> ThreadLocal<WmUser> WM_USER_THREAD_LOCAL = <span class="keyword">new</span> <span class="title class_">ThreadLocal</span><>();</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加用户</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> wmUser</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">setUser</span><span class="params">(WmUser wmUser)</span>{</span><br><span class="line"> WM_USER_THREAD_LOCAL.set(wmUser);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取用户</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> WmUser <span class="title function_">getUser</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> WM_USER_THREAD_LOCAL.get();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 清理用户</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">clear</span><span class="params">()</span>{</span><br><span class="line"> WM_USER_THREAD_LOCAL.remove();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.让拦截器生效</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.wemedia.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.heima.wemedia.interceptor.WmTokenInterceptor;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.InterceptorRegistry;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.WebMvcConfigurer;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/9/2</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WebMvcConfig</span> <span class="keyword">implements</span> <span class="title class_">WebMvcConfigurer</span> {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addInterceptors</span><span class="params">(InterceptorRegistry registry)</span> {</span><br><span class="line"> registry.addInterceptor(<span class="keyword">new</span> <span class="title class_">WmTokenInterceptor</span>()).addPathPatterns(<span class="string">"/**"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-1-2-图片上传接口的定义"><a href="#3-1-2-图片上传接口的定义" class="headerlink" title="3.1.2 图片上传接口的定义"></a>3.1.2 图片上传接口的定义</h4><table>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>接口路径</td>
|
||
<td>/api/v1/material/upload_picture</td>
|
||
</tr>
|
||
<tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>MultipartFile</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h4 id="3-1-3-代码实现"><a href="#3-1-3-代码实现" class="headerlink" title="3.1.3 代码实现"></a>3.1.3 代码实现</h4><p>1.在pom.xml中引入自定义minio的starter依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.heima<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>heima-file-starter<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.在项目中添加minio的配置(在nacos中配置)</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">minio:</span></span><br><span class="line"> <span class="attr">accessKey:</span> <span class="string">minio</span></span><br><span class="line"> <span class="attr">secretKey:</span> <span class="string">minio123</span></span><br><span class="line"> <span class="attr">bucket:</span> <span class="string">leadnews</span></span><br><span class="line"> <span class="attr">endpoint:</span> <span class="string">http://192.168.200.130:9000</span></span><br><span class="line"> <span class="attr">readPath:</span> <span class="string">http://192.168.200.130:9000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.上传图片的关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.wemedia.service.impl;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;</span><br><span class="line"><span class="keyword">import</span> com.heima.file.service.FileStorageService;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.dtos.ResponseResult;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.common.enums.AppHttpCodeEnum;</span><br><span class="line"><span class="keyword">import</span> com.heima.model.wemedia.pojos.WmMaterial;</span><br><span class="line"><span class="keyword">import</span> com.heima.utils.thread.WmThreadLocalUtil;</span><br><span class="line"><span class="keyword">import</span> com.heima.wemedia.mapper.WmMaterialMapper;</span><br><span class="line"><span class="keyword">import</span> com.heima.wemedia.service.WmMaterialService;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"><span class="keyword">import</span> org.springframework.transaction.annotation.Transactional;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.multipart.MultipartFile;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.UUID;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@Service</span></span><br><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmMaterialServiceImpl</span> <span class="keyword">extends</span> <span class="title class_">ServiceImpl</span><WmMaterialMapper, WmMaterial> <span class="keyword">implements</span> <span class="title class_">WmMaterialService</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> FileStorageService fileStorageService; <span class="comment">//使用minio</span></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> ResponseResult <span class="title function_">uploadPicture</span><span class="params">(MultipartFile multipartFile)</span> {</span><br><span class="line"> <span class="comment">//1.检查参数</span></span><br><span class="line"> <span class="keyword">if</span>(multipartFile == <span class="literal">null</span> || multipartFile.getSize() == <span class="number">0</span>){</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//2.上传图片到minio中</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">fileName</span> <span class="operator">=</span> UUID.randomUUID().toString().replace(<span class="string">"-"</span>, <span class="string">""</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">originalFilename</span> <span class="operator">=</span> multipartFile.getOriginalFilename();</span><br><span class="line"> <span class="type">String</span> <span class="variable">postfix</span> <span class="operator">=</span> originalFilename.substring(originalFilename.lastIndexOf(<span class="string">"."</span>));</span><br><span class="line"> <span class="type">String</span> <span class="variable">fileId</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> fileId = fileStorageService.uploadImgFile(<span class="string">""</span>, fileName + postfix, multipartFile.getInputStream());</span><br><span class="line"> log.info(<span class="string">"上传图片到Minio中,fileId:{}"</span>,fileId);</span><br><span class="line"> } <span class="keyword">catch</span> (IOException e) {</span><br><span class="line"> log.info(<span class="string">"WmMaterialServiceImpl-上传图片失败"</span>);</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//3.将图片的信息保存在数据库中</span></span><br><span class="line"> <span class="type">WmMaterial</span> <span class="variable">wmMaterial</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">WmMaterial</span>();</span><br><span class="line"> wmMaterial.setUserId(WmThreadLocalUtil.getUser().getId());</span><br><span class="line"> wmMaterial.setUrl(fileId);</span><br><span class="line"> wmMaterial.setType((<span class="type">short</span>)<span class="number">0</span>);</span><br><span class="line"> wmMaterial.setIsCollection((<span class="type">short</span>)<span class="number">0</span>);</span><br><span class="line"> wmMaterial.setCreatedTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> save(wmMaterial);</span><br><span class="line"> <span class="comment">//4.返回参数</span></span><br><span class="line"> <span class="keyword">return</span> ResponseResult.okResult(wmMaterial);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.测试上传功能</p>
|
||
<p><img src="/pictures/image-20230902220022201.png" alt="image-20230902220022201"></p>
|
||
<h3 id="3-2-素材管理-图片列表"><a href="#3-2-素材管理-图片列表" class="headerlink" title="3.2 素材管理-图片列表"></a>3.2 素材管理-图片列表</h3><p><strong>接口定义</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>接口路径</strong></th>
|
||
<th><strong>/api</strong>/<strong>/v1/material/list</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>WmMaterialDto</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>请求参数的DTO</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmMaterialDto</span> <span class="keyword">extends</span> <span class="title class_">PageRequestDto</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 1 收藏</span></span><br><span class="line"><span class="comment"> * 0 未收藏</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Short isCollection;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>关键代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 素材图片的列表显示</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> ResponseResult <span class="title function_">findList</span><span class="params">(WmMaterialDto wmMaterialDto)</span> {</span><br><span class="line"> <span class="comment">//1.检查参数</span></span><br><span class="line"> wmMaterialDto.checkParam();</span><br><span class="line"> <span class="comment">//2.分页查询</span></span><br><span class="line"> <span class="type">IPage</span> <span class="variable">page</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Page</span>(wmMaterialDto.getPage(),wmMaterialDto.getSize());</span><br><span class="line"> LambdaQueryWrapper<WmMaterial> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="comment">//是否收藏</span></span><br><span class="line"> <span class="keyword">if</span>(wmMaterialDto.getIsCollection() != <span class="literal">null</span> && wmMaterialDto.getIsCollection() == <span class="number">1</span>){</span><br><span class="line"> queryWrapper.eq(WmMaterial::getIsCollection,wmMaterialDto.getIsCollection());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//按照用户查询</span></span><br><span class="line"> queryWrapper.eq(WmMaterial::getUserId,WmThreadLocalUtil.getUser().getId());</span><br><span class="line"> <span class="comment">//按照时间查询</span></span><br><span class="line"> queryWrapper.orderByDesc(WmMaterial::getCreatedTime);</span><br><span class="line"> page = page(page,queryWrapper);</span><br><span class="line"> <span class="comment">//3.结果返回</span></span><br><span class="line"> <span class="type">ResponseResult</span> <span class="variable">responseResult</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PageResponseResult</span>(wmMaterialDto.getPage(), wmMaterialDto.getSize(), (<span class="type">int</span>) page.getTotal());</span><br><span class="line"> responseResult.setData(page.getRecords());</span><br><span class="line"> <span class="keyword">return</span> responseResult;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>MP的配置</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="keyword">public</span> MybatisPlusInterceptor <span class="title function_">mybatisPlusInterceptor</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">MybatisPlusInterceptor</span> <span class="variable">interceptor</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MybatisPlusInterceptor</span>();</span><br><span class="line"> interceptor.addInnerInterceptor(<span class="keyword">new</span> <span class="title class_">PaginationInnerInterceptor</span>(DbType.MYSQL));</span><br><span class="line"> <span class="keyword">return</span> interceptor;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现效果</strong></p>
|
||
<p><img src="/pictures/image-20230903125528872.png" alt="image-20230903125528872"></p>
|
||
<h2 id="4-自媒体文章管理功能"><a href="#4-自媒体文章管理功能" class="headerlink" title="4.自媒体文章管理功能"></a>4.自媒体文章管理功能</h2><h3 id="4-1-频道列表查询"><a href="#4-1-频道列表查询" class="headerlink" title="4.1 频道列表查询"></a>4.1 频道列表查询</h3><p><strong>频道对应的实体类</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.wemedia.pojos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.IdType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * 频道信息表</span></span><br><span class="line"><span class="comment"> * </p></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("wm_channel")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmChannel</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@TableId(value = "id", type = IdType.AUTO)</span></span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 频道名称</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("name")</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 频道描述</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("description")</span></span><br><span class="line"> <span class="keyword">private</span> String description;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否默认频道</span></span><br><span class="line"><span class="comment"> * 1:默认 true</span></span><br><span class="line"><span class="comment"> * 0:非默认 false</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("is_default")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean isDefault;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否启用</span></span><br><span class="line"><span class="comment"> * 1:启用 true</span></span><br><span class="line"><span class="comment"> * 0:禁用 false</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("status")</span></span><br><span class="line"> <span class="keyword">private</span> Boolean status;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 默认排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("ord")</span></span><br><span class="line"> <span class="keyword">private</span> Integer ord;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("created_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date createdTime;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>接口定义</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>接口路径</td>
|
||
<td>/api/v1/channel/channels</td>
|
||
</tr>
|
||
<tr>
|
||
<td>请求方式</td>
|
||
<td>GET</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>无</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>关键代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有的频道信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@GetMapping("/channels")</span></span><br><span class="line"><span class="keyword">public</span> ResponseResult <span class="title function_">findAllChannels</span><span class="params">()</span>{</span><br><span class="line"> List<WmChannel> channels = wmChannelService.list();</span><br><span class="line"> <span class="keyword">return</span> ResponseResult.okResult(channels);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现效果</strong></p>
|
||
<p><img src="/pictures/image-20230903151216766.png" alt="image-20230903151216766"></p>
|
||
<h3 id="4-2-文章列表加载"><a href="#4-2-文章列表加载" class="headerlink" title="4.2 文章列表加载"></a>4.2 文章列表加载</h3><p><strong>文章表对应的实体类</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.wemedia.pojos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.IdType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.apache.ibatis.type.Alias;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * 自媒体图文内容信息表</span></span><br><span class="line"><span class="comment"> * </p></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("wm_news")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmNews</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 主键</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId(value = "id", type = IdType.AUTO)</span></span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自媒体用户ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("user_id")</span></span><br><span class="line"> <span class="keyword">private</span> Integer userId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 标题</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("title")</span></span><br><span class="line"> <span class="keyword">private</span> String title;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 图文内容</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("content")</span></span><br><span class="line"> <span class="keyword">private</span> String content;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 文章布局</span></span><br><span class="line"><span class="comment"> 0 无图文章</span></span><br><span class="line"><span class="comment"> 1 单图文章</span></span><br><span class="line"><span class="comment"> 3 多图文章</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("type")</span></span><br><span class="line"> <span class="keyword">private</span> Short type;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 图文频道ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("channel_id")</span></span><br><span class="line"> <span class="keyword">private</span> Integer channelId;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@TableField("labels")</span></span><br><span class="line"> <span class="keyword">private</span> String labels;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("created_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date createdTime;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 提交时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("submited_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date submitedTime;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当前状态</span></span><br><span class="line"><span class="comment"> 0 草稿</span></span><br><span class="line"><span class="comment"> 1 提交(待审核)</span></span><br><span class="line"><span class="comment"> 2 审核失败</span></span><br><span class="line"><span class="comment"> 3 人工审核</span></span><br><span class="line"><span class="comment"> 4 人工审核通过</span></span><br><span class="line"><span class="comment"> 8 审核通过(待发布)</span></span><br><span class="line"><span class="comment"> 9 已发布</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("status")</span></span><br><span class="line"> <span class="keyword">private</span> Short status;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 定时发布时间,不定时则为空</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("publish_time")</span></span><br><span class="line"> <span class="keyword">private</span> Date publishTime;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 拒绝理由</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("reason")</span></span><br><span class="line"> <span class="keyword">private</span> String reason;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发布库文章ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("article_id")</span></span><br><span class="line"> <span class="keyword">private</span> Long articleId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * //图片用逗号分隔</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("images")</span></span><br><span class="line"> <span class="keyword">private</span> String images;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@TableField("enable")</span></span><br><span class="line"> <span class="keyword">private</span> Short enable;</span><br><span class="line"> </span><br><span class="line"> <span class="comment">//状态枚举类</span></span><br><span class="line"> <span class="meta">@Alias("WmNewsStatus")</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">enum</span> <span class="title class_">Status</span>{</span><br><span class="line"> NORMAL((<span class="type">short</span>)<span class="number">0</span>),SUBMIT((<span class="type">short</span>)<span class="number">1</span>),FAIL((<span class="type">short</span>)<span class="number">2</span>),ADMIN_AUTH((<span class="type">short</span>)<span class="number">3</span>),ADMIN_SUCCESS((<span class="type">short</span>)<span class="number">4</span>),SUCCESS((<span class="type">short</span>)<span class="number">8</span>),PUBLISHED((<span class="type">short</span>)<span class="number">9</span>);</span><br><span class="line"> <span class="type">short</span> code;</span><br><span class="line"> Status(<span class="type">short</span> code){</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">public</span> <span class="type">short</span> <span class="title function_">getCode</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="built_in">this</span>.code;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>接口定义</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th><strong>接口路径</strong></th>
|
||
<th><strong>/api</strong>/<strong>/v1/news/list</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>WmNewsPageReqDto</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>关键代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> ResponseResult <span class="title function_">findNewsList</span><span class="params">(WmNewsPageReqDto wmNewsPageReqDto)</span> {</span><br><span class="line"> <span class="comment">//1.检查参数</span></span><br><span class="line"> wmNewsPageReqDto.checkParam();</span><br><span class="line"> <span class="comment">//2.根据条件查询</span></span><br><span class="line"> <span class="type">IPage</span> <span class="variable">page</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Page</span>(wmNewsPageReqDto.getPage(), wmNewsPageReqDto.getSize());</span><br><span class="line"> LambdaQueryWrapper<WmNews> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="comment">//状态</span></span><br><span class="line"> <span class="keyword">if</span>(wmNewsPageReqDto.getStatus() != <span class="literal">null</span>){</span><br><span class="line"> queryWrapper.eq(WmNews::getStatus,wmNewsPageReqDto.getStatus());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//开始时间 结束时间</span></span><br><span class="line"> <span class="keyword">if</span>(wmNewsPageReqDto.getBeginPubDate() != <span class="literal">null</span> && wmNewsPageReqDto.getEndPubDate()!=<span class="literal">null</span>){</span><br><span class="line"> queryWrapper.between(WmNews::getPublishTime,wmNewsPageReqDto.getBeginPubDate(),wmNewsPageReqDto.getEndPubDate());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//所属频道id</span></span><br><span class="line"> <span class="keyword">if</span>(wmNewsPageReqDto.getChannelId() != <span class="literal">null</span>){</span><br><span class="line"> queryWrapper.eq(WmNews::getChannelId,wmNewsPageReqDto.getChannelId());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//关键字</span></span><br><span class="line"> <span class="keyword">if</span>(wmNewsPageReqDto.getKeyword() != <span class="literal">null</span>){</span><br><span class="line"> queryWrapper.like(WmNews::getTitle,wmNewsPageReqDto.getKeyword());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//查询当前登录人的文章</span></span><br><span class="line"> queryWrapper.eq(WmNews::getUserId, WmThreadLocalUtil.getUser().getId());</span><br><span class="line"> <span class="comment">//按照发布时间倒序查询</span></span><br><span class="line"> queryWrapper.orderByDesc(WmNews::getPublishTime);</span><br><span class="line"> page = page(page,queryWrapper);</span><br><span class="line"> <span class="comment">//3.结果返回</span></span><br><span class="line"> <span class="type">ResponseResult</span> <span class="variable">responseResult</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PageResponseResult</span>(wmNewsPageReqDto.getPage(), wmNewsPageReqDto.getSize(), (<span class="type">int</span>) page.getTotal());</span><br><span class="line"> responseResult.setData(page.getRecords());</span><br><span class="line"> <span class="keyword">return</span> responseResult;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现效果</strong></p>
|
||
<p><img src="/pictures/image-20230903185956428.png" alt="image-20230903185956428"></p>
|
||
<h3 id="4-3-发布文章功能-核心功能"><a href="#4-3-发布文章功能-核心功能" class="headerlink" title="4.3 发布文章功能(核心功能)"></a>4.3 发布文章功能(核心功能)</h3><p><strong>文章和素材对应关系表</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.wemedia.pojos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.IdType;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableField;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * 自媒体图文引用素材信息表</span></span><br><span class="line"><span class="comment"> * </p></span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> itheima</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("wm_news_material")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmNewsMaterial</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 主键</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId(value = "id", type = IdType.AUTO)</span></span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 素材ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("material_id")</span></span><br><span class="line"> <span class="keyword">private</span> Integer materialId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 图文ID</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("news_id")</span></span><br><span class="line"> <span class="keyword">private</span> Integer newsId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 引用类型</span></span><br><span class="line"><span class="comment"> 0 内容引用</span></span><br><span class="line"><span class="comment"> 1 主图引用</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("type")</span></span><br><span class="line"> <span class="keyword">private</span> Short type;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 引用排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableField("ord")</span></span><br><span class="line"> <span class="keyword">private</span> Short ord;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>实现流程</strong></p>
|
||
<p><img src="/pictures/image-20230904151910210.png" alt="image-20230904151910210"></p>
|
||
<p><strong>接口定义</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th><strong>说明</strong></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>接口路径</td>
|
||
<td>/api/v1/news/submit</td>
|
||
</tr>
|
||
<tr>
|
||
<td>请求方式</td>
|
||
<td>POST</td>
|
||
</tr>
|
||
<tr>
|
||
<td>参数</td>
|
||
<td>WmNewsDto</td>
|
||
</tr>
|
||
<tr>
|
||
<td>响应结果</td>
|
||
<td>ResponseResult</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>WmNewsDto</strong> </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.model.wemedia.dtos;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WmNewsDto</span> {</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">private</span> Integer id;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 标题</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String title;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 频道id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer channelId;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 标签</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String labels;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发布时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Date publishTime;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 文章内容</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String content;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 文章封面类型 0 无图 1 单图 3 多图 -1 自动</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Short type;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 提交时间</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Date submitedTime; </span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 状态 提交为1 草稿为0</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Short status;</span><br><span class="line"> </span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 封面图片列表 多张图以逗号隔开</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<String> images;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>前端接受数据格式</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"title"</span><span class="punctuation">:</span><span class="string">"黑马头条项目背景"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span><span class="string">"1"</span><span class="punctuation">,</span><span class="comment">//这个 0 是无图 1 是单图 3 是多图 -1 是自动</span></span><br><span class="line"> <span class="attr">"labels"</span><span class="punctuation">:</span><span class="string">"黑马头条"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"publishTime"</span><span class="punctuation">:</span><span class="string">"2020-03-14T11:35:49.000Z"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"channelId"</span><span class="punctuation">:</span><span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span><span class="punctuation">[</span></span><br><span class="line"> <span class="string">"http://192.168.200.130/group1/M00/00/00/wKjIgl5swbGATaSAAAEPfZfx6Iw790.png"</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span><span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"content"</span><span class="punctuation">:</span><span class="string">"[</span></span><br><span class="line"><span class="string"> {</span></span><br><span class="line"><span class="string"> "</span>type<span class="string">":"</span>text<span class="string">",</span></span><br><span class="line"><span class="string"> "</span>value<span class="string">":"</span>随着智能手机的普及,人们更加习惯于通过手机来看新闻。由于生活节奏的加快,很多人只能利用碎片时间来获取信息,因此,对于移动资讯客户端的需求也越来越高。黑马头条项目正是在这样背景下开发出来。黑马头条项目采用当下火热的微服务+大数据技术架构实现。本项目主要着手于获取最新最热新闻资讯,通过大数据分析用户喜好精确推送咨询新闻<span class="string">"</span></span><br><span class="line"><span class="string"> },</span></span><br><span class="line"><span class="string"> {</span></span><br><span class="line"><span class="string"> "</span>type<span class="string">":"</span>image<span class="string">",</span></span><br><span class="line"><span class="string"> "</span>value<span class="string">":"</span>http<span class="punctuation">:</span><span class="comment">//192.168.200.130/group1/M00/00/00/wKjIgl5swbGATaSAAAEPfZfx6Iw790.png"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">]</span><span class="string">"</span></span><br><span class="line"><span class="string">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>保存文章和素材对应关系mapper接口</strong></p>
|
||
<p>mapper接口</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Mapper</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">WmNewsMaterialMapper</span> <span class="keyword">extends</span> <span class="title class_">BaseMapper</span><WmNewsMaterial> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 批量保存文章和素材之间的关系</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> materialIds 素材的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> newsId 文章的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> type 类型</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">saveRelations</span><span class="params">(<span class="meta">@Param("materialIds")</span> List<Integer> materialIds,<span class="meta">@Param("newsId")</span> Integer newsId, <span class="meta">@Param("type")</span>Short type)</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>xml文件</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">mapper</span> <span class="keyword">PUBLIC</span> <span class="string">"-//mybatis.org//DTD Mapper 3.0//EN"</span> <span class="string">"http://mybatis.org/dtd/mybatis-3-mapper.dtd"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">mapper</span> <span class="attr">namespace</span>=<span class="string">"com.heima.wemedia.mapper.WmNewsMaterialMapper"</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">insert</span> <span class="attr">id</span>=<span class="string">"saveRelations"</span>></span></span><br><span class="line"> insert into wm_news_material (material_id,news_id,type,ord)</span><br><span class="line"> values</span><br><span class="line"> <span class="tag"><<span class="name">foreach</span> <span class="attr">collection</span>=<span class="string">"materialIds"</span> <span class="attr">index</span>=<span class="string">"ord"</span> <span class="attr">item</span>=<span class="string">"mid"</span> <span class="attr">separator</span>=<span class="string">","</span>></span></span><br><span class="line"> (#{mid},#{newsId},#{type},#{ord})</span><br><span class="line"> <span class="tag"></<span class="name">foreach</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">insert</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">mapper</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>使用到的常量类</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.heima.common.constants;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WemediaConstants</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">COLLECT_MATERIAL</span> <span class="operator">=</span> <span class="number">1</span>;<span class="comment">//收藏</span></span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">CANCEL_COLLECT_MATERIAL</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//取消收藏</span></span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">WM_NEWS_TYPE_IMAGE</span> <span class="operator">=</span> <span class="string">"image"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_NEWS_NONE_IMAGE</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_NEWS_SINGLE_IMAGE</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_NEWS_MANY_IMAGE</span> <span class="operator">=</span> <span class="number">3</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_NEWS_TYPE_AUTO</span> <span class="operator">=</span> -<span class="number">1</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_CONTENT_REFERENCE</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">Short</span> <span class="variable">WM_COVER_REFERENCE</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>项目实战</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>数据结构与算法</title>
|
||
<url>/posts/40445.html</url>
|
||
<content><![CDATA[<p>代码仓库的地址:<a href="https://gitee.com/JasonsGong/DataStructures">https://gitee.com/JasonsGong/DataStructures</a></p>
|
||
<h2 id="一-经典算法问题"><a href="#一-经典算法问题" class="headerlink" title="一.经典算法问题"></a>一.经典算法问题</h2><p>字符串匹配 KMP算法 </p>
|
||
<p>汉诺塔问题 分治算法</p>
|
||
<p>八皇后问题 回溯算法 </p>
|
||
<p>马踏棋盘问题 图的深度优化遍历算法(DFS)和 贪心算法优化</p>
|
||
<h2 id="二-数据结构与算法的概述"><a href="#二-数据结构与算法的概述" class="headerlink" title="二.数据结构与算法的概述"></a>二.数据结构与算法的概述</h2><h3 id="2-1-数据结构与算法的关系"><a href="#2-1-数据结构与算法的关系" class="headerlink" title="2.1 数据结构与算法的关系"></a>2.1 数据结构与算法的关系</h3><p>(1)数据(data)结构(structure)是一门研究组织数据方式的学科,有了编程语言也就有了数据结构,学好了数据结构可以编写出更加漂亮,更加有效率的代码。</p>
|
||
<p>(2)程序=数据结构+算法</p>
|
||
<p>(3)数据结构是算法的基础</p>
|
||
<h3 id="2-2解决实际的问题"><a href="#2-2解决实际的问题" class="headerlink" title="2.2解决实际的问题"></a>2.2解决实际的问题</h3><p>五子棋程序 稀疏数组(压缩存档) 二维数组->转化成稀疏数组->存档 读档反之</p>
|
||
<p>约瑟夫问题(丢手帕问题) 单向环形列表</p>
|
||
<p>修路问题 求最小生成树 + 普利姆算法</p>
|
||
<p>最短路径问题 图+弗洛伊德算法</p>
|
||
<h3 id="2-3-数据结构"><a href="#2-3-数据结构" class="headerlink" title="2.3 数据结构"></a>2.3 数据结构</h3><p>线性结构:</p>
|
||
<p> 线性结构作为最常用的数据结构,其特点是数据元素之间存在一对一的线性关系</p>
|
||
<p> 线性结构有两种不同的存储结构,即顺序存储结构和链式存储结构。顺序存储的线性表称为顺序表,顺序表中的存储元素是连续的</p>
|
||
<p> 链式存储的线性表称为链表,链表中的存储元素不一定是连续的,元素节点中存放数据元素以及相邻元素的地址信息</p>
|
||
<p> 线性结构常见的有:数组、队列、链表和栈</p>
|
||
<p>非线性结构:</p>
|
||
<p> 二维数组,多维数组,广义表,树结构,图结构</p>
|
||
<h2 id="三-稀疏数组和队列"><a href="#三-稀疏数组和队列" class="headerlink" title="三.稀疏数组和队列"></a>三.稀疏数组和队列</h2><h3 id="3-1稀疏数组"><a href="#3-1稀疏数组" class="headerlink" title="3.1稀疏数组"></a>3.1稀疏数组</h3><h4 id="3-1-1-基本的介绍"><a href="#3-1-1-基本的介绍" class="headerlink" title="3.1.1 基本的介绍"></a>3.1.1 基本的介绍</h4><p> 当一个数组中大部分元素为0,或者为同一个值的数组时,可以使用稀疏数组来保存该数组。</p>
|
||
<p>稀疏数组的处理方法是:</p>
|
||
<p> 1)记录数组一共有几行几列,有多少个不同的值</p>
|
||
<p> 2)把具有不同值的元素的行列及值记录在一个小规模的数组中,从而缩小程序的规模</p>
|
||
<h4 id="3-1-2使用的场景"><a href="#3-1-2使用的场景" class="headerlink" title="3.1.2使用的场景"></a>3.1.2使用的场景</h4><p> 五子棋程序的存档和退出功能的实现</p>
|
||
<h4 id="3-1-3图解"><a href="#3-1-3图解" class="headerlink" title="3.1.3图解"></a>3.1.3图解</h4><p>第一行记录的是原始的数组有几行几列有几个非零的值 例如下面的数组是一个6行7列有8个非零值的数组</p>
|
||
<p><img src="/pictures/image-20230313124552408.png" alt="image-20230313124552408"></p>
|
||
<h4 id="3-1-5实现的思路"><a href="#3-1-5实现的思路" class="headerlink" title="3.1.5实现的思路"></a>3.1.5实现的思路</h4><p><img src="/pictures/image-20230318100138197.png" alt="image-20230318100138197"></p>
|
||
<h4 id="3-1-5代码实现"><a href="#3-1-5代码实现" class="headerlink" title="3.1.5代码实现"></a>3.1.5代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sparsearray;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/3/18</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 稀疏数组的代码实现 稀疏数组和二维数组之间的互转</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SparseArray</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//创建一个原始的二维数组</span></span><br><span class="line"> <span class="comment">//0:表示没有棋子 1:表示黑子 2:表示白子</span></span><br><span class="line"> <span class="type">int</span>[][] chessArr1 = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">11</span>][<span class="number">11</span>];</span><br><span class="line"> chessArr1[<span class="number">1</span>][<span class="number">2</span>] = <span class="number">1</span>;</span><br><span class="line"> chessArr1[<span class="number">2</span>][<span class="number">3</span>] = <span class="number">2</span>;</span><br><span class="line"> chessArr1[<span class="number">4</span>][<span class="number">5</span>] = <span class="number">1</span>;</span><br><span class="line"> <span class="comment">//遍历输出</span></span><br><span class="line"> System.out.println(<span class="string">"原始的二维数组"</span>);</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span>[] row : chessArr1) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> num : row) {</span><br><span class="line"> System.out.print(num + <span class="string">" "</span>);</span><br><span class="line"> }</span><br><span class="line"> System.out.println();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//将二维数组转化成稀疏数组</span></span><br><span class="line"> <span class="comment">//获取原始二维数组中非零元素的个数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">sum</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span>[] row : chessArr1) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> num : row) {</span><br><span class="line"> <span class="keyword">if</span> (num != <span class="number">0</span>) {</span><br><span class="line"> sum++;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"非零元素的个数:"</span> + sum);</span><br><span class="line"> <span class="comment">//根据非零的元素的个数创建对应的稀疏数组</span></span><br><span class="line"> <span class="type">int</span>[][] sparseArr2 = <span class="keyword">new</span> <span class="title class_">int</span>[sum + <span class="number">1</span>][<span class="number">3</span>];</span><br><span class="line"> <span class="comment">//给稀疏数组赋值</span></span><br><span class="line"> <span class="comment">//第一行的赋值操作</span></span><br><span class="line"> sparseArr2[<span class="number">0</span>][<span class="number">0</span>] = <span class="number">11</span>;</span><br><span class="line"> sparseArr2[<span class="number">0</span>][<span class="number">1</span>] = <span class="number">11</span>;</span><br><span class="line"> sparseArr2[<span class="number">0</span>][<span class="number">2</span>] = sum;</span><br><span class="line"> <span class="comment">//其余行的赋值操作</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">row</span> <span class="operator">=</span> <span class="number">1</span>; <span class="comment">//充当计数器的作用</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < chessArr1.length; i++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < chessArr1[i].length; j++) {</span><br><span class="line"> <span class="keyword">if</span> (chessArr1[i][j] != <span class="number">0</span>) {</span><br><span class="line"> sparseArr2[row][<span class="number">0</span>] = i;</span><br><span class="line"> sparseArr2[row][<span class="number">1</span>] = j;</span><br><span class="line"> sparseArr2[row][<span class="number">2</span>] = chessArr1[i][j];</span><br><span class="line"> row++;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//遍历稀疏数组</span></span><br><span class="line"> System.out.println(<span class="string">"得到的稀疏数组如下"</span>);</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span>[] ints : sparseArr2) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> anInt : ints) {</span><br><span class="line"> System.out.print(anInt + <span class="string">" "</span>);</span><br><span class="line"> }</span><br><span class="line"> System.out.println();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//将稀疏数组转化成二维数组</span></span><br><span class="line"> <span class="comment">//获取原先的二维数组的大小</span></span><br><span class="line"> <span class="comment">//读取第一行 获取原始二维数组的行列值</span></span><br><span class="line"> <span class="type">int</span>[][] sparseArr3 = <span class="keyword">new</span> <span class="title class_">int</span>[sparseArr2[<span class="number">0</span>][<span class="number">0</span>]][sparseArr2[<span class="number">0</span>][<span class="number">1</span>]];</span><br><span class="line"> <span class="comment">//遍历稀疏数组第二行之后的值 赋值给原始的数组 从第二行开始算</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">1</span>; i < sparseArr2.length; i++) {</span><br><span class="line"> sparseArr3[sparseArr2[i][<span class="number">0</span>]][sparseArr2[i][<span class="number">1</span>]] = sparseArr2[i][<span class="number">2</span>];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//遍历还原之后的二维数组</span></span><br><span class="line"> System.out.println(<span class="string">"稀疏数组还原成二维数组"</span>);</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span>[] ints : sparseArr3) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> anInt : ints) {</span><br><span class="line"> System.out.print(anInt+<span class="string">" "</span>);</span><br><span class="line"> }</span><br><span class="line"> System.out.println();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="3-2队列"><a href="#3-2队列" class="headerlink" title="3.2队列"></a>3.2队列</h3><h4 id="3-2-1基本的介绍"><a href="#3-2-1基本的介绍" class="headerlink" title="3.2.1基本的介绍"></a>3.2.1基本的介绍</h4><p>先进先出</p>
|
||
<p> 队列是一个有序列表,可以通过数组或者链表实现。</p>
|
||
<p> 遵循先入先出的原则。即:先存入队列的数据,要先取出。后存入队列的数据要后取出。</p>
|
||
<h4 id="3-2-2代码实现"><a href="#3-2-2代码实现" class="headerlink" title="3.2.2代码实现"></a>3.2.2代码实现</h4><p> 使用数组模拟队列 </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.queue;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Scanner;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/3/18</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用数组模拟队列</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArrayQueueDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//测试一把</span></span><br><span class="line"> <span class="comment">//创建一个队列</span></span><br><span class="line"> <span class="type">ArrayQueue</span> <span class="variable">queue</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayQueue</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="type">char</span> <span class="variable">key</span> <span class="operator">=</span> <span class="string">' '</span>; <span class="comment">//接收用户输入</span></span><br><span class="line"> <span class="type">Scanner</span> <span class="variable">scanner</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Scanner</span>(System.in);<span class="comment">//</span></span><br><span class="line"> <span class="type">boolean</span> <span class="variable">loop</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line"> <span class="comment">//输出一个菜单</span></span><br><span class="line"> <span class="keyword">while</span> (loop) {</span><br><span class="line"> System.out.println(<span class="string">"s(show): 显示队列"</span>);</span><br><span class="line"> System.out.println(<span class="string">"e(exit): 退出程序"</span>);</span><br><span class="line"> System.out.println(<span class="string">"a(add): 添加数据到队列"</span>);</span><br><span class="line"> System.out.println(<span class="string">"g(get): 从队列取出数据"</span>);</span><br><span class="line"> System.out.println(<span class="string">"h(head): 查看队列头的数据"</span>);</span><br><span class="line"> key = scanner.next().charAt(<span class="number">0</span>);<span class="comment">//接收一个字符</span></span><br><span class="line"> <span class="keyword">switch</span> (key) {</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'s'</span>:</span><br><span class="line"> queue.showQueue();</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'a'</span>:</span><br><span class="line"> System.out.println(<span class="string">"输出一个数"</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">value</span> <span class="operator">=</span> scanner.nextInt();</span><br><span class="line"> queue.addQueue(value);</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'g'</span>: <span class="comment">//取出数据</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> queue.getQueue();</span><br><span class="line"> System.out.printf(<span class="string">"取出的数据是%d\n"</span>, res);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> <span class="comment">// <span class="doctag">TODO:</span> handle exception</span></span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'h'</span>: <span class="comment">//查看队列头的数据</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> queue.headQueue();</span><br><span class="line"> System.out.printf(<span class="string">"队列头的数据是%d\n"</span>, res);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> <span class="comment">// <span class="doctag">TODO:</span> handle exception</span></span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'e'</span>: <span class="comment">//退出</span></span><br><span class="line"> scanner.close();</span><br><span class="line"> loop = <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">default</span>:</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"程序退出~~"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">// 使用数组模拟队列-编写一个ArrayQueue类</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">ArrayQueue</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> maxSize; <span class="comment">// 表示数组的最大容量</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> front; <span class="comment">// 队列头</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> rear; <span class="comment">// 队列尾</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span>[] arr; <span class="comment">// 该数据用于存放数据, 模拟队列</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建队列的构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ArrayQueue</span><span class="params">(<span class="type">int</span> arrMaxSize)</span> {</span><br><span class="line"> maxSize = arrMaxSize;</span><br><span class="line"> arr = <span class="keyword">new</span> <span class="title class_">int</span>[maxSize];</span><br><span class="line"> front = -<span class="number">1</span>; <span class="comment">// 指向队列头部,分析出front是指向队列头的前一个位置.</span></span><br><span class="line"> rear = -<span class="number">1</span>; <span class="comment">// 指向队列尾,指向队列尾的数据(即就是队列最后一个数据)</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 判断队列是否满</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isFull</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> rear == maxSize - <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 判断队列是否为空</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isEmpty</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> rear == front;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 添加数据到队列</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addQueue</span><span class="params">(<span class="type">int</span> n)</span> {</span><br><span class="line"> <span class="comment">// 判断队列是否满</span></span><br><span class="line"> <span class="keyword">if</span> (isFull()) {</span><br><span class="line"> System.out.println(<span class="string">"队列满,不能加入数据~"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> rear++; <span class="comment">// 让rear 后移</span></span><br><span class="line"> arr[rear] = n;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 获取队列的数据, 出队列</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 判断队列是否空</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> <span class="comment">// 通过抛出异常</span></span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"队列空,不能取数据"</span>);</span><br><span class="line"> }</span><br><span class="line"> front++; <span class="comment">// front后移</span></span><br><span class="line"> <span class="keyword">return</span> arr[front];</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 显示队列的所有数据</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">showQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 遍历</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> System.out.println(<span class="string">"队列空的,没有数据~~"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length; i++) {</span><br><span class="line"> System.out.printf(<span class="string">"arr[%d]=%d\n"</span>, i, arr[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 显示队列的头数据, 注意不是取出数据</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">headQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 判断</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"队列空的,没有数据~~"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> arr[front + <span class="number">1</span>];</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h4 id="3-2-3-数组模拟环形队列"><a href="#3-2-3-数组模拟环形队列" class="headerlink" title="3.2.3 数组模拟环形队列"></a>3.2.3 数组模拟环形队列</h4><p>环形队列的思路分析</p>
|
||
<ul>
|
||
<li>环形队列满的条件:(rear + 1) % maxSize == front</li>
|
||
<li>环形队列空的条件:rear == front</li>
|
||
<li>环形队列中有效数据的个数: (rear + maxSize - front) % maxSize</li>
|
||
</ul>
|
||
<p><img src="/pictures/image-20230428124659873.png" alt="image-20230428124659873"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.queue;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Scanner;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/28</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 模拟环形队列</span></span><br><span class="line"><span class="comment"> * <p></span></span><br><span class="line"><span class="comment"> * 环形队列满的条件:(rear + 1) % maxSize == front</span></span><br><span class="line"><span class="comment"> * 环形队列空的条件:rear == front</span></span><br><span class="line"><span class="comment"> * 环形队列中有效数据的个数: (rear + maxSize - front) % maxSize</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CircleArrayQueueDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//创建一个队列</span></span><br><span class="line"> System.out.println(<span class="string">"测试环形队列"</span>);</span><br><span class="line"> <span class="type">CircleArray</span> <span class="variable">queue</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CircleArray</span>(<span class="number">3</span>);</span><br><span class="line"> <span class="type">char</span> <span class="variable">key</span> <span class="operator">=</span> <span class="string">' '</span>; <span class="comment">//接收用户输入</span></span><br><span class="line"> <span class="type">Scanner</span> <span class="variable">scanner</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Scanner</span>(System.in);<span class="comment">//</span></span><br><span class="line"> <span class="type">boolean</span> <span class="variable">loop</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line"> <span class="comment">//输出一个菜单</span></span><br><span class="line"> <span class="keyword">while</span> (loop) {</span><br><span class="line"> System.out.println(<span class="string">"s(show): 显示队列"</span>);</span><br><span class="line"> System.out.println(<span class="string">"e(exit): 退出程序"</span>);</span><br><span class="line"> System.out.println(<span class="string">"a(add): 添加数据到队列"</span>);</span><br><span class="line"> System.out.println(<span class="string">"g(get): 从队列取出数据"</span>);</span><br><span class="line"> System.out.println(<span class="string">"h(head): 查看队列头的数据"</span>);</span><br><span class="line"> key = scanner.next().charAt(<span class="number">0</span>);<span class="comment">//接收一个字符</span></span><br><span class="line"> <span class="keyword">switch</span> (key) {</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'s'</span>:</span><br><span class="line"> queue.showQueue();</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'a'</span>:<span class="comment">//添加数据</span></span><br><span class="line"> System.out.println(<span class="string">"输出一个数"</span>);</span><br><span class="line"> <span class="type">int</span> <span class="variable">value</span> <span class="operator">=</span> scanner.nextInt();</span><br><span class="line"> queue.addQueue(value);</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'g'</span>: <span class="comment">//取出数据</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> queue.getQueue();</span><br><span class="line"> System.out.printf(<span class="string">"取出的数据是%d\n"</span>, res);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> <span class="comment">// <span class="doctag">TODO:</span> handle exception</span></span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'h'</span>: <span class="comment">//查看队列头的数据</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> queue.headQueue();</span><br><span class="line"> System.out.printf(<span class="string">"队列头的数据是%d\n"</span>, res);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> <span class="comment">// <span class="doctag">TODO:</span> handle exception</span></span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'e'</span>: <span class="comment">//退出</span></span><br><span class="line"> scanner.close();</span><br><span class="line"> loop = <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">default</span>:</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"程序退出~~"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">CircleArray</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> maxSize; <span class="comment">// 表示数组的最大容量 因为预留了一个空间 实际上maxSize=3 只能存储两个元素</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> front; <span class="comment">// 队列头 初始值是0</span></span><br><span class="line"> <span class="comment">//rear 变量的含义做一个调整:rear 指向队列的最后一个元素的后一个位置. 因为希望空出一个空间做为约定</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> rear; <span class="comment">// 队列尾</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span>[] arr; <span class="comment">// 该数据用于存放数据, 模拟队列</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 构造方法</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arrMaxSize 环形队列的最大容量</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">CircleArray</span><span class="params">(<span class="type">int</span> arrMaxSize)</span> {</span><br><span class="line"> maxSize = arrMaxSize;</span><br><span class="line"> arr = <span class="keyword">new</span> <span class="title class_">int</span>[maxSize];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断队列是否为满</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isFull</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//因为是环形队列 如果尾部队列的后一个指向队列的头部 那么我们认为队列是满的</span></span><br><span class="line"> <span class="keyword">return</span> (rear + <span class="number">1</span>) % maxSize == front; <span class="comment">//这里是一个理解点</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断队列是否为空</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isEmpty</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> rear == front;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addQueue</span><span class="params">(<span class="type">int</span> n)</span> {</span><br><span class="line"> <span class="comment">//先判断队列是否为满 满了就不添加</span></span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.isFull()) {</span><br><span class="line"> System.out.println(<span class="string">"队列为满,不能添加数据!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//添加数据</span></span><br><span class="line"> arr[rear] = n;</span><br><span class="line"> <span class="comment">//将人rear向后移</span></span><br><span class="line"> rear = (rear + <span class="number">1</span>) % maxSize; <span class="comment">//这里是一个理解点</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 取出数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断队列是否为空 空了就无法取出数据</span></span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.isEmpty()) {</span><br><span class="line"> System.out.println(<span class="string">"队列为空,无法取出数据!"</span>);</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"队列空,不能取数据"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//不为空 取出数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">result</span> <span class="operator">=</span> arr[front];</span><br><span class="line"> front = (front + <span class="number">1</span>) % maxSize; <span class="comment">//这里是一个理解点</span></span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示对垒数据的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">showQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//判断队列是否为空 如果队列为空就不遍历</span></span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.isEmpty()) {</span><br><span class="line"> System.out.println(<span class="string">"队列为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//遍历的方式 从front开始遍历 遍历多少个元素</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="built_in">this</span>.size();</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> front; i < front + count; i++) {<span class="comment">//主要作用是遍历多少次</span></span><br><span class="line"> System.out.println(<span class="string">"arr["</span> + i % maxSize + <span class="string">"]="</span> + arr[i % maxSize]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 求出当前数列中有效数据的个数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">size</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> (rear + maxSize - front) % maxSize; <span class="comment">//这是一个理解点</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示队列的头元素</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">headQueue</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 判断</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"队列空的,没有数据~~"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> arr[front];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="四-链表"><a href="#四-链表" class="headerlink" title="四.链表"></a>四.链表</h2><h3 id="4-1-链表-Linked-List-介绍"><a href="#4-1-链表-Linked-List-介绍" class="headerlink" title="4.1 链表(Linked List)介绍"></a>4.1 链表(Linked List)介绍</h3><p>在内存中不是连续存储的</p>
|
||
<h3 id=""><a href="#" class="headerlink" title=""></a><img src="/pictures/image-20230428134234636.png"></h3><p>链表的逻辑结构</p>
|
||
<p><img src="/pictures/image-20230428135032883.png" alt="image-20230428135032883"></p>
|
||
<h3 id="4-2单链表的应用实例-CRUD"><a href="#4-2单链表的应用实例-CRUD" class="headerlink" title="4.2单链表的应用实例(CRUD)"></a>4.2单链表的应用实例(CRUD)</h3><p>使用带head头的单向链表实现 –水浒英雄排行榜管理 完成对英雄人物的增删改查操作</p>
|
||
<h4 id="4-2-1向单链表中添加数据"><a href="#4-2-1向单链表中添加数据" class="headerlink" title="4.2.1向单链表中添加数据"></a>4.2.1向单链表中添加数据</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.linkedlist;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/28</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 单链表的实现</span></span><br><span class="line"><span class="comment"> * 使用带head头的单向链表实现 –水浒英雄排行榜管理</span></span><br><span class="line"><span class="comment"> * 完成对英雄人物的增删改查操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SingleLinkedListDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">SingleLinkedList</span> <span class="variable">singleLinkedList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SingleLinkedList</span>();</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">1</span>, <span class="string">"宋江"</span>, <span class="string">"及时雨"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">2</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">3</span>, <span class="string">"吴用"</span>, <span class="string">"智多星"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">4</span>, <span class="string">"林冲"</span>, <span class="string">"豹子头"</span>));</span><br><span class="line"> <span class="comment">//显示链表</span></span><br><span class="line"> singleLinkedList.list();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义SingleLinkedList来管理我们的英雄任务</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">SingleLinkedList</span> {</span><br><span class="line"> <span class="comment">//初始化一个头节点 不存储具体的数据</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">HeroNode</span> <span class="variable">head</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加节点到单向链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">add</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//找到当前链表的最后一个节点</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> temp.next = heroNode;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(temp.next);</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个heroNode,每个heroNode对象都是一个节点</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">HeroNode</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> no;</span><br><span class="line"> <span class="keyword">public</span> String name;</span><br><span class="line"> <span class="keyword">public</span> String nickname;</span><br><span class="line"> <span class="keyword">public</span> HeroNode next; <span class="comment">//指向下一个节点</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">HeroNode</span><span class="params">(<span class="type">int</span> no, String name, String nickname)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> <span class="built_in">this</span>.nickname = nickname;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"HeroNode{"</span> +</span><br><span class="line"> <span class="string">"no="</span> + no +</span><br><span class="line"> <span class="string">", name='"</span> + name + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", nickname='"</span> + nickname + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-2-2修改单链表中节点的方法"><a href="#4-2-2修改单链表中节点的方法" class="headerlink" title="4.2.2修改单链表中节点的方法"></a>4.2.2修改单链表中节点的方法</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改节点的信息</span></span><br><span class="line"><span class="comment"> * 根据新的节点的编号进行修改</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">update</span><span class="params">(HeroNode newHeroNode)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法修改该节点!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到需要修改的节点</span></span><br><span class="line"> <span class="comment">//首先找到头节点的位置</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">idFind</span> <span class="operator">=</span> <span class="literal">false</span>; <span class="comment">//是否找到节点的信息</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;<span class="comment">//已经到了链表的结尾,就退出循环</span></span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.no == newHeroNode.no) {<span class="comment">//找到修改的节点</span></span><br><span class="line"> temp.name = newHeroNode.name;</span><br><span class="line"> temp.nickname = newHeroNode.nickname;</span><br><span class="line"> idFind = <span class="literal">true</span>; <span class="comment">//找到了节点并且修改了节点的信息</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(idFind ? <span class="string">"修改成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-2-3删除单链表中节点的方法"><a href="#4-2-3删除单链表中节点的方法" class="headerlink" title="4.2.3删除单链表中节点的方法"></a>4.2.3删除单链表中节点的方法</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除链表中的节点</span></span><br><span class="line"><span class="comment"> * 根据节点的编号删除节点的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法删除!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到要删除的节点的信息</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isDelete</span> <span class="operator">=</span> <span class="literal">false</span>;<span class="comment">//是否删除</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//这里的temp指的是要删除节点的上一个节点 temp.next.next指的是要删除节点的下一个节点</span></span><br><span class="line"> <span class="keyword">if</span> (temp.next.no == no) {</span><br><span class="line"> <span class="comment">//将要删除的节点的上一个节点指向要删除节点的下一个节点 实现删除的操作</span></span><br><span class="line"> <span class="comment">//这样要删除的节点没有引用指向,会被垃圾回收机制回收</span></span><br><span class="line"> temp.next = temp.next.next; </span><br><span class="line"> isDelete = <span class="literal">true</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(isDelete ? <span class="string">"删除成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-2-4完整代码"><a href="#4-2-4完整代码" class="headerlink" title="4.2.4完整代码"></a>4.2.4完整代码</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.linkedlist;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/28</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 单链表的实现</span></span><br><span class="line"><span class="comment"> * 使用带head头的单向链表实现 –水浒英雄排行榜管理</span></span><br><span class="line"><span class="comment"> * 完成对英雄人物的增删改查操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SingleLinkedListDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">SingleLinkedList</span> <span class="variable">singleLinkedList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SingleLinkedList</span>();</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">1</span>, <span class="string">"宋江"</span>, <span class="string">"及时雨"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">2</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">3</span>, <span class="string">"吴用"</span>, <span class="string">"智多星"</span>));</span><br><span class="line"> singleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">4</span>, <span class="string">"林冲"</span>, <span class="string">"豹子头"</span>));</span><br><span class="line"> <span class="comment">//显示链表</span></span><br><span class="line"> singleLinkedList.list();</span><br><span class="line"> <span class="comment">//测试修改节点的功能</span></span><br><span class="line"> singleLinkedList.update(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">2</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟增强版"</span>));</span><br><span class="line"> <span class="comment">//显示链表的信息</span></span><br><span class="line"> singleLinkedList.list();</span><br><span class="line"> <span class="comment">//测试删除节点</span></span><br><span class="line"> singleLinkedList.delete(<span class="number">2</span>);</span><br><span class="line"> <span class="comment">//显示链表的信息</span></span><br><span class="line"> singleLinkedList.list();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义SingleLinkedList来管理我们的英雄任务</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">SingleLinkedList</span> {</span><br><span class="line"> <span class="comment">//初始化一个头节点 不存储具体的数据</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">HeroNode</span> <span class="variable">head</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除链表中的节点</span></span><br><span class="line"><span class="comment"> * 根据节点的编号删除节点的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法删除!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到要删除的节点的信息</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isDelete</span> <span class="operator">=</span> <span class="literal">false</span>;<span class="comment">//是否删除</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.next.no == no) {<span class="comment">//这里的temp指的是要删除节点的上一个节点 temp.next.next指的是要删除节点的下一个节点</span></span><br><span class="line"> <span class="comment">//将当前节点的上一个节点指向当前节点的下一个节点</span></span><br><span class="line"> temp.next = temp.next.next; <span class="comment">//将要删除的节点的上一个节点指向要删除节点的下一个节点 这样要删除的节点没有引用指向 会被垃圾回收机制回收</span></span><br><span class="line"> isDelete = <span class="literal">true</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(isDelete ? <span class="string">"删除成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改节点的信息</span></span><br><span class="line"><span class="comment"> * 根据新的节点的编号进行修改</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">update</span><span class="params">(HeroNode newHeroNode)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法修改该节点!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到需要修改的节点</span></span><br><span class="line"> <span class="comment">//首先找到头节点的位置</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">idFind</span> <span class="operator">=</span> <span class="literal">false</span>; <span class="comment">//是否找到节点的信息</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;<span class="comment">//已经到了链表的结尾,就退出循环</span></span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.no == newHeroNode.no) {<span class="comment">//找到修改的节点</span></span><br><span class="line"> temp.name = newHeroNode.name;</span><br><span class="line"> temp.nickname = newHeroNode.nickname;</span><br><span class="line"> idFind = <span class="literal">true</span>; <span class="comment">//找到了节点并且修改了节点的信息</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(idFind ? <span class="string">"修改成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加节点到单向链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">add</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//找到当前链表的最后一个节点</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> temp.next = heroNode;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(temp.next);</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个heroNode,每个heroNode对象都是一个节点</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">HeroNode</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> no;</span><br><span class="line"> <span class="keyword">public</span> String name;</span><br><span class="line"> <span class="keyword">public</span> String nickname;</span><br><span class="line"> <span class="keyword">public</span> HeroNode next; <span class="comment">//指向下一个节点</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">HeroNode</span><span class="params">(<span class="type">int</span> no, String name, String nickname)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> <span class="built_in">this</span>.nickname = nickname;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"HeroNode{"</span> +</span><br><span class="line"> <span class="string">"no="</span> + no +</span><br><span class="line"> <span class="string">", name='"</span> + name + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", nickname='"</span> + nickname + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-2-5-单链表的面试题(新浪,百度,腾讯)"><a href="#4-2-5-单链表的面试题(新浪,百度,腾讯)" class="headerlink" title="4.2.5 单链表的面试题(新浪,百度,腾讯)"></a>4.2.5 单链表的面试题(新浪,百度,腾讯)</h4><h5 id="1-求单链表中有效节点的个数"><a href="#1-求单链表中有效节点的个数" class="headerlink" title="1.求单链表中有效节点的个数"></a>1.求单链表中有效节点的个数</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取有效节点的个数(如果是带头节点的链表,需求不统计头节点)</span></span><br><span class="line"><span class="comment"> * 注意:这里是有头节点的情况下统计节点的个数 (这里我们去除了头节点)</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 头节点</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 有效节点的个数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getLength</span><span class="params">(HeroNode heroNode)</span>{</span><br><span class="line"> <span class="comment">//先判断节点是否为空</span></span><br><span class="line"> <span class="keyword">if</span>(heroNode.next == <span class="literal">null</span>){</span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//遍历节点进行统计</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">length</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//有效节点的个数</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> heroNode.next;<span class="comment">//这里没有统计头节点</span></span><br><span class="line"> <span class="keyword">while</span> (temp != <span class="literal">null</span>){<span class="comment">//遍历 统计个数</span></span><br><span class="line"> length++;</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> length;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="2-查找单链表中的倒数第K个节点-新浪面试题"><a href="#2-查找单链表中的倒数第K个节点-新浪面试题" class="headerlink" title="2.查找单链表中的倒数第K个节点(新浪面试题)"></a>2.查找单链表中的倒数第K个节点(新浪面试题)</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查找单链表中的倒数第K个节点</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> index 倒数第几</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 头节点</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 倒数第K个节点的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> HeroNode <span class="title function_">getHeroNodeByLastIndex</span><span class="params">(<span class="type">int</span> index, HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断节点是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (heroNode.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//首先获取有效节点的个数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">length</span> <span class="operator">=</span> <span class="built_in">this</span>.getLength(heroNode);<span class="comment">//使用求节点有效个数的方法</span></span><br><span class="line"> <span class="comment">//求倒数第k个节点就是在求正数第(length - index + 1)节点</span></span><br><span class="line"> index = length - index; <span class="comment">//求出正向的索引位置</span></span><br><span class="line"> <span class="keyword">if</span> (index < <span class="number">0</span> || index > length) {</span><br><span class="line"> System.out.println(<span class="string">"所求的在链表中不存在"</span>);</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> heroNode.next;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (count == index) {</span><br><span class="line"> <span class="keyword">return</span> temp;</span><br><span class="line"> }</span><br><span class="line"> count++;</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="3-单链表的反转-腾讯面试题"><a href="#3-单链表的反转-腾讯面试题" class="headerlink" title="3.单链表的反转(腾讯面试题)"></a>3.单链表的反转(腾讯面试题)</h5><p><img src="/pictures/image-20230506105453269.png" alt="image-20230506105453269"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 单链表的反转</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 需要反转单链表的头节点</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">reverseHeroNode</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断当前的链表是否为空 或者当前的链表只有一个节点</span></span><br><span class="line"> <span class="keyword">if</span>(head.next == <span class="literal">null</span> || head.next.next == <span class="literal">null</span>){</span><br><span class="line"> System.out.println(<span class="string">"当前链表为空或者只有一个节点,无需反转"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//定义一个辅助的变量 帮助我们遍历原来的链表</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">cur</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">next</span> <span class="operator">=</span> <span class="literal">null</span>;<span class="comment">//指向当前节点的下一个节点 我们要在挪动当前节点之前帮当前指针 下移</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">reverseHeroNode</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);<span class="comment">//新链表的头节点</span></span><br><span class="line"> <span class="comment">//遍历原先的列表 确定每一个链表的指向关系</span></span><br><span class="line"> <span class="keyword">while</span> (cur != <span class="literal">null</span>){</span><br><span class="line"> next = cur.next;<span class="comment">//保存当前节点的下一个节点</span></span><br><span class="line"> <span class="comment">//reverseHeroNode.next表示头节点的下一个节点 我们让cur的下一个节点(cur.next)指向头节点的下一个节点 //(reverseHeroNode.next) 就把当前的节点(cur)穿插进去了</span></span><br><span class="line"> <span class="comment">//下一句将头节点和当前节点建立关系reverseHeroNode.next = cur 整个节点就连接起来了</span></span><br><span class="line"> cur.next = reverseHeroNode.next;<span class="comment">//将cur的下一个节点指向新的链表的最前端 相当于在头节点和头节点的下一个节点 //之间穿插了一个节点</span></span><br><span class="line"> reverseHeroNode.next = cur;<span class="comment">//将cur连接到新的链表上</span></span><br><span class="line"> cur = next; <span class="comment">//cur像后移动</span></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将head.next指向reverseHeroNode.next 实现单链表的反转</span></span><br><span class="line"> head.next = reverseHeroNode.next;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="4-从尾到头打印单链表(百度面试题)"><a href="#4-从尾到头打印单链表(百度面试题)" class="headerlink" title="4.从尾到头打印单链表(百度面试题)"></a>4.从尾到头打印单链表(百度面试题)</h5><p>不改变链表本身的结构(不是通过链表的反转之后再打印的)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * (通过栈的方式实现单链表的逆序打印)</span></span><br><span class="line"><span class="comment"> * 栈的特点是先入后出 正好可以满足逆序打印</span></span><br><span class="line"><span class="comment"> * 单链表的逆序打印</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">reversePrint</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断当前的链表是否为空 或者当前的链表只有一个节点</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"当前链表为空,无法逆序打印!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//创建一个栈,将各个节点压入栈中</span></span><br><span class="line"> <span class="comment">//先创建一个栈</span></span><br><span class="line"> Stack<HeroNode> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">cur</span> <span class="operator">=</span> heroNode.next;</span><br><span class="line"> <span class="comment">//循环将每一个节点添加进栈中</span></span><br><span class="line"> <span class="keyword">while</span> (cur != <span class="literal">null</span>) {</span><br><span class="line"> stack.push(cur);<span class="comment">//将节点压入栈中</span></span><br><span class="line"> cur = cur.next;<span class="comment">//cur后移 压入下一个节点</span></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将栈中节点打印</span></span><br><span class="line"> <span class="keyword">while</span> (stack.size() > <span class="number">0</span>) {</span><br><span class="line"> System.out.println(stack.pop());</span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="5-合并两个有序的单链表,合并之后的链表依然有序"><a href="#5-合并两个有序的单链表,合并之后的链表依然有序" class="headerlink" title="5.合并两个有序的单链表,合并之后的链表依然有序"></a>5.合并两个有序的单链表,合并之后的链表依然有序</h5><p>以下代码有一些bug 后期修改</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 合并两个有序的单链表,合并之后的链表依然有序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">mergeHeroNode</span><span class="params">(HeroNode oneHead, HeroNode twoHead ,HeroNode head)</span> {</span><br><span class="line"> <span class="comment">//先判断两个链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (oneHead.next == <span class="literal">null</span> || twoHead.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"其中有一个(两个)链表为空,无法合并"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//合并</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">oneCur</span> <span class="operator">=</span> oneHead.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">twoCur</span> <span class="operator">=</span> twoHead.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">oneNext</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">twoNext</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">finalHeroHead</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"> <span class="keyword">while</span> (oneCur != <span class="literal">null</span> && twoCur != <span class="literal">null</span>) {</span><br><span class="line"> oneNext = oneCur.next;</span><br><span class="line"> twoNext = twoCur.next;</span><br><span class="line"> <span class="keyword">if</span>(oneCur.no <= twoCur.no) {</span><br><span class="line"> oneCur.next = finalHeroHead.next;</span><br><span class="line"> finalHeroHead.next = oneCur;</span><br><span class="line"> oneCur = oneNext;</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> twoCur.next = finalHeroHead.next;</span><br><span class="line"> finalHeroHead.next = twoCur;</span><br><span class="line"> twoCur = twoNext;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> head.next = finalHeroHead.next;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="全部代码"><a href="#全部代码" class="headerlink" title="全部代码"></a>全部代码</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.linkedlist;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Stack;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/4/28</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 单链表的实现</span></span><br><span class="line"><span class="comment"> * 使用带head头的单向链表实现 –水浒英雄排行榜管理</span></span><br><span class="line"><span class="comment"> * 完成对英雄人物的增删改查操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SingleLinkedListDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">SingleLinkedList</span> <span class="variable">singleLinkedList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SingleLinkedList</span>();</span><br><span class="line"><span class="comment">// singleLinkedList.add(new HeroNode(1, "宋江", "及时雨"));</span></span><br><span class="line"><span class="comment">// singleLinkedList.add(new HeroNode(2, "卢俊义", "玉麒麟"));</span></span><br><span class="line"><span class="comment">// singleLinkedList.add(new HeroNode(3, "吴用", "智多星"));</span></span><br><span class="line"><span class="comment">// singleLinkedList.add(new HeroNode(4, "林冲", "豹子头"));</span></span><br><span class="line"><span class="comment">// //显示链表</span></span><br><span class="line"><span class="comment">// singleLinkedList.list();</span></span><br><span class="line"><span class="comment">// //测试修改节点的功能</span></span><br><span class="line"><span class="comment">// singleLinkedList.update(new HeroNode(2, "卢俊义", "玉麒麟增强版"));</span></span><br><span class="line"><span class="comment">// //显示链表的信息</span></span><br><span class="line"><span class="comment">// singleLinkedList.list();</span></span><br><span class="line"><span class="comment">// //测试删除节点</span></span><br><span class="line"><span class="comment">// singleLinkedList.delete(2);</span></span><br><span class="line"><span class="comment">// //显示链表的信息</span></span><br><span class="line"><span class="comment">// singleLinkedList.list();</span></span><br><span class="line"><span class="comment">// //统计有效节点的个数</span></span><br><span class="line"><span class="comment">// System.out.println("有效节点的个数" + singleLinkedList.getLength(singleLinkedList.getHead()));</span></span><br><span class="line"><span class="comment">// //查找单链表中的倒数第K个节点</span></span><br><span class="line"><span class="comment">// int index = 2;</span></span><br><span class="line"><span class="comment">// System.out.println("倒数第" + index + "个节点的位置:" + singleLinkedList.getHeroNodeByLastIndex(index, singleLinkedList.getHead()));</span></span><br><span class="line"><span class="comment">// //测试单链表的反转</span></span><br><span class="line"><span class="comment">// singleLinkedList.reverseHeroNode(singleLinkedList.getHead());</span></span><br><span class="line"><span class="comment">// singleLinkedList.list();</span></span><br><span class="line"><span class="comment">// //测试通过栈的方式逆序打印</span></span><br><span class="line"><span class="comment">// System.out.println("测试通过栈的方式逆序打印头节点");</span></span><br><span class="line"><span class="comment">// singleLinkedList.reversePrint(singleLinkedList.getHead());</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//测试合并两个有序的链表</span></span><br><span class="line"> <span class="type">SingleLinkedList</span> <span class="variable">singleLinkedList1</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SingleLinkedList</span>();</span><br><span class="line"> singleLinkedList1.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">1</span>, <span class="string">"宋江"</span>, <span class="string">"及时雨"</span>));</span><br><span class="line"> singleLinkedList1.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">3</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> singleLinkedList1.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">5</span>, <span class="string">"吴用"</span>, <span class="string">"智多星"</span>));</span><br><span class="line"> singleLinkedList1.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">7</span>, <span class="string">"林冲"</span>, <span class="string">"豹子头"</span>));</span><br><span class="line"> <span class="type">SingleLinkedList</span> <span class="variable">singleLinkedList2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SingleLinkedList</span>();</span><br><span class="line"> singleLinkedList2.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">2</span>, <span class="string">"宋江"</span>, <span class="string">"及时雨"</span>));</span><br><span class="line"> singleLinkedList2.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">4</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> singleLinkedList2.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">6</span>, <span class="string">"吴用"</span>, <span class="string">"智多星"</span>));</span><br><span class="line"> singleLinkedList2.add(<span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">8</span>, <span class="string">"林冲"</span>, <span class="string">"豹子头"</span>));</span><br><span class="line"> mergeHeroNode(singleLinkedList1.getHead(),singleLinkedList2.getHead(),singleLinkedList.getHead());</span><br><span class="line"> singleLinkedList.list();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 合并两个有序的单链表,合并之后的链表依然有序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">mergeHeroNode</span><span class="params">(HeroNode oneHead, HeroNode twoHead ,HeroNode head)</span> {</span><br><span class="line"> <span class="comment">//先判断两个链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (oneHead.next == <span class="literal">null</span> || twoHead.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"其中有一个(两个)链表为空,无法合并"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//合并</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">oneCur</span> <span class="operator">=</span> oneHead.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">twoCur</span> <span class="operator">=</span> twoHead.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">oneNext</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">twoNext</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">finalHeroHead</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"> <span class="keyword">while</span> (oneCur != <span class="literal">null</span> && twoCur != <span class="literal">null</span>) {</span><br><span class="line"> oneNext = oneCur.next;</span><br><span class="line"> twoNext = twoCur.next;</span><br><span class="line"> <span class="keyword">if</span>(oneCur.no <= twoCur.no) {</span><br><span class="line"> oneCur.next = finalHeroHead.next;</span><br><span class="line"> finalHeroHead.next = oneCur;</span><br><span class="line"> oneCur = oneNext;</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> twoCur.next = finalHeroHead.next;</span><br><span class="line"> finalHeroHead.next = twoCur;</span><br><span class="line"> twoCur = twoNext;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> head.next = finalHeroHead.next;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义SingleLinkedList来管理我们的英雄任务</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">SingleLinkedList</span> {</span><br><span class="line"> <span class="comment">//初始化一个头节点 不存储具体的数据</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">HeroNode</span> <span class="variable">head</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> HeroNode <span class="title function_">getHead</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> head;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * (通过栈的方式实现单链表的逆序打印)</span></span><br><span class="line"><span class="comment"> * 栈的特点是先入后出 正好可以满足逆序打印</span></span><br><span class="line"><span class="comment"> * 单链表的逆序打印</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">reversePrint</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断当前的链表是否为空 或者当前的链表只有一个节点</span></span><br><span class="line"> <span class="keyword">if</span> (heroNode.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"当前链表为空,无法逆序打印!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//创建一个栈,将各个节点压入栈中</span></span><br><span class="line"> <span class="comment">//先创建一个栈</span></span><br><span class="line"> Stack<HeroNode> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">cur</span> <span class="operator">=</span> heroNode.next;</span><br><span class="line"> <span class="comment">//循环将每一个节点添加进栈中</span></span><br><span class="line"> <span class="keyword">while</span> (cur != <span class="literal">null</span>) {</span><br><span class="line"> stack.push(cur);<span class="comment">//将节点压入栈中</span></span><br><span class="line"> cur = cur.next;<span class="comment">//cur后移 压入下一个节点</span></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将栈中节点打印</span></span><br><span class="line"> <span class="keyword">while</span> (stack.size() > <span class="number">0</span>) {</span><br><span class="line"> System.out.println(stack.pop());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 单链表的反转</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 需要反转单链表的头节点</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">reverseHeroNode</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断当前的链表是否为空 或者当前的链表只有一个节点</span></span><br><span class="line"> <span class="keyword">if</span> (heroNode.next == <span class="literal">null</span> || heroNode.next.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"当前链表为空或者只有一个节点,无需反转"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//定义一个辅助的变量 帮助我们遍历原来的链表</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">cur</span> <span class="operator">=</span> heroNode.next;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">next</span> <span class="operator">=</span> <span class="literal">null</span>;<span class="comment">//指向当前节点的下一个节点 我们要在挪动当前节点之前帮当前指针 下移</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">reverseHeroNode</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);<span class="comment">//新链表的头节点</span></span><br><span class="line"> <span class="comment">//遍历原先的列表 确定每一个链表的指向关系</span></span><br><span class="line"> <span class="keyword">while</span> (cur != <span class="literal">null</span>) {</span><br><span class="line"> next = cur.next;<span class="comment">//保存当前节点的下一个节点</span></span><br><span class="line"> <span class="comment">//reverseHeroNode.next表示头节点的下一个节点 我们让cur的下一个节点(cur.next)指向头节点的下一个节点(reverseHeroNode.next) 就把当前的节点(cur)穿插进去了</span></span><br><span class="line"> <span class="comment">//下一句将头节点和当前节点建立关系reverseHeroNode.next = cur 整个节点就连接起来了</span></span><br><span class="line"> cur.next = reverseHeroNode.next;<span class="comment">//将cur的下一个节点指向新的链表的最前端 相当于在头节点和头节点的下一个节点之间穿插了一个节点</span></span><br><span class="line"> reverseHeroNode.next = cur;<span class="comment">//将cur连接到新的链表上</span></span><br><span class="line"> cur = next; <span class="comment">//cur像后移动</span></span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将head.next指向reverseHeroNode.next 实现单链表的反转</span></span><br><span class="line"> heroNode.next = reverseHeroNode.next;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查找单链表中的倒数第K个节点</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> index 倒数第几</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 头节点</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 倒数第K个节点的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> HeroNode <span class="title function_">getHeroNodeByLastIndex</span><span class="params">(<span class="type">int</span> index, HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断节点是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (heroNode.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//首先获取有效节点的个数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">length</span> <span class="operator">=</span> <span class="built_in">this</span>.getLength(heroNode);<span class="comment">//使用求节点有效个数的方法</span></span><br><span class="line"> <span class="comment">//求倒数第k个节点就是在求正数第(length - index + 1)节点</span></span><br><span class="line"> index = length - index; <span class="comment">//求出正向的索引位置</span></span><br><span class="line"> <span class="keyword">if</span> (index < <span class="number">0</span> || index > length) {</span><br><span class="line"> System.out.println(<span class="string">"所求的在链表中不存在"</span>);</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> heroNode.next;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (count == index) {</span><br><span class="line"> <span class="keyword">return</span> temp;</span><br><span class="line"> }</span><br><span class="line"> count++;</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取有效节点的个数(如果是带头节点的链表,需求不统计头节点)</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> heroNode 头节点</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 有效节点的个数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getLength</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//先判断节点是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (heroNode.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//遍历节点进行统计</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">length</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//有效节点的个数</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> heroNode.next;<span class="comment">//这里没有统计头节点</span></span><br><span class="line"> <span class="keyword">while</span> (temp != <span class="literal">null</span>) {<span class="comment">//遍历 统计个数</span></span><br><span class="line"> length++;</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> length;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除链表中的节点</span></span><br><span class="line"><span class="comment"> * 根据节点的编号删除节点的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法删除!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到要删除的节点的信息</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isDelete</span> <span class="operator">=</span> <span class="literal">false</span>;<span class="comment">//是否删除</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp.next == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.next.no == no) {<span class="comment">//这里的temp指的是要删除节点的上一个节点 temp.next.next指的是要删除节点的下一个节点</span></span><br><span class="line"> <span class="comment">//将当前节点的上一个节点指向当前节点的下一个节点</span></span><br><span class="line"> temp.next = temp.next.next; <span class="comment">//将要删除的节点的上一个节点指向要删除节点的下一个节点 这样要删除的节点没有引用指向 会被垃圾回收机制回收</span></span><br><span class="line"> isDelete = <span class="literal">true</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(isDelete ? <span class="string">"删除成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改节点的信息</span></span><br><span class="line"><span class="comment"> * 根据新的节点的编号进行修改</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">update</span><span class="params">(HeroNode newHeroNode)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法修改该节点!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到需要修改的节点</span></span><br><span class="line"> <span class="comment">//首先找到头节点的位置</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">idFind</span> <span class="operator">=</span> <span class="literal">false</span>; <span class="comment">//是否找到节点的信息</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;<span class="comment">//已经到了链表的结尾,就退出循环</span></span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.no == newHeroNode.no) {<span class="comment">//找到修改的节点</span></span><br><span class="line"> temp.name = newHeroNode.name;</span><br><span class="line"> temp.nickname = newHeroNode.nickname;</span><br><span class="line"> idFind = <span class="literal">true</span>; <span class="comment">//找到了节点并且修改了节点的信息</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(idFind ? <span class="string">"修改成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加节点到单向链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">add</span><span class="params">(HeroNode heroNode)</span> {</span><br><span class="line"> <span class="comment">//找到当前链表的最后一个节点</span></span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> temp.next = heroNode;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">HeroNode</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(temp.next);</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个heroNode,每个heroNode对象都是一个节点</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">HeroNode</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> no;</span><br><span class="line"> <span class="keyword">public</span> String name;</span><br><span class="line"> <span class="keyword">public</span> String nickname;</span><br><span class="line"> <span class="keyword">public</span> HeroNode next; <span class="comment">//指向下一个节点</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">HeroNode</span><span class="params">(<span class="type">int</span> no, String name, String nickname)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> <span class="built_in">this</span>.nickname = nickname;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"HeroNode{"</span> +</span><br><span class="line"> <span class="string">"no="</span> + no +</span><br><span class="line"> <span class="string">", name='"</span> + name + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", nickname='"</span> + nickname + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="4-3-双向链表"><a href="#4-3-双向链表" class="headerlink" title="4.3 双向链表"></a>4.3 双向链表</h3><p>双向的链表的CRUD操作于单向链表的CRUD操作类似</p>
|
||
<p><img src="/pictures/image-20230507100730848.png" alt="image-20230507100730848"></p>
|
||
<p>完整的增删改查代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.linkedlist;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/7</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 双向链表的使用</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">DoubleLinkedListDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">DoubleLinkedList</span> <span class="variable">doubleLinkedList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DoubleLinkedList</span>();</span><br><span class="line"> <span class="comment">//测试添加链表的功能</span></span><br><span class="line"> doubleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">1</span>, <span class="string">"宋江"</span>, <span class="string">"及时雨"</span>));</span><br><span class="line"> doubleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">2</span>, <span class="string">"卢俊义"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> doubleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">3</span>, <span class="string">"吴用"</span>, <span class="string">"智多星"</span>));</span><br><span class="line"> doubleLinkedList.add(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">4</span>, <span class="string">"林冲"</span>, <span class="string">"豹子头"</span>));</span><br><span class="line"> <span class="comment">//测试显示链表的功能</span></span><br><span class="line"> doubleLinkedList.list();</span><br><span class="line"> <span class="comment">//测试删除双向链表中的节点</span></span><br><span class="line"> doubleLinkedList.delete(<span class="number">2</span>);</span><br><span class="line"> doubleLinkedList.list();</span><br><span class="line"> <span class="comment">//测试修改双向链表中的节点</span></span><br><span class="line"> doubleLinkedList.update(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">2</span>, <span class="string">"卢俊义修改版"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> doubleLinkedList.list();</span><br><span class="line"> System.out.println(<span class="string">"--------------"</span>);</span><br><span class="line"> doubleLinkedList.orderAdd(<span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">3</span>, <span class="string">"小卢"</span>, <span class="string">"玉麒麟"</span>));</span><br><span class="line"> doubleLinkedList.list();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">DoubleLinkedList</span> {</span><br><span class="line"> <span class="comment">//初始化一个头节点 不存储具体的数据</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">HeroNode2</span> <span class="variable">head</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeroNode2</span>(<span class="number">0</span>, <span class="string">""</span>, <span class="string">""</span>);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//返回头节点的信息</span></span><br><span class="line"> <span class="keyword">public</span> HeroNode2 <span class="title function_">getHead</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> head;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 双向链表的顺序添加</span></span><br><span class="line"><span class="comment"> * 应该有问题 不是参考答案</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">orderAdd</span><span class="params">(HeroNode2 heroNode)</span> {</span><br><span class="line"> <span class="comment">//找到当前链表的最后一个节点</span></span><br><span class="line"> <span class="type">HeroNode2</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isSuccess</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp.next.no >= heroNode.no) {</span><br><span class="line"> heroNode.next = temp.next;</span><br><span class="line"> temp.next.pre = heroNode;</span><br><span class="line"> temp.next = heroNode;</span><br><span class="line"> heroNode.pre = temp;</span><br><span class="line"> isSuccess = <span class="literal">true</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (!isSuccess) {<span class="comment">//没有添加成功 说明当前链表的序号超过了链表里面已有节点序号的最高值 直接添加到最后</span></span><br><span class="line"> <span class="built_in">this</span>.add(heroNode);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除双向链表中的一个节点</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">delete</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法删除!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到要删除的节点的信息</span></span><br><span class="line"> <span class="type">HeroNode2</span> <span class="variable">temp</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isDelete</span> <span class="operator">=</span> <span class="literal">false</span>;<span class="comment">//是否删除</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.no == no) {</span><br><span class="line"> temp.pre.next = temp.next;</span><br><span class="line"> <span class="keyword">if</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> temp.next.pre = temp.pre;<span class="comment">//这句话有个条件 temp不能是最后一个节点</span></span><br><span class="line"> }</span><br><span class="line"> isDelete = <span class="literal">true</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> System.out.println(isDelete ? <span class="string">"删除成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改双向链表的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">update</span><span class="params">(HeroNode2 newHeroNode)</span> {</span><br><span class="line"> <span class="comment">//判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空,无法修改该节点!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//找到需要修改的节点</span></span><br><span class="line"> <span class="comment">//首先找到头节点的位置</span></span><br><span class="line"> <span class="type">HeroNode2</span> <span class="variable">temp</span> <span class="operator">=</span> head.next;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">idFind</span> <span class="operator">=</span> <span class="literal">false</span>; <span class="comment">//是否找到节点的信息</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (temp == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">break</span>;<span class="comment">//已经到了链表的结尾,就退出循环</span></span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.no == newHeroNode.no) {<span class="comment">//找到修改的节点</span></span><br><span class="line"> temp.name = newHeroNode.name;</span><br><span class="line"> temp.nickname = newHeroNode.nickname;</span><br><span class="line"> idFind = <span class="literal">true</span>; <span class="comment">//找到了节点并且修改了节点的信息</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//做出判断,返回结果</span></span><br><span class="line"> System.out.println(idFind ? <span class="string">"修改成功"</span> : <span class="string">"没有找到该节点的信息"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 向双向链表中添加节点信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">add</span><span class="params">(HeroNode2 heroNode)</span> {</span><br><span class="line"> <span class="comment">//找到当前链表的最后一个节点</span></span><br><span class="line"> <span class="type">HeroNode2</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> temp.next = heroNode;</span><br><span class="line"> heroNode.pre = temp;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断链表是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (head.next == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"链表为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">HeroNode2</span> <span class="variable">temp</span> <span class="operator">=</span> head;</span><br><span class="line"> <span class="keyword">while</span> (temp.next != <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(temp.next);</span><br><span class="line"> temp = temp.next;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个heroNode,每个heroNode对象都是一个节点</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">HeroNode2</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> no;</span><br><span class="line"> <span class="keyword">public</span> String name;</span><br><span class="line"> <span class="keyword">public</span> String nickname;</span><br><span class="line"> <span class="keyword">public</span> HeroNode2 next; <span class="comment">//指向下一个节点</span></span><br><span class="line"> <span class="keyword">public</span> HeroNode2 pre;<span class="comment">//指向上一个节点</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">HeroNode2</span><span class="params">(<span class="type">int</span> no, String name, String nickname)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> <span class="built_in">this</span>.name = name;</span><br><span class="line"> <span class="built_in">this</span>.nickname = nickname;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"HeroNode{"</span> +</span><br><span class="line"> <span class="string">"no="</span> + no +</span><br><span class="line"> <span class="string">", name='"</span> + name + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", nickname='"</span> + nickname + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-4-单向环形链表的应用场景-Josephu问题"><a href="#4-4-单向环形链表的应用场景-Josephu问题" class="headerlink" title="4.4 单向环形链表的应用场景(Josephu问题)"></a>4.4 单向环形链表的应用场景(Josephu问题)</h3><p> Josephu 问题为:设编号为1,2,… n的n个人围坐一圈,约定编号为k(1<=k<=n)的人从1开始报数,数到m 的那个人出列,它的下一位又从1开始报数,数到m的那个人又出列,依次类推,直到所有人出列为止,由此产生一个出队编号的序列。</p>
|
||
<p> 解决的方案:用一个不带头结点的循环链表来处理Josephu 问题:先构成一个有n个结点的单循环链表,然后由k结点起从1开始计数,计到m时,对应结点从链表中删除,然后再从被删除结点的下一个结点又从1开始计数,直到最后一个结点从链表中删除算法结束。</p>
|
||
<p><img src="/pictures/image-20230508104207815.png" alt="image-20230508104207815"></p>
|
||
<p><img src="/pictures/image-20230508121934697.png" alt="image-20230508121934697"></p>
|
||
<p>完整的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.linkedlist;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/8</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 约瑟夫问题</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Josephu</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//测试构建环形链表</span></span><br><span class="line"> <span class="type">CircleSingleLinkedList</span> <span class="variable">circleSingleLinkedList</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CircleSingleLinkedList</span>();</span><br><span class="line"> circleSingleLinkedList.addBoy(<span class="number">5</span>);</span><br><span class="line"> <span class="comment">//测试遍历环形单向链表</span></span><br><span class="line"> circleSingleLinkedList.showBoy();</span><br><span class="line"> <span class="comment">//测试生成小孩出圈的序列</span></span><br><span class="line"> circleSingleLinkedList.countBoy(<span class="number">1</span>,<span class="number">2</span>,<span class="number">5</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">//创建一个环形的单向链表</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">CircleSingleLinkedList</span> {</span><br><span class="line"> <span class="comment">//创建一个first节点,当前没有编号</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">Boy</span> <span class="variable">first</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据用户的输入产生一个出队编号的序列</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> startNo 表示从第几个小孩开始数</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> countNum 表示数几下</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> nums 传入几个小孩</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">countBoy</span><span class="params">(<span class="type">int</span> startNo, <span class="type">int</span> countNum, <span class="type">int</span> nums)</span> {</span><br><span class="line"> <span class="comment">//先对输入的数据进行校验</span></span><br><span class="line"> <span class="keyword">if</span> (first == <span class="literal">null</span> || startNo < <span class="number">0</span> || startNo > nums) {</span><br><span class="line"> System.out.println(<span class="string">"参数输入有误,请重新输入!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//创建一个辅助指针</span></span><br><span class="line"> <span class="type">Boy</span> <span class="variable">helper</span> <span class="operator">=</span> first;</span><br><span class="line"> <span class="comment">//将helper指向环形链表的最后一个节点</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="keyword">if</span> (helper.getNext() == first) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> helper = helper.getNext();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将first和helper移动到指定的位置 考虑从第几个小孩开始数</span></span><br><span class="line"> <span class="comment">//小孩报数前,先让 first 和 helper 移动 k - 1次</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < startNo - <span class="number">1</span>; i++) {</span><br><span class="line"> first = first.getNext();</span><br><span class="line"> helper = helper.getNext();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//让first和helper移动 m-1次,然后出圈</span></span><br><span class="line"> <span class="comment">//循环操作 直到圈中只有一个小孩节点</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>){</span><br><span class="line"> <span class="keyword">if</span>(helper == first){<span class="comment">//说明圈中只有一个节点</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//让first和helper移动 countNum - 1</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < countNum - <span class="number">1</span>; i++) {</span><br><span class="line"> first = first.getNext();</span><br><span class="line"> helper = helper.getNext();</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//这时first指向的节点就是要出圈的小孩</span></span><br><span class="line"> System.out.printf(<span class="string">"小孩%d出圈\n"</span>,first.getNo());</span><br><span class="line"> <span class="comment">//将first指向的小孩出圈</span></span><br><span class="line"> first = first.getNext();</span><br><span class="line"> helper.setNext(first);</span><br><span class="line"> }</span><br><span class="line"> System.out.printf(<span class="string">"最后留在圈中小孩编号是:%d \n"</span>,helper.getNo());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 遍历当前的环形链表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">showBoy</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断链表是不是为空</span></span><br><span class="line"> <span class="keyword">if</span> (first == <span class="literal">null</span>) {</span><br><span class="line"> System.out.println(<span class="string">"环形链表为空!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//创建一个辅助指针</span></span><br><span class="line"> <span class="type">Boy</span> <span class="variable">curBoy</span> <span class="operator">=</span> first;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> System.out.printf(<span class="string">"小孩的编号:%d \n"</span>, curBoy.getNo());</span><br><span class="line"> <span class="keyword">if</span> (curBoy.getNext() == first) {<span class="comment">//说明已经循环一圈了 就不在循环 退出了</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//向后移动</span></span><br><span class="line"> curBoy = curBoy.getNext();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加小孩节点 构建成一个环形的链表</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> nums 传入几个小孩</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addBoy</span><span class="params">(<span class="type">int</span> nums)</span> {</span><br><span class="line"> <span class="comment">//将传入的数据进行一个校验</span></span><br><span class="line"> <span class="keyword">if</span> (nums < <span class="number">1</span>) {<span class="comment">//传入小孩的的数量不能小于一</span></span><br><span class="line"> System.out.println(<span class="string">"输入的值不正确!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">Boy</span> <span class="variable">curBoy</span> <span class="operator">=</span> <span class="literal">null</span>;<span class="comment">//辅助指针,帮助构建环形链表</span></span><br><span class="line"> <span class="comment">//使用循环创建我们的环形链表</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">1</span>; i <= nums; i++) { <span class="comment">//要加入几个小孩 就循环几次</span></span><br><span class="line"> <span class="comment">//根据编号创建小孩节点</span></span><br><span class="line"> <span class="type">Boy</span> <span class="variable">boy</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Boy</span>(i);</span><br><span class="line"> <span class="comment">//将小孩加入到环形链表中</span></span><br><span class="line"> <span class="keyword">if</span> (i == <span class="number">1</span>) {<span class="comment">//说明是第一个小孩</span></span><br><span class="line"> first = boy;</span><br><span class="line"> first.setNext(first);<span class="comment">//添加的第一个节点 先自己指向自己 构建成一个环</span></span><br><span class="line"> curBoy = first; <span class="comment">//first节点我们不能动 使用辅助节点</span></span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//这是在循环里面 每次循环之后 小孩节点都不一样</span></span><br><span class="line"> curBoy.setNext(boy);</span><br><span class="line"> boy.setNext(first); <span class="comment">//形成回路</span></span><br><span class="line"> curBoy = boy;<span class="comment">//curBoy每次指向的都是最后一个小孩节点</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//创建一个boy类 表示一个节点</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Boy</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> no; <span class="comment">//编号</span></span><br><span class="line"> <span class="keyword">private</span> Boy next;<span class="comment">//指向下一个节点 默认是null</span></span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">Boy</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">getNo</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> no;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setNo</span><span class="params">(<span class="type">int</span> no)</span> {</span><br><span class="line"> <span class="built_in">this</span>.no = no;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> Boy <span class="title function_">getNext</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> next;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setNext</span><span class="params">(Boy next)</span> {</span><br><span class="line"> <span class="built_in">this</span>.next = next;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
<h2 id="五-栈"><a href="#五-栈" class="headerlink" title="五.栈"></a>五.栈</h2><h3 id="1-介绍"><a href="#1-介绍" class="headerlink" title="1.介绍"></a>1.介绍</h3><p>1)栈的英文为(stack)</p>
|
||
<p>2)栈是一个<strong>先入后出</strong>(FILO-First In Last Out)的有序列表。</p>
|
||
<p>3)栈(stack)是限制线性表中元素的插入和删除<strong>只能在线性表的同一端</strong>进行的一种特殊线性表。允许插入和删除的一端,为变化的一端,称为<strong>栈顶</strong>(Top),另一端为固定的一端,称为<strong>栈底</strong>(Bottom)。</p>
|
||
<p>4)根据栈的定义可知,最先放入栈中元素在栈底,最后放入的元素在栈顶,而删除元素刚好相反,最后放入的元素最先删除,最先放入的元素最后删除</p>
|
||
<h3 id="2-应用场景"><a href="#2-应用场景" class="headerlink" title="2.应用场景"></a>2.应用场景</h3><p>1)子程序的调用:在跳往子程序前,会先将下个指令的地址存到堆栈中,直到子程序执行完后再将地址取出,以回到原来的程序中。 </p>
|
||
<p>2)处理递归调用:和子程序的调用类似,只是除了储存下一个指令的地址外,也将参数、区域变量等数据存入堆栈中。</p>
|
||
<p>3)表达式的转换[中缀表达式转后缀表达式]与求值(实际解决)。</p>
|
||
<p>4)二叉树的遍历。</p>
|
||
<p>5)图形的深度优先(depth一first)搜索法。</p>
|
||
<h3 id="3-图解"><a href="#3-图解" class="headerlink" title="3.图解"></a>3.图解</h3><p><img src="/pictures/image-20230510101713914.png" alt="image-20230510101713914"></p>
|
||
<p><img src="/pictures/image-20230510101722707.png" alt="image-20230510101722707"></p>
|
||
<h3 id="4-使用数组模拟栈"><a href="#4-使用数组模拟栈" class="headerlink" title="4.使用数组模拟栈"></a>4.使用数组模拟栈</h3><p><img src="/pictures/image-20230510101916230.png" alt="image-20230510101916230"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.stack;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/10</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 使用数组模拟栈</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ArrayStackDemo</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">ArrayStack</span> <span class="variable">stack</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayStack</span>(<span class="number">5</span>);</span><br><span class="line"> <span class="comment">//入栈</span></span><br><span class="line"> stack.push(<span class="number">1</span>);</span><br><span class="line"> stack.push(<span class="number">2</span>);</span><br><span class="line"> stack.push(<span class="number">3</span>);</span><br><span class="line"> <span class="comment">//出栈</span></span><br><span class="line"> System.out.println(<span class="string">"出栈的数是:"</span>+stack.pop());</span><br><span class="line"> <span class="comment">//显示栈中所有的数据</span></span><br><span class="line"> stack.list();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个ArrayStack表示栈</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">ArrayStack</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> maxSize;<span class="comment">//栈的大小</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span>[] stack;<span class="comment">//数组 数组模拟栈 数据放在数组中</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> <span class="variable">top</span> <span class="operator">=</span> -<span class="number">1</span>; <span class="comment">//top表示栈顶 初始化为1</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ArrayStack</span><span class="params">(<span class="type">int</span> maxSize)</span> {</span><br><span class="line"> <span class="built_in">this</span>.maxSize = maxSize;</span><br><span class="line"> <span class="comment">//完成数组的初始化</span></span><br><span class="line"> stack = <span class="keyword">new</span> <span class="title class_">int</span>[maxSize];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断是否栈满</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isFull</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> top == maxSize - <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断栈是否为空</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isEmpty</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> top == -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 入栈的操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">push</span><span class="params">(<span class="type">int</span> value)</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为满</span></span><br><span class="line"> <span class="keyword">if</span> (isFull()) {</span><br><span class="line"> System.out.println(<span class="string">"栈满,无法添加数据!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> top++;</span><br><span class="line"> stack[top] = value;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 出栈的操作</span></span><br><span class="line"><span class="comment"> * 将栈顶的数据返回</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">pop</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"栈空,无法取出数据!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//取出数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">value</span> <span class="operator">=</span> stack[top];</span><br><span class="line"> top--;</span><br><span class="line"> <span class="keyword">return</span> value;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示栈的情况</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> System.out.println(<span class="string">"栈空,无法取出数据!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> top; i >= <span class="number">0</span>; i--) {</span><br><span class="line"> System.out.printf(<span class="string">"stack[%d] = %d \n"</span>, i, stack[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="5-栈实现综合计算器"><a href="#5-栈实现综合计算器" class="headerlink" title="5.栈实现综合计算器"></a>5.栈实现综合计算器</h3><p>中缀表达式</p>
|
||
<p><img src="/pictures/image-20230510105251076.png" alt="image-20230510105251076"></p>
|
||
<p><img src="/pictures/image-20230510110403055.png" alt="image-20230510110403055"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.stack;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/10</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 综合计算器</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Calculator</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 1. 通过一个 index 值(索引),来遍历我们的表达式</span></span><br><span class="line"><span class="comment"> * 2. 如果我们发现是一个数字, 就直接入数栈</span></span><br><span class="line"><span class="comment"> * 3. 如果发现扫描到的是一个符号, 就分如下情况</span></span><br><span class="line"><span class="comment"> * 3.1 如果发现当前的符号栈为 空,就直接入栈</span></span><br><span class="line"><span class="comment"> * 3.2 如果符号栈有操作符,就进行比较,如果当前的操作符的优先级小于或者等于栈中的操作符, 就需要从数栈中pop出两个数,在从符号栈中pop出一个符号,进行运算,将得到结果,入数栈,然后将当前的操作符入符号栈, 如果当前的操作符的优先级大于栈中的操作符, 就直接入符号栈.</span></span><br><span class="line"><span class="comment"> * 4. 当表达式扫描完毕,就顺序的从 数栈和符号栈中pop出相应的数和符号,并运行.</span></span><br><span class="line"><span class="comment"> * 5. 最后在数栈只有一个数字,就是表达式的结果</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">expression</span> <span class="operator">=</span> <span class="string">"30+2*6-2"</span>;</span><br><span class="line"> <span class="comment">//创建两个栈 一个是数栈 一个是符号栈</span></span><br><span class="line"> <span class="type">ArrayStack2</span> <span class="variable">numStack</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayStack2</span>(<span class="number">10</span>);</span><br><span class="line"> <span class="type">ArrayStack2</span> <span class="variable">operStack</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ArrayStack2</span>(<span class="number">10</span>);</span><br><span class="line"> <span class="comment">//定义需要的相关变量</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//用于扫描</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">num1</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">num2</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">oper</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">result</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">char</span> <span class="variable">ch</span> <span class="operator">=</span> <span class="string">' '</span>; <span class="comment">//将每次扫描得到的char保存在ch中</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">keepNum</span> <span class="operator">=</span> <span class="string">""</span>;<span class="comment">//用于拼接多位数的</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="comment">//得到expression的每一个字符</span></span><br><span class="line"> ch = expression.substring(index, index + <span class="number">1</span>).charAt(<span class="number">0</span>);</span><br><span class="line"> <span class="comment">//判断ch是什么 做相应的处理</span></span><br><span class="line"> <span class="keyword">if</span> (operStack.isOper(ch)) {</span><br><span class="line"> <span class="comment">//先符号栈判断是不是为空</span></span><br><span class="line"> <span class="keyword">if</span> (!operStack.isEmpty()) { <span class="comment">//判断符号栈是否为空</span></span><br><span class="line"> <span class="comment">//不为空的情况</span></span><br><span class="line"> <span class="keyword">if</span> (operStack.priority(ch) <= operStack.priority(operStack.peek())) {</span><br><span class="line"> <span class="comment">//如果当前的操作符的优先级小于或者等于栈中的操作符, 就需要从数栈中pop出两个数,</span></span><br><span class="line"> <span class="comment">// 在从符号栈中pop出一个符号,进行运算,将得到结果,入数栈</span></span><br><span class="line"> num1 = numStack.pop();</span><br><span class="line"> num2 = numStack.pop();</span><br><span class="line"> oper = operStack.pop();</span><br><span class="line"> result = numStack.cal(num1, num2, oper);</span><br><span class="line"> <span class="comment">//将运算的结果入数栈</span></span><br><span class="line"> numStack.push(result);</span><br><span class="line"> <span class="comment">//将当前的操作符入符号栈</span></span><br><span class="line"> operStack.push(ch);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//如果当前的操作符的优先级大于栈中的操作符, 就直接入符号栈.</span></span><br><span class="line"> operStack.push(ch);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//如果为空 直接入栈</span></span><br><span class="line"> operStack.push(ch);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//如果是数字 就直接入数栈</span></span><br><span class="line"> <span class="comment">//要考虑是多位数的情况</span></span><br><span class="line"> keepNum += ch;</span><br><span class="line"> <span class="comment">//如果ch是表达式的最后一位 就直接入栈</span></span><br><span class="line"> <span class="keyword">if</span> (index == expression.length() - <span class="number">1</span>) {</span><br><span class="line"> numStack.push(Integer.parseInt(keepNum));</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//判断下一个字符是不是数字 如果是数字 就继续扫描 如果是运算符 则入栈</span></span><br><span class="line"> <span class="keyword">if</span> (operStack.isOper(expression.substring(index + <span class="number">1</span>, index + <span class="number">2</span>).charAt(<span class="number">0</span>))) {<span class="comment">//下一位是操作符</span></span><br><span class="line"> <span class="comment">//直接将当前为添加到数栈</span></span><br><span class="line"> numStack.push(Integer.parseInt(keepNum));</span><br><span class="line"> <span class="comment">//清空keepNum</span></span><br><span class="line"> keepNum = <span class="string">""</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//让index + 1 ,并判断是否扫描到表达式的最后</span></span><br><span class="line"> index++;</span><br><span class="line"> <span class="keyword">if</span> (index >= expression.length()) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//当表达式扫描完毕,就顺序的从 数栈和符号栈中pop出相应的数和符号,并运行.</span></span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) {</span><br><span class="line"> <span class="comment">//如果符号栈为空 则计算结束 数栈中只有 一个数字</span></span><br><span class="line"> <span class="keyword">if</span> (operStack.isEmpty()) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> num1 = numStack.pop();</span><br><span class="line"> num2 = numStack.pop();</span><br><span class="line"> oper = operStack.pop();</span><br><span class="line"> result = numStack.cal(num1, num2, oper);</span><br><span class="line"> numStack.push(result);</span><br><span class="line"> }</span><br><span class="line"> System.out.printf(<span class="string">"表达式:%s = %d"</span>, expression, numStack.pop());</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//定义一个ArrayStack表示栈</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">ArrayStack2</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> maxSize;<span class="comment">//栈的大小</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span>[] stack;<span class="comment">//数组 数组模拟栈 数据放在数组中</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> <span class="variable">top</span> <span class="operator">=</span> -<span class="number">1</span>; <span class="comment">//top表示栈顶 初始化为1</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//构造器</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">ArrayStack2</span><span class="params">(<span class="type">int</span> maxSize)</span> {</span><br><span class="line"> <span class="built_in">this</span>.maxSize = maxSize;</span><br><span class="line"> <span class="comment">//完成数组的初始化</span></span><br><span class="line"> stack = <span class="keyword">new</span> <span class="title class_">int</span>[maxSize];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断是否栈满</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isFull</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> top == maxSize - <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断栈是否为空</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isEmpty</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> top == -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 入栈的操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">push</span><span class="params">(<span class="type">int</span> value)</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为满</span></span><br><span class="line"> <span class="keyword">if</span> (isFull()) {</span><br><span class="line"> System.out.println(<span class="string">"栈满,无法添加数据!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> top++;</span><br><span class="line"> stack[top] = value;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 出栈的操作</span></span><br><span class="line"><span class="comment"> * 将栈顶的数据返回</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">pop</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"栈空,无法取出数据!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//取出数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">value</span> <span class="operator">=</span> stack[top];</span><br><span class="line"> top--;</span><br><span class="line"> <span class="keyword">return</span> value;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示栈的情况</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">list</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//先判断栈是否为空</span></span><br><span class="line"> <span class="keyword">if</span> (isEmpty()) {</span><br><span class="line"> System.out.println(<span class="string">"栈空,无法取出数据!"</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> top; i >= <span class="number">0</span>; i--) {</span><br><span class="line"> System.out.printf(<span class="string">"stack[%d] = %d \n"</span>, i, stack[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 返回运算符的优先级</span></span><br><span class="line"><span class="comment"> * 优先级由数字表示</span></span><br><span class="line"><span class="comment"> * 数字大 优先级高</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">priority</span><span class="params">(<span class="type">int</span> oper)</span> {</span><br><span class="line"> <span class="keyword">if</span> (oper == <span class="string">'*'</span> || oper == <span class="string">'/'</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="number">1</span>;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (oper == <span class="string">'+'</span> || oper == <span class="string">'-'</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="number">0</span>;</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断是不是一个运算符</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">isOper</span><span class="params">(<span class="type">char</span> val)</span> {</span><br><span class="line"> <span class="keyword">return</span> val == <span class="string">'+'</span> || val == <span class="string">'-'</span> || val == <span class="string">'*'</span> || val == <span class="string">'/'</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 计算方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">cal</span><span class="params">(<span class="type">int</span> num1, <span class="type">int</span> num2, <span class="type">int</span> oper)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">result</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">switch</span> (oper) {</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'+'</span>:</span><br><span class="line"> result = num1 + num2;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'-'</span>:</span><br><span class="line"> result = num2 - num1; <span class="comment">//注意顺序</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'*'</span>:</span><br><span class="line"> result = num1 * num2;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">'/'</span>:</span><br><span class="line"> result = num2 / num1;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查看栈顶数据的方法</span></span><br><span class="line"><span class="comment"> * 返回栈顶的值 不是pop出来</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">int</span> <span class="title function_">peek</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> stack[top];</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="6-逆波兰计算器的设计与实现"><a href="#6-逆波兰计算器的设计与实现" class="headerlink" title="6.逆波兰计算器的设计与实现"></a>6.逆波兰计算器的设计与实现</h3><p><strong>逆波兰表达式(后缀表达式)</strong></p>
|
||
<p>1)<strong>输入一个逆波兰表达式(后缀表达式),使用栈(Stack),计算其结果</strong></p>
|
||
<p>2)<strong>支持小括号和多位数整数,因为这里我们主要讲的是数据结构,因此计算器进行简化,只支持对整数的计算。</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.stack;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Stack;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/11</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 逆波兰计算器的设计与实现</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">PolandNotation</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//先定义一个逆波兰表达式</span></span><br><span class="line"> <span class="comment">//(3+4)×5-6 的逆波兰表达式是 3 4 + 5 × 6 -</span></span><br><span class="line"> <span class="comment">//为了方便 逆波兰表达式的数字和符号有空格隔开</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">suffixExpression</span> <span class="operator">=</span> <span class="string">"3 4 + 5 * 6 -"</span>;<span class="comment">//中间有空格隔开</span></span><br><span class="line"> <span class="comment">//1.先将suffixExpression放入到List集合中</span></span><br><span class="line"> <span class="comment">//2.将List集合传递给一个方法 配合栈 完成计算</span></span><br><span class="line"> List<String> rpnList = getListString(suffixExpression);</span><br><span class="line"> System.out.println(<span class="string">"计算的结果是:"</span>+calculate(rpnList));</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//将一个逆波兰表达式依次将数据和运算符放入到List集合中</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">getListString</span><span class="params">(String suffixExpression)</span> {</span><br><span class="line"> <span class="comment">//将suffixExpression按照空格分割</span></span><br><span class="line"> String[] strings = suffixExpression.split(<span class="string">" "</span>);</span><br><span class="line"> List<String> list = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (String string : strings) {</span><br><span class="line"> list.add(string);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> list;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 从左至右扫描,将3和4压入堆栈;</span></span><br><span class="line"><span class="comment"> * 遇到+运算符,因此弹出4和3(4为栈顶元素,3为次顶元素),计算出3+4的值,得7,再将7入栈;</span></span><br><span class="line"><span class="comment"> * 将5入栈;</span></span><br><span class="line"><span class="comment"> * 接下来是×运算符,因此弹出5和7,计算出7×5=35,将35入栈;</span></span><br><span class="line"><span class="comment"> * 将6入栈;</span></span><br><span class="line"><span class="comment"> * 最后是-运算符,计算出35-6的值,即29,由此得出最终结果</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">calculate</span><span class="params">(List<String> list)</span> {</span><br><span class="line"> <span class="comment">//创建一个栈</span></span><br><span class="line"> Stack<String> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="comment">//遍历list</span></span><br><span class="line"> <span class="keyword">for</span> (String item : list) {</span><br><span class="line"> <span class="comment">//使用正则表达式取出数字</span></span><br><span class="line"> <span class="keyword">if</span> (item.matches(<span class="string">"\\d+"</span>)) { <span class="comment">//匹配的是多位数</span></span><br><span class="line"> <span class="comment">//入栈</span></span><br><span class="line"> stack.push(item);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//弹出两个数 并运算 再入栈</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">num2</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="type">int</span> <span class="variable">num1</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="comment">//运算</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">if</span> (item.equals(<span class="string">"+"</span>)) {</span><br><span class="line"> res = num1 + num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"-"</span>)) {</span><br><span class="line"> res = num1 - num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"*"</span>)) {</span><br><span class="line"> res = num1 * num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"/"</span>)) {</span><br><span class="line"> res = num1 / num2;</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"运算符有误!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//把结果入栈</span></span><br><span class="line"> stack.push(res + <span class="string">""</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//最后留在stack中的数就是运算结果</span></span><br><span class="line"> <span class="keyword">return</span> Integer.parseInt(stack.pop());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>将中缀表达式转化为后缀表达式(逆波兰表达式)</strong></p>
|
||
<p>解题的步骤:</p>
|
||
<p>1)初始化两个栈:运算符栈s1和储存中间结果的栈s2;</p>
|
||
<p>2)从左至右扫描中缀表达式;</p>
|
||
<p>3)遇到操作数时,将其压s2;</p>
|
||
<p>4)遇到运算符时,比较其与s1栈顶运算符的优先级:</p>
|
||
<p> (1)如果s1为空,或栈顶运算符为左括号“(”,则直接将此运算符入栈;</p>
|
||
<p> (2)否则,若优先级比栈顶运算符的高,也将运算符压入s1;</p>
|
||
<p> (3)否则,将s1栈顶的运算符弹出并压入到s2中,再次转到(4-1)与s1中新的栈顶运算符相比较</p>
|
||
<p>5)遇到括号时:<br> (1) 如果是左括号“(”,则直接压入s1<br> (2) 如果是右括号“)”,则依次弹出s1栈顶的运算符,并压入s2,直到遇到左括号为止,此时将这一对括号丢弃</p>
|
||
<p>6)重复步骤2至5,直到表达式的最右边</p>
|
||
<p>7)将s1中剩余的运算符依次弹出并压入s2</p>
|
||
<p>8)依次弹出s2中的元素并输出,<strong>结果的逆序即为中缀表达式对应的后缀表达式</strong></p>
|
||
<p><img src="/pictures/image-20230511094011546.png" alt="image-20230511094011546"></p>
|
||
<p>先将中缀表达式转化成list集合</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 将中缀表达式转化成对应的list</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> expression 中缀表达式</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 中缀表达式转化成的一个list集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">toInfixExpressionList</span><span class="params">(String expression)</span> {</span><br><span class="line"> <span class="comment">//定义一个集合,存储中缀表达式对应的list集合</span></span><br><span class="line"> List<String> list = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//这个是一个指针 用于遍历中缀表达式的字符串</span></span><br><span class="line"> String str;<span class="comment">//做多位数的拼接工作 ,因为我们要考虑多位数的情况</span></span><br><span class="line"> <span class="type">char</span> c;<span class="comment">//每遍历一个字符就放入到c中</span></span><br><span class="line"> <span class="keyword">do</span> {</span><br><span class="line"> <span class="keyword">if</span> ((c = expression.charAt(i)) < <span class="number">48</span> || (c = expression.charAt(i)) > <span class="number">57</span>) { <span class="comment">//如果c是一个非数字的字符需要加入到ls中</span></span><br><span class="line"> list.add(c + <span class="string">""</span>); <span class="comment">//直接将这个字符添加到list集合中</span></span><br><span class="line"> i++;</span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//如果是一个数 要考虑多位数的问题</span></span><br><span class="line"> str = <span class="string">""</span>;<span class="comment">//先将str置空</span></span><br><span class="line"> <span class="keyword">while</span> (i < expression.length() && (c = expression.charAt(i)) >= <span class="number">48</span> && (c = expression.charAt(i)) <= <span class="number">57</span>) {</span><br><span class="line"> str += c;</span><br><span class="line"> i++;</span><br><span class="line"> }</span><br><span class="line"> list.add(str);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">while</span> (i < expression.length());</span><br><span class="line"> <span class="keyword">return</span> list;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>将中缀表达式的集合转化成逆波兰表达式(后缀表达式)的集合</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 将中缀表达式对应的List转化成后缀表达式对应的list</span></span><br><span class="line"><span class="comment"> * tips:</span></span><br><span class="line"><span class="comment"> * 1)初始化两个栈:运算符栈s1和储存中间结果的栈s2;</span></span><br><span class="line"><span class="comment"> * 2)从左至右扫描中缀表达式;</span></span><br><span class="line"><span class="comment"> * 3)遇到操作数时,将其压s2;</span></span><br><span class="line"><span class="comment"> * 4)遇到运算符时,比较其与s1栈顶运算符的优先级:</span></span><br><span class="line"><span class="comment"> * (1)如果s1为空,或栈顶运算符为左括号“(”,则直接将此运算符入栈;</span></span><br><span class="line"><span class="comment"> * (2)否则,若优先级比栈顶运算符的高,也将运算符压入s1;</span></span><br><span class="line"><span class="comment"> * (3)否则,将s1栈顶的运算符弹出并压入到s2中,再次转到(4-1)与s1中新的栈顶运算符相比较</span></span><br><span class="line"><span class="comment"> * 5)遇到括号时:</span></span><br><span class="line"><span class="comment"> * (1) 如果是左括号“(”,则直接压入s1</span></span><br><span class="line"><span class="comment"> * (2) 如果是右括号“)”,则依次弹出s1栈顶的运算符,并压入s2,直到遇到左括号为止,此时将这一对括号丢弃</span></span><br><span class="line"><span class="comment"> * 6)重复步骤2至5,直到表达式的最右边</span></span><br><span class="line"><span class="comment"> * 7)将s1中剩余的运算符依次弹出并压入s2</span></span><br><span class="line"><span class="comment"> * 8)依次弹出s2中的元素并输出,**结果的逆序即为中缀表达式对应的后缀表达式**</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> ls 中缀表达式对应的list</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 后缀表达式对应的list</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">parseSuffixExpressionList</span><span class="params">(List<String> ls)</span> {</span><br><span class="line"> <span class="comment">//定义栈</span></span><br><span class="line"> Stack<String> s1 = <span class="keyword">new</span> <span class="title class_">Stack</span><>();<span class="comment">//符号栈 s1栈</span></span><br><span class="line"> <span class="comment">//说明:因为思路分析中使用的s2的栈在整个的运算的过程中没有进行pop的操作 我们直接使用list集合代替s2栈 (同时也为了方便后面逆序的输出)</span></span><br><span class="line"> ArrayList<String> s2 = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();<span class="comment">//用于存储中间结果的list</span></span><br><span class="line"> <span class="comment">//遍历ls</span></span><br><span class="line"> <span class="keyword">for</span> (String item : ls) {</span><br><span class="line"> <span class="comment">//如果是一个数 就加入到s2栈</span></span><br><span class="line"> <span class="keyword">if</span> (item.matches(<span class="string">"\\d+"</span>)) {<span class="comment">//正则匹配</span></span><br><span class="line"> s2.add(item);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"("</span>)) { <span class="comment">//如果是s1的话就直接入符号栈</span></span><br><span class="line"> s1.push(item);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">")"</span>)) {</span><br><span class="line"> <span class="comment">//如果是右括号“)”,则依次弹出s1栈顶的运算符,并压入s2,直到遇到左括号为止,此时将这一对括号丢弃</span></span><br><span class="line"> <span class="keyword">while</span> (!s1.peek().equals(<span class="string">"("</span>)) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> s1.pop();<span class="comment">//将(弹出s1栈,这里的操作就是消除括号</span></span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//加减乘除的操作</span></span><br><span class="line"> <span class="comment">//当item的优先级小于栈顶的优先级,</span></span><br><span class="line"> <span class="comment">// 将s1栈顶的运算符弹出并加入到s2中,再次转到(4.1)与s1中新的栈顶运算符相比较</span></span><br><span class="line"> <span class="keyword">while</span> (s1.size() != <span class="number">0</span> && getVal(s1.peek()) >= getVal(item)) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//还需要将item压入栈中</span></span><br><span class="line"> s1.push(item);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将s1中剩余的运算符依次弹出并加入s2</span></span><br><span class="line"> <span class="keyword">while</span> (s1.size() != <span class="number">0</span>) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> s2;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>通过逆波兰表达式(后缀表达式)的集合得到最终的计算结果</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 通过一个后缀表达式的list集合得到表达式最终的计算结果</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> list 后缀表达式的list集合</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 根据后缀表达式的集合计算出的表达式的结果信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">calculate</span><span class="params">(List<String> list)</span> {</span><br><span class="line"> <span class="comment">//创建一个栈</span></span><br><span class="line"> Stack<String> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="comment">//遍历list</span></span><br><span class="line"> <span class="keyword">for</span> (String item : list) {</span><br><span class="line"> <span class="comment">//使用正则表达式取出数字</span></span><br><span class="line"> <span class="keyword">if</span> (item.matches(<span class="string">"\\d+"</span>)) { <span class="comment">//匹配的是多位数</span></span><br><span class="line"> <span class="comment">//入栈</span></span><br><span class="line"> stack.push(item);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//弹出两个数 并运算 再入栈</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">num2</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="type">int</span> <span class="variable">num1</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="comment">//运算</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">if</span> (item.equals(<span class="string">"+"</span>)) {</span><br><span class="line"> res = num1 + num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"-"</span>)) {</span><br><span class="line"> res = num1 - num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"*"</span>)) {</span><br><span class="line"> res = num1 * num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"/"</span>)) {</span><br><span class="line"> res = num1 / num2;</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"运算符有误!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//把结果入栈</span></span><br><span class="line"> stack.push(res + <span class="string">""</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//最后留在stack中的数就是运算结果</span></span><br><span class="line"> <span class="keyword">return</span> Integer.parseInt(stack.pop());</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>完整的代码</strong></p>
|
||
<p>(不支持小数)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.stack;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Stack;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/11</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 逆波兰计算器的设计与实现</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">PolandNotation</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//先定义一个逆波兰表达式</span></span><br><span class="line"> <span class="comment">//(3+4)×5-6 的逆波兰表达式是 3 4 + 5 × 6 -</span></span><br><span class="line"> <span class="comment">//为了方便 逆波兰表达式的数字和符号有空格隔开</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">suffixExpression</span> <span class="operator">=</span> <span class="string">"3 4 + 5 * 6 -"</span>;<span class="comment">//中间有空格隔开</span></span><br><span class="line"> <span class="comment">//1.先将suffixExpression放入到List集合中</span></span><br><span class="line"> <span class="comment">//2.将List集合传递给一个方法 配合栈 完成计算</span></span><br><span class="line"> List<String> rpnList = getListString(suffixExpression);</span><br><span class="line"> System.out.println(<span class="string">"计算的结果是:"</span> + calculate(rpnList));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//测试将中缀表达式转化成逆波兰表达式</span></span><br><span class="line"> <span class="comment">//完成一个将中缀表达式 转换为一个后缀表达式</span></span><br><span class="line"> <span class="comment">//1. 1+((2+3)×4)-5(中缀表达式) -> 1 2 3 + 4 × + 5 –(后缀表达式)</span></span><br><span class="line"> <span class="comment">//2. 将中缀表达式转化成List集合</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">expression</span> <span class="operator">=</span> <span class="string">"1+((2+3)*4)-5"</span>;</span><br><span class="line"> List<String> list = toInfixExpressionList(expression);</span><br><span class="line"> System.out.println(<span class="string">"中缀表达式对应的List:"</span> + list);</span><br><span class="line"> <span class="comment">//3.将得到的中缀表达式对应的List 转换成一个逆波兰表达式(后缀表达式)对应的List</span></span><br><span class="line"> List<String> stringList = parseSuffixExpressionList(list);</span><br><span class="line"> System.out.println(<span class="string">"中缀表达式对应的List:"</span> + stringList);</span><br><span class="line"> System.out.println(<span class="string">"计算的结果:"</span> + calculate(stringList));</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 输入一个运算符 返回对应的优先级</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">getVal</span><span class="params">(String operation)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">switch</span> (operation) {</span><br><span class="line"> <span class="keyword">case</span> <span class="string">"+"</span>:</span><br><span class="line"> <span class="keyword">case</span> <span class="string">"-"</span>:</span><br><span class="line"> res = <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> <span class="string">"/"</span>:</span><br><span class="line"> <span class="keyword">case</span> <span class="string">"*"</span>:</span><br><span class="line"> res = <span class="number">2</span>;</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">default</span>:</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> res;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 将中缀表达式对应的List转化成后缀表达式对应的list</span></span><br><span class="line"><span class="comment"> * tips:</span></span><br><span class="line"><span class="comment"> * 1)初始化两个栈:运算符栈s1和储存中间结果的栈s2;</span></span><br><span class="line"><span class="comment"> * 2)从左至右扫描中缀表达式;</span></span><br><span class="line"><span class="comment"> * 3)遇到操作数时,将其压s2;</span></span><br><span class="line"><span class="comment"> * 4)遇到运算符时,比较其与s1栈顶运算符的优先级:</span></span><br><span class="line"><span class="comment"> * (1)如果s1为空,或栈顶运算符为左括号“(”,则直接将此运算符入栈;</span></span><br><span class="line"><span class="comment"> * (2)否则,若优先级比栈顶运算符的高,也将运算符压入s1;</span></span><br><span class="line"><span class="comment"> * (3)否则,将s1栈顶的运算符弹出并压入到s2中,再次转到(4-1)与s1中新的栈顶运算符相比较</span></span><br><span class="line"><span class="comment"> * 5)遇到括号时:</span></span><br><span class="line"><span class="comment"> * (1) 如果是左括号“(”,则直接压入s1</span></span><br><span class="line"><span class="comment"> * (2) 如果是右括号“)”,则依次弹出s1栈顶的运算符,并压入s2,直到遇到左括号为止,此时将这一对括号丢弃</span></span><br><span class="line"><span class="comment"> * 6)重复步骤2至5,直到表达式的最右边</span></span><br><span class="line"><span class="comment"> * 7)将s1中剩余的运算符依次弹出并压入s2</span></span><br><span class="line"><span class="comment"> * 8)依次弹出s2中的元素并输出,**结果的逆序即为中缀表达式对应的后缀表达式**</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> ls 中缀表达式对应的list</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 后缀表达式对应的list</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">parseSuffixExpressionList</span><span class="params">(List<String> ls)</span> {</span><br><span class="line"> <span class="comment">//定义栈</span></span><br><span class="line"> Stack<String> s1 = <span class="keyword">new</span> <span class="title class_">Stack</span><>();<span class="comment">//符号栈 s1栈</span></span><br><span class="line"> <span class="comment">//说明:因为思路分析中使用的s2的栈在整个的运算的过程中没有进行pop的操作 我们直接使用list集合代替s2栈 (同时也为了方便后面逆序的输出)</span></span><br><span class="line"> ArrayList<String> s2 = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();<span class="comment">//用于存储中间结果的list</span></span><br><span class="line"> <span class="comment">//遍历ls</span></span><br><span class="line"> <span class="keyword">for</span> (String item : ls) {</span><br><span class="line"> <span class="comment">//如果是一个数 就加入到s2栈</span></span><br><span class="line"> <span class="keyword">if</span> (item.matches(<span class="string">"\\d+"</span>)) {<span class="comment">//正则匹配</span></span><br><span class="line"> s2.add(item);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"("</span>)) { <span class="comment">//如果是s1的话就直接入符号栈</span></span><br><span class="line"> s1.push(item);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">")"</span>)) {</span><br><span class="line"> <span class="comment">//如果是右括号“)”,则依次弹出s1栈顶的运算符,并压入s2,直到遇到左括号为止,此时将这一对括号丢弃</span></span><br><span class="line"> <span class="keyword">while</span> (!s1.peek().equals(<span class="string">"("</span>)) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> s1.pop();<span class="comment">//将(弹出s1栈,这里的操作就是消除括号</span></span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//加减乘除的操作</span></span><br><span class="line"> <span class="comment">//当item的优先级小于栈顶的优先级,</span></span><br><span class="line"> <span class="comment">// 将s1栈顶的运算符弹出并加入到s2中,再次转到(4.1)与s1中新的栈顶运算符相比较</span></span><br><span class="line"> <span class="keyword">while</span> (s1.size() != <span class="number">0</span> && getVal(s1.peek()) >= getVal(item)) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//还需要将item压入栈中</span></span><br><span class="line"> s1.push(item);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将s1中剩余的运算符依次弹出并加入s2</span></span><br><span class="line"> <span class="keyword">while</span> (s1.size() != <span class="number">0</span>) {</span><br><span class="line"> s2.add(s1.pop());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> s2;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 将中缀表达式转化成对应的list</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> expression 中缀表达式</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 中缀表达式转化成的一个list集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">toInfixExpressionList</span><span class="params">(String expression)</span> {</span><br><span class="line"> <span class="comment">//定义一个集合,存储中缀表达式对应的list集合</span></span><br><span class="line"> List<String> list = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//这个是一个指针 用于遍历中缀表达式的字符串</span></span><br><span class="line"> String str;<span class="comment">//做多位数的拼接工作 ,因为我们要考虑多位数的情况</span></span><br><span class="line"> <span class="type">char</span> c;<span class="comment">//每遍历一个字符就放入到c中</span></span><br><span class="line"> <span class="keyword">do</span> {</span><br><span class="line"> <span class="keyword">if</span> ((c = expression.charAt(i)) < <span class="number">48</span> || (c = expression.charAt(i)) > <span class="number">57</span>) { <span class="comment">//如果c是一个非数字的字符需要加入到ls中</span></span><br><span class="line"> list.add(c + <span class="string">""</span>); <span class="comment">//直接将这个字符添加到list集合中</span></span><br><span class="line"> i++;</span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//如果是一个数 要考虑多位数的问题</span></span><br><span class="line"> str = <span class="string">""</span>;<span class="comment">//先将str置空</span></span><br><span class="line"> <span class="comment">//这个只要遍历的有一个字符不是数字 就会退出while循环</span></span><br><span class="line"> <span class="keyword">while</span> (i < expression.length() && (c = expression.charAt(i)) >= <span class="number">48</span> && (c = expression.charAt(i)) <= <span class="number">57</span>) {</span><br><span class="line"> str += c;</span><br><span class="line"> i++;</span><br><span class="line"> }</span><br><span class="line"> list.add(str);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">while</span> (i < expression.length());</span><br><span class="line"> <span class="keyword">return</span> list;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//将一个逆波兰表达式依次将数据和运算符放入到List集合中</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">getListString</span><span class="params">(String suffixExpression)</span> {</span><br><span class="line"> <span class="comment">//将suffixExpression按照空格分割</span></span><br><span class="line"> String[] strings = suffixExpression.split(<span class="string">" "</span>);</span><br><span class="line"> List<String> list = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (String string : strings) {</span><br><span class="line"> list.add(string);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> list;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 通过一个后缀表达式的list集合得到表达式最终的计算结果</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> list 后缀表达式的list集合</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 根据后缀表达式的集合计算出的表达式的结果信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">calculate</span><span class="params">(List<String> list)</span> {</span><br><span class="line"> <span class="comment">//创建一个栈</span></span><br><span class="line"> Stack<String> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="comment">//遍历list</span></span><br><span class="line"> <span class="keyword">for</span> (String item : list) {</span><br><span class="line"> <span class="comment">//使用正则表达式取出数字</span></span><br><span class="line"> <span class="keyword">if</span> (item.matches(<span class="string">"\\d+"</span>)) { <span class="comment">//匹配的是多位数</span></span><br><span class="line"> <span class="comment">//入栈</span></span><br><span class="line"> stack.push(item);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//弹出两个数 并运算 再入栈</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">num2</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="type">int</span> <span class="variable">num1</span> <span class="operator">=</span> Integer.parseInt(stack.pop());</span><br><span class="line"> <span class="comment">//运算</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">res</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">if</span> (item.equals(<span class="string">"+"</span>)) {</span><br><span class="line"> res = num1 + num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"-"</span>)) {</span><br><span class="line"> res = num1 - num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"*"</span>)) {</span><br><span class="line"> res = num1 * num2;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (item.equals(<span class="string">"/"</span>)) {</span><br><span class="line"> res = num1 / num2;</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"运算符有误!"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//把结果入栈</span></span><br><span class="line"> stack.push(res + <span class="string">""</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//最后留在stack中的数就是运算结果</span></span><br><span class="line"> <span class="keyword">return</span> Integer.parseInt(stack.pop());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>完整的逆波兰计算器,含小数点的计算</strong></p>
|
||
<p>(老师的代码)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.stack;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.Collections;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Stack;</span><br><span class="line"><span class="keyword">import</span> java.util.regex.Pattern;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ReversePolishMultiCalc</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 匹配 + - * / ( ) 运算符</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">SYMBOL</span> <span class="operator">=</span> <span class="string">"\\+|-|\\*|/|\\(|\\)"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">LEFT</span> <span class="operator">=</span> <span class="string">"("</span>;</span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">RIGHT</span> <span class="operator">=</span> <span class="string">")"</span>;</span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">ADD</span> <span class="operator">=</span> <span class="string">"+"</span>;</span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> String MINUS= <span class="string">"-"</span>;</span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">TIMES</span> <span class="operator">=</span> <span class="string">"*"</span>;</span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">DIVISION</span> <span class="operator">=</span> <span class="string">"/"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 加減 + -</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">int</span> <span class="variable">LEVEL_01</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 乘除 * /</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">int</span> <span class="variable">LEVEL_02</span> <span class="operator">=</span> <span class="number">2</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 括号</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">int</span> <span class="variable">LEVEL_HIGH</span> <span class="operator">=</span> Integer.MAX_VALUE;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="keyword">static</span> Stack<String> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> <span class="keyword">static</span> List<String> data = Collections.synchronizedList(<span class="keyword">new</span> <span class="title class_">ArrayList</span><String>());</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 去除所有空白符</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> String <span class="title function_">replaceAllBlank</span><span class="params">(String s )</span>{</span><br><span class="line"> <span class="comment">// \\s+ 匹配任何空白字符,包括空格、制表符、换页符等等, 等价于[ \f\n\r\t\v]</span></span><br><span class="line"> <span class="keyword">return</span> s.replaceAll(<span class="string">"\\s+"</span>,<span class="string">""</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断是不是数字 int double long float</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isNumber</span><span class="params">(String s)</span>{</span><br><span class="line"> <span class="type">Pattern</span> <span class="variable">pattern</span> <span class="operator">=</span> Pattern.compile(<span class="string">"^[-\\+]?[.\\d]*$"</span>);</span><br><span class="line"> <span class="keyword">return</span> pattern.matcher(s).matches();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断是不是运算符</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">isSymbol</span><span class="params">(String s)</span>{</span><br><span class="line"> <span class="keyword">return</span> s.matches(SYMBOL);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 匹配运算等级</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">calcLevel</span><span class="params">(String s)</span>{</span><br><span class="line"> <span class="keyword">if</span>(<span class="string">"+"</span>.equals(s) || <span class="string">"-"</span>.equals(s)){</span><br><span class="line"> <span class="keyword">return</span> LEVEL_01;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span>(<span class="string">"*"</span>.equals(s) || <span class="string">"/"</span>.equals(s)){</span><br><span class="line"> <span class="keyword">return</span> LEVEL_02;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> LEVEL_HIGH;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 匹配</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<String> <span class="title function_">doMatch</span> <span class="params">(String s)</span> <span class="keyword">throws</span> Exception{</span><br><span class="line"> <span class="keyword">if</span>(s == <span class="literal">null</span> || <span class="string">""</span>.equals(s.trim())) <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"data is empty"</span>);</span><br><span class="line"> <span class="keyword">if</span>(!isNumber(s.charAt(<span class="number">0</span>)+<span class="string">""</span>)) <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"data illeagle,start not with a number"</span>);</span><br><span class="line"></span><br><span class="line"> s = replaceAllBlank(s);</span><br><span class="line"></span><br><span class="line"> String each;</span><br><span class="line"> <span class="type">int</span> <span class="variable">start</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < s.length(); i++) {</span><br><span class="line"> <span class="keyword">if</span>(isSymbol(s.charAt(i)+<span class="string">""</span>)){</span><br><span class="line"> each = s.charAt(i)+<span class="string">""</span>;</span><br><span class="line"> <span class="comment">//栈为空,(操作符,或者 操作符优先级大于栈顶优先级 && 操作符优先级不是( )的优先级 及是 ) 不能直接入栈</span></span><br><span class="line"> <span class="keyword">if</span>(stack.isEmpty() || LEFT.equals(each)</span><br><span class="line"> || ((calcLevel(each) > calcLevel(stack.peek())) && calcLevel(each) < LEVEL_HIGH)){</span><br><span class="line"> stack.push(each);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>( !stack.isEmpty() && calcLevel(each) <= calcLevel(stack.peek())){</span><br><span class="line"> <span class="comment">//栈非空,操作符优先级小于等于栈顶优先级时出栈入列,直到栈为空,或者遇到了(,最后操作符入栈</span></span><br><span class="line"> <span class="keyword">while</span> (!stack.isEmpty() && calcLevel(each) <= calcLevel(stack.peek()) ){</span><br><span class="line"> <span class="keyword">if</span>(calcLevel(stack.peek()) == LEVEL_HIGH){</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> data.add(stack.pop());</span><br><span class="line"> }</span><br><span class="line"> stack.push(each);</span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>(RIGHT.equals(each)){</span><br><span class="line"> <span class="comment">// ) 操作符,依次出栈入列直到空栈或者遇到了第一个)操作符,此时)出栈</span></span><br><span class="line"> <span class="keyword">while</span> (!stack.isEmpty() && LEVEL_HIGH >= calcLevel(stack.peek())){</span><br><span class="line"> <span class="keyword">if</span>(LEVEL_HIGH == calcLevel(stack.peek())){</span><br><span class="line"> stack.pop();</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> data.add(stack.pop());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> start = i ; <span class="comment">//前一个运算符的位置</span></span><br><span class="line"> }<span class="keyword">else</span> <span class="keyword">if</span>( i == s.length()-<span class="number">1</span> || isSymbol(s.charAt(i+<span class="number">1</span>)+<span class="string">""</span>) ){</span><br><span class="line"> each = start == <span class="number">0</span> ? s.substring(start,i+<span class="number">1</span>) : s.substring(start+<span class="number">1</span>,i+<span class="number">1</span>);</span><br><span class="line"> <span class="keyword">if</span>(isNumber(each)) {</span><br><span class="line"> data.add(each);</span><br><span class="line"> <span class="keyword">continue</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(<span class="string">"data not match number"</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//如果栈里还有元素,此时元素需要依次出栈入列,可以想象栈里剩下栈顶为/,栈底为+,应该依次出栈入列,可以直接翻转整个stack 添加到队列</span></span><br><span class="line"> Collections.reverse(stack);</span><br><span class="line"> data.addAll(<span class="keyword">new</span> <span class="title class_">ArrayList</span><>(stack));</span><br><span class="line"></span><br><span class="line"> System.out.println(data);</span><br><span class="line"> <span class="keyword">return</span> data;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 算出结果</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> list</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> Double <span class="title function_">doCalc</span><span class="params">(List<String> list)</span>{</span><br><span class="line"> <span class="type">Double</span> <span class="variable">d</span> <span class="operator">=</span> <span class="number">0d</span>;</span><br><span class="line"> <span class="keyword">if</span>(list == <span class="literal">null</span> || list.isEmpty()){</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (list.size() == <span class="number">1</span>){</span><br><span class="line"> System.out.println(list);</span><br><span class="line"> d = Double.valueOf(list.get(<span class="number">0</span>));</span><br><span class="line"> <span class="keyword">return</span> d;</span><br><span class="line"> }</span><br><span class="line"> ArrayList<String> list1 = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < list.size(); i++) {</span><br><span class="line"> list1.add(list.get(i));</span><br><span class="line"> <span class="keyword">if</span>(isSymbol(list.get(i))){</span><br><span class="line"> <span class="type">Double</span> <span class="variable">d1</span> <span class="operator">=</span> doTheMath(list.get(i - <span class="number">2</span>), list.get(i - <span class="number">1</span>), list.get(i));</span><br><span class="line"> list1.remove(i);</span><br><span class="line"> list1.remove(i-<span class="number">1</span>);</span><br><span class="line"> list1.set(i-<span class="number">2</span>,d1+<span class="string">""</span>);</span><br><span class="line"> list1.addAll(list.subList(i+<span class="number">1</span>,list.size()));</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> doCalc(list1);</span><br><span class="line"> <span class="keyword">return</span> d;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 运算</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s1</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> s2</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> symbol</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> Double <span class="title function_">doTheMath</span><span class="params">(String s1,String s2,String symbol)</span>{</span><br><span class="line"> Double result ;</span><br><span class="line"> <span class="keyword">switch</span> (symbol){</span><br><span class="line"> <span class="keyword">case</span> ADD : result = Double.valueOf(s1) + Double.valueOf(s2); <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> MINUS : result = Double.valueOf(s1) - Double.valueOf(s2); <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> TIMES : result = Double.valueOf(s1) * Double.valueOf(s2); <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">case</span> DIVISION : result = Double.valueOf(s1) / Double.valueOf(s2); <span class="keyword">break</span>;</span><br><span class="line"> <span class="keyword">default</span> : result = <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//String math = "9+(3-1)*3+10/2";</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">math</span> <span class="operator">=</span> <span class="string">"12.8 + (2 - 3.55)*4+10/5.0"</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> doCalc(doMatch(math));</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="六-递归"><a href="#六-递归" class="headerlink" title="六.递归"></a>六.递归</h2><h3 id="1-简单介绍"><a href="#1-简单介绍" class="headerlink" title="1.简单介绍"></a>1.简单介绍</h3><p>递归就是方法自己调用自己,每次调用时传入不同的变量,<strong>递归有助于编程者解决复杂的问题</strong>,同时可以让代码变得简洁</p>
|
||
<p><img src="/pictures/image-20230511123527496.png" alt="image-20230511123527496"></p>
|
||
<h3 id="2-入门案例"><a href="#2-入门案例" class="headerlink" title="2.入门案例"></a>2.入门案例</h3><p><img src="/pictures/image-20230511123245408.png" alt="image-20230511123245408"></p>
|
||
<h3 id="3-递归解决的问题"><a href="#3-递归解决的问题" class="headerlink" title="3.递归解决的问题"></a>3.递归解决的问题</h3><p>1)各种数学问题如: 8皇后问题 , 汉诺塔, 阶乘问题, 迷宫问题, 球和篮子的问题(google编程大赛)</p>
|
||
<p>2)各种算法中也会使用到递归,比如快排,归并排序,二分查找,分治算法等.</p>
|
||
<p>3)将用栈解决的问题–>第归代码比较简洁</p>
|
||
<h3 id="4-递归遵循的规则"><a href="#4-递归遵循的规则" class="headerlink" title="4.递归遵循的规则"></a>4.递归遵循的规则</h3><p>1)执行一个方法时,就创建一个新的受保护的独立空间(栈空间)</p>
|
||
<p>2)方法的局部变量是独立的,不会相互影响, 比如n变量</p>
|
||
<p>3)如果方法中使用的是引用类型变量(比如数组),就会共享该引用类型的数据.</p>
|
||
<p>4)递归必须向退出递归的条件逼近,否则就是无限递归,出现StackOverflowError,死龟了:)</p>
|
||
<p>5)当一个方法执行完毕,或者遇到return,就会返回,遵守谁调用,就将结果返回给谁,同时当方法执行完毕或者返回时,该方法也就执行完毕。</p>
|
||
<h3 id="5-递归的实际应用"><a href="#5-递归的实际应用" class="headerlink" title="5.递归的实际应用"></a>5.递归的实际应用</h3><h4 id="5-1递归解决迷宫问题"><a href="#5-1递归解决迷宫问题" class="headerlink" title="5.1递归解决迷宫问题"></a>5.1递归解决迷宫问题</h4><p><img src="/pictures/image-20230512092144712.png" alt="image-20230512092144712"></p>
|
||
<p><strong>代码实现</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.recursion;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/12</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 递归解决迷宫问题</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MiGong</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//创建一个二维数组模拟迷宫</span></span><br><span class="line"> <span class="comment">//地图</span></span><br><span class="line"> <span class="type">int</span>[][] map = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">8</span>][<span class="number">7</span>];</span><br><span class="line"> <span class="comment">//使用1表示墙的位置</span></span><br><span class="line"> <span class="comment">//把四周变成墙</span></span><br><span class="line"> <span class="comment">//将上下变成墙</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < <span class="number">7</span>; i++) {</span><br><span class="line"> map[<span class="number">0</span>][i] = <span class="number">1</span>;</span><br><span class="line"> map[<span class="number">7</span>][i] = <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//将左右变成墙</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < <span class="number">8</span>; i++) {</span><br><span class="line"> map[i][<span class="number">0</span>] = <span class="number">1</span>;</span><br><span class="line"> map[i][<span class="number">6</span>] = <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置自定义的墙的位置</span></span><br><span class="line"> map[<span class="number">3</span>][<span class="number">1</span>] = <span class="number">1</span>;</span><br><span class="line"> map[<span class="number">3</span>][<span class="number">2</span>] = <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">//输出地图</span></span><br><span class="line"> showMap(map);</span><br><span class="line"> <span class="comment">//使用递归回溯给小球找路</span></span><br><span class="line"> getWay(map, <span class="number">1</span>, <span class="number">1</span>);</span><br><span class="line"> System.out.println(<span class="string">"标识过的路"</span>);</span><br><span class="line"> showMap(map);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 遍历输出地图的信息</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> map 地图组成的二维数组</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">showMap</span><span class="params">(<span class="type">int</span>[][] map)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < map.length; i++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < map[i].length; j++) {</span><br><span class="line"> System.out.print(map[i][j] + <span class="string">" "</span>);</span><br><span class="line"> }</span><br><span class="line"> System.out.println();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 1.表示墙 2.表示通路 可以走 3.表示该位置已经走过 但是走不通</span></span><br><span class="line"><span class="comment"> * 在就走迷宫的时候我们要确定一个策略 比如下->右->上->左 如果该点走不通 再回溯</span></span><br><span class="line"><span class="comment"> * 使用递归的方法给小球找路</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> map 传进来的地图信息</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> i 从哪个位置开始找</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> j 从哪个位置开始找</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 是否找到路</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">boolean</span> <span class="title function_">getWay</span><span class="params">(<span class="type">int</span>[][] map, <span class="type">int</span> i, <span class="type">int</span> j)</span> {</span><br><span class="line"> <span class="keyword">if</span> (map[<span class="number">6</span>][<span class="number">5</span>] == <span class="number">2</span>) { <span class="comment">//说明通路已经找到了 就直接退出</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">if</span> (map[i][j] == <span class="number">0</span>) {<span class="comment">//如果当前这个点还没有走过</span></span><br><span class="line"> <span class="comment">//按照策略走 下->右->上->左</span></span><br><span class="line"> map[i][j] = <span class="number">2</span>;<span class="comment">//先假定这个点可以走通</span></span><br><span class="line"> <span class="keyword">if</span> (getWay(map, i + <span class="number">1</span>, j)) { <span class="comment">//向下走</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (getWay(map, i, j + <span class="number">1</span>)) {<span class="comment">//向右走</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (getWay(map, i - <span class="number">1</span>, j)) {<span class="comment">//向上走</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (getWay(map, i, j - <span class="number">1</span>)) {<span class="comment">//向左走</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//四个方向都走不通的话说明不是一个通路 设置成false</span></span><br><span class="line"> map[i][j] = <span class="number">3</span>;</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//不为0 可以是1,2,3</span></span><br><span class="line"> <span class="comment">//可以理解为只走没有走过的</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h4 id="5-2-递归解决八皇后问题"><a href="#5-2-递归解决八皇后问题" class="headerlink" title="5.2 递归解决八皇后问题"></a>5.2 递归解决八皇后问题</h4><p>使用回溯算法解决 类似于穷举法 后期使用别的算法优化</p>
|
||
<p><strong>问题介绍</strong></p>
|
||
<p><img src="/pictures/image-20230512112050729.png" alt="image-20230512112050729"></p>
|
||
<p><strong>思路分析</strong></p>
|
||
<p><img src="/pictures/image-20230512112456731.png" alt="image-20230512112456731"></p>
|
||
<p><strong>代码实现</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.recursion;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/13</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 八皇后问题的解题思路及代码实现</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Queue8</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">Queue8</span> <span class="variable">queue8</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Queue8</span>();</span><br><span class="line"> queue8.check(<span class="number">0</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//定义一个max表示共有多少个皇后</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">max</span> <span class="operator">=</span> <span class="number">8</span>;</span><br><span class="line"> <span class="comment">//定义一个一维数组 记录皇后在列上的位置 arr[8] = {0 , 4, 7, 5, 2, 6, 1, 3}</span></span><br><span class="line"> <span class="type">int</span>[] array = <span class="keyword">new</span> <span class="title class_">int</span>[max];</span><br><span class="line"> <span class="comment">//记录摆法的次数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 编写一个方法 放置n个皇后</span></span><br><span class="line"><span class="comment"> * 会自己回溯</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">check</span><span class="params">(<span class="type">int</span> n)</span> {</span><br><span class="line"> <span class="keyword">if</span> (n == max) { <span class="comment">//说明已经放到了第九个皇后了</span></span><br><span class="line"> print(); <span class="comment">//打印</span></span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//依次放入皇后 判断是否冲突</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < max; i++) {</span><br><span class="line"> <span class="comment">//先把当前的这个皇后n,放到该行的第i列</span></span><br><span class="line"> array[n] = i;</span><br><span class="line"> <span class="comment">//判断当前放置第n个皇后到i列时,与前面放置的皇后是否冲突</span></span><br><span class="line"> <span class="keyword">if</span> (judge(n)) { <span class="comment">//不冲突</span></span><br><span class="line"> <span class="comment">//接着放n+1个皇后</span></span><br><span class="line"> check(n + <span class="number">1</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//如果冲突 就继续执行 array[n] = i 就皇后在本行后移一个位置</span></span><br><span class="line"> <span class="comment">//因为在循环里面 i++会自增 n会后移</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当我们放置了n个皇后之后 就去检测</span></span><br><span class="line"><span class="comment"> * 该皇后是否和前面已经摆放的皇后冲突</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> n 表示第n个皇后</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">judge</span><span class="params">(<span class="type">int</span> n)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < n; i++) {</span><br><span class="line"> <span class="comment">// array[8] = {0 , 4, 7, 5, 2, 6, 1, 3} 再次注意这里数组记录的是每个皇后在列上的值</span></span><br><span class="line"> <span class="comment">//array[i] == array[i] 判断是不是在同一列</span></span><br><span class="line"> <span class="comment">//Math.abs(n - i) == Math.abs(array[n] - array[i]) 判断是不是在同一斜线上</span></span><br><span class="line"> <span class="comment">//自己的理解:(n -i) 相当于在行上的距离 array[n] - array[i]相当于在列上的距离 行距离等于列距离 说明二者在同一斜线上</span></span><br><span class="line"> <span class="keyword">if</span> (array[i] == array[n] || Math.abs(n - i) == Math.abs(array[n] - array[i])) {<span class="comment">//与前面放置的位置是否冲突</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 定义一个数组 打印皇后拜访的位置</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">print</span><span class="params">()</span> {</span><br><span class="line"> System.out.println(<span class="string">"第"</span> + (++count) + <span class="string">"中摆法"</span>);</span><br><span class="line"> <span class="type">int</span>[][] arr = <span class="keyword">new</span> <span class="title class_">int</span>[max][max];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < array.length; i++) {</span><br><span class="line"> arr[i][array[i]] = <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span>[] ints : arr) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> i : ints) {</span><br><span class="line"> System.out.print(i + <span class="string">" "</span>);</span><br><span class="line"> }</span><br><span class="line"> System.out.println();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h2 id="七-排序算法"><a href="#七-排序算法" class="headerlink" title="七.排序算法"></a>七.排序算法</h2><p><strong>十大经典的排序算法:</strong><a href="https://www.runoob.com/w3cnote/ten-sorting-algorithm.html">菜鸟教程排序算法</a></p>
|
||
<h3 id="1-介绍-1"><a href="#1-介绍-1" class="headerlink" title="1.介绍"></a>1.介绍</h3><p><img src="/pictures/image-20230513115319799.png" alt="image-20230513115319799"></p>
|
||
<h3 id="2-时间复杂度"><a href="#2-时间复杂度" class="headerlink" title="2.时间复杂度"></a>2.时间复杂度</h3><p><strong>度量时间复杂度的两种方法</strong></p>
|
||
<p>事后统计法的不足:</p>
|
||
<ul>
|
||
<li>需要实际的运行程序 比较耗时</li>
|
||
<li>受计算机硬件和软件的影响</li>
|
||
</ul>
|
||
<p><img src="/pictures/image-20230513115606521.png" alt="image-20230513115606521"></p>
|
||
<p><strong>时间频度</strong></p>
|
||
<p> 基本的介绍:一个算法花费的时间与算法中语句的执行次数成正比例,哪个算法中语句执行次数多,它花费时间就多。<strong>一个算法中的语句执行次数称为语句频度或时间频度</strong>。记为T(n)</p>
|
||
<p><strong>时间复杂度介绍</strong></p>
|
||
<p><img src="/pictures/image-20230515093520587.png" alt="image-20230515093520587"></p>
|
||
<p><strong>常见的时间复杂度</strong></p>
|
||
<p><img src="/pictures/image-20230515093753893.png" alt="image-20230515093753893"></p>
|
||
<h3 id="3-空间复杂度"><a href="#3-空间复杂度" class="headerlink" title="3.空间复杂度"></a>3.空间复杂度</h3><p><img src="/pictures/image-20230515095247319.png" alt="image-20230515095247319"></p>
|
||
<p><strong>排序算法的时间和空间复杂度</strong></p>
|
||
<p><img src="/pictures/image-20230516083738747.png" alt="image-20230516083738747"></p>
|
||
<h3 id="4-冒泡排序"><a href="#4-冒泡排序" class="headerlink" title="4.冒泡排序"></a>4.冒泡排序</h3><p>冒泡排序的时间复杂度:o(n^2)</p>
|
||
<p>同一台电脑 8万个数据 十几秒左右</p>
|
||
<h4 id="4-1-基本介绍"><a href="#4-1-基本介绍" class="headerlink" title="4.1 基本介绍"></a>4.1 基本介绍</h4><p><img src="/pictures/image-20230515100345339.png" alt="image-20230515100345339"></p>
|
||
<h4 id="4-2-图解"><a href="#4-2-图解" class="headerlink" title="4.2 图解"></a>4.2 图解</h4><p><img src="/pictures/image-20230515100754827.png" alt="image-20230515100754827"></p>
|
||
<h4 id="4-3-代码实现"><a href="#4-3-代码实现" class="headerlink" title="4.3 代码实现"></a>4.3 代码实现</h4><p>优化之前的代码 </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 冒泡排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BubbleSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span> arr[] = {<span class="number">3</span>, <span class="number">9</span>, -<span class="number">1</span>, <span class="number">10</span>, -<span class="number">2</span>};</span><br><span class="line"> BubbleSort.sort(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">sort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length - <span class="number">1</span>; i++) {</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="number">0</span>; <span class="comment">//临时变量</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length - <span class="number">1</span> - i; j++) {</span><br><span class="line"> <span class="comment">//如果前面的数字大于后面的数字就交换</span></span><br><span class="line"> <span class="keyword">if</span> (arr[j] > arr[j + <span class="number">1</span>]) {</span><br><span class="line"> temp = arr[j];</span><br><span class="line"> arr[j] = arr[j + <span class="number">1</span>];</span><br><span class="line"> arr[j + <span class="number">1</span>] = temp;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第"</span> + (i + <span class="number">1</span>) + <span class="string">"次排序:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"排序之后的数组:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>优化之后的代码(如果排序的过程中代码有序就不在排序)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/15</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 冒泡排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BubbleSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span> arr[] = {<span class="number">3</span>, <span class="number">9</span>, -<span class="number">1</span>, <span class="number">10</span>, -<span class="number">2</span>};</span><br><span class="line"> BubbleSort.sort(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 冒泡排序</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要排序的数组</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">sort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length - <span class="number">1</span>; i++) {</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="number">0</span>; <span class="comment">//临时变量</span></span><br><span class="line"> <span class="type">boolean</span> <span class="variable">flag</span> <span class="operator">=</span> <span class="literal">false</span>; <span class="comment">//表示是否进行过排序</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length - <span class="number">1</span> - i; j++) {</span><br><span class="line"> <span class="comment">//如果前面的数字大于后面的数字就交换</span></span><br><span class="line"> <span class="keyword">if</span> (arr[j] > arr[j + <span class="number">1</span>]) {</span><br><span class="line"> flag = <span class="literal">true</span>;</span><br><span class="line"> temp = arr[j];</span><br><span class="line"> arr[j] = arr[j + <span class="number">1</span>];</span><br><span class="line"> arr[j + <span class="number">1</span>] = temp;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第"</span> + (i + <span class="number">1</span>) + <span class="string">"次排序:"</span> + Arrays.toString(arr));</span><br><span class="line"> <span class="keyword">if</span>(!flag){ <span class="comment">//说明一次都没有交换 说明已经有序</span></span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"排序之后的数组:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230516091218716.png" alt="image-20230516091218716"></p>
|
||
<h3 id="5-选择排序"><a href="#5-选择排序" class="headerlink" title="5.选择排序"></a>5.选择排序</h3><h4 id="5-1-基本介绍"><a href="#5-1-基本介绍" class="headerlink" title="5.1 基本介绍"></a>5.1 基本介绍</h4><p>同一台电脑 8万个数据 两秒左右</p>
|
||
<p>选择式排序也属于内部排序法,是从欲排序的数据中,按指定的规则选出某一元素,再依规定交换位置后达到排序的目的</p>
|
||
<p><img src="/pictures/image-20230515105359552.png" alt="image-20230515105359552"></p>
|
||
<h4 id="5-2图解"><a href="#5-2图解" class="headerlink" title="5.2图解"></a>5.2图解</h4><p><img src="/pictures/selectionSort.gif" alt="img"></p>
|
||
<p><img src="/pictures/image-20230516083148055.png" alt="image-20230516083148055"></p>
|
||
<h4 id="5-3代码实现"><a href="#5-3代码实现" class="headerlink" title="5.3代码实现"></a>5.3代码实现</h4><p>两种方法 一个是自己的 一个是老师的</p>
|
||
<p>使用老师的代码 老师的代码验证过</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 选择排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SelectSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">101</span>,<span class="number">34</span>,<span class="number">119</span>,<span class="number">1</span>};</span><br><span class="line"> <span class="type">int</span>[] arr1 = {<span class="number">3</span>, <span class="number">9</span>, -<span class="number">1</span>, <span class="number">10</span>, -<span class="number">2</span>};</span><br><span class="line"> <span class="type">int</span>[] arr2 = {<span class="number">3</span>, <span class="number">9</span>, -<span class="number">1</span>, <span class="number">10</span>, -<span class="number">2</span>};</span><br><span class="line"> System.out.println(<span class="string">"自己的代码"</span>);</span><br><span class="line"> SelectSort.selectSort(arr2);</span><br><span class="line"> System.out.println(<span class="string">"老师的代码"</span>);</span><br><span class="line"> SelectSort.selectSortByTeacher(arr1);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 选择排序</span></span><br><span class="line"><span class="comment"> * 自己写的 中间的过程和老师的不一样 不确定是不是选择排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">selectSort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length - <span class="number">1</span>; i++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> i + <span class="number">1</span>; j < arr.length; j++) {<span class="comment">//从第一个数字开始 依次找到最小值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">if</span>(arr[i] > arr[j]) {</span><br><span class="line"> temp = arr[i];</span><br><span class="line"> arr[i] = arr[j];</span><br><span class="line"> arr[j] = temp;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第次"</span>+(i+<span class="number">1</span>)+<span class="string">"排序的结果:"</span>+Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"最终的结果:"</span>+Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 老师的代码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">selectSortByTeacher</span><span class="params">(<span class="type">int</span>[] arr)</span>{</span><br><span class="line"></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length - <span class="number">1</span>; i++) {</span><br><span class="line"> <span class="type">int</span> <span class="variable">minIndex</span> <span class="operator">=</span> i;</span><br><span class="line"> <span class="type">int</span> <span class="variable">min</span> <span class="operator">=</span> arr[i];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> i + <span class="number">1</span>; j < arr.length; j++) {<span class="comment">//从第一个数字开始 依次找到最小值</span></span><br><span class="line"> <span class="keyword">if</span>(min > arr[j]){</span><br><span class="line"> min = arr[j];</span><br><span class="line"> minIndex = j;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//交换</span></span><br><span class="line"> arr[minIndex] = arr[i];</span><br><span class="line"> arr[i] = min;</span><br><span class="line"> System.out.println(<span class="string">"第次"</span>+(i+<span class="number">1</span>)+<span class="string">"排序的结果:"</span>+Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"最终的结果:"</span>+Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230516093143656.png" alt="image-20230516093143656"></p>
|
||
<h3 id="6-插入排序"><a href="#6-插入排序" class="headerlink" title="6.插入排序"></a>6.插入排序</h3><h4 id="6-1-基本介绍"><a href="#6-1-基本介绍" class="headerlink" title="6.1 基本介绍"></a>6.1 基本介绍</h4><p>同一台电脑 8万个数据 五秒左右</p>
|
||
<p>插入式排序属于内部排序法,是对于欲排序的元素以插入的方式找寻该元素的适当位置,以达到排序的目的。</p>
|
||
<p><img src="/pictures/image-20230516100256880.png" alt="image-20230516100256880"></p>
|
||
<h4 id="6-2-图解"><a href="#6-2-图解" class="headerlink" title="6.2 图解"></a>6.2 图解</h4><img src="/pictures/insertionSort.gif" alt="img" style="zoom:150%;" />
|
||
|
||
<h4 id="6-3-代码实现"><a href="#6-3-代码实现" class="headerlink" title="6.3 代码实现"></a>6.3 代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 插入排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">InsertSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">101</span>, <span class="number">34</span>, <span class="number">119</span>, <span class="number">1</span>,-<span class="number">1</span>,<span class="number">89</span>};</span><br><span class="line"> System.out.println(<span class="string">"插入前的数组:"</span>+Arrays.toString(arr));</span><br><span class="line"> InsertSort.insertSort(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 插入排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">insertSort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">1</span>; i < arr.length; i++) {</span><br><span class="line"> <span class="comment">//定义待插入的数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">insertVal</span> <span class="operator">=</span> arr[i];</span><br><span class="line"> <span class="comment">//待插入的数的前一个数的下标</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">insertIndex</span> <span class="operator">=</span> i - <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">while</span> (insertIndex >= <span class="number">0</span> && insertVal < arr[insertIndex]) {</span><br><span class="line"> arr[insertIndex + <span class="number">1</span>] = arr[insertIndex];</span><br><span class="line"> insertIndex--;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//退出循环之后 代表找到了要插入数据的位置</span></span><br><span class="line"> <span class="comment">//插入数据</span></span><br><span class="line"> arr[insertIndex + <span class="number">1</span>] = insertVal;</span><br><span class="line"> System.out.println(<span class="string">"第"</span> + i + <span class="string">"次插入的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"最终的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230516105517026.png" alt="image-20230516105517026"></p>
|
||
<h3 id="7-希尔排序"><a href="#7-希尔排序" class="headerlink" title="7.希尔排序"></a>7.希尔排序</h3><h4 id="7-1基本介绍"><a href="#7-1基本介绍" class="headerlink" title="7.1基本介绍"></a>7.1基本介绍</h4><p>同一台电脑 8万个数据 十七秒左右(交换法)</p>
|
||
<p>同一台电脑 8万个数据 一秒左右(移动法)</p>
|
||
<p><img src="/pictures/image-20230517091741355.png" alt="image-20230517091741355"></p>
|
||
<p><img src="/pictures/image-20230517091841366.png" alt="image-20230517091841366"></p>
|
||
<h4 id="7-2-图解"><a href="#7-2-图解" class="headerlink" title="7.2.图解"></a>7.2.图解</h4><p><img src="/pictures/Sorting_shellsort_anim.gif" alt="img"></p>
|
||
<img src="/pictures/image-20230517102649272.png" alt="image-20230517102649272" style="zoom:150%;" />
|
||
|
||
<h4 id="7-3-代码实现"><a href="#7-3-代码实现" class="headerlink" title="7.3 代码实现"></a>7.3 代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/17</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 希尔排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ShellSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">8</span>, <span class="number">9</span>, <span class="number">1</span>, <span class="number">7</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">5</span>, <span class="number">4</span>, <span class="number">6</span>, <span class="number">0</span>};</span><br><span class="line"> <span class="comment">//shellSort(arr);</span></span><br><span class="line"> shellSort2(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 希尔排序 使用的是交换法 这个很慢 比直接的插入排序还慢</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">shellSort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="comment">//用于分组 10个数据 第一次分5组 第二次分2组 第三次分1组 每组分别插入排序</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">gap</span> <span class="operator">=</span> arr.length / <span class="number">2</span>; gap > <span class="number">0</span>; gap /= <span class="number">2</span>) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> gap; i < arr.length; i++) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> i - gap; j >= <span class="number">0</span>; j -= gap) {</span><br><span class="line"> <span class="comment">//如果当前的那个元素大于加上步长后的那个元素,就交换</span></span><br><span class="line"> <span class="keyword">if</span> (arr[j] > arr[j + gap]) {</span><br><span class="line"> temp = arr[j];</span><br><span class="line"> arr[j] = arr[j + gap];</span><br><span class="line"> arr[j + gap] = temp;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"排序第"</span> + (++count) + <span class="string">"轮的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"最终的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 使用移动法的希尔排序 这个更快 </span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">shellSort2</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="comment">//用于分组 10个数据 第一次分5组 第二次分2组 第三次分1组 每组分别插入排序</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">count</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">gap</span> <span class="operator">=</span> arr.length / <span class="number">2</span>; gap > <span class="number">0</span>; gap /= <span class="number">2</span>) {</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> gap; i < arr.length; i++) {</span><br><span class="line"> <span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> i;</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> arr[j];</span><br><span class="line"> <span class="keyword">if</span> (arr[j] < arr[j - gap]) {</span><br><span class="line"> <span class="keyword">while</span> (j - gap >= <span class="number">0</span> && temp < arr[j - gap]) {</span><br><span class="line"> arr[j] = arr[j - gap];</span><br><span class="line"> j -= gap;</span><br><span class="line"> }</span><br><span class="line"> arr[j] = temp; }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"排序第"</span> + (++count) + <span class="string">"轮的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"最终的结果:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="8-快速排序"><a href="#8-快速排序" class="headerlink" title="8.快速排序"></a>8.快速排序</h3><h4 id="8-1-基本介绍"><a href="#8-1-基本介绍" class="headerlink" title="8.1 基本介绍"></a>8.1 基本介绍</h4><p>同一台电脑 8万个数据 不到一秒 800万个数据两秒钟</p>
|
||
<p> <strong>快速排序(Quicksort)是对冒泡排序的一种改进。基本思想是:通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进行快速排序,整个排序过程可以递归进行,以此达到整个数据变成有序序列</strong></p>
|
||
<h4 id="8-2-图解"><a href="#8-2-图解" class="headerlink" title="8.2 图解"></a>8.2 图解</h4><img src="/pictures/quickSort.gif" alt="img" style="zoom:150%;" />
|
||
|
||
<img src="/pictures/image-20230517103139900.png" alt="image-20230517103139900" style="zoom:150%;" />
|
||
|
||
<h4 id="8-3-代码实现"><a href="#8-3-代码实现" class="headerlink" title="8.3 代码实现"></a>8.3 代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/17</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 快速排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">QuickSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {-<span class="number">9</span>, <span class="number">78</span>, <span class="number">0</span>, <span class="number">23</span>, -<span class="number">567</span>, <span class="number">70</span>};</span><br><span class="line"> quickSort(arr, <span class="number">0</span>, arr.length - <span class="number">1</span>);</span><br><span class="line"> System.out.println(Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要排序的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 左下标</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右下标</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">quickSort</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">l</span> <span class="operator">=</span> left;</span><br><span class="line"> <span class="type">int</span> <span class="variable">r</span> <span class="operator">=</span> right;</span><br><span class="line"> <span class="comment">//pivot 中轴</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">pivot</span> <span class="operator">=</span> arr[(left + right) / <span class="number">2</span>];</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="comment">//while循环的目的是让比pivot小的放到左边 大的放在右边</span></span><br><span class="line"> <span class="keyword">while</span> (l < r) {</span><br><span class="line"> <span class="comment">//在pivot的左边一直找 找到大于等于pivot的值 才退出</span></span><br><span class="line"> <span class="keyword">while</span> (arr[l] < pivot) {</span><br><span class="line"> l += <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//在pivot的左边一直找 找到大于等于pivot的值 才退出</span></span><br><span class="line"> <span class="keyword">while</span> (arr[r] > pivot) {</span><br><span class="line"> r -= <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//如果l >= r成立 说明pivot的左右两边的值 已经是按照左边全部是</span></span><br><span class="line"> <span class="comment">//小于等于pivot值 右边全部是大于等于pivot值</span></span><br><span class="line"> <span class="keyword">if</span> (l >= r) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//交换</span></span><br><span class="line"> temp = arr[l];</span><br><span class="line"> arr[l] = arr[r];</span><br><span class="line"> arr[r] = temp;</span><br><span class="line"> <span class="comment">//如果交换完之后发现arr[l] = pivot值</span></span><br><span class="line"> <span class="keyword">if</span> (arr[l] == pivot) {</span><br><span class="line"> r--;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//如果交换完之后发现arr[r] = pivot值</span></span><br><span class="line"> <span class="keyword">if</span> (arr[r] == pivot) {</span><br><span class="line"> l++;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//如果l == r 必须l++ r--</span></span><br><span class="line"> <span class="keyword">if</span> (l == r) {</span><br><span class="line"> l += <span class="number">1</span>;</span><br><span class="line"> r -= <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//向左递归</span></span><br><span class="line"> <span class="keyword">if</span> (left < r) {<span class="comment">//左边的数全部有序</span></span><br><span class="line"> quickSort(arr, left, r);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//向右递归</span></span><br><span class="line"> <span class="keyword">if</span> (right > l) {</span><br><span class="line"> quickSort(arr, l, right);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h3 id="9-归并排序"><a href="#9-归并排序" class="headerlink" title="9. 归并排序"></a>9. 归并排序</h3><h4 id="9-1基本介绍"><a href="#9-1基本介绍" class="headerlink" title="9.1基本介绍"></a>9.1基本介绍</h4><p>同一台电脑 8万个数据 大约一秒钟 800万个数据三秒</p>
|
||
<p><img src="/pictures/image-20230518111233009.png" alt="image-20230518111233009"></p>
|
||
<h4 id="9-2-图解"><a href="#9-2-图解" class="headerlink" title="9.2 图解"></a>9.2 图解</h4><img src="/pictures/mergeSort.gif" alt="img" style="zoom:150%;" />
|
||
|
||
<p><img src="/pictures/image-20230518111454775.png" alt="image-20230518111454775"></p>
|
||
<p><img src="/pictures/image-20230518111536026.png" alt="image-20230518111536026"></p>
|
||
<h4 id="9-3代码实现"><a href="#9-3代码实现" class="headerlink" title="9.3代码实现"></a>9.3代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/18</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 归并排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MergeSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">8</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">7</span>, <span class="number">1</span>, <span class="number">3</span>, <span class="number">6</span>, <span class="number">2</span>};</span><br><span class="line"> <span class="type">int</span>[] temp = <span class="keyword">new</span> <span class="title class_">int</span>[arr.length];</span><br><span class="line"> mergeSort(arr,<span class="number">0</span>, arr.length -<span class="number">1</span>,temp);</span><br><span class="line"> System.out.println(<span class="string">"归并排序之后的数组:"</span>+ Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 分治的过程</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">mergeSort</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right, <span class="type">int</span>[] temp)</span>{</span><br><span class="line"> <span class="keyword">if</span>(left < right){</span><br><span class="line"> <span class="type">int</span> <span class="variable">mid</span> <span class="operator">=</span> (left + right) / <span class="number">2</span>;</span><br><span class="line"> <span class="comment">//向左递归分解</span></span><br><span class="line"> mergeSort(arr,left,mid,temp);</span><br><span class="line"> <span class="comment">//向右递归分解</span></span><br><span class="line"> mergeSort(arr,mid+<span class="number">1</span>,right,temp);</span><br><span class="line"> <span class="comment">//合并</span></span><br><span class="line"> merge(arr,left,mid,right,temp);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 合并的方法 治</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要排序的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 右边有序序列的初始索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> mid 中间索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右边索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> temp 中转的数组</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">merge</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> mid, <span class="type">int</span> right, <span class="type">int</span>[] temp)</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> left;<span class="comment">//左边有序序列的初始索引</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> mid + <span class="number">1</span>;<span class="comment">//右边有序序列的初始化索引</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">t</span> <span class="operator">=</span> <span class="number">0</span>;<span class="comment">//指向temp数组的当前索引</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//1.</span></span><br><span class="line"> <span class="comment">//先把左右两边(有序)的数据填充到temp数组</span></span><br><span class="line"> <span class="comment">//直到左右两边的数据有一边处理完毕为止</span></span><br><span class="line"> <span class="keyword">while</span> (i <= mid && j <= right) {<span class="comment">//相当于左右两边的数组都有一个指针</span></span><br><span class="line"> <span class="keyword">if</span> (arr[i] <= arr[j]) {</span><br><span class="line"> temp[t] = arr[i];</span><br><span class="line"> t++;</span><br><span class="line"> i++;</span><br><span class="line"> } <span class="keyword">else</span> {<span class="comment">//反之将右边有序序列的当前元素 填充到temp数组</span></span><br><span class="line"> temp[t] = arr[j];</span><br><span class="line"> t++;</span><br><span class="line"> j++;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//2.</span></span><br><span class="line"> <span class="comment">//把有剩余数据的一边的数据依次全部填充到temp</span></span><br><span class="line"> <span class="keyword">while</span> (i <= mid) {<span class="comment">//说明左边的有序序列还有剩余的元素</span></span><br><span class="line"> temp[t] = arr[i];</span><br><span class="line"> t++;</span><br><span class="line"> i++;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">while</span> (j <= right) {</span><br><span class="line"> temp[t] = arr[j];</span><br><span class="line"> t++;</span><br><span class="line"> j++;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3.</span></span><br><span class="line"> <span class="comment">//将temp数组的元素拷贝到arr</span></span><br><span class="line"> <span class="comment">//并不是每次都拷贝</span></span><br><span class="line"> t = <span class="number">0</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">tempLeft</span> <span class="operator">=</span> left;</span><br><span class="line"> <span class="keyword">while</span> (tempLeft <= right) {</span><br><span class="line"> arr[tempLeft] = temp[t];</span><br><span class="line"> t++;</span><br><span class="line"> tempLeft++;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="10-基数排序"><a href="#10-基数排序" class="headerlink" title="10.基数排序"></a>10.基数排序</h3><p>同一台电脑8万个数据 一秒左右 8千万个数据会报内存不足</p>
|
||
<h4 id="10-1-基本介绍"><a href="#10-1-基本介绍" class="headerlink" title="10.1 基本介绍"></a>10.1 基本介绍</h4><p><img src="/pictures/image-20230525195008102.png" alt="image-20230525195008102"></p>
|
||
<p><img src="/pictures/image-20230526094945578.png" alt="image-20230526094945578"></p>
|
||
<p><img src="/pictures/image-20230526113739081.png" alt="image-20230526113739081"></p>
|
||
<h4 id="10-2-图解"><a href="#10-2-图解" class="headerlink" title="10.2 图解"></a>10.2 图解</h4><p><img src="/pictures/radixSort.gif" alt="img"></p>
|
||
<h4 id="10-3-代码实现"><a href="#10-3-代码实现" class="headerlink" title="10.3 代码实现"></a>10.3 代码实现</h4><p><strong>推导代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 基数排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">RadixSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//定义一个待排序的数组</span></span><br><span class="line"> <span class="type">int</span> arr[] = {<span class="number">53</span>, <span class="number">3</span>, <span class="number">542</span>, <span class="number">748</span>, <span class="number">14</span>, <span class="number">214</span>};</span><br><span class="line"> RadixSort.radixSort(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//基数排序</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">radixSort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="comment">//1.第一轮(针对每个元素的个位进行排序处理)</span></span><br><span class="line"> <span class="comment">//定义一个二维数组,表示十个桶,每个桶就是一个一维数组</span></span><br><span class="line"> <span class="comment">//为了防止数据的溢出,这里每个桶的大小我们设置的大一些 大小定为arr.length</span></span><br><span class="line"> <span class="type">int</span>[][] bucket = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">10</span>][arr.length];</span><br><span class="line"> <span class="comment">//为了记录每个桶中实际存放了多少个数据,我们定义一个一维数组来记录每个桶中依次放入数据的个数</span></span><br><span class="line"> <span class="comment">//bucketElementCounts[0]记录的就是第0个桶的数据的个数</span></span><br><span class="line"> <span class="type">int</span>[] bucketElementCounts = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">10</span>];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length; j++) {</span><br><span class="line"> <span class="comment">//取出每个元素的个位数的值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">digitOfElement</span> <span class="operator">=</span> arr[j] % <span class="number">10</span>;</span><br><span class="line"> <span class="comment">//放入对应的桶中</span></span><br><span class="line"> bucket[digitOfElement][bucketElementCounts[digitOfElement]] = arr[j];</span><br><span class="line"> <span class="comment">//[bucketElementCounts[digitOfElement]]++的意思是在digitOfElement对应的桶中数据个数加一</span></span><br><span class="line"> bucketElementCounts[digitOfElement]++;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//按照这个桶中顺序取出数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">k</span> <span class="operator">=</span> <span class="number">0</span>; k < bucketElementCounts.length; k++) {</span><br><span class="line"> <span class="comment">//如果桶中有数据,我们才放入到原数组</span></span><br><span class="line"> <span class="keyword">if</span> (bucketElementCounts[k] != <span class="number">0</span>) {</span><br><span class="line"> <span class="comment">//循环该桶即第K个桶,放入</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">l</span> <span class="operator">=</span> <span class="number">0</span>; l < bucketElementCounts[k]; l++) {</span><br><span class="line"> arr[index++] = bucket[k][l];</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> bucketElementCounts[k] = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第一轮:"</span> + Arrays.toString(arr));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.第2轮</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length; j++) {</span><br><span class="line"> <span class="comment">//取出每个元素的十位数的值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">digitOfElement</span> <span class="operator">=</span> arr[j] / <span class="number">10</span> % <span class="number">10</span>;</span><br><span class="line"> <span class="comment">//放入对应的桶中</span></span><br><span class="line"> bucket[digitOfElement][bucketElementCounts[digitOfElement]] = arr[j];</span><br><span class="line"> <span class="comment">//[bucketElementCounts[digitOfElement]]++的意思是在digitOfElement对应的桶中数据个数加一</span></span><br><span class="line"> bucketElementCounts[digitOfElement]++;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//按照这个桶中顺序取出数据</span></span><br><span class="line"> index = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">k</span> <span class="operator">=</span> <span class="number">0</span>; k < bucketElementCounts.length; k++) {</span><br><span class="line"> <span class="comment">//如果桶中有数据,我们才放入到原数组</span></span><br><span class="line"> <span class="keyword">if</span> (bucketElementCounts[k] != <span class="number">0</span>) {</span><br><span class="line"> <span class="comment">//循环该桶即第K个桶,放入</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">l</span> <span class="operator">=</span> <span class="number">0</span>; l < bucketElementCounts[k]; l++) {</span><br><span class="line"> arr[index++] = bucket[k][l];</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> bucketElementCounts[k] = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第2轮:"</span> + Arrays.toString(arr));</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3.第3轮</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length; j++) {</span><br><span class="line"> <span class="comment">//取出每个元素的百位数的值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">digitOfElement</span> <span class="operator">=</span> arr[j] / <span class="number">100</span> % <span class="number">10</span>;</span><br><span class="line"> <span class="comment">//放入对应的桶中</span></span><br><span class="line"> bucket[digitOfElement][bucketElementCounts[digitOfElement]] = arr[j];</span><br><span class="line"> <span class="comment">//[bucketElementCounts[digitOfElement]]++的意思是在digitOfElement对应的桶中数据个数加一</span></span><br><span class="line"> bucketElementCounts[digitOfElement]++;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//按照这个桶中顺序取出数据</span></span><br><span class="line"> index = <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">k</span> <span class="operator">=</span> <span class="number">0</span>; k < bucketElementCounts.length; k++) {</span><br><span class="line"> <span class="comment">//如果桶中有数据,我们才放入到原数组</span></span><br><span class="line"> <span class="keyword">if</span> (bucketElementCounts[k] != <span class="number">0</span>) {</span><br><span class="line"> <span class="comment">//循环该桶即第K个桶,放入</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">l</span> <span class="operator">=</span> <span class="number">0</span>; l < bucketElementCounts[k]; l++) {</span><br><span class="line"> arr[index++] = bucket[k][l];</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第3轮:"</span> + Arrays.toString(arr));</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>最终代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.sort;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 基数排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">RadixSort</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//定义一个待排序的数组</span></span><br><span class="line"> <span class="type">int</span> arr[] = {<span class="number">53</span>, <span class="number">3</span>, <span class="number">542</span>, <span class="number">748</span>, <span class="number">14</span>, <span class="number">214</span>};</span><br><span class="line"> RadixSort.radixSort(arr);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//基数排序</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">radixSort</span><span class="params">(<span class="type">int</span>[] arr)</span> {</span><br><span class="line"> <span class="comment">//得到数组中最大数的位数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">max</span> <span class="operator">=</span> arr[<span class="number">0</span>];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length; i++) {</span><br><span class="line"> <span class="keyword">if</span> (arr[i] > max) {</span><br><span class="line"> max = arr[i];</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//最大数的位数</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">maxLength</span> <span class="operator">=</span> (max + <span class="string">""</span>).length();</span><br><span class="line"> <span class="comment">//定义一个二维数组,表示十个桶,每个桶就是一个一维数组</span></span><br><span class="line"> <span class="type">int</span>[][] bucket = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">10</span>][arr.length];</span><br><span class="line"> <span class="comment">//为了记录每个桶中实际存放了多少个数据,我们定义一个一维数组来记录每个桶中依次放入数据的个数</span></span><br><span class="line"> <span class="type">int</span>[] bucketElementCounts = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">10</span>];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>, n = <span class="number">1</span>; i < maxLength; i++, n *= <span class="number">10</span>) {<span class="comment">//循环的是每一轮,第一次是个位。第二次是百位</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">j</span> <span class="operator">=</span> <span class="number">0</span>; j < arr.length; j++) {</span><br><span class="line"> <span class="comment">//取出每个元素的对应位数的值</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">digitOfElement</span> <span class="operator">=</span> arr[j] / n % <span class="number">10</span>;</span><br><span class="line"> <span class="comment">//放入对应的桶中</span></span><br><span class="line"> bucket[digitOfElement][bucketElementCounts[digitOfElement]] = arr[j];</span><br><span class="line"> <span class="comment">//[bucketElementCounts[digitOfElement]]++的意思是在digitOfElement对应的桶中数据个数加一</span></span><br><span class="line"> bucketElementCounts[digitOfElement]++;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//按照这个桶中顺序取出数据</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">index</span> <span class="operator">=</span> <span class="number">0</span>;</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">k</span> <span class="operator">=</span> <span class="number">0</span>; k < bucketElementCounts.length; k++) {</span><br><span class="line"> <span class="comment">//如果桶中有数据,我们才放入到原数组</span></span><br><span class="line"> <span class="keyword">if</span> (bucketElementCounts[k] != <span class="number">0</span>) {</span><br><span class="line"> <span class="comment">//循环该桶即第K个桶,放入</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">l</span> <span class="operator">=</span> <span class="number">0</span>; l < bucketElementCounts[k]; l++) {</span><br><span class="line"> arr[index++] = bucket[k][l];</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> bucketElementCounts[k] = <span class="number">0</span>;</span><br><span class="line"> }</span><br><span class="line"> System.out.println(<span class="string">"第"</span> + (i + <span class="number">1</span>) + <span class="string">"轮:"</span> + Arrays.toString(arr));</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="11-常用排序算法总结和对比"><a href="#11-常用排序算法总结和对比" class="headerlink" title="11.常用排序算法总结和对比"></a>11.常用排序算法总结和对比</h3><p><img src="/pictures/image-20230526114127402.png" alt="image-20230526114127402"></p>
|
||
<h2 id="八-查找算法"><a href="#八-查找算法" class="headerlink" title="八.查找算法"></a>八.查找算法</h2><h3 id="1-简单介绍-1"><a href="#1-简单介绍-1" class="headerlink" title="1.简单介绍"></a>1.简单介绍</h3><img src="/pictures/image-20230526115027518.png" alt="image-20230526115027518" style="zoom:200%;" />
|
||
|
||
<h3 id="2-线性查找算法"><a href="#2-线性查找算法" class="headerlink" title="2.线性查找算法"></a>2.线性查找算法</h3><h4 id="2-1代码实现"><a href="#2-1代码实现" class="headerlink" title="2.1代码实现"></a>2.1代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.search;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 线性查找</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SeqSearch</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">1</span>,<span class="number">9</span>,<span class="number">11</span>,-<span class="number">1</span>,<span class="number">34</span>,<span class="number">89</span>};<span class="comment">//没有顺序的数组</span></span><br><span class="line"> System.out.println(<span class="string">"目标值的下标:"</span>+seqSearch(arr, <span class="number">11</span>));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 找到一个满足条件的值就返回</span></span><br><span class="line"><span class="comment"> * 线性查找是逐一比对,发现有相同的值时就返回这个值的下标</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要在这里面找目标值的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> value 目标值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 目标值的下标</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">seqSearch</span><span class="params">(<span class="type">int</span>[] arr,<span class="type">int</span> value)</span>{</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < arr.length; i++) {</span><br><span class="line"> <span class="keyword">if</span>(arr[i] == value){</span><br><span class="line"> <span class="keyword">return</span> i;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-二分查找算法"><a href="#3-二分查找算法" class="headerlink" title="3.二分查找算法"></a>3.二分查找算法</h3><h4 id="3-1-图解"><a href="#3-1-图解" class="headerlink" title="3.1 图解"></a>3.1 图解</h4><img src="/pictures/image-20230529104112317.png" alt="image-20230529104112317" style="zoom:150%;" />
|
||
|
||
<h4 id="3-2-代码实现"><a href="#3-2-代码实现" class="headerlink" title="3.2 代码实现"></a>3.2 代码实现</h4><p><em><strong>递归的方式解决</strong></em></p>
|
||
<p><strong>基本的写法</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.search;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 二分查找</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BinarySearch</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">1</span>, <span class="number">8</span>, <span class="number">10</span>, <span class="number">89</span>, <span class="number">1000</span>, <span class="number">1234</span>};</span><br><span class="line"> System.out.println(<span class="string">"目标值的下标:"</span> + binarySearch(arr, <span class="number">0</span>, arr.length - <span class="number">1</span>, <span class="number">3</span>));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 二分查找</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要在这里面查找目标值的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 左边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> findVal 要查找的值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 目标值在数组中的下标,找到就返回下标,没有就返回-1</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">binarySearch</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right, <span class="type">int</span> findVal)</span> {</span><br><span class="line"> <span class="comment">//结束递归的条件</span></span><br><span class="line"> <span class="keyword">if</span> (left > right) {</span><br><span class="line"> <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">mid</span> <span class="operator">=</span> (left + right) / <span class="number">2</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">midVal</span> <span class="operator">=</span> arr[mid];</span><br><span class="line"> <span class="keyword">if</span> (findVal > midVal) {<span class="comment">//向右递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch(arr, mid + <span class="number">1</span>, right, findVal);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (findVal < midVal) {<span class="comment">//向左递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch(arr, left, mid - <span class="number">1</span>, findVal);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">return</span> mid;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>完整的代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.search;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/29</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 二分查找</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BinarySearch</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="type">int</span>[] arr = {<span class="number">1</span>, <span class="number">8</span>, <span class="number">10</span>, <span class="number">89</span>, <span class="number">1000</span>, <span class="number">1234</span>};</span><br><span class="line"> System.out.println(<span class="string">"目标值的下标:"</span> + binarySearch(arr, <span class="number">0</span>, arr.length - <span class="number">1</span>, <span class="number">3</span>));</span><br><span class="line"> <span class="type">int</span>[] arr2 = {<span class="number">1</span>, <span class="number">8</span>, <span class="number">10</span>, <span class="number">89</span>, <span class="number">89</span>, <span class="number">89</span>, <span class="number">1000</span>, <span class="number">1234</span>};</span><br><span class="line"> System.out.println(<span class="string">"目标值在数组中下标的集合:"</span> + binarySearch2(arr2, <span class="number">0</span>, arr2.length - <span class="number">1</span>, <span class="number">89</span>));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 二分查找</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要在这里面查找目标值的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 左边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> findVal 要查找的值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 目标值在数组中的下标,找到就返回下标,没有就返回-1</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">binarySearch</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right, <span class="type">int</span> findVal)</span> {</span><br><span class="line"> <span class="comment">//结束递归的条件</span></span><br><span class="line"> <span class="keyword">if</span> (left > right) {</span><br><span class="line"> <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">mid</span> <span class="operator">=</span> (left + right) / <span class="number">2</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">midVal</span> <span class="operator">=</span> arr[mid];</span><br><span class="line"> <span class="keyword">if</span> (findVal > midVal) {<span class="comment">//向右递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch(arr, mid + <span class="number">1</span>, right, findVal);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (findVal < midVal) {<span class="comment">//向左递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch(arr, left, mid - <span class="number">1</span>, findVal);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">return</span> mid;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 二分查找查找出所有与目标值相同的数组的下标</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 需要在这里面查找目标值的数组</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 左边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右边的索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> findVal 要查找的的值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 目标值在数组中的下标的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> List<Integer> <span class="title function_">binarySearch2</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right, <span class="type">int</span> findVal)</span> {</span><br><span class="line"> <span class="comment">//结束递归的条件</span></span><br><span class="line"> <span class="keyword">if</span> (left > right) {</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> }</span><br><span class="line"> <span class="type">int</span> <span class="variable">mid</span> <span class="operator">=</span> (left + right) / <span class="number">2</span>;</span><br><span class="line"> <span class="type">int</span> <span class="variable">midVal</span> <span class="operator">=</span> arr[mid];</span><br><span class="line"> <span class="keyword">if</span> (findVal > midVal) {<span class="comment">//向右递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch2(arr, mid + <span class="number">1</span>, right, findVal);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (findVal < midVal) {<span class="comment">//向左递归</span></span><br><span class="line"> <span class="keyword">return</span> binarySearch2(arr, left, mid - <span class="number">1</span>, findVal);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> List<Integer> resList = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="type">int</span> <span class="variable">temp</span> <span class="operator">=</span> mid - <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) { <span class="comment">//向左边探测相同值的元素</span></span><br><span class="line"> <span class="keyword">if</span> (temp < <span class="number">0</span> || arr[temp] != findVal) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//否则就把temp放入到集合中</span></span><br><span class="line"> resList.add(temp);</span><br><span class="line"> temp--;<span class="comment">//左移</span></span><br><span class="line"> }</span><br><span class="line"> resList.add(mid);</span><br><span class="line"> <span class="comment">//向右边探测</span></span><br><span class="line"> temp = mid + <span class="number">1</span>;</span><br><span class="line"> <span class="keyword">while</span> (<span class="literal">true</span>) { <span class="comment">//向右边探测相同值的元素</span></span><br><span class="line"> <span class="keyword">if</span> (temp > arr.length - <span class="number">1</span> || arr[temp] != findVal) {</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//否则就把temp放入到集合中</span></span><br><span class="line"> resList.add(temp);</span><br><span class="line"> temp++;<span class="comment">//右移</span></span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> resList;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-插值查找算法"><a href="#4-插值查找算法" class="headerlink" title="4.插值查找算法"></a>4.插值查找算法</h3><h4 id="4-1-图解"><a href="#4-1-图解" class="headerlink" title="4.1 图解"></a>4.1 图解</h4><p><img src="/pictures/image-20230530101020552.png"></p>
|
||
<img src="/pictures/image-20230530101803392.png" alt="image-20230530101803392" style="zoom:200%;" />
|
||
|
||
<h4 id="4-2-代码实现"><a href="#4-2-代码实现" class="headerlink" title="4.2 代码实现"></a>4.2 代码实现</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.search;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/30</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 插值查找算法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">InsertValueSearch</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//创建一个数组 用于模拟需要查找数据的数组</span></span><br><span class="line"> <span class="type">int</span>[] arr = <span class="keyword">new</span> <span class="title class_">int</span>[<span class="number">100</span>];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < <span class="number">100</span>; i++) {</span><br><span class="line"> arr[i] = i + <span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> System.out.println(Arrays.toString(arr));</span><br><span class="line"> System.out.println(<span class="string">"查找的数的下标为:"</span> + insertValueSearch(arr, <span class="number">0</span>, arr.length - <span class="number">1</span>, <span class="number">30</span>));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 插值查找算法</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> arr 目标数组(有序的)等差序列的最好,1-100有序的数组,找一个数只用找一次就行了</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> left 左边索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> right 右边索引</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> findVal 需要查找的值</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 查找的值在数组中的索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="type">int</span> <span class="title function_">insertValueSearch</span><span class="params">(<span class="type">int</span>[] arr, <span class="type">int</span> left, <span class="type">int</span> right, <span class="type">int</span> findVal)</span> {</span><br><span class="line"> System.out.println(<span class="string">"方法被调用了"</span>);</span><br><span class="line"> <span class="comment">//退出的条件和防止数组越界</span></span><br><span class="line"> <span class="keyword">if</span> (left > right || findVal < arr[<span class="number">0</span>] || findVal > arr[arr.length - <span class="number">1</span>]) {</span><br><span class="line"> <span class="keyword">return</span> -<span class="number">1</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//求出mid,这个是插值查找算法的灵魂,自适应的查找</span></span><br><span class="line"> <span class="type">int</span> <span class="variable">mid</span> <span class="operator">=</span> left + (right - left) * (findVal - arr[left]) / (arr[right] - arr[left]);</span><br><span class="line"> <span class="type">int</span> <span class="variable">midVal</span> <span class="operator">=</span> arr[mid];</span><br><span class="line"> <span class="keyword">if</span> (findVal > midVal) { <span class="comment">//应向右递归</span></span><br><span class="line"> <span class="keyword">return</span> insertValueSearch(arr, mid + <span class="number">1</span>, right, findVal);</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (findVal < midVal) {<span class="comment">//向左边递归</span></span><br><span class="line"> <span class="keyword">return</span> insertValueSearch(arr, left, mid - <span class="number">1</span>, findVal);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">return</span> mid;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="4-3-注意事项"><a href="#4-3-注意事项" class="headerlink" title="4.3 注意事项"></a>4.3 注意事项</h4><p><img src="/pictures/image-20230530105652529.png" alt="image-20230530105652529"></p>
|
||
<h3 id="5-斐波那契(黄金分割法)查找算法"><a href="#5-斐波那契(黄金分割法)查找算法" class="headerlink" title="5.斐波那契(黄金分割法)查找算法"></a>5.斐波那契(黄金分割法)查找算法</h3><h4 id="5-1-基本介绍-1"><a href="#5-1-基本介绍-1" class="headerlink" title="5.1 基本介绍"></a>5.1 基本介绍</h4><img src="/pictures/image-20230530110145048.png" alt="image-20230530110145048" style="zoom:150%;" />
|
||
|
||
<h4 id="5-2-原理介绍"><a href="#5-2-原理介绍" class="headerlink" title="5.2 原理介绍"></a>5.2 原理介绍</h4><p><img src="/pictures/image-20230530110511769.png" alt="image-20230530110511769"></p>
|
||
<hr>
|
||
<h2 id="PDF笔记"><a href="#PDF笔记" class="headerlink" title="PDF笔记"></a>PDF笔记</h2>
|
||
|
||
<div class="row">
|
||
<embed src="/pdf/尚硅谷图解Java数据结构和算法.pdf" width="100%" height="550" type="application/pdf">
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>数据结构与算法</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>SpringBoot入门教程</title>
|
||
<url>/posts/60684.html</url>
|
||
<content><![CDATA[<p>尚硅谷雷丰阳的SpringBoot零基础入门教程</p>
|
||
<p><strong>本视频笔记地址:</strong><a href="https://yuque.com/atguigu/springboot">https://yuque.com/atguigu/springboot</a></p>
|
||
<p><strong>本视频源码地址:</strong><a href="https://gitee.com/leifengyang/springboot2">https://gitee.com/leifengyang/springboot2</a></p>
|
||
<p><strong>Spring官网:</strong> <a href="https://spring.io/">https://spring.io/</a></p>
|
||
<p>SpringBoot2的环境要求</p>
|
||
<p><img src="/pictures/image-20230620092919922.png" alt="image-20230620092919922"></p>
|
||
<h1 id="一-SpringBoot2核心技术-基础入门"><a href="#一-SpringBoot2核心技术-基础入门" class="headerlink" title="一.SpringBoot2核心技术-基础入门"></a>一.SpringBoot2核心技术-基础入门</h1><h2 id="1-Spring能做什么"><a href="#1-Spring能做什么" class="headerlink" title="1.Spring能做什么"></a>1.Spring能做什么</h2><p>这里的Spring指的是整个Spring生态</p>
|
||
<p><img src="/pictures/image-20230620093420150.png" alt="image-20230620093420150"></p>
|
||
<p><strong>微服务 响应式编程 分布式 WEB开发 无服务开发 事件驱动 批处理</strong></p>
|
||
<h2 id="2-SpringBoot"><a href="#2-SpringBoot" class="headerlink" title="2.SpringBoot"></a>2.SpringBoot</h2><p>Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.</p>
|
||
<p>能快速创建出生产级别的Spring应用</p>
|
||
<p>SpringBoot是整合Spring技术栈的一站式框架</p>
|
||
<p>SpringBoot是简化Spring技术栈的快速开发脚手架</p>
|
||
<h3 id="2-1-SpringBoot的优点"><a href="#2-1-SpringBoot的优点" class="headerlink" title="2.1 SpringBoot的优点"></a>2.1 SpringBoot的优点</h3><p>● Create stand-alone Spring applications<br> ○ 创建独立Spring应用<br>● Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)<br> ○ 内嵌web服务器<br>● Provide opinionated ‘starter’ dependencies to simplify your build configuration<br> ○ 自动starter依赖,简化构建配置<br>● Automatically configure Spring and 3rd party libraries whenever possible<br> ○ 自动配置Spring以及第三方功能<br>● Provide production-ready features such as metrics, health checks, and externalized configuration<br> ○ 提供生产级别的监控、健康检查及外部化配置<br>● Absolutely no code generation and no requirement for XML configuration<br> ○ 无代码生成、无需编写XML</p>
|
||
<h3 id="2-2、SpringBoot缺点"><a href="#2-2、SpringBoot缺点" class="headerlink" title="2.2、SpringBoot缺点"></a>2.2、SpringBoot缺点</h3><ul>
|
||
<li>人称版本帝,迭代快,需要时刻关注变化(说明社区活跃,也是个优点)</li>
|
||
<li>封装太深,内部原理复杂,不容易精通</li>
|
||
</ul>
|
||
<h3 id="2-3-官方文档"><a href="#2-3-官方文档" class="headerlink" title="2.3 官方文档"></a>2.3 官方文档</h3><p>进入官网 找到SpringBoot 点击Reference Doc进入官方文档</p>
|
||
<p><img src="/pictures/image-20230620101533445.png" alt="image-20230620101533445"></p>
|
||
<h2 id="3-SpringBoot入门"><a href="#3-SpringBoot入门" class="headerlink" title="3.SpringBoot入门"></a>3.SpringBoot入门</h2><h3 id="1-系统的要求"><a href="#1-系统的要求" class="headerlink" title="1.系统的要求"></a>1.系统的要求</h3><ul>
|
||
<li><a href="https://www.java.com/">Java 8</a> & 兼容java14 .</li>
|
||
<li>Maven 3.3+</li>
|
||
<li>idea 2019.1.2</li>
|
||
</ul>
|
||
<p>**Maven的配置教程: **</p>
|
||
<p><a href="https://jasonsgong.gitee.io/posts/26768.html">Maven配置文件settings.xml | The Blog (gitee.io)</a></p>
|
||
<p><a href="https://jasonsgong.gitee.io/posts/63333.html">开发环境的搭建 | The Blog (gitee.io)</a></p>
|
||
<h3 id="2-HelloWorld"><a href="#2-HelloWorld" class="headerlink" title="2.HelloWorld"></a>2.HelloWorld</h3><p><strong>需求:浏览发送/hello请求,响应 Hello,Spring Boot 2</strong> </p>
|
||
<p>1创建maven工程</p>
|
||
<p><img src="/pictures/image-20230725160846882.png" alt="image-20230725160846882"></p>
|
||
<p>2.引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-parent<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.4.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">parent</span>></span></span><br><span class="line"> <span class="comment"><!-- WEB场景的启动器 --></span></span><br><span class="line"><span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"><span class="tag"></<span class="name">dependencies</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.创建主程序</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.SpringApplication;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.SpringBootApplication;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/25</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@SpringBootApplication</span> <span class="comment">//标注这是一个SpringBoot应用</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MainApplication</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> SpringApplication.run(MainApplication.class,args);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.编写Controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestController;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/25</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">HelloController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@RequestMapping</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">handle01</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"Hello,Spring Boot2"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<img src="/pictures/image-20230725162201612.png" alt="image-20230725162201612" style="zoom:150%;" />
|
||
|
||
<h3 id="3-简化配置"><a href="#3-简化配置" class="headerlink" title="3.简化配置"></a>3.简化配置</h3><p>官网地址:<a href="https://docs.spring.io/spring-boot/docs/2.7.14/reference/html/application-properties.html#appendix.application-properties">https://docs.spring.io/spring-boot/docs/2.7.14/reference/html/application-properties.html#appendix.application-properties</a></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">server.port</span>=<span class="string">8888</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-简化部署"><a href="#4-简化部署" class="headerlink" title="4.简化部署"></a>4.简化部署</h3><p>通过在pom.xml文件中插入这个插件,可以直接将项目打成jar包简化部署</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"> <span class="tag"><<span class="name">build</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">plugins</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">plugin</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-maven-plugin<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">plugin</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">plugins</span>></span></span><br><span class="line"><span class="tag"></<span class="name">build</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230725163026091.png" alt="image-20230725163026091"></p>
|
||
<p>可以直接使用cmd切换到target目录下使用<code>java -jar </code>命令运行jar包</p>
|
||
<p><img src="/pictures/image-20230725163212347.png" alt="image-20230725163212347"></p>
|
||
<p><strong>注意点</strong></p>
|
||
<p>去掉cmd的快速编辑模式(不去掉启动的时候点击屏幕会停止)</p>
|
||
<p><img src="/pictures/image-20230725164124574.png" alt="image-20230725164124574"></p>
|
||
<h2 id="4-了解自动装配原理"><a href="#4-了解自动装配原理" class="headerlink" title="4.了解自动装配原理"></a>4.了解自动装配原理</h2><h3 id="4-1-依赖管理"><a href="#4-1-依赖管理" class="headerlink" title="4.1 依赖管理"></a>4.1 依赖管理</h3><h4 id="1-SpringBoot的自动版本仲裁机制"><a href="#1-SpringBoot的自动版本仲裁机制" class="headerlink" title="1.SpringBoot的自动版本仲裁机制"></a><strong>1.SpringBoot的自动版本仲裁机制</strong></h4><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- 项目的继承的父项目--></span></span><br><span class="line"><span class="tag"><<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-parent<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.4.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">parent</span>></span></span><br><span class="line"><span class="comment"><!-- 父项目继承的父项目--></span></span><br><span class="line"><span class="comment"><!--几乎声明了开发中常用依赖的版本号--></span></span><br><span class="line"><span class="tag"><<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-dependencies<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.4.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">parent</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230725165414051.png" alt="image-20230725165414051"></p>
|
||
<p><strong>自定义mysql版本驱动</strong></p>
|
||
<p>在父依赖中mysql是8版本的</p>
|
||
<p><img src="/pictures/image-20230725170329032.png" alt="image-20230725170329032"></p>
|
||
<p>可以在pom.xml中通过自定义properties修改版本</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="comment"><!--重写mysql的版本号--></span></span><br><span class="line"> <span class="tag"><<span class="name">mysql.version</span>></span>5.1.43<span class="tag"></<span class="name">mysql.version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">properties</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230725170257030.png" alt="image-20230725170257030"></p>
|
||
<h4 id="2-Starters场景启动器"><a href="#2-Starters场景启动器" class="headerlink" title="2.Starters场景启动器"></a>2.Starters场景启动器</h4><p>官网: <a href="https://docs.spring.io/spring-boot/docs/2.7.14/reference/html/using.html#using.build-systems.starters">https://docs.spring.io/spring-boot/docs/2.7.14/reference/html/using.html#using.build-systems.starters</a></p>
|
||
<p><strong>以<code>spring-boot-starter-*</code>起头的starter为官方提供的starter,<code>*-spring-boot-starter</code>为第三方提供的starter</strong></p>
|
||
<p>常见的Starter</p>
|
||
<p><img src="/pictures/image-20230725171130925.png" alt="image-20230725171130925"></p>
|
||
<p>以引入<code>spring-boot-starter-web</code>为例,引入该starter它会帮我们引入以下的其它依赖</p>
|
||
<p><img src="/pictures/image-20230725171550618.png" alt="image-20230725171550618"></p>
|
||
<h3 id="4-2-自动配置"><a href="#4-2-自动配置" class="headerlink" title="4.2 自动配置"></a>4.2 自动配置</h3><ul>
|
||
<li><p><strong>自动配置Tomcat</strong></p>
|
||
<ol>
|
||
<li><p>引入依赖</p>
|
||
<p><img src="/pictures/image-20230725172719608.png" alt="image-20230725172719608"></p>
|
||
</li>
|
||
<li><p>配置Tomcat</p>
|
||
</li>
|
||
</ol>
|
||
</li>
|
||
<li><p><strong>自动配置SpringMvc</strong></p>
|
||
<ol>
|
||
<li><p>引入springMvc全套组件</p>
|
||
</li>
|
||
<li><p>自动配置好springMvc的常用组件(字符编码,文件上传解析器,dispatcherServlet等)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootApplication</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MainApplication</span> {</span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//返回ioc容器</span></span><br><span class="line"> <span class="type">ConfigurableApplicationContext</span> <span class="variable">run</span> <span class="operator">=</span> SpringApplication.run(MainApplication.class, args);</span><br><span class="line"> <span class="comment">//获取容器里面组件的名字</span></span><br><span class="line"> String[] beanDefinitionNames = run.getBeanDefinitionNames();</span><br><span class="line"> <span class="keyword">for</span> (String beanDefinitionName : beanDefinitionNames) {</span><br><span class="line"> <span class="comment">//打印容器内的组件</span></span><br><span class="line"> System.out.println(beanDefinitionName);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230725172834666.png" alt="image-20230725172834666"></p>
|
||
</li>
|
||
</ol>
|
||
</li>
|
||
<li><p><strong>默认的包结构</strong></p>
|
||
<p>主程序所在的包以及其的子包都可以被扫描到,无需配置包扫描</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">com</span><br><span class="line"> +- example</span><br><span class="line"> +- myapplication</span><br><span class="line"> +- MyApplication.java #主程序</span><br><span class="line"> |</span><br><span class="line"> +- customer</span><br><span class="line"> | +- Customer.java</span><br><span class="line"> | +- CustomerController.java</span><br><span class="line"> | +- CustomerService.java</span><br><span class="line"> | +- CustomerRepository.java</span><br><span class="line"> |</span><br><span class="line"> +- order</span><br><span class="line"> +- Order.java</span><br><span class="line"> +- OrderController.java</span><br><span class="line"> +- OrderService.java</span><br><span class="line"> +- OrderRepository.java</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>如果需要扫描的文件在主程序的上级目录,我们也想扫描到它,我们需要扩大一下包的扫描范围</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootApplication(scanBasePackages = "com.atguigu")</span></span><br><span class="line">或者</span><br><span class="line"><span class="meta">@ComponentScan("com.atguigu")</span></span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p><strong>各种配置拥有默认值</strong></p>
|
||
<p><img src="/pictures/image-20230725174350129.png" alt="image-20230725174350129"></p>
|
||
</li>
|
||
<li><p><strong>按需加载所有的自动配置项</strong></p>
|
||
<p>spingboot的所有配置存在于下面的这个依赖中</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-autoconfigure<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.4.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230725175010683.png" alt="image-20230725175010683"></p>
|
||
</li>
|
||
</ul>
|
||
<h3 id="4-3-容器功能"><a href="#4-3-容器功能" class="headerlink" title="4.3 容器功能"></a>4.3 容器功能</h3><h4 id="1-组件添加"><a href="#1-组件添加" class="headerlink" title="1.组件添加"></a>1.组件添加</h4><h5 id="1-1-Configuration"><a href="#1-1-Configuration" class="headerlink" title="1.1 @Configuration"></a>1.1 @Configuration</h5><ul>
|
||
<li><p>基本使用</p>
|
||
</li>
|
||
<li><p><strong>Full模式与Lite模式</strong></p>
|
||
</li>
|
||
<li><ul>
|
||
<li>示例</li>
|
||
<li>最佳实战</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>配置 类组件之间无依赖关系用Lite模式加速容器启动过程,减少判断</li>
|
||
<li>配置类组件之间有依赖关系,方法会被调用得到之前单实例组件,用Full模式</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 1、配置类里面使用<span class="doctag">@Bean</span>标注在方法上给容器注册组件,默认也是单实例的</span></span><br><span class="line"><span class="comment"> * 2、配置类本身也是组件</span></span><br><span class="line"><span class="comment"> * 3、proxyBeanMethods:代理bean的方法</span></span><br><span class="line"><span class="comment"> * Full(proxyBeanMethods = true)、【保证每个<span class="doctag">@Bean</span>方法被调用多少次返回的组件都是单实例的】</span></span><br><span class="line"><span class="comment"> * Lite(proxyBeanMethods = false)【每个<span class="doctag">@Bean</span>方法被调用多少次返回的组件都是新创建的】</span></span><br><span class="line"><span class="comment"> * 组件依赖必须使用Full模式默认。其他默认是否Lite模式</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span> <span class="comment">//告诉SpringBoot这是一个配置类 == 配置文件</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * Full:外部无论对配置类中的这个组件注册方法调用多少次获取的都是之前注册容器中的单实例对象</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean</span> <span class="comment">//给容器中添加组件。以方法名作为组件的id。返回类型就是组件类型。返回的值,就是组件在容器中的实例</span></span><br><span class="line"> <span class="keyword">public</span> User <span class="title function_">user01</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">User</span> <span class="variable">zhangsan</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"zhangsan"</span>, <span class="number">18</span>);</span><br><span class="line"> <span class="comment">//user组件依赖了Pet组件</span></span><br><span class="line"> zhangsan.setPet(tomcatPet());</span><br><span class="line"> <span class="keyword">return</span> zhangsan;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean("tom")</span></span><br><span class="line"> <span class="keyword">public</span> Pet <span class="title function_">tomcatPet</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">Pet</span>(<span class="string">"tomcat"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootConfiguration</span></span><br><span class="line"><span class="meta">@EnableAutoConfiguration</span></span><br><span class="line"><span class="meta">@ComponentScan("com.atguigu.boot")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MainApplication</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> <span class="comment">//1、返回我们IOC容器</span></span><br><span class="line"> <span class="type">ConfigurableApplicationContext</span> <span class="variable">run</span> <span class="operator">=</span> SpringApplication.run(MainApplication.class, args);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2、查看容器里面的组件</span></span><br><span class="line"> String[] names = run.getBeanDefinitionNames();</span><br><span class="line"> <span class="keyword">for</span> (String name : names) {</span><br><span class="line"> System.out.println(name);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3、从容器中获取组件</span></span><br><span class="line"></span><br><span class="line"> <span class="type">Pet</span> <span class="variable">tom01</span> <span class="operator">=</span> run.getBean(<span class="string">"tom"</span>, Pet.class);</span><br><span class="line"></span><br><span class="line"> <span class="type">Pet</span> <span class="variable">tom02</span> <span class="operator">=</span> run.getBean(<span class="string">"tom"</span>, Pet.class);</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"组件:"</span>+(tom01 == tom02));</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//4、com.atguigu.boot.config.MyConfig$$EnhancerBySpringCGLIB$$51f1e1ca@1654a892</span></span><br><span class="line"> <span class="type">MyConfig</span> <span class="variable">bean</span> <span class="operator">=</span> run.getBean(MyConfig.class);</span><br><span class="line"> System.out.println(bean);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//如果@Configuration(proxyBeanMethods = true)代理对象调用方法。SpringBoot总会检查这个组件是否在容器中有。</span></span><br><span class="line"> <span class="comment">//保持组件单实例</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> bean.user01();</span><br><span class="line"> <span class="type">User</span> <span class="variable">user1</span> <span class="operator">=</span> bean.user01();</span><br><span class="line"> System.out.println(user == user1);</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="type">User</span> <span class="variable">user01</span> <span class="operator">=</span> run.getBean(<span class="string">"user01"</span>, User.class);</span><br><span class="line"> <span class="type">Pet</span> <span class="variable">tom</span> <span class="operator">=</span> run.getBean(<span class="string">"tom"</span>, Pet.class);</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"用户的宠物:"</span>+(user01.getPet() == tom));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="1-2-Bean-Component-Controller-Service-Repository"><a href="#1-2-Bean-Component-Controller-Service-Repository" class="headerlink" title="1.2 @Bean @Component @Controller @Service @Repository"></a>1.2 @Bean @Component @Controller @Service @Repository</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//默认是单实例的</span></span><br><span class="line"><span class="meta">@Bean</span><span class="comment">//给容器中添加组件,以方法名作为组件的id(组件名),返回类型就是组件类型,返回的值,就是组件在容器中的实例,@Bean("user") 是自定义组件名为user</span></span><br><span class="line"><span class="keyword">public</span> User <span class="title function_">user01</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"Tom"</span>,<span class="number">100</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="1-3-ComponentScan-Import"><a href="#1-3-ComponentScan-Import" class="headerlink" title="1.3 @ComponentScan @Import"></a>1.3 @ComponentScan @Import</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * @Import({User.class, DBHelper.class}) 给容器中自动创建出这两个类型的组件、默认组件的名字就是全类名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Import({User.class, DBHelper.class})</span></span><br><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyConfig</span> {</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="1-4-Conditional-条件装配:满足Conditional指定的条件,则进行组件注入"><a href="#1-4-Conditional-条件装配:满足Conditional指定的条件,则进行组件注入" class="headerlink" title="1.4 @Conditional 条件装配:满足Conditional指定的条件,则进行组件注入"></a>1.4 @Conditional 条件装配:满足Conditional指定的条件,则进行组件注入</h5><p><img src="/pictures/image-20230802141422751.png" alt="image-20230802141422751"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//放在类上面,条件成立,这个类下面的所有配置生效,放在方法上面,条件成立,这个方法下的配置才会成立</span></span><br><span class="line"><span class="meta">@ConditionalOnBean(name = "tom")</span> <span class="comment">//存在一个id为tom的组件的时候才会生效</span></span><br><span class="line"><span class="meta">@ConditionalOnMissingBean(name = "tom")</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-原生配置文件的引入"><a href="#2-原生配置文件的引入" class="headerlink" title="2.原生配置文件的引入"></a>2.原生配置文件的引入</h4><h5 id="2-1、-ImportResource"><a href="#2-1、-ImportResource" class="headerlink" title="2.1、@ImportResource"></a>2.1、@ImportResource</h5><p>beans.xml*)</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="meta"><?xml version=<span class="string">"1.0"</span> encoding=<span class="string">"UTF-8"</span>?></span></span><br><span class="line"><span class="tag"><<span class="name">beans</span> <span class="attr">xmlns</span>=<span class="string">"http://www.springframework.org/schema/beans"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:xsi</span>=<span class="string">"http://www.w3.org/2001/XMLSchema-instance"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xmlns:context</span>=<span class="string">"http://www.springframework.org/schema/context"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">xsi:schemaLocation</span>=<span class="string">"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd"</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"haha"</span> <span class="attr">class</span>=<span class="string">"com.atguigu.boot.bean.User"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"name"</span> <span class="attr">value</span>=<span class="string">"zhangsan"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"age"</span> <span class="attr">value</span>=<span class="string">"18"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"></span><br><span class="line"> <span class="tag"><<span class="name">bean</span> <span class="attr">id</span>=<span class="string">"hehe"</span> <span class="attr">class</span>=<span class="string">"com.atguigu.boot.bean.Pet"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">property</span> <span class="attr">name</span>=<span class="string">"name"</span> <span class="attr">value</span>=<span class="string">"tomcat"</span>></span><span class="tag"></<span class="name">property</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">bean</span>></span></span><br><span class="line"><span class="tag"></<span class="name">beans</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在java类中红使用@ImportResource(“classpath:beans.xml”)导入上面的配置文件</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@ImportResource("classpath:beans.xml")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyConfig</span> {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-配置绑定"><a href="#3-配置绑定" class="headerlink" title="3.配置绑定"></a>3.配置绑定</h4><h5 id="3-1-ConfigurationProperties"><a href="#3-1-ConfigurationProperties" class="headerlink" title="3.1 @ConfigurationProperties"></a>3.1 @ConfigurationProperties</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 只有在容器中的组件,才会拥有SpringBoot提供的强大功能</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Component</span> <span class="comment">//或者在配置类上添加@EnableConfigurationProperties(Car.class)注解,不使用@Component</span></span><br><span class="line"><span class="meta">@ConfigurationProperties(prefix = "mycar")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Car</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String brand;</span><br><span class="line"> <span class="keyword">private</span> Integer price;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">getBrand</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> brand;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setBrand</span><span class="params">(String brand)</span> {</span><br><span class="line"> <span class="built_in">this</span>.brand = brand;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> Integer <span class="title function_">getPrice</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> price;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">setPrice</span><span class="params">(Integer price)</span> {</span><br><span class="line"> <span class="built_in">this</span>.price = price;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">toString</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"Car{"</span> +</span><br><span class="line"> <span class="string">"brand='"</span> + brand + <span class="string">'\''</span> +</span><br><span class="line"> <span class="string">", price="</span> + price +</span><br><span class="line"> <span class="string">'}'</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>配置文件中的值</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">mycar.brand</span>=<span class="string">BYD</span></span><br><span class="line"><span class="attr">mycar.price</span>=<span class="string">120000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>编写测试的controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line"><span class="keyword">private</span> Car car;</span><br><span class="line"><span class="meta">@RequestMapping("/car")</span></span><br><span class="line"><span class="keyword">public</span> Car <span class="title function_">ggetCar</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> car;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<img src="/pictures/image-20230802153951542.png" alt="image-20230802153951542" style="zoom: 150%;" />
|
||
|
||
<h3 id="4-4-自动配置原理入门"><a href="#4-4-自动配置原理入门" class="headerlink" title="4.4 自动配置原理入门"></a>4.4 自动配置原理入门</h3><h4 id="1-引导加载自动配置类"><a href="#1-引导加载自动配置类" class="headerlink" title="1.引导加载自动配置类"></a>1.引导加载自动配置类</h4><p><strong>@SpringBootApplication</strong></p>
|
||
<p><img src="/pictures/image-20230802155222746.png" alt="image-20230802155222746"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@SpringBootConfiguration</span> <span class="comment">//代表当前是一个配置类</span></span><br><span class="line"><span class="meta">@EnableAutoConfiguration</span> </span><br><span class="line"><span class="meta">@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),</span></span><br><span class="line"><span class="meta"> @Filter(type = FilterType.CUSTOM, classes = AutoConfigurationExcludeFilter.class) })</span><span class="comment">//指定扫描那些spring注解</span></span><br><span class="line"><span class="keyword">public</span> <span class="meta">@interface</span> SpringBootApplication{}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>@EnableAutoConfiguration</strong> </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@AutoConfigurationPackage</span></span><br><span class="line"><span class="meta">@Import(AutoConfigurationImportSelector.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="meta">@interface</span> EnableAutoConfiguration {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>@AutoConfigurationPackage</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Import(AutoConfigurationPackages.Registrar.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="meta">@interface</span> AutoConfigurationPackage {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>Registrar.class</strong></p>
|
||
<p><img src="/pictures/image-20230802160618158.png" alt="image-20230802160618158"></p>
|
||
<p><strong>利用Registrar给容器中导入com.atguigu.boot(主程序所在的包)包下的一系列组件</strong></p>
|
||
<p><img src="/pictures/image-20230802161004735.png" alt="image-20230802161004735"></p>
|
||
<p><strong>@Import(AutoConfigurationImportSelector.class)</strong> </p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="number">1</span>、利用getAutoConfigurationEntry(annotationMetadata);给容器中批量导入一些组件</span><br><span class="line"><span class="number">2</span>、调用List<String> configurations = getCandidateConfigurations(annotationMetadata, attributes)获取到所有需要导入到容器中的配置类</span><br><span class="line"><span class="number">3</span>、利用工厂加载 Map<String, List<String>> <span class="title function_">loadSpringFactories</span><span class="params">(<span class="meta">@Nullable</span> ClassLoader classLoader)</span>;得到所有的组件</span><br><span class="line"><span class="number">4</span>、从META-INF/spring.factories位置来加载一个文件。</span><br><span class="line"> 默认扫描我们当前系统里面所有META-INF/spring.factories位置的文件</span><br><span class="line"> spring-boot-autoconfigure-<span class="number">2.3</span><span class="number">.4</span>.RELEASE.jar包里面也有META-INF/spring.factories</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>AutoConfigurationImportSelector.java</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> String[] selectImports(AnnotationMetadata annotationMetadata) {</span><br><span class="line"> <span class="keyword">if</span> (!isEnabled(annotationMetadata)) {</span><br><span class="line"> <span class="keyword">return</span> NO_IMPORTS;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">AutoConfigurationEntry</span> <span class="variable">autoConfigurationEntry</span> <span class="operator">=</span> getAutoConfigurationEntry(annotationMetadata);</span><br><span class="line"> <span class="keyword">return</span> StringUtils.toStringArray(autoConfigurationEntry.getConfigurations());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>getAutoConfigurationEntry()方法</strong></p>
|
||
<p>利用getAutoConfigurationEntry(annotationMetadata);给容器中批量导入一些组件</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">protected</span> AutoConfigurationEntry <span class="title function_">getAutoConfigurationEntry</span><span class="params">(AnnotationMetadata annotationMetadata)</span> {</span><br><span class="line"> <span class="keyword">if</span> (!isEnabled(annotationMetadata)) {</span><br><span class="line"> <span class="keyword">return</span> EMPTY_ENTRY;</span><br><span class="line"> }</span><br><span class="line"> <span class="type">AnnotationAttributes</span> <span class="variable">attributes</span> <span class="operator">=</span> getAttributes(annotationMetadata);</span><br><span class="line"> List<String> configurations = getCandidateConfigurations(annotationMetadata, attributes);</span><br><span class="line"> configurations = removeDuplicates(configurations);</span><br><span class="line"> Set<String> exclusions = getExclusions(annotationMetadata, attributes);</span><br><span class="line"> checkExcludedClasses(configurations, exclusions);</span><br><span class="line"> configurations.removeAll(exclusions);</span><br><span class="line"> configurations = getConfigurationClassFilter().filter(configurations);</span><br><span class="line"> fireAutoConfigurationImportEvents(configurations, exclusions);</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">AutoConfigurationEntry</span>(configurations, exclusions);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>**getCandidateConfigurations()**获取所有候选的配置</p>
|
||
<p>调用List<String> configurations = getCandidateConfigurations(annotationMetadata, attributes)获取到所有需要导入到容器中的配置类</p>
|
||
<p><img src="/pictures/image-20230802162236987.png" alt="image-20230802162236987"></p>
|
||
<p><strong>loadSpringFactories()</strong></p>
|
||
<p>利用工厂加载 Map<String, List<String>> loadSpringFactories(@Nullable ClassLoader classLoader);得到所有的组件</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">private</span> <span class="keyword">static</span> Map<String, List<String>> <span class="title function_">loadSpringFactories</span><span class="params">(<span class="meta">@Nullable</span> ClassLoader classLoader)</span> {</span><br><span class="line"> MultiValueMap<String, String> result = (MultiValueMap)cache.get(classLoader);</span><br><span class="line"> <span class="keyword">if</span> (result != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> Enumeration<URL> urls = classLoader != <span class="literal">null</span> ? classLoader.getResources(<span class="string">"META-INF/spring.factories"</span>) : ClassLoader.getSystemResources(<span class="string">"META-INF/spring.factories"</span>);</span><br><span class="line"> MultiValueMap<String, String> result = <span class="keyword">new</span> <span class="title class_">LinkedMultiValueMap</span>();</span><br><span class="line"></span><br><span class="line"> <span class="keyword">while</span>(urls.hasMoreElements()) {</span><br><span class="line"> <span class="type">URL</span> <span class="variable">url</span> <span class="operator">=</span> (URL)urls.nextElement();</span><br><span class="line"> <span class="type">UrlResource</span> <span class="variable">resource</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UrlResource</span>(url);</span><br><span class="line"> <span class="type">Properties</span> <span class="variable">properties</span> <span class="operator">=</span> PropertiesLoaderUtils.loadProperties(resource);</span><br><span class="line"> <span class="type">Iterator</span> <span class="variable">var6</span> <span class="operator">=</span> properties.entrySet().iterator();</span><br><span class="line"></span><br><span class="line"> <span class="keyword">while</span>(var6.hasNext()) {</span><br><span class="line"> Map.Entry<?, ?> entry = (Map.Entry)var6.next();</span><br><span class="line"> <span class="type">String</span> <span class="variable">factoryTypeName</span> <span class="operator">=</span> ((String)entry.getKey()).trim();</span><br><span class="line"> String[] var9 = StringUtils.commaDelimitedListToStringArray((String)entry.getValue());</span><br><span class="line"> <span class="type">int</span> <span class="variable">var10</span> <span class="operator">=</span> var9.length;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">for</span>(<span class="type">int</span> <span class="variable">var11</span> <span class="operator">=</span> <span class="number">0</span>; var11 < var10; ++var11) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">factoryImplementationName</span> <span class="operator">=</span> var9[var11];</span><br><span class="line"> result.add(factoryTypeName, factoryImplementationName.trim());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> cache.put(classLoader, result);</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line"> } <span class="keyword">catch</span> (IOException var13) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">IllegalArgumentException</span>(<span class="string">"Unable to load factories from location [META-INF/spring.factories]"</span>, var13);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>从META-INF/spring.factories位置来加载一个文件。默认扫描我们当前系统里面所有META-INF/spring.factories位置的文件,spring-boot-autoconfigure-2.3.4.RELEASE.jar包里面也有META-INF/spring.factories</strong></p>
|
||
<p><img src="/pictures/image-20230802163429366.png" alt="image-20230802163429366"></p>
|
||
<p><strong>在spring.factories这个配置文件中写死了springBoot一启动就要给容器加载的所有配置类,一共127个</strong></p>
|
||
<p><img src="/pictures/image-20230802163708198.png" alt="image-20230802163708198"></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"># Initializers</span><br><span class="line">org.springframework.context.ApplicationContextInitializer=\</span><br><span class="line">org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer,\</span><br><span class="line">org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener</span><br><span class="line"></span><br><span class="line"># Application Listeners</span><br><span class="line">org.springframework.context.ApplicationListener=\</span><br><span class="line">org.springframework.boot.autoconfigure.BackgroundPreinitializer</span><br><span class="line"></span><br><span class="line"># Auto Configuration Import Listeners</span><br><span class="line">org.springframework.boot.autoconfigure.AutoConfigurationImportListener=\</span><br><span class="line">org.springframework.boot.autoconfigure.condition.ConditionEvaluationReportAutoConfigurationImportListener</span><br><span class="line"></span><br><span class="line"># Auto Configuration Import Filters</span><br><span class="line">org.springframework.boot.autoconfigure.AutoConfigurationImportFilter=\</span><br><span class="line">org.springframework.boot.autoconfigure.condition.OnBeanCondition,\</span><br><span class="line">org.springframework.boot.autoconfigure.condition.OnClassCondition,\</span><br><span class="line">org.springframework.boot.autoconfigure.condition.OnWebApplicationCondition</span><br><span class="line"></span><br><span class="line"># Auto Configure</span><br><span class="line">org.springframework.boot.autoconfigure.EnableAutoConfiguration=\</span><br><span class="line">org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.aop.AopAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.cassandra.CassandraDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.cassandra.CassandraReactiveDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.cassandra.CassandraReactiveRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.cassandra.CassandraRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.couchbase.CouchbaseDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.couchbase.CouchbaseReactiveDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.couchbase.CouchbaseReactiveRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.couchbase.CouchbaseRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.elasticsearch.ReactiveElasticsearchRestClientAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.jdbc.JdbcRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.ldap.LdapRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.mongo.MongoReactiveDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.mongo.MongoReactiveRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.solr.SolrRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.r2dbc.R2dbcDataAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.r2dbc.R2dbcRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.r2dbc.R2dbcTransactionManagerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.hateoas.HypermediaAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.influx.InfluxDbAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jms.JndiConnectionFactoryAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mail.MailSenderValidatorAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mongo.MongoReactiveAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.rsocket.RSocketMessagingAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.rsocket.RSocketRequesterAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.rsocket.RSocketServerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.rsocket.RSocketStrategiesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.reactive.ReactiveUserDetailsServiceAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.rsocket.RSocketSecurityAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.saml2.Saml2RelyingPartyAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.sendgrid.SendGridAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.session.SessionAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.oauth2.client.reactive.ReactiveOAuth2ClientAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.security.oauth2.resource.reactive.ReactiveOAuth2ResourceServerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.HttpHandlerAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.ReactiveWebServerFactoryAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.function.client.ClientHttpConnectorAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.websocket.reactive.WebSocketReactiveAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.websocket.servlet.WebSocketMessagingAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.webservices.WebServicesAutoConfiguration,\</span><br><span class="line">org.springframework.boot.autoconfigure.webservices.client.WebServiceTemplateAutoConfiguration</span><br><span class="line"></span><br><span class="line"># Failure analyzers</span><br><span class="line">org.springframework.boot.diagnostics.FailureAnalyzer=\</span><br><span class="line">org.springframework.boot.autoconfigure.data.redis.RedisUrlSyntaxFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.diagnostics.analyzer.NoSuchBeanDefinitionFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.flyway.FlywayMigrationScriptMissingFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.DataSourceBeanCreationFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryBeanCreationFailureAnalyzer,\</span><br><span class="line">org.springframework.boot.autoconfigure.session.NonUniqueSessionRepositoryFailureAnalyzer</span><br><span class="line"></span><br><span class="line"># Template availability providers</span><br><span class="line">org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider=\</span><br><span class="line">org.springframework.boot.autoconfigure.freemarker.FreeMarkerTemplateAvailabilityProvider,\</span><br><span class="line">org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider,\</span><br><span class="line">org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAvailabilityProvider,\</span><br><span class="line">org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider,\</span><br><span class="line">org.springframework.boot.autoconfigure.web.servlet.JspTemplateAvailabilityProvider</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-按需开启自动配置项"><a href="#2-按需开启自动配置项" class="headerlink" title="2.按需开启自动配置项"></a>2.按需开启自动配置项</h4><p> 虽然我们127个场景的所有自动配置启动的时候默认全部加载。xxxxAutoConfiguration,按照条件装配规则(@Conditional),最终会按需配置,比如下面的配置是否生效还要通过@Conditional的条件判断。</p>
|
||
<p><strong>简单的一句话:启动的时候加载所有,使用的时候按照条件(@Conditional)进行装配</strong></p>
|
||
<p><img src="/pictures/image-20230802164424689.png" alt="image-20230802164424689"></p>
|
||
<h4 id="3-修改默认配置"><a href="#3-修改默认配置" class="headerlink" title="3.修改默认配置"></a>3.修改默认配置</h4><p> 相当于当我们在容器中注入了类型为MultipartResolver但是id不为multipartResolver的组件的时候,会帮我们规范一下命名,命名为multipartResolver。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="meta">@ConditionalOnBean(MultipartResolver.class)</span> <span class="comment">//存在MultipartResolver类型的组件</span></span><br><span class="line"><span class="meta">@ConditionalOnMissingBean(name = DispatcherServlet.MULTIPART_RESOLVER_BEAN_NAME)</span><span class="comment">//不存在以multipartResolver为id的组件</span></span><br><span class="line"><span class="keyword">public</span> MultipartResolver <span class="title function_">multipartResolver</span><span class="params">(MultipartResolver resolver)</span> {</span><br><span class="line"> <span class="comment">// Detect if the user has created a MultipartResolver but named it incorrectly</span></span><br><span class="line"> <span class="keyword">return</span> resolver;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>SpringBoot默认会在底层配好所有的组件。但是如果用户自己配置了以用户的优先</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="meta">@ConditionalOnMissingBean</span> <span class="comment">//没有的话就将这个配置注入到容器中</span></span><br><span class="line"><span class="keyword">public</span> CharacterEncodingFilter <span class="title function_">characterEncodingFilter</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">CharacterEncodingFilter</span> <span class="variable">filter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OrderedCharacterEncodingFilter</span>();</span><br><span class="line"> filter.setEncoding(<span class="built_in">this</span>.properties.getCharset().name());</span><br><span class="line"> filter.setForceRequestEncoding(<span class="built_in">this</span>.properties.shouldForce(Encoding.Type.REQUEST));</span><br><span class="line"> filter.setForceResponseEncoding(<span class="built_in">this</span>.properties.shouldForce(Encoding.Type.RESPONSE));</span><br><span class="line"> <span class="keyword">return</span> filter;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>总结:</p>
|
||
<ul>
|
||
<li><p>SpringBoot先加载所有的自动配置类 xxxxxAutoConfiguration</p>
|
||
</li>
|
||
<li><p>每个自动配置类按照条件进行生效,默认都会绑定配置文件指定的值。xxxxProperties里面拿。xxxProperties和配置文件进行了绑定</p>
|
||
</li>
|
||
<li><p>生效的配置类就会给容器中装配很多组件</p>
|
||
</li>
|
||
<li><p>只要容器中有这些组件,相当于这些功能就有了</p>
|
||
</li>
|
||
<li><p>定制化配置</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>用户直接自己@Bean替换底层的组件</li>
|
||
<li>用户去看这个组件是获取的配置文件什么值就去修改。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p>xxxxxAutoConfiguration —> 组件 —> xxxxProperties取值 —-> application.properties</p>
|
||
<h4 id="3-4-最佳实践"><a href="#3-4-最佳实践" class="headerlink" title="3.4.最佳实践"></a>3.4.最佳实践</h4><ul>
|
||
<li><p>引入场景依赖</p>
|
||
</li>
|
||
<li><ul>
|
||
<li><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-starter">https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-starter</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><p>查看自动配置了哪些(选做)</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>自己分析,引入场景对应的自动配置一般都生效了</li>
|
||
<li>配置文件中<strong>debug=true开启自动配置报告</strong>。Negative(不生效)\Positive(生效)</li>
|
||
</ul>
|
||
</li>
|
||
<li><p>是否需要修改</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>参照文档修改配置项</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li><a href="https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#common-application-properties">https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html#common-application-properties</a></li>
|
||
<li>自己分析。xxxxProperties绑定了配置文件的哪些。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li>自定义加入或者替换组件</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>@Bean、@Component。。。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li>自定义器 <strong>XXXXXCustomizer</strong>;</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h3 id="4-5-简化开发"><a href="#4-5-简化开发" class="headerlink" title="4.5 简化开发"></a>4.5 简化开发</h3><h4 id="1-Lombok"><a href="#1-Lombok" class="headerlink" title="1.Lombok"></a>1.Lombok</h4><p>引入依赖(使用前需要安装插件)</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.projectlombok<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>lombok<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@NoArgsConstructor</span> <span class="comment">//无参构造器</span></span><br><span class="line"><span class="meta">@AllArgsConstructor</span> <span class="comment">//有参构造器</span></span><br><span class="line"><span class="meta">@Data</span> <span class="comment">//getter和setter方法</span></span><br><span class="line"><span class="meta">@ToString</span> </span><br><span class="line"><span class="meta">@EqualsAndHashCode</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-简化日志开发"><a href="#2-简化日志开发" class="headerlink" title="2.简化日志开发"></a>2.简化日志开发</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Slf4j</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-dev-tools"><a href="#3-dev-tools" class="headerlink" title="3.dev-tools"></a>3.dev-tools</h3><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-devtools<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>项目或者页面修改以后:Ctrl+F9;</p>
|
||
<h3 id="4-Spring-Initailizr(项目初始化向导)"><a href="#4-Spring-Initailizr(项目初始化向导)" class="headerlink" title="4.Spring Initailizr(项目初始化向导)"></a>4.Spring Initailizr(项目初始化向导)</h3><p><img src="/pictures/image-20230803103657995.png" alt="image-20230803103657995"></p>
|
||
<p><img src="/pictures/image-20230803104032505.png" alt="image-20230803104032505"></p>
|
||
<p><img src="/pictures/image-20230803104655578.png" alt="image-20230803104655578"></p>
|
||
<h1 id=""><a href="#" class="headerlink" title=""></a></h1><h1 id="二-SpringBoot2核心技术-核心功能"><a href="#二-SpringBoot2核心技术-核心功能" class="headerlink" title="二.SpringBoot2核心技术-核心功能"></a>二.SpringBoot2核心技术-核心功能</h1><p><img src="/pictures/image-20230803104919434.png" alt="image-20230803104919434"></p>
|
||
<h2 id="一-配置文件"><a href="#一-配置文件" class="headerlink" title="一.配置文件"></a>一.配置文件</h2><h3 id="1、文件类型"><a href="#1、文件类型" class="headerlink" title="1、文件类型"></a>1、文件类型</h3><h4 id="1-1、properties"><a href="#1-1、properties" class="headerlink" title="1.1、properties"></a>1.1、properties</h4><p>同以前的properties用法</p>
|
||
<h4 id="1-2、yaml"><a href="#1-2、yaml" class="headerlink" title="1.2、yaml"></a>1.2、yaml</h4><h5 id="1-2-1、简介"><a href="#1-2-1、简介" class="headerlink" title="1.2.1、简介"></a>1.2.1、简介</h5><p>YAML 是 “YAML Ain’t Markup Language”(YAML 不是一种标记语言)的递归缩写。在开发的这种语言时,YAML 的意思其实是:”Yet Another Markup Language”(仍是一种标记语言)。 </p>
|
||
<p>非常适合用来做以数据为中心的配置文件</p>
|
||
<h5 id="1-2-2、基本语法"><a href="#1-2-2、基本语法" class="headerlink" title="1.2.2、基本语法"></a>1.2.2、基本语法</h5><ul>
|
||
<li>key: value;kv之间有空格</li>
|
||
<li>大小写敏感</li>
|
||
<li>使用缩进表示层级关系</li>
|
||
<li>缩进不允许使用tab,只允许空格</li>
|
||
<li>缩进的空格数不重要,只要相同层级的元素左对齐即可</li>
|
||
<li>‘#’表示注释</li>
|
||
<li>字符串无需加引号,如果要加,’’与””表示字符串内容 会被 转义/不转义</li>
|
||
</ul>
|
||
<h5 id="1-2-3、数据类型"><a href="#1-2-3、数据类型" class="headerlink" title="1.2.3、数据类型"></a>1.2.3、数据类型</h5><ul>
|
||
<li>字面量:单个的、不可再分的值。date、boolean、string、number、null</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">k:</span> <span class="string">v</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>对象:键值对的集合。map、hash、set、object</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="string">行内写法:</span> <span class="attr">k:</span> {<span class="string">k1:v1</span>,<span class="string">k2:v2</span>,<span class="string">k3:v3</span>}</span><br><span class="line"><span class="comment">#或</span></span><br><span class="line"><span class="attr">k:</span> </span><br><span class="line"> <span class="attr">k1:</span> <span class="string">v1</span></span><br><span class="line"> <span class="attr">k2:</span> <span class="string">v2</span></span><br><span class="line"> <span class="attr">k3:</span> <span class="string">v3</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>数组:一组按次序排列的值。array、list、queue</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="string">行内写法:</span> <span class="attr">k:</span> [<span class="string">v1</span>,<span class="string">v2</span>,<span class="string">v3</span>]</span><br><span class="line"><span class="comment">#或者</span></span><br><span class="line"><span class="attr">k:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">v1</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">v2</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">v3</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="1-2-4、示例"><a href="#1-2-4、示例" class="headerlink" title="1.2.4、示例"></a>1.2.4、示例</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@ConfigurationProperties(prefix="person")</span><span class="comment">//和以person开头的配置文件绑定</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Person</span> {</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">private</span> String userName;</span><br><span class="line"> <span class="keyword">private</span> Boolean boss;</span><br><span class="line"> <span class="keyword">private</span> Date birth;</span><br><span class="line"> <span class="keyword">private</span> Integer age;</span><br><span class="line"> <span class="keyword">private</span> Pet pet;</span><br><span class="line"> <span class="keyword">private</span> String[] interests;</span><br><span class="line"> <span class="keyword">private</span> List<String> animal;</span><br><span class="line"> <span class="keyword">private</span> Map<String, Object> score;</span><br><span class="line"> <span class="keyword">private</span> Set<Double> salarys;</span><br><span class="line"> <span class="keyword">private</span> Map<String, List<Pet>> allPets;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Pet</span> {</span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="keyword">private</span> Double weight;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># yaml表示以上对象</span></span><br><span class="line"><span class="attr">person:</span></span><br><span class="line"><span class="comment"># 单引号会将 \n作为字符串输出 双引号会将\n 作为换行输出</span></span><br><span class="line"><span class="comment"># 双引号不会转义,单引号会转义</span></span><br><span class="line"> <span class="attr">userName:</span> <span class="string">zhangsan</span></span><br><span class="line"> <span class="attr">boss:</span> <span class="literal">false</span></span><br><span class="line"> <span class="attr">birth:</span> <span class="number">2019</span><span class="string">/12/12</span> <span class="number">20</span><span class="string">:12:33</span></span><br><span class="line"> <span class="attr">age:</span> <span class="number">18</span></span><br><span class="line"> <span class="attr">pet:</span> </span><br><span class="line"> <span class="attr">name:</span> <span class="string">tomcat</span></span><br><span class="line"> <span class="attr">weight:</span> <span class="number">23.4</span></span><br><span class="line"> <span class="attr">interests:</span> [<span class="string">篮球</span>,<span class="string">游泳</span>]</span><br><span class="line"> <span class="attr">animal:</span> </span><br><span class="line"> <span class="bullet">-</span> <span class="string">jerry</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">mario</span></span><br><span class="line"> <span class="attr">score:</span></span><br><span class="line"> <span class="attr">english:</span> </span><br><span class="line"> <span class="attr">first:</span> <span class="number">30</span></span><br><span class="line"> <span class="attr">second:</span> <span class="number">40</span></span><br><span class="line"> <span class="attr">third:</span> <span class="number">50</span></span><br><span class="line"> <span class="attr">math:</span> [<span class="number">131</span>,<span class="number">140</span>,<span class="number">148</span>]</span><br><span class="line"> <span class="attr">chinese:</span> {<span class="attr">first:</span> <span class="number">128</span>,<span class="attr">second:</span> <span class="number">136</span>}</span><br><span class="line"> <span class="attr">salarys:</span> [<span class="number">3999</span>,<span class="number">4999.98</span>,<span class="number">5999.99</span>]</span><br><span class="line"> <span class="attr">allPets:</span></span><br><span class="line"> <span class="attr">sick:</span></span><br><span class="line"> <span class="bullet">-</span> {<span class="attr">name:</span> <span class="string">tom</span>}</span><br><span class="line"> <span class="bullet">-</span> {<span class="attr">name:</span> <span class="string">jerry</span>,<span class="attr">weight:</span> <span class="number">47</span>}</span><br><span class="line"> <span class="attr">health:</span> [{<span class="attr">name:</span> <span class="string">mario</span>,<span class="attr">weight:</span> <span class="number">47</span>}]</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2、配置提示"><a href="#2、配置提示" class="headerlink" title="2、配置提示"></a>2、配置提示</h3><p>自定义的类和配置文件绑定一般没有提示</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-configuration-processor<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"></span><br><span class="line"><span class="comment"><!--打包的时候去除这个配置提示器--></span></span><br><span class="line"><span class="tag"><<span class="name">build</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">plugins</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">plugin</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-maven-plugin<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">configuration</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">excludes</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclude</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-configuration-processor<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclude</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">excludes</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">configuration</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">plugin</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">plugins</span>></span></span><br><span class="line"><span class="tag"></<span class="name">build</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="二-Web开发"><a href="#二-Web开发" class="headerlink" title="二.Web开发"></a>二.Web开发</h2><p><img src="/pictures/image-20230803134143859.png" alt="image-20230803134143859"></p>
|
||
<h3 id="1-简单的功能分析"><a href="#1-简单的功能分析" class="headerlink" title="1.简单的功能分析"></a>1.简单的功能分析</h3><h4 id="1-1-静态资源访问"><a href="#1-1-静态资源访问" class="headerlink" title="1.1 静态资源访问"></a>1.1 静态资源访问</h4><h5 id="1-静态资源目录"><a href="#1-静态资源目录" class="headerlink" title="1.静态资源目录"></a>1.静态资源目录</h5><p>只要静态资源放在类路径下: <code>/static</code> (or <code>/public</code> or <code>/resources</code> or <code>/META-INF/resources</code></p>
|
||
<p>访问 : 当前项目根路径/ + 静态资源名 </p>
|
||
<p>原理: 静态映射/**</p>
|
||
<p>请求进来,先去找Controller看能不能处理,不能处理的所有请求又都交给<strong>静态资源处理器</strong>,静态资源也找不到则响应<strong>404页面</strong></p>
|
||
<p><strong>改变默认的静态资源路径</strong></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">resources:</span></span><br><span class="line"> <span class="attr">static-locations:</span> [<span class="string">classpath:/haha/</span>] <span class="comment">#静态资源的目录</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="2-静态资源访问前缀"><a href="#2-静态资源访问前缀" class="headerlink" title="2.静态资源访问前缀"></a>2.静态资源访问前缀</h5><p>默认无前缀</p>
|
||
<p>默认的访问路径: <code>localhost:8080/xxx.png</code></p>
|
||
<p>设置访问前缀之后: <code>localhost:8080/res/xxx.png</code> (文件在目录中的位置没有改变,只是访问的时候加上了res这一层路径)</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">mvc:</span></span><br><span class="line"> <span class="attr">static-path-pattern:</span> <span class="string">/res/**</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>当前项目 + static-path-pattern + 静态资源名 = 静态资源文件夹下找</p>
|
||
<h5 id="3-webjar"><a href="#3-webjar" class="headerlink" title="3.webjar"></a>3.webjar</h5><p>自动映射 /<a href="http://localhost:8080/webjars/jquery/3.5.1/jquery.js">webjars</a>/**</p>
|
||
<p><a href="https://www.webjars.org/">https://www.webjars.org/</a></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.webjars<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jquery<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.5.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>访问地址:<a href="http://localhost:8080/webjars/jquery/3.5.1/jquery.js">http://localhost:8080/webjars/jquery/3.5.1/jquery.js</a> 后面地址要按照依赖里面的包路径</p>
|
||
<h4 id="1-2-欢迎页支持"><a href="#1-2-欢迎页支持" class="headerlink" title="1.2 欢迎页支持"></a>1.2 欢迎页支持</h4><ul>
|
||
<li><p>静态资源路径下 index.html</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>可以配置静态资源路径</li>
|
||
<li>但是不可以配置静态资源的访问前缀。否则导致 index.html不能被默认访问</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"><span class="comment"># mvc:</span></span><br><span class="line"><span class="comment"># static-path-pattern: /res/** 这个会导致welcome page功能失效</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">resources:</span></span><br><span class="line"> <span class="attr">static-locations:</span> [<span class="string">classpath:/haha/</span>]</span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>controller能处理/index</li>
|
||
</ul>
|
||
<h4 id="1-3-自定义-Favicon"><a href="#1-3-自定义-Favicon" class="headerlink" title="1.3 自定义 Favicon"></a>1.3 自定义 <code>Favicon</code></h4><p>favicon.ico 放在静态资源目录下即可(名称为favicon.ico)</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"><span class="comment"># mvc:</span></span><br><span class="line"><span class="comment"># static-path-pattern: /res/** 这个会导致 Favicon 功能失效</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-4-静态资源配置原理"><a href="#1-4-静态资源配置原理" class="headerlink" title="1.4 静态资源配置原理"></a>1.4 静态资源配置原理</h4><p><strong>1.SpringMvc的自动配置类WebMvcAutoConfiguration</strong></p>
|
||
<p><img src="/pictures/image-20230803165113057.png" alt="image-20230803165113057"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="meta">@ConditionalOnWebApplication(type = Type.SERVLET)</span></span><br><span class="line"><span class="meta">@ConditionalOnClass({ Servlet.class, DispatcherServlet.class, WebMvcConfigurer.class })</span></span><br><span class="line"><span class="meta">@ConditionalOnMissingBean(WebMvcConfigurationSupport.class)</span></span><br><span class="line"><span class="meta">@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE + 10)</span></span><br><span class="line"><span class="meta">@AutoConfigureAfter({ DispatcherServletAutoConfiguration.class, TaskExecutionAutoConfiguration.class,</span></span><br><span class="line"><span class="meta"> ValidationAutoConfiguration.class })</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WebMvcAutoConfiguration</span> {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.SpringMvc给容器中配置的组件</strong></p>
|
||
<p><img src="/pictures/image-20230803180257123.png" alt="image-20230803180257123"></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="meta">@Import(EnableWebMvcConfiguration.class)</span></span><br><span class="line"><span class="meta">@EnableConfigurationProperties({ WebMvcProperties.class, ResourceProperties.class })</span></span><br><span class="line"><span class="meta">@Order(0)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">WebMvcAutoConfigurationAdapter</span> <span class="keyword">implements</span> <span class="title class_">WebMvcConfigurer</span> {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.绑定的配置</strong></p>
|
||
<p><strong>@EnableConfigurationProperties({ WebMvcProperties.class, ResourceProperties.class })</strong></p>
|
||
<p>WebMvcProperties.class</p>
|
||
<p><img src="/pictures/image-20230803180600438.png" alt="image-20230803180600438"></p>
|
||
<p>ResourceProperties.class </p>
|
||
<p><img src="/pictures/image-20230803180633611.png" alt="image-20230803180633611"></p>
|
||
<h3 id="2-请求参数处理与数据响应"><a href="#2-请求参数处理与数据响应" class="headerlink" title="2.请求参数处理与数据响应"></a>2.请求参数处理与数据响应</h3><h4 id="2-1、请求映射"><a href="#2-1、请求映射" class="headerlink" title="2.1、请求映射"></a>2.1、请求映射</h4><h5 id="1、rest使用与原理"><a href="#1、rest使用与原理" class="headerlink" title="1、rest使用与原理"></a>1、rest使用与原理</h5><ul>
|
||
<li><p>@xxxMapping;</p>
|
||
</li>
|
||
<li><p>Rest风格支持(<em>使用<strong>HTTP</strong>请求方式动词来表示对资源的操作</em>)</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>以前:/getUser 获取用户 /deleteUser 删除用户 /editUser 修改用户 /saveUser 保存用户</li>
|
||
<li>现在: /user GET-获取用户 DELETE-删除用户 PUT-修改用户 POST-保存用户</li>
|
||
<li>核心Filter;HiddenHttpMethodFilter</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>用法: 表单method=post,隐藏域 _method=put</li>
|
||
<li>SpringBoot中手动开启</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment">#开启使用rest风格的注解</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">mvc:</span></span><br><span class="line"> <span class="attr">hiddenmethod:</span></span><br><span class="line"> <span class="attr">filter:</span></span><br><span class="line"> <span class="attr">enabled:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--发送put或者delete请求--></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/user"</span> <span class="attr">method</span>=<span class="string">"post"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_method"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"delete"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_m"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"delete"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">value</span>=<span class="string">"REST-DELETE 提交"</span> <span class="attr">type</span>=<span class="string">"submit"</span>/></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/user"</span> <span class="attr">method</span>=<span class="string">"post"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_method"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"PUT"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">value</span>=<span class="string">"REST-PUT 提交"</span> <span class="attr">type</span>=<span class="string">"submit"</span>/></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br></pre></td></tr></table></figure></li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li>扩展:如何把_method 这个名字换成我们自己喜欢的。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@RequestMapping(value = "/user",method = RequestMethod.GET)</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">getUser</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"GET-张三"</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@RequestMapping(value = "/user",method = RequestMethod.POST)</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">saveUser</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"POST-张三"</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@RequestMapping(value = "/user",method = RequestMethod.PUT)</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">putUser</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"PUT-张三"</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@RequestMapping(value = "/user",method = RequestMethod.DELETE)</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">deleteUser</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"DELETE-张三"</span>;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">//自定义filter</span></span><br><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="keyword">public</span> HiddenHttpMethodFilter <span class="title function_">hiddenHttpMethodFilter</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">HiddenHttpMethodFilter</span> <span class="variable">methodFilter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HiddenHttpMethodFilter</span>();</span><br><span class="line"> methodFilter.setMethodParam(<span class="string">"_m"</span>);</span><br><span class="line"> <span class="keyword">return</span> methodFilter;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>Rest原理(表单提交要使用REST的时候)</p>
|
||
<ul>
|
||
<li><p>表单提交会带上_method=PUT</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--发送put或者delete请求--></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/user"</span> <span class="attr">method</span>=<span class="string">"post"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_method"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"delete"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_m"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"delete"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">value</span>=<span class="string">"REST-DELETE 提交"</span> <span class="attr">type</span>=<span class="string">"submit"</span>/></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">action</span>=<span class="string">"/user"</span> <span class="attr">method</span>=<span class="string">"post"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">name</span>=<span class="string">"_method"</span> <span class="attr">type</span>=<span class="string">"hidden"</span> <span class="attr">value</span>=<span class="string">"PUT"</span>/></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">value</span>=<span class="string">"REST-PUT 提交"</span> <span class="attr">type</span>=<span class="string">"submit"</span>/></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>请求过来被HiddenHttpMethodFilter拦截</p>
|
||
<p>WebMvcAutoConfiguration</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="meta">@ConditionalOnMissingBean(HiddenHttpMethodFilter.class)</span></span><br><span class="line"><span class="meta">@ConditionalOnProperty(prefix = "spring.mvc.hiddenmethod.filter", name = "enabled", matchIfMissing = false)</span></span><br><span class="line"><span class="keyword">public</span> OrderedHiddenHttpMethodFilter <span class="title function_">hiddenHttpMethodFilter</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">OrderedHiddenHttpMethodFilter</span>();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><ul>
|
||
<li>请求是否正常,并且是POST</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li><p>获取到_method的值。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">protected</span> <span class="keyword">void</span> <span class="title function_">doFilterInternal</span><span class="params">(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)</span></span><br><span class="line"> <span class="keyword">throws</span> ServletException, IOException {</span><br><span class="line"></span><br><span class="line"> <span class="type">HttpServletRequest</span> <span class="variable">requestToUse</span> <span class="operator">=</span> request;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (<span class="string">"POST"</span>.equals(request.getMethod()) && request.getAttribute(WebUtils.ERROR_EXCEPTION_ATTRIBUTE) == <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">paramValue</span> <span class="operator">=</span> request.getParameter(<span class="built_in">this</span>.methodParam);</span><br><span class="line"> <span class="keyword">if</span> (StringUtils.hasLength(paramValue)) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">method</span> <span class="operator">=</span> paramValue.toUpperCase(Locale.ENGLISH);</span><br><span class="line"> <span class="keyword">if</span> (ALLOWED_METHODS.contains(method)) {</span><br><span class="line"> requestToUse = <span class="keyword">new</span> <span class="title class_">HttpMethodRequestWrapper</span>(request, method);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> filterChain.doFilter(requestToUse, response);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>兼容以下请求;PUT.DELETE.PATCH</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> List<String> ALLOWED_METHODS =</span><br><span class="line"> Collections.unmodifiableList(Arrays.asList(HttpMethod.PUT.name(),</span><br><span class="line"> HttpMethod.DELETE.name(), HttpMethod.PATCH.name()));</span><br></pre></td></tr></table></figure>
|
||
</li>
|
||
<li><p>原生request(post),包装模式requesWrapper重写了getMethod方法,返回的是传入的值</p>
|
||
</li>
|
||
<li><p>过滤器链放行的时候用wrapper,以后的方法调用getMethod是调用requesWrapper的</p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<p><strong>Tips</strong>:</p>
|
||
<p>Rest使用客户端工具:如PostMan直接发送put、delete等方式请求,无需Filter,不需要转换</p>
|
||
<p><strong>扩展点:</strong></p>
|
||
<p>如何将<code><input name="_method" type="hidden" value="delete"/></code>中的name值_method改为自定义的值?</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span> <span class="comment">//组件中没有依赖关系,设置成false直接放</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WebConfig</span>{</span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> HiddenHttpMethodFilter <span class="title function_">hiddenHttpMethodFilter</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">HiddenHttpMethodFilter</span> <span class="variable">methodFilter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HiddenHttpMethodFilter</span>();</span><br><span class="line"> methodFilter.setMethodParam(<span class="string">"_m"</span>); <span class="comment">//将name="_method"改成name="_m"</span></span><br><span class="line"> <span class="keyword">return</span> methodFilter;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="2、请求映射原理"><a href="#2、请求映射原理" class="headerlink" title="2、请求映射原理"></a>2、请求映射原理</h5><p><strong>DispatcherServlet 继承 FrameworkServlet</strong> </p>
|
||
<p><strong>FrameworkServlet 继承 HttpServletBean</strong></p>
|
||
<p><strong>FrameworkServlet 重写了doGet和doPost方法</strong></p>
|
||
<p><img src="/pictures/image-20230809133846464.png" alt="image-20230809133846464"></p>
|
||
<p><strong>DispatcherServlet的doDispatch方法</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">protected</span> <span class="keyword">void</span> <span class="title function_">doDispatch</span><span class="params">(HttpServletRequest request, HttpServletResponse response)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="type">HttpServletRequest</span> <span class="variable">processedRequest</span> <span class="operator">=</span> request;</span><br><span class="line"> <span class="type">HandlerExecutionChain</span> <span class="variable">mappedHandler</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">multipartRequestParsed</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">WebAsyncManager</span> <span class="variable">asyncManager</span> <span class="operator">=</span> WebAsyncUtils.getAsyncManager(request);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">ModelAndView</span> <span class="variable">mv</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">Exception</span> <span class="variable">dispatchException</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> processedRequest = checkMultipart(request);</span><br><span class="line"> multipartRequestParsed = (processedRequest != request);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Determine handler for the current request.</span></span><br><span class="line"> <span class="comment">//找到请求使用那个hander(contrller)处理</span></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * getHandler()方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> mappedHandler = getHandler(processedRequest);</span><br><span class="line"> <span class="keyword">if</span> (mappedHandler == <span class="literal">null</span>) {</span><br><span class="line"> noHandlerFound(processedRequest, response);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Determine handler adapter for the current request.</span></span><br><span class="line"> <span class="type">HandlerAdapter</span> <span class="variable">ha</span> <span class="operator">=</span> getHandlerAdapter(mappedHandler.getHandler());</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Process last-modified header, if supported by the handler.</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">method</span> <span class="operator">=</span> request.getMethod();</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isGet</span> <span class="operator">=</span> <span class="string">"GET"</span>.equals(method);</span><br><span class="line"> <span class="keyword">if</span> (isGet || <span class="string">"HEAD"</span>.equals(method)) {</span><br><span class="line"> <span class="type">long</span> <span class="variable">lastModified</span> <span class="operator">=</span> ha.getLastModified(request, mappedHandler.getHandler());</span><br><span class="line"> <span class="keyword">if</span> (<span class="keyword">new</span> <span class="title class_">ServletWebRequest</span>(request, response).checkNotModified(lastModified) && isGet) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (!mappedHandler.applyPreHandle(processedRequest, response)) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Actually invoke the handler.</span></span><br><span class="line"> mv = ha.handle(processedRequest, response, mappedHandler.getHandler());</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (asyncManager.isConcurrentHandlingStarted()) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> applyDefaultViewName(processedRequest, mv);</span><br><span class="line"> mappedHandler.applyPostHandle(processedRequest, response, mv);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> dispatchException = ex;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Throwable err) {</span><br><span class="line"> <span class="comment">// As of 4.3, we're processing Errors thrown from handler methods as well,</span></span><br><span class="line"> <span class="comment">// making them available for @ExceptionHandler methods and other scenarios.</span></span><br><span class="line"> dispatchException = <span class="keyword">new</span> <span class="title class_">NestedServletException</span>(<span class="string">"Handler dispatch failed"</span>, err);</span><br><span class="line"> }</span><br><span class="line"> processDispatchResult(processedRequest, response, mappedHandler, mv, dispatchException);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> triggerAfterCompletion(processedRequest, response, mappedHandler, ex);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Throwable err) {</span><br><span class="line"> triggerAfterCompletion(processedRequest, response, mappedHandler,</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">NestedServletException</span>(<span class="string">"Handler processing failed"</span>, err));</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (asyncManager.isConcurrentHandlingStarted()) {</span><br><span class="line"> <span class="comment">// Instead of postHandle and afterCompletion</span></span><br><span class="line"> <span class="keyword">if</span> (mappedHandler != <span class="literal">null</span>) {</span><br><span class="line"> mappedHandler.applyAfterConcurrentHandlingStarted(processedRequest, response);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// Clean up any resources used by a multipart request.</span></span><br><span class="line"> <span class="keyword">if</span> (multipartRequestParsed) {</span><br><span class="line"> cleanupMultipart(processedRequest);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>getHandler()方法</strong> 遍历查找可以处理请求的方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Nullable</span></span><br><span class="line"><span class="keyword">protected</span> HandlerExecutionChain <span class="title function_">getHandler</span><span class="params">(HttpServletRequest request)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.handlerMappings != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">for</span> (HandlerMapping mapping : <span class="built_in">this</span>.handlerMappings) {</span><br><span class="line"> <span class="type">HandlerExecutionChain</span> <span class="variable">handler</span> <span class="operator">=</span> mapping.getHandler(request);</span><br><span class="line"> <span class="keyword">if</span> (handler != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">return</span> handler;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>**HandlerMapping ** 处理器映射</p>
|
||
<p>默认有5个HandlerMapping</p>
|
||
<p><img src="/pictures/image-20230809150915450.png" alt="image-20230809150915450"></p>
|
||
<p><strong>RequestMappingHandlerMapping</strong>:保存了所有@RequestMapping 和handler的映射规则</p>
|
||
<p><img src="/pictures/image-20230809151427867.png" alt="image-20230809151427867"></p>
|
||
<p>所有的请求映射都在HandlerMapping中</p>
|
||
<ul>
|
||
<li><p>SpringBoot自动配置欢迎页的 WelcomePageHandlerMapping 访问 /能访问到index.html;</p>
|
||
</li>
|
||
<li><p>SpringBoot自动配置了默认的 RequestMappingHandlerMapping</p>
|
||
</li>
|
||
<li><p>请求进来,挨个尝试所有的HandlerMapping看是否有请求信息</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>如果有就找到这个请求对应的handler</li>
|
||
<li>如果没有就是下一个 HandlerMapping</li>
|
||
</ul>
|
||
</li>
|
||
<li><p>我们需要一些自定义的映射处理,我们也可以自己给容器中放<strong>HandlerMapping</strong> 自定义 <strong>HandlerMapping</strong></p>
|
||
</li>
|
||
</ul>
|
||
<h4 id="2-2、普通参数与基本注解"><a href="#2-2、普通参数与基本注解" class="headerlink" title="2.2、普通参数与基本注解"></a>2.2、普通参数与基本注解</h4><h5 id="1-注解"><a href="#1-注解" class="headerlink" title="1.注解"></a>1.注解</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@PathVariable</span> <span class="comment">//获取路径中的参数信息(restful风格)</span></span><br><span class="line"><span class="meta">@RequestHeader</span> <span class="comment">//获取请求头的信息</span></span><br><span class="line"><span class="meta">@RequestAttribute</span> <span class="comment">//获取请求域中的数据</span></span><br><span class="line"><span class="meta">@RequestParam</span> <span class="comment">//获取路径中拼接的请求参数(/info?age=12&name=lisi)</span></span><br><span class="line"><span class="meta">@MatrixVariable</span> <span class="comment">//矩阵变量 /cars/sell;low=34;brand=byd,audi,yd </span></span><br><span class="line"><span class="meta">@CookieValue</span> <span class="comment">//获取cookie的值</span></span><br><span class="line"><span class="meta">@RequestBody</span> <span class="comment">//获取请求体的值(Post请求)</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>@PathVariable</strong></p>
|
||
<p>接受路径中的参数也可以使用map集合接受,但是map集合必须是Map<String, String>的形式</p>
|
||
<p><img src="/pictures/image-20230809155753715.png" alt="image-20230809155753715"></p>
|
||
<p><strong>@RequestHeader</strong></p>
|
||
<p>获取指定的请求头或者所有的请求头信息</p>
|
||
<p><img src="/pictures/image-20230809160406516.png" alt="image-20230809160406516"></p>
|
||
<p><img src="/pictures/image-20230809160846527.png" alt="image-20230809160846527"></p>
|
||
<p><strong>@RequestParam</strong></p>
|
||
<p>可以使用map接受所有的请求参数</p>
|
||
<p><img src="/pictures/image-20230809161533834.png" alt="image-20230809161533834"></p>
|
||
<p><strong>@CookieValue</strong></p>
|
||
<p>获取cookie的值,可以直接获取字符串的值也可以封装成cookie的对象</p>
|
||
<p><img src="/pictures/image-20230809164101374.png" alt="image-20230809164101374"></p>
|
||
<p><strong>@RequestBody</strong></p>
|
||
<p>这里用一个字符串接收表单数据和平时使用的不一样,开发中使用一个对象接受表单的数据</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * ·<span class="doctag">@RequestBody</span>注解</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostMapping("/save")</span></span><br><span class="line"><span class="keyword">public</span> Map <span class="title function_">postMethod</span><span class="params">(<span class="meta">@RequestBody</span> String content)</span>{</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"content"</span>,content);</span><br><span class="line"> <span class="keyword">return</span> map;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230809165149278.png" alt="image-20230809165149278"></p>
|
||
<p><strong>@RequestAttribute</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Controller;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.GetMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestAttribute;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ResponseBody;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/11</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">RequestController</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@GetMapping("/goto")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">goToPage</span><span class="params">(HttpServletRequest request)</span>{</span><br><span class="line"></span><br><span class="line"> request.setAttribute(<span class="string">"msg"</span>,<span class="string">"获取请求域中的数据成功"</span>);</span><br><span class="line"> request.setAttribute(<span class="string">"code"</span>,<span class="number">200</span>);</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"forward:/success"</span>; <span class="comment">//转发到下面的/success请求</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="meta">@GetMapping("/success")</span></span><br><span class="line"> <span class="keyword">public</span> Map <span class="title function_">success</span><span class="params">(<span class="meta">@RequestAttribute(value = "msg",required = false)</span> String msg,</span></span><br><span class="line"><span class="params"> <span class="meta">@RequestAttribute(value = "code",required = false)</span>Integer code,//通过注解的方式获取上面请求域的值</span></span><br><span class="line"><span class="params"> HttpServletRequest request)</span>{<span class="comment">//通过原生的request获取</span></span><br><span class="line"> <span class="comment">//Object msg1 = request.getAttribute("msg");</span></span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"msg"</span>,msg);</span><br><span class="line"> map.put(<span class="string">"code"</span>,code);</span><br><span class="line"> <span class="keyword">return</span> map;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230811092618793.png" alt="image-20230811092618793"></p>
|
||
<p><strong>@MatrixVariable</strong></p>
|
||
<p>开启SpringBoot的矩阵变量功能</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Bean</span></span><br><span class="line"><span class="keyword">public</span> WebMvcConfigurer <span class="title function_">webMvcConfigurer</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">WebMvcConfigurer</span>() {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">configurePathMatch</span><span class="params">(PathMatchConfigurer configurer)</span> {</span><br><span class="line"> <span class="type">UrlPathHelper</span> <span class="variable">urlPathHelper</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UrlPathHelper</span>();</span><br><span class="line"> <span class="comment">// 不移除 后面的内容 矩阵变量功能就可以生效</span></span><br><span class="line"> urlPathHelper.setRemoveSemicolonContent(<span class="literal">false</span>);</span><br><span class="line"> configurer.setUrlPathHelper(urlPathHelper);</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//1、语法: 请求路径:/cars/sell;low=34;brand=byd,audi,yd</span></span><br><span class="line"><span class="comment">//2、SpringBoot默认是禁用了矩阵变量的功能</span></span><br><span class="line"><span class="comment">// 手动开启:原理。对于路径的处理。UrlPathHelper进行解析。</span></span><br><span class="line"><span class="comment">// removeSemicolonContent(移除分号内容)支持矩阵变量的</span></span><br><span class="line"><span class="comment">//3、矩阵变量必须有url路径变量才能被解析</span></span><br><span class="line"><span class="meta">@GetMapping("/cars/{path}")</span></span><br><span class="line"><span class="keyword">public</span> Map <span class="title function_">carsSell</span><span class="params">(<span class="meta">@MatrixVariable("low")</span> Integer low,</span></span><br><span class="line"><span class="params"> <span class="meta">@MatrixVariable("brand")</span> List<String> brand,</span></span><br><span class="line"><span class="params"> <span class="meta">@PathVariable("path")</span> String path)</span>{</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"></span><br><span class="line"> map.put(<span class="string">"low"</span>,low);</span><br><span class="line"> map.put(<span class="string">"brand"</span>,brand);</span><br><span class="line"> map.put(<span class="string">"path"</span>,path);</span><br><span class="line"> <span class="keyword">return</span> map;</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">// /boss/1;age=20/2;age=10</span></span><br><span class="line"><span class="meta">@GetMapping("/boss/{bossId}/{empId}")</span></span><br><span class="line"><span class="keyword">public</span> Map <span class="title function_">boss</span><span class="params">(<span class="meta">@MatrixVariable(value = "age",pathVar = "bossId")</span> Integer bossAge,</span></span><br><span class="line"><span class="params"> <span class="meta">@MatrixVariable(value = "age",pathVar = "empId")</span> Integer empAge)</span>{</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> map.put(<span class="string">"bossAge"</span>,bossAge);</span><br><span class="line"> map.put(<span class="string">"empAge"</span>,empAge);</span><br><span class="line"> <span class="keyword">return</span> map;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230811095858532.png" alt="image-20230811095858532"></p>
|
||
<p><img src="/pictures/image-20230811095834803.png" alt="image-20230811095834803"></p>
|
||
<h5 id="2-Servlet-API"><a href="#2-Servlet-API" class="headerlink" title="2.Servlet API"></a>2.Servlet API</h5><p>WebRequest、ServletRequest、MultipartRequest、 HttpSession、javax.servlet.http.PushBuilder、Principal、InputStream、Reader、HttpMethod、Locale、TimeZone、ZoneId</p>
|
||
<p>ServletRequestMethodArgumentResolver 以上的部分参数</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">supportsParameter</span><span class="params">(MethodParameter parameter)</span> {</span><br><span class="line"> Class<?> paramType = parameter.getParameterType();</span><br><span class="line"> <span class="keyword">return</span> (WebRequest.class.isAssignableFrom(paramType) ||</span><br><span class="line"> ServletRequest.class.isAssignableFrom(paramType) ||</span><br><span class="line"> MultipartRequest.class.isAssignableFrom(paramType) ||</span><br><span class="line"> HttpSession.class.isAssignableFrom(paramType) ||</span><br><span class="line"> (pushBuilder != <span class="literal">null</span> && pushBuilder.isAssignableFrom(paramType)) ||</span><br><span class="line"> Principal.class.isAssignableFrom(paramType) ||</span><br><span class="line"> InputStream.class.isAssignableFrom(paramType) ||</span><br><span class="line"> Reader.class.isAssignableFrom(paramType) ||</span><br><span class="line"> HttpMethod.class == paramType ||</span><br><span class="line"> Locale.class == paramType ||</span><br><span class="line"> TimeZone.class == paramType ||</span><br><span class="line"> ZoneId.class == paramType);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="3-复杂参数:"><a href="#3-复杂参数:" class="headerlink" title="3.复杂参数:"></a>3.复杂参数:</h5><p>Map、Model(map、model里面的数据会被放在request的请求域 request.setAttribute)、Errors/BindingResult、RedirectAttributes( 重定向携带数据)、ServletResponse(response)、SessionStatus、UriComponentsBuilder、ServletUriComponentsBuilder</p>
|
||
<p>向请求域中共享数据</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * ra数据通过 map model HttpServletRequest HttpServletResponse 等方式共享到请求域中,在success页面中取出来</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@GetMapping("/params")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">testParam</span><span class="params">(Map<String,Object> map,</span></span><br><span class="line"><span class="params"> Model model,</span></span><br><span class="line"><span class="params"> HttpServletRequest request,</span></span><br><span class="line"><span class="params"> HttpServletResponse response)</span>{</span><br><span class="line"> map.put(<span class="string">"hello"</span>,<span class="string">"world666"</span>);</span><br><span class="line"> model.addAttribute(<span class="string">"world"</span>,<span class="string">"hello666"</span>);</span><br><span class="line"> request.setAttribute(<span class="string">"message"</span>,<span class="string">"HelloWorld"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="type">Cookie</span> <span class="variable">cookie</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Cookie</span>(<span class="string">"c1"</span>,<span class="string">"v1"</span>);</span><br><span class="line"> response.addCookie(cookie);</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"forward:/success"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h5 id="4-自定义对象参数"><a href="#4-自定义对象参数" class="headerlink" title="4.自定义对象参数"></a>4.自定义对象参数</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 姓名: <input name="userName"/> <br/></span></span><br><span class="line"><span class="comment"> * 年龄: <input name="age"/> <br/></span></span><br><span class="line"><span class="comment"> * 生日: <input name="birth"/> <br/></span></span><br><span class="line"><span class="comment"> * 宠物姓名:<input name="pet.name"/><br/></span></span><br><span class="line"><span class="comment"> * 宠物年龄:<input name="pet.age"/></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Person</span> {</span><br><span class="line"> </span><br><span class="line"> <span class="keyword">private</span> String userName;</span><br><span class="line"> <span class="keyword">private</span> Integer age;</span><br><span class="line"> <span class="keyword">private</span> Date birth;</span><br><span class="line"> <span class="keyword">private</span> Pet pet;</span><br><span class="line"> </span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Pet</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="keyword">private</span> String age;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>页面测试代码</strong></p>
|
||
<p>index.html</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><!DOCTYPE html></span><br><span class="line"><html lang=<span class="string">"en"</span>></span><br><span class="line"><head></span><br><span class="line"> <meta charset=<span class="string">"UTF-8"</span>></span><br><span class="line"> <title>Title</title></span><br><span class="line"></head></span><br><span class="line"><body></span><br><span class="line"><h1>atguigu,欢迎您</h1></span><br><span class="line">测试REST风格;</span><br><span class="line"><form action=<span class="string">"/user"</span> method=<span class="string">"get"</span>></span><br><span class="line"> <input value=<span class="string">"REST-GET 提交"</span> type=<span class="string">"submit"</span>/></span><br><span class="line"></form></span><br><span class="line"><form action=<span class="string">"/user"</span> method=<span class="string">"post"</span>></span><br><span class="line"> <input value=<span class="string">"REST-POST 提交"</span> type=<span class="string">"submit"</span>/></span><br><span class="line"></form></span><br><span class="line"><form action=<span class="string">"/user"</span> method=<span class="string">"post"</span>></span><br><span class="line"> <input name=<span class="string">"_method"</span> type=<span class="string">"hidden"</span> value=<span class="string">"delete"</span>/></span><br><span class="line"> <input name=<span class="string">"_m"</span> type=<span class="string">"hidden"</span> value=<span class="string">"delete"</span>/></span><br><span class="line"> <input value=<span class="string">"REST-DELETE 提交"</span> type=<span class="string">"submit"</span>/></span><br><span class="line"></form></span><br><span class="line"><form action=<span class="string">"/user"</span> method=<span class="string">"post"</span>></span><br><span class="line"> <input name=<span class="string">"_method"</span> type=<span class="string">"hidden"</span> value=<span class="string">"PUT"</span>/></span><br><span class="line"> <input value=<span class="string">"REST-PUT 提交"</span> type=<span class="string">"submit"</span>/></span><br><span class="line"></form></span><br><span class="line"><hr/></span><br><span class="line">测试基本注解:</span><br><span class="line"><ul></span><br><span class="line"> <a href=<span class="string">"car/3/owner/lisi?age=18&inters=basketball&inters=game"</span>>car/{id}/owner/{username}</a></span><br><span class="line"> <li><span class="meta">@PathVariable</span>(路径变量)</li></span><br><span class="line"> <li><span class="meta">@RequestHeader</span>(获取请求头)</li></span><br><span class="line"> <li><span class="meta">@RequestParam</span>(获取请求参数)</li></span><br><span class="line"> <li><span class="meta">@CookieValue</span>(获取cookie值)</li></span><br><span class="line"> <li><span class="meta">@RequestBody</span>(获取请求体[POST])</li></span><br><span class="line"></span><br><span class="line"> <li><span class="meta">@RequestAttribute</span>(获取request域属性)</li></span><br><span class="line"> <li><span class="meta">@MatrixVariable</span>(矩阵变量)</li></span><br><span class="line"></ul></span><br><span class="line"></span><br><span class="line">/cars/{path}?xxx=xxx&aaa=ccc queryString 查询字符串。<span class="meta">@RequestParam</span>;<br/></span><br><span class="line">/cars/sell;low=<span class="number">34</span>;brand=byd,audi,yd ;矩阵变量 <br/></span><br><span class="line">页面开发,cookie禁用了,session里面的内容怎么使用;</span><br><span class="line">session.set(a,b)---> jsessionid ---> cookie ----> 每次发请求携带。</span><br><span class="line">url重写:/abc;jsesssionid=xxxx 把cookie的值使用矩阵变量的方式进行传递.</span><br><span class="line"></span><br><span class="line">/boss/<span class="number">1</span>/<span class="number">2</span></span><br><span class="line"></span><br><span class="line">/boss/<span class="number">1</span>;age=<span class="number">20</span>/<span class="number">2</span>;age=<span class="number">20</span></span><br><span class="line"></span><br><span class="line"><a href=<span class="string">"/cars/sell;low=34;brand=byd,audi,yd"</span>><span class="meta">@MatrixVariable</span>(矩阵变量)</a></span><br><span class="line"><a href=<span class="string">"/cars/sell;low=34;brand=byd;brand=audi;brand=yd"</span>><span class="meta">@MatrixVariable</span>(矩阵变量)</a></span><br><span class="line"><a href=<span class="string">"/boss/1;age=20/2;age=10"</span>><span class="meta">@MatrixVariable</span>(矩阵变量)/boss/{bossId}/{empId}</a></span><br><span class="line"><br/></span><br><span class="line"><form action=<span class="string">"/save"</span> method=<span class="string">"post"</span>></span><br><span class="line"> 测试<span class="meta">@RequestBody</span>获取数据 <br/></span><br><span class="line"> 用户名:<input name=<span class="string">"userName"</span>/> <br></span><br><span class="line"> 邮箱:<input name=<span class="string">"email"</span>/></span><br><span class="line"> <input type=<span class="string">"submit"</span> value=<span class="string">"提交"</span>/></span><br><span class="line"></form></span><br><span class="line"><ol></span><br><span class="line"> <li>矩阵变量需要在SpringBoot中手动开启</li></span><br><span class="line"> <li>根据RFC3986的规范,矩阵变量应当绑定在路径变量中!</li></span><br><span class="line"> <li>若是有多个矩阵变量,应当使用英文符号;进行分隔。</li></span><br><span class="line"> <li>若是一个矩阵变量有多个值,应当使用英文符号,进行分隔,或之命名多个重复的key即可。</li></span><br><span class="line"> <li>如:/cars/sell;low=<span class="number">34</span>;brand=byd,audi,yd</li></span><br><span class="line"></ol></span><br><span class="line"><hr/></span><br><span class="line">测试原生API:</span><br><span class="line"><a href=<span class="string">"/testapi"</span>>测试原生API</a></span><br><span class="line"><hr/></span><br><span class="line">测试复杂类型:<hr/></span><br><span class="line">测试封装POJO;</span><br><span class="line"><form action=<span class="string">"/saveuser"</span> method=<span class="string">"post"</span>></span><br><span class="line"> 姓名: <input name=<span class="string">"userName"</span> value=<span class="string">"zhangsan"</span>/> <br/></span><br><span class="line"> 年龄: <input name=<span class="string">"age"</span> value=<span class="string">"18"</span>/> <br/></span><br><span class="line"> 生日: <input name=<span class="string">"birth"</span> value=<span class="string">"2019/12/10"</span>/> <br/></span><br><span class="line"><!-- 宠物姓名:<input name=<span class="string">"pet.name"</span> value=<span class="string">"阿猫"</span>/><br/>--></span><br><span class="line"><!-- 宠物年龄:<input name=<span class="string">"pet.age"</span> value=<span class="string">"5"</span>/>--></span><br><span class="line"> 宠物: <input name=<span class="string">"pet"</span> value=<span class="string">"小猫"</span>/></span><br><span class="line"> <input type=<span class="string">"submit"</span> value=<span class="string">"保存"</span>/></span><br><span class="line"></form></span><br><span class="line"><br></span><br><span class="line"></body></span><br><span class="line"></html></span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
<h4 id="2-3-参数处理原理"><a href="#2-3-参数处理原理" class="headerlink" title="2.3 参数处理原理"></a>2.3 参数处理原理</h4><p><strong>1.页面发送请求</strong></p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">http://localhost:8080/car/3/owner/lisi </span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.进入DispatcherServlet的doDispatch( )方法</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">protected</span> <span class="keyword">void</span> <span class="title function_">doDispatch</span><span class="params">(HttpServletRequest request, HttpServletResponse response)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="type">HttpServletRequest</span> <span class="variable">processedRequest</span> <span class="operator">=</span> request;</span><br><span class="line"> <span class="type">HandlerExecutionChain</span> <span class="variable">mappedHandler</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">multipartRequestParsed</span> <span class="operator">=</span> <span class="literal">false</span>;</span><br><span class="line"></span><br><span class="line"> <span class="type">WebAsyncManager</span> <span class="variable">asyncManager</span> <span class="operator">=</span> WebAsyncUtils.getAsyncManager(request);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">ModelAndView</span> <span class="variable">mv</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"> <span class="type">Exception</span> <span class="variable">dispatchException</span> <span class="operator">=</span> <span class="literal">null</span>;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> processedRequest = checkMultipart(request);</span><br><span class="line"> multipartRequestParsed = (processedRequest != request);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Determine handler for the current request.</span></span><br><span class="line"> mappedHandler = getHandler(processedRequest);</span><br><span class="line"> <span class="keyword">if</span> (mappedHandler == <span class="literal">null</span>) {</span><br><span class="line"> noHandlerFound(processedRequest, response);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Determine handler adapter for the current request.</span></span><br><span class="line"> <span class="type">HandlerAdapter</span> <span class="variable">ha</span> <span class="operator">=</span> getHandlerAdapter(mappedHandler.getHandler());</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Process last-modified header, if supported by the handler.</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">method</span> <span class="operator">=</span> request.getMethod();</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">isGet</span> <span class="operator">=</span> <span class="string">"GET"</span>.equals(method);</span><br><span class="line"> <span class="keyword">if</span> (isGet || <span class="string">"HEAD"</span>.equals(method)) {</span><br><span class="line"> <span class="type">long</span> <span class="variable">lastModified</span> <span class="operator">=</span> ha.getLastModified(request, mappedHandler.getHandler());</span><br><span class="line"> <span class="keyword">if</span> (<span class="keyword">new</span> <span class="title class_">ServletWebRequest</span>(request, response).checkNotModified(lastModified) && isGet) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (!mappedHandler.applyPreHandle(processedRequest, response)) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Actually invoke the handler.</span></span><br><span class="line"> mv = ha.handle(processedRequest, response, mappedHandler.getHandler());</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (asyncManager.isConcurrentHandlingStarted()) {</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> applyDefaultViewName(processedRequest, mv);</span><br><span class="line"> mappedHandler.applyPostHandle(processedRequest, response, mv);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> dispatchException = ex;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Throwable err) {</span><br><span class="line"> <span class="comment">// As of 4.3, we're processing Errors thrown from handler methods as well,</span></span><br><span class="line"> <span class="comment">// making them available for @ExceptionHandler methods and other scenarios.</span></span><br><span class="line"> dispatchException = <span class="keyword">new</span> <span class="title class_">NestedServletException</span>(<span class="string">"Handler dispatch failed"</span>, err);</span><br><span class="line"> }</span><br><span class="line"> processDispatchResult(processedRequest, response, mappedHandler, mv, dispatchException);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> triggerAfterCompletion(processedRequest, response, mappedHandler, ex);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Throwable err) {</span><br><span class="line"> triggerAfterCompletion(processedRequest, response, mappedHandler,</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">NestedServletException</span>(<span class="string">"Handler processing failed"</span>, err));</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">finally</span> {</span><br><span class="line"> <span class="keyword">if</span> (asyncManager.isConcurrentHandlingStarted()) {</span><br><span class="line"> <span class="comment">// Instead of postHandle and afterCompletion</span></span><br><span class="line"> <span class="keyword">if</span> (mappedHandler != <span class="literal">null</span>) {</span><br><span class="line"> mappedHandler.applyAfterConcurrentHandlingStarted(processedRequest, response);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// Clean up any resources used by a multipart request.</span></span><br><span class="line"> <span class="keyword">if</span> (multipartRequestParsed) {</span><br><span class="line"> cleanupMultipart(processedRequest);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.封装一个方法获取对应的处理器适配器</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//方法的调用</span></span><br><span class="line"><span class="type">HandlerAdapter</span> <span class="variable">ha</span> <span class="operator">=</span> getHandlerAdapter(mappedHandler.getHandler());</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>4.遍历所有的处理器适配器(一共有四种,如下图)找到支持的适配器</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">protected</span> HandlerAdapter <span class="title function_">getHandlerAdapter</span><span class="params">(Object handler)</span> <span class="keyword">throws</span> ServletException {</span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.handlerAdapters != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">for</span> (HandlerAdapter adapter : <span class="built_in">this</span>.handlerAdapters) {</span><br><span class="line"> <span class="keyword">if</span> (adapter.supports(handler)) {</span><br><span class="line"> <span class="keyword">return</span> adapter;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">ServletException</span>(<span class="string">"No adapter for handler ["</span> + handler +</span><br><span class="line"> <span class="string">"]: The DispatcherServlet configuration needs to include a HandlerAdapter that supports this handler"</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230812091950114.png" alt="image-20230812091950114"></p>
|
||
<p>上图中四个处理器适配器中前两个是常用的处理器适配器: 0 - 支持方法上标注@RequestMapping 1 - 支持函数式编程的</p>
|
||
<p><strong>5.查看当前的处理器适配器是否支持的方法</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">final</span> <span class="type">boolean</span> <span class="title function_">supports</span><span class="params">(Object handler)</span> {</span><br><span class="line"> <span class="comment">//条件一 handler instanceof HandlerMethod</span></span><br><span class="line"> <span class="comment">//条件二 supportsInternal((HandlerMethod) handler)</span></span><br><span class="line"> <span class="keyword">return</span> (handler <span class="keyword">instanceof</span> HandlerMethod && supportsInternal((HandlerMethod) handler));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>遍历查找之后返回的适配器是RequestMappingHandlerAdapter</p>
|
||
<p><img src="/pictures/image-20230812092825385.png" alt="image-20230812092825385"></p>
|
||
<p><strong>6.回到DispatcherServlet执行下面的方法</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//根据上面获取到的处理器适配器真正的执行处理器方法</span></span><br><span class="line"><span class="comment">// Actually invoke the handler.</span></span><br><span class="line">mv = ha.handle(processedRequest, response, mappedHandler.getHandler());</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>7.内部的处理过程</strong></p>
|
||
<p>handle( )方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="meta">@Nullable</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">final</span> ModelAndView <span class="title function_">handle</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler)</span></span><br><span class="line"><span class="keyword">throws</span> Exception {</span><br><span class="line"> <span class="keyword">return</span> handleInternal(request, response, (HandlerMethod) handler);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>进入当前处理器适配器的handleInternal( )方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">protected</span> ModelAndView <span class="title function_">handleInternal</span><span class="params">(HttpServletRequest request,</span></span><br><span class="line"><span class="params"> HttpServletResponse response, HandlerMethod handlerMethod)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> ModelAndView mav;</span><br><span class="line"> checkRequest(request);</span><br><span class="line"></span><br><span class="line"> <span class="comment">// Execute invokeHandlerMethod in synchronized block if required.</span></span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.synchronizeOnSession) {</span><br><span class="line"> <span class="type">HttpSession</span> <span class="variable">session</span> <span class="operator">=</span> request.getSession(<span class="literal">false</span>);</span><br><span class="line"> <span class="keyword">if</span> (session != <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">Object</span> <span class="variable">mutex</span> <span class="operator">=</span> WebUtils.getSessionMutex(session);</span><br><span class="line"> <span class="keyword">synchronized</span> (mutex) {</span><br><span class="line"> mav = invokeHandlerMethod(request, response, handlerMethod);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// No HttpSession available -> no mutex necessary</span></span><br><span class="line"> mav = invokeHandlerMethod(request, response, handlerMethod);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">// No synchronization on session demanded at all...</span></span><br><span class="line"> mav = invokeHandlerMethod(request, response, handlerMethod);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (!response.containsHeader(HEADER_CACHE_CONTROL)) {</span><br><span class="line"> <span class="keyword">if</span> (getSessionAttributesHandler(handlerMethod).hasSessionAttributes()) {</span><br><span class="line"> applyCacheSeconds(response, <span class="built_in">this</span>.cacheSecondsForSessionAttributeHandlers);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> {</span><br><span class="line"> prepareResponse(response);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> mav;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>执行invokeHandlerMethod( )方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">mav = invokeHandlerMethod(request, response, handlerMethod);</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>进入invokeHandlerMethod()方法</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Nullable</span></span><br><span class="line"><span class="keyword">protected</span> ModelAndView <span class="title function_">invokeHandlerMethod</span><span class="params">(HttpServletRequest request,</span></span><br><span class="line"><span class="params"> HttpServletResponse response, HandlerMethod handlerMethod)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">ServletWebRequest</span> <span class="variable">webRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ServletWebRequest</span>(request, response);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">WebDataBinderFactory</span> <span class="variable">binderFactory</span> <span class="operator">=</span> getDataBinderFactory(handlerMethod);</span><br><span class="line"> <span class="type">ModelFactory</span> <span class="variable">modelFactory</span> <span class="operator">=</span> getModelFactory(handlerMethod, binderFactory);</span><br><span class="line"></span><br><span class="line"> <span class="type">ServletInvocableHandlerMethod</span> <span class="variable">invocableMethod</span> <span class="operator">=</span> createInvocableHandlerMethod(handlerMethod);</span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.argumentResolvers != <span class="literal">null</span>) {</span><br><span class="line"> invocableMethod.setHandlerMethodArgumentResolvers(<span class="built_in">this</span>.argumentResolvers);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.returnValueHandlers != <span class="literal">null</span>) {</span><br><span class="line"> invocableMethod.setHandlerMethodReturnValueHandlers(<span class="built_in">this</span>.returnValueHandlers);</span><br><span class="line"> }</span><br><span class="line"> invocableMethod.setDataBinderFactory(binderFactory);</span><br><span class="line"> invocableMethod.setParameterNameDiscoverer(<span class="built_in">this</span>.parameterNameDiscoverer);</span><br><span class="line"></span><br><span class="line"> <span class="type">ModelAndViewContainer</span> <span class="variable">mavContainer</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ModelAndViewContainer</span>();</span><br><span class="line"> mavContainer.addAllAttributes(RequestContextUtils.getInputFlashMap(request));</span><br><span class="line"> modelFactory.initModel(webRequest, mavContainer, invocableMethod);</span><br><span class="line"> mavContainer.setIgnoreDefaultModelOnRedirect(<span class="built_in">this</span>.ignoreDefaultModelOnRedirect);</span><br><span class="line"></span><br><span class="line"> <span class="type">AsyncWebRequest</span> <span class="variable">asyncWebRequest</span> <span class="operator">=</span> WebAsyncUtils.createAsyncWebRequest(request, response);</span><br><span class="line"> asyncWebRequest.setTimeout(<span class="built_in">this</span>.asyncRequestTimeout);</span><br><span class="line"></span><br><span class="line"> <span class="type">WebAsyncManager</span> <span class="variable">asyncManager</span> <span class="operator">=</span> WebAsyncUtils.getAsyncManager(request);</span><br><span class="line"> asyncManager.setTaskExecutor(<span class="built_in">this</span>.taskExecutor);</span><br><span class="line"> asyncManager.setAsyncWebRequest(asyncWebRequest);</span><br><span class="line"> asyncManager.registerCallableInterceptors(<span class="built_in">this</span>.callableInterceptors);</span><br><span class="line"> asyncManager.registerDeferredResultInterceptors(<span class="built_in">this</span>.deferredResultInterceptors);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (asyncManager.hasConcurrentResult()) {</span><br><span class="line"> <span class="type">Object</span> <span class="variable">result</span> <span class="operator">=</span> asyncManager.getConcurrentResult();</span><br><span class="line"> mavContainer = (ModelAndViewContainer) asyncManager.getConcurrentResultContext()[<span class="number">0</span>];</span><br><span class="line"> asyncManager.clearConcurrentResult();</span><br><span class="line"> LogFormatUtils.traceDebug(logger, traceOn -> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">formatted</span> <span class="operator">=</span> LogFormatUtils.formatValue(result, !traceOn);</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"Resume with async result ["</span> + formatted + <span class="string">"]"</span>;</span><br><span class="line"> });</span><br><span class="line"> invocableMethod = invocableMethod.wrapConcurrentResult(result);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> invocableMethod.invokeAndHandle(webRequest, mavContainer);</span><br><span class="line"> <span class="keyword">if</span> (asyncManager.isConcurrentHandlingStarted()) {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> getModelAndView(mavContainer, modelFactory, webRequest);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">finally</span> {</span><br><span class="line"> webRequest.requestCompleted();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>注意这里的26个参数解析器,参数解析器的作用是确定将要执行的目标方法的每一个参数的值是什么</p>
|
||
<p>这里的每一个参数解析器都对应了我们标注在参数上的注解</p>
|
||
<p>SpringMVC目标方法能写多少种参数类型取决于参数解析器</p>
|
||
<p><img src="/pictures/image-20230812094224699.png" alt="image-20230812094224699"></p>
|
||
<p>参数解析器的接口设计</p>
|
||
<p><img src="/pictures/image-20230812094755583.png" alt="image-20230812094755583"></p>
|
||
<ul>
|
||
<li>当前解析器是否支持解析这种参数</li>
|
||
<li>支持就调用 resolveArgument</li>
|
||
</ul>
|
||
<p>返回值处理器</p>
|
||
<p>定义了controller返回值的类型</p>
|
||
<img src="/pictures/image-20230812095137195.png" alt="image-20230812095137195" style="zoom:150%;" />
|
||
|
||
<p>RequestMappingHandlerAdapter的invokeAndHandle( )方法真正的执行请求</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">invocableMethod.invokeAndHandle(webRequest, mavContainer);</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">invokeAndHandle</span><span class="params">(ServletWebRequest webRequest, ModelAndViewContainer mavContainer,</span></span><br><span class="line"><span class="params"> Object... providedArgs)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">Object</span> <span class="variable">returnValue</span> <span class="operator">=</span> invokeForRequest(webRequest, mavContainer, providedArgs);</span><br><span class="line"> <span class="comment">//上面一行代码执行完毕之后会直接跳到controller方法,然后执行下面的代码</span></span><br><span class="line"> setResponseStatus(webRequest);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (returnValue == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">if</span> (isRequestNotModified(webRequest) || getResponseStatus() != <span class="literal">null</span> || mavContainer.isRequestHandled()) {</span><br><span class="line"> disableContentCachingIfNecessary(webRequest);</span><br><span class="line"> mavContainer.setRequestHandled(<span class="literal">true</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">else</span> <span class="keyword">if</span> (StringUtils.hasText(getResponseStatusReason())) {</span><br><span class="line"> mavContainer.setRequestHandled(<span class="literal">true</span>);</span><br><span class="line"> <span class="keyword">return</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> mavContainer.setRequestHandled(<span class="literal">false</span>);</span><br><span class="line"> Assert.state(<span class="built_in">this</span>.returnValueHandlers != <span class="literal">null</span>, <span class="string">"No return value handlers"</span>);</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="built_in">this</span>.returnValueHandlers.handleReturnValue(</span><br><span class="line"> returnValue, getReturnValueType(returnValue), mavContainer, webRequest);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> <span class="keyword">if</span> (logger.isTraceEnabled()) {</span><br><span class="line"> logger.trace(formatErrorForReturnValue(returnValue), ex);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">throw</span> ex;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>执行的过程</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="type">Object</span> <span class="variable">returnValue</span> <span class="operator">=</span> invokeForRequest(webRequest, mavContainer, providedArgs);</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Nullable</span></span><br><span class="line"><span class="keyword">public</span> Object <span class="title function_">invokeForRequest</span><span class="params">(NativeWebRequest request, <span class="meta">@Nullable</span> ModelAndViewContainer mavContainer,</span></span><br><span class="line"><span class="params"> Object... providedArgs)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> Object[] args = getMethodArgumentValues(request, mavContainer, providedArgs);</span><br><span class="line"> <span class="comment">//这个args就记录了方法上所有的参数</span></span><br><span class="line"> <span class="keyword">if</span> (logger.isTraceEnabled()) {</span><br><span class="line"> logger.trace(<span class="string">"Arguments: "</span> + Arrays.toString(args));</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> doInvoke(args);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230812100059378.png" alt="image-20230812100059378"></p>
|
||
<p>获取方法参数值的过程</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">Object[] args = getMethodArgumentValues(request, mavContainer, providedArgs);</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">protected</span> Object[] getMethodArgumentValues(NativeWebRequest request, <span class="meta">@Nullable</span> ModelAndViewContainer mavContainer,</span><br><span class="line"> Object... providedArgs) <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> </span><br><span class="line"> <span class="comment">//获取所有参数的参数声明 参数类型 标注的注解 </span></span><br><span class="line"> MethodParameter[] parameters = getMethodParameters();</span><br><span class="line"> <span class="keyword">if</span> (ObjectUtils.isEmpty(parameters)) {</span><br><span class="line"> <span class="keyword">return</span> EMPTY_ARGS;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> Object[] args = <span class="keyword">new</span> <span class="title class_">Object</span>[parameters.length];</span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < parameters.length; i++) {</span><br><span class="line"> <span class="type">MethodParameter</span> <span class="variable">parameter</span> <span class="operator">=</span> parameters[i];</span><br><span class="line"> parameter.initParameterNameDiscovery(<span class="built_in">this</span>.parameterNameDiscoverer);</span><br><span class="line"> args[i] = findProvidedArgument(parameter, providedArgs);</span><br><span class="line"> <span class="keyword">if</span> (args[i] != <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">continue</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (!<span class="built_in">this</span>.resolvers.supportsParameter(parameter)) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">IllegalStateException</span>(formatArgumentError(parameter, <span class="string">"No suitable resolver"</span>));</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> args[i] = <span class="built_in">this</span>.resolvers.resolveArgument(parameter, mavContainer, request, <span class="built_in">this</span>.dataBinderFactory);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">catch</span> (Exception ex) {</span><br><span class="line"> <span class="comment">// Leave stack trace for later, exception may actually be resolved and handled...</span></span><br><span class="line"> <span class="keyword">if</span> (logger.isDebugEnabled()) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">exMsg</span> <span class="operator">=</span> ex.getMessage();</span><br><span class="line"> <span class="keyword">if</span> (exMsg != <span class="literal">null</span> && !exMsg.contains(parameter.getExecutable().toGenericString())) {</span><br><span class="line"> logger.debug(formatArgumentError(parameter, exMsg));</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">throw</span> ex;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> args;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>遍历判断获取支持解析该参数的参数解析器</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Nullable</span></span><br><span class="line"><span class="keyword">private</span> HandlerMethodArgumentResolver <span class="title function_">getArgumentResolver</span><span class="params">(MethodParameter parameter)</span> {</span><br><span class="line"> <span class="type">HandlerMethodArgumentResolver</span> <span class="variable">result</span> <span class="operator">=</span> <span class="built_in">this</span>.argumentResolverCache.get(parameter);</span><br><span class="line"> <span class="keyword">if</span> (result == <span class="literal">null</span>) {</span><br><span class="line"> <span class="keyword">for</span> (HandlerMethodArgumentResolver resolver : <span class="built_in">this</span>.argumentResolvers) {</span><br><span class="line"> <span class="keyword">if</span> (resolver.supportsParameter(parameter)) {</span><br><span class="line"> result = resolver;</span><br><span class="line"> <span class="built_in">this</span>.argumentResolverCache.put(parameter, result);</span><br><span class="line"> <span class="keyword">break</span>;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> result;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>解析参数的值通过调用各自 HandlerMethodArgumentResolver 的 resolveArgument 方法</p>
|
||
<h4 id="2-4-数据响应与内容协商"><a href="#2-4-数据响应与内容协商" class="headerlink" title="2.4 数据响应与内容协商"></a>2.4 数据响应与内容协商</h4><p>返回值的处理逻辑</p>
|
||
<h5 id="2-4-1-相关依赖的引入"><a href="#2-4-1-相关依赖的引入" class="headerlink" title="2.4.1 相关依赖的引入"></a>2.4.1 相关依赖的引入</h5><p>创建springBoot项目的时候导入了spring-boot-starter-web依赖会自动的帮我们导入相关的json依赖,便于json数据的前后端传递</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>自动的帮我们导入相关的json的starter</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-json<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.4.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在spring-boot-starter-json中引入了jackson相关的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.core<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-databind<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.11.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.datatype<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-datatype-jdk8<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.11.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.datatype<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-datatype-jsr310<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.11.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.module<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-module-parameter-names<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.11.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>compile<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>返回值解析器的原理</strong></p>
|
||
<ul>
|
||
<li><p>1、返回值处理器判断是否支持这种类型返回值 supportsReturnType</p>
|
||
</li>
|
||
<li><p>2、返回值处理器调用 handleReturnValue 进行处理</p>
|
||
</li>
|
||
<li><p>3、RequestResponseBodyMethodProcessor 可以处理返回值标了@ResponseBody 注解的。</p>
|
||
</li>
|
||
<li><ul>
|
||
<li><ol>
|
||
<li>利用 MessageConverters 进行处理 将数据写为json</li>
|
||
</ol>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>1、内容协商(浏览器默认会以请求头的方式告诉服务器他能接受什么样的内容类型)</li>
|
||
<li>2、服务器最终根据自己自身的能力,决定服务器能生产出什么样内容类型的数据,</li>
|
||
<li>3、SpringMVC会挨个遍历所有容器底层的 HttpMessageConverter ,看谁能处理?</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>1、得到MappingJackson2HttpMessageConverter可以将对象写为json</li>
|
||
<li>2、利用MappingJackson2HttpMessageConverter将对象转为json再写出去。</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h5 id="2-4-2-内容协商原理"><a href="#2-4-2-内容协商原理" class="headerlink" title="2.4.2 内容协商原理"></a>2.4.2 内容协商原理</h5><p>引入jackson-dataformat-xml,测试返回是xml格式的数据</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.fasterxml.jackson.dataformat<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jackson-dataformat-xml<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>开启基于请求参数的内容协商功能</p>
|
||
<p>发请求: <a href="http://localhost:8080/test/person?format=json">http://localhost:8080/test/person?format=json</a> //指定格式是json </p>
|
||
<p> <a href="http://localhost:8080/test/person?format=xml">http://localhost:8080/test/person?format=xml</a> //指定格式是xml</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">contentnegotiation:</span></span><br><span class="line"> <span class="attr">favor-parameter:</span> <span class="literal">true</span> <span class="comment">#开启请求参数内容协商模式</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>1、Parameter策略优先确定是要返回json数据(获取请求头中的format的值)</p>
|
||
<p>2、最终进行内容协商返回给客户端json即可</p>
|
||
<p>3、遍历循环所有当前系统的 MessageConverter,看谁支持操作这个对象(Person)</p>
|
||
<p>4、找到支持操作Person的converter,把converter支持的媒体类型统计出来。</p>
|
||
<p>5、客户端需要【application/xml】。服务端能力【10种、json、xml】</p>
|
||
<p>6、进行内容协商的最佳匹配媒体类型</p>
|
||
<p>7、用 支持 将对象转为 最佳匹配媒体类型 的converter。调用它进行转化 。</p>
|
||
<h5 id="2-4-3-自定义MessageConverter"><a href="#2-4-3-自定义MessageConverter" class="headerlink" title="2.4.3 自定义MessageConverter"></a>2.4.3 自定义MessageConverter</h5><p>1、@ResponseBody 响应数据出去 调用 RequestResponseBodyMethodProcessor 处理</p>
|
||
<p>2、Processor 处理方法返回值。通过 MessageConverter 处理</p>
|
||
<p>3、所有 MessageConverter 合起来可以支持各种媒体类型数据的操作(读、写)</p>
|
||
<p>4、内容协商找到最终的 messageConverter;</p>
|
||
<p> <strong>步骤:</strong><br>1、添加自定义的MessageConverter进系统底层</p>
|
||
<p>2、系统底层就会统计出所有MessageConverter能操作哪些类型</p>
|
||
<p>3、客户端内容协商 [guigu—>guigu]</p>
|
||
<p>编写自定义的的converter</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.converter;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.bean.Person;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpInputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpOutputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.MediaType;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageConverter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotReadableException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotWritableException;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.OutputStream;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自定义的Converter</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GuiguMessageConverter</span> <span class="keyword">implements</span> <span class="title class_">HttpMessageConverter</span><Person> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">canRead</span><span class="params">(Class<?> clazz, MediaType mediaType)</span> {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">canWrite</span><span class="params">(Class<?> clazz, MediaType mediaType)</span> {</span><br><span class="line"> <span class="keyword">return</span> clazz.isAssignableFrom(Person.class);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 服务器要统计所有MessageConverter都能写出哪些内容类型</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * application/x-guigu</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<MediaType> <span class="title function_">getSupportedMediaTypes</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> MediaType.parseMediaTypes(<span class="string">"application/x-guigu"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Person <span class="title function_">read</span><span class="params">(Class<? extends Person> clazz, HttpInputMessage inputMessage)</span> <span class="keyword">throws</span> IOException, HttpMessageNotReadableException {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">null</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">write</span><span class="params">(Person person, MediaType contentType, HttpOutputMessage outputMessage)</span> <span class="keyword">throws</span> IOException, HttpMessageNotWritableException {</span><br><span class="line"> <span class="comment">//自定义协议数据的写出</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">data</span> <span class="operator">=</span> person.getUserName()+<span class="string">";"</span>+person.getAge()+<span class="string">";"</span>+person.getBirth();</span><br><span class="line"> <span class="comment">//写出去</span></span><br><span class="line"> <span class="type">OutputStream</span> <span class="variable">body</span> <span class="operator">=</span> outputMessage.getBody();</span><br><span class="line"> body.write(data.getBytes());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在配置文件中加入自定义的converter</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.config;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.bean.Person;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.bean.Pet;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.converter.GuiguMessageConverter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.core.convert.converter.Converter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.format.FormatterRegistry;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpInputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpOutputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.MediaType;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageConverter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotReadableException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotWritableException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.accept.HeaderContentNegotiationStrategy;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.accept.ParameterContentNegotiationStrategy;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.filter.HiddenHttpMethodFilter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.PathMatchConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.WebMvcConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.util.UrlPathHelper;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.OutputStream;</span><br><span class="line"><span class="keyword">import</span> java.util.*;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WebConfig</span> {</span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> WebMvcConfigurer <span class="title function_">webMvcConfigurer</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">WebMvcConfigurer</span>() {</span><br><span class="line"> <span class="comment">//加入自定义的converter</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">extendMessageConverters</span><span class="params">(List<HttpMessageConverter<?>> converters)</span> {</span><br><span class="line"> converters.add(<span class="keyword">new</span> <span class="title class_">GuiguMessageConverter</span>());</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在浏览器url上拼接参数的形式实现内容协商</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.bean.Person;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.bean.Pet;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.boot.converter.GuiguMessageConverter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.core.convert.converter.Converter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.format.FormatterRegistry;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpInputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.HttpOutputMessage;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.MediaType;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageConverter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotReadableException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.http.converter.HttpMessageNotWritableException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.util.StringUtils;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.accept.HeaderContentNegotiationStrategy;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.accept.ParameterContentNegotiationStrategy;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.filter.HiddenHttpMethodFilter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.PathMatchConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.WebMvcConfigurer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.util.UrlPathHelper;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.io.OutputStream;</span><br><span class="line"><span class="keyword">import</span> java.util.*;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">WebConfig</span>{</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> WebMvcConfigurer <span class="title function_">webMvcConfigurer</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">WebMvcConfigurer</span>() {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自定义内容协商策略</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> configurer</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">configureContentNegotiation</span><span class="params">(ContentNegotiationConfigurer configurer)</span> {</span><br><span class="line"> Map<String, MediaType> mediaTypes = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> mediaTypes.put(<span class="string">"json"</span>,MediaType.APPLICATION_JSON);</span><br><span class="line"> mediaTypes.put(<span class="string">"xml"</span>,MediaType.APPLICATION_XML);</span><br><span class="line"> <span class="comment">//在浏览器url上拼接参数的形式实现内容协商</span></span><br><span class="line"> <span class="comment">//http://localhost:8080/test/person?format=gg</span></span><br><span class="line"> mediaTypes.put(<span class="string">"gg"</span>,MediaType.parseMediaType(<span class="string">"application/x-guigu"</span>));</span><br><span class="line"> <span class="comment">//指定支持解析哪些参数对应的哪些媒体类型</span></span><br><span class="line"> <span class="type">ParameterContentNegotiationStrategy</span> <span class="variable">parameterStrategy</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ParameterContentNegotiationStrategy</span>(mediaTypes);</span><br><span class="line"> <span class="comment">//parameterStrategy.setParameterName("ff");</span></span><br><span class="line"></span><br><span class="line"> <span class="type">HeaderContentNegotiationStrategy</span> <span class="variable">headeStrategy</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">HeaderContentNegotiationStrategy</span>();</span><br><span class="line"></span><br><span class="line"> configurer.strategies(Arrays.asList(parameterStrategy,headeStrategy));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//加入自定义的converter</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">extendMessageConverters</span><span class="params">(List<HttpMessageConverter<?>> converters)</span> {</span><br><span class="line"> converters.add(<span class="keyword">new</span> <span class="title class_">GuiguMessageConverter</span>());</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-视图解析与模板引擎"><a href="#3-视图解析与模板引擎" class="headerlink" title="3.视图解析与模板引擎"></a>3.视图解析与模板引擎</h3><p>视图解析:SpringBoot默认不支持 JSP,需要引入第三方模板引擎技术实现页面渲染</p>
|
||
<h4 id="3-1-视图解析"><a href="#3-1-视图解析" class="headerlink" title="3.1 视图解析"></a>3.1 视图解析</h4><p><img src="/pictures/image-20230815091741019.png" alt="image-20230815091741019"></p>
|
||
<h4 id="3-2-模板引擎-Thymeleaf"><a href="#3-2-模板引擎-Thymeleaf" class="headerlink" title="3.2 模板引擎-Thymeleaf"></a>3.2 模板引擎-Thymeleaf</h4><p>详细的使用教程: <a href="https://jasonsgong.gitee.io/posts/54835.html">https://jasonsgong.gitee.io/posts/54835.html</a></p>
|
||
<h5 id="3-2-1-Thymeleaf的使用"><a href="#3-2-1-Thymeleaf的使用" class="headerlink" title="3.2.1 Thymeleaf的使用"></a>3.2.1 Thymeleaf的使用</h5><p>1.引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-thymeleaf<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.编写测试controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ViewTestController</span> {</span><br><span class="line"> <span class="meta">@GetMapping("/view")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">hello</span><span class="params">(Model model)</span>{</span><br><span class="line"> <span class="comment">//向请求域中共享数据</span></span><br><span class="line"> model.addAttribute(<span class="string">"keys"</span>,<span class="string">"Thymeleaf"</span>);</span><br><span class="line"> <span class="comment">//转发到success页面中</span></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"success"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.页面上渲染</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="meta"><!DOCTYPE <span class="keyword">html</span>></span></span><br><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">xmlns:th</span>=<span class="string">"http://www.thymeleaf.org"</span>></span></span><br><span class="line"><span class="tag"><<span class="name">head</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">meta</span> <span class="attr">charset</span>=<span class="string">"UTF-8"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">title</span>></span>Title<span class="tag"></<span class="name">title</span>></span></span><br><span class="line"><span class="tag"></<span class="name">head</span>></span></span><br><span class="line"><span class="tag"><<span class="name">body</span>></span></span><br><span class="line"><span class="tag"><<span class="name">h1</span> <span class="attr">th:text</span>=<span class="string">"${keys}"</span>></span>Hello<span class="tag"></<span class="name">h1</span>></span></span><br><span class="line"><span class="tag"></<span class="name">body</span>></span></span><br><span class="line"><span class="tag"></<span class="name">html</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230815153318041.png" alt="image-20230815153318041"></p>
|
||
<h4 id="3-3-后台管理系统注意点"><a href="#3-3-后台管理系统注意点" class="headerlink" title="3.3 后台管理系统注意点"></a>3.3 后台管理系统注意点</h4><p><strong>templates目录的访问规则</strong></p>
|
||
<p>templates目录下的所有页面资源只能通过请求访问到</p>
|
||
<p><strong>表单重复提交的问题</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.admin.controller;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@Controller</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">IndexController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 来登录页</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping(value = {"/","/login"})</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">loginPage</span><span class="params">()</span>{</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"login"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@PostMapping("/login")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">main</span><span class="params">(String username, String password)</span>{</span><br><span class="line"> <span class="comment">//登录成功重定向到main.html; 重定向防止表单重复提交</span></span><br><span class="line"> <span class="comment">//这里如果直接写 return "main"的话,页面在mian.html的情况下,url路径还是localhost:8080/login,如果再次刷新页面会重复提交表单</span></span><br><span class="line"> <span class="comment">//使用下面这个写法,执行"/login"这个请求之后,路径的url会变成localhost:8080/main.html</span></span><br><span class="line"> <span class="keyword">return</span> <span class="string">"redirect:/main.html"</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 去main页面</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/main.html")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">mainPage</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"main"</span>;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-拦截器"><a href="#4-拦截器" class="headerlink" title="4.拦截器"></a>4.拦截器</h3><h4 id="1-HandlerInterceptor接口"><a href="#1-HandlerInterceptor接口" class="headerlink" title="1.HandlerInterceptor接口"></a>1.HandlerInterceptor接口</h4><p>自定义拦截器需要实现的接口,以及需要实现接口中的方法</p>
|
||
<p><img src="/pictures/image-20230821105529796.png" alt="image-20230821105529796"></p>
|
||
<h4 id="2-拦截器实现登录检查操作"><a href="#2-拦截器实现登录检查操作" class="headerlink" title="2.拦截器实现登录检查操作"></a>2.拦截器实现登录检查操作</h4><p><strong>登录检查的业务逻辑</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 登录检查</span></span><br><span class="line"><span class="comment"> * 1、配置好拦截器要拦截哪些请求</span></span><br><span class="line"><span class="comment"> * 2、把这些配置放在容器中</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">LoginInterceptor</span> <span class="keyword">implements</span> <span class="title class_">HandlerInterceptor</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 目标方法执行之前</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> request</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> response</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> handler</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span></span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="type">boolean</span> <span class="title function_">preHandle</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">requestURI</span> <span class="operator">=</span> request.getRequestURI();</span><br><span class="line"> log.info(<span class="string">"preHandle拦截的请求路径是{}"</span>,requestURI);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//登录检查逻辑</span></span><br><span class="line"> <span class="type">HttpSession</span> <span class="variable">session</span> <span class="operator">=</span> request.getSession();</span><br><span class="line"></span><br><span class="line"> <span class="type">Object</span> <span class="variable">loginUser</span> <span class="operator">=</span> session.getAttribute(<span class="string">"loginUser"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span>(loginUser != <span class="literal">null</span>){</span><br><span class="line"> <span class="comment">//放行</span></span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//拦截住 未登录 跳转到登录页</span></span><br><span class="line"> request.setAttribute(<span class="string">"msg"</span>,<span class="string">"请先登录"</span>);</span><br><span class="line"> request.getRequestDispatcher(<span class="string">"/"</span>).forward(request,response);</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 目标方法执行完成以后</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> request</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> response</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> handler</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> modelAndView</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">postHandle</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> log.info(<span class="string">"postHandle执行{}"</span>,modelAndView);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 页面渲染以后</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> request</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> response</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> handler</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> ex</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@throws</span> Exception</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">afterCompletion</span><span class="params">(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> log.info(<span class="string">"afterCompletion执行异常{}"</span>,ex);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>拦截器的配置</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 1、编写一个拦截器实现HandlerInterceptor接口</span></span><br><span class="line"><span class="comment"> * 2、拦截器注册到容器中(实现WebMvcConfigurer的addInterceptors)</span></span><br><span class="line"><span class="comment"> * 3、指定拦截规则[如果是拦截所有,静态资源也会被拦截]</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AdminWebConfig</span> <span class="keyword">implements</span> <span class="title class_">WebMvcConfigurer</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addInterceptors</span><span class="params">(InterceptorRegistry registry)</span> {</span><br><span class="line"> registry.addInterceptor(<span class="keyword">new</span> <span class="title class_">LoginInterceptor</span>())</span><br><span class="line"> .addPathPatterns(<span class="string">"/**"</span>) <span class="comment">//所有请求都被拦截包括静态资源</span></span><br><span class="line"> .excludePathPatterns(<span class="string">"/"</span>,<span class="string">"/login"</span>,<span class="string">"/css/**"</span>,<span class="string">"/fonts/**"</span>,<span class="string">"/images/**"</span>,<span class="string">"/js/**"</span>); <span class="comment">//放行的请求</span></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-拦截器原理"><a href="#3-拦截器原理" class="headerlink" title="3.拦截器原理"></a>3.拦截器原理</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * preHandle() :该方法在控制器方法之前执行,如果返回false,说明拦截器不放行该请求,自己处理或者结束该请求</span></span><br><span class="line"><span class="comment"> * 如果返回true,说明拦截器放该请求,由其它匹配的拦截器或者控制器继续处理</span></span><br><span class="line"><span class="comment"> * postHandle():该方法在控制器方法调用之后,且解析视图之前执行,可以通过此方法对请求域中的模型和视图做出进一步的修改</span></span><br><span class="line"><span class="comment"> * afterCompletion(): 该方法会在整个请求完成,即视图渲染结束之后执行,多用于资源的清理工作</span></span><br><span class="line"><span class="comment"> */</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>1、根据当前请求,找到HandlerExecutionChain[可以处理请求的handler以及handler的所有 拦截器]</p>
|
||
<p>2、先来顺序执行 所有拦截器的 preHandle方法</p>
|
||
<ul>
|
||
<li>1、如果当前拦截器prehandler返回为true,则执行下一个拦截器的preHandle</li>
|
||
<li>2、如果当前拦截器返回为false。直接倒序执行所有已经执行了的拦截器的afterCompletion方法</li>
|
||
</ul>
|
||
<p>3、如果任何一个拦截器返回false,直接跳出不执行目标方法</p>
|
||
<p>4、所有拦截器都返回true,执行目标方法</p>
|
||
<p>5、倒序执行所有拦截器的postHandle方法</p>
|
||
<p>6、前面的步骤有任何异常都会直接倒序触发 afterCompletion</p>
|
||
<p>7、页面成功渲染完成以后,也会倒序触发 afterCompletion</p>
|
||
<p><img src="/pictures/image-20230821112246355.png" alt="image-20230821112246355"></p>
|
||
<h3 id="5-文件上传"><a href="#5-文件上传" class="headerlink" title="5.文件上传"></a>5.文件上传</h3><h4 id="1-页面表单"><a href="#1-页面表单" class="headerlink" title="1.页面表单"></a>1.页面表单</h4><figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">form</span> <span class="attr">method</span>=<span class="string">"post"</span> <span class="attr">action</span>=<span class="string">"/upload"</span> <span class="attr">enctype</span>=<span class="string">"multipart/form-data"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"file"</span> <span class="attr">name</span>=<span class="string">"file"</span>></span><span class="tag"><<span class="name">br</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">input</span> <span class="attr">type</span>=<span class="string">"submit"</span> <span class="attr">value</span>=<span class="string">"提交"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">form</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-文件上传代码"><a href="#2-文件上传代码" class="headerlink" title="2.文件上传代码"></a>2.文件上传代码</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * MultipartFile 自动封装上传过来的文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@PostMapping("/upload")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">upload</span><span class="params">(<span class="meta">@RequestParam("email")</span> String email,</span></span><br><span class="line"><span class="params"> <span class="meta">@RequestParam("username")</span> String username,</span></span><br><span class="line"><span class="params"> <span class="meta">@RequestPart("headerImg")</span> MultipartFile headerImg,//单个文件</span></span><br><span class="line"><span class="params"> <span class="meta">@RequestPart("photos")</span> MultipartFile[] photos)</span> <span class="keyword">throws</span> IOException {<span class="comment">//多个文件</span></span><br><span class="line"></span><br><span class="line"> log.info(<span class="string">"上传的信息:email={},username={},headerImg={},photos={}"</span>,</span><br><span class="line"> email, username, headerImg.getSize(), photos.length);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (!headerImg.isEmpty()) {</span><br><span class="line"> <span class="comment">//保存到文件服务器,OSS服务器</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">originalFilename</span> <span class="operator">=</span> headerImg.getOriginalFilename();</span><br><span class="line"> headerImg.transferTo(<span class="keyword">new</span> <span class="title class_">File</span>(<span class="string">"H:\\cache\\"</span> + originalFilename));</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">if</span> (photos.length > <span class="number">0</span>) {</span><br><span class="line"> <span class="keyword">for</span> (MultipartFile photo : photos) {</span><br><span class="line"> <span class="keyword">if</span> (!photo.isEmpty()) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">originalFilename</span> <span class="operator">=</span> photo.getOriginalFilename();</span><br><span class="line"> photo.transferTo(<span class="keyword">new</span> <span class="title class_">File</span>(<span class="string">"H:\\cache\\"</span> + originalFilename));</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"main"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-MultipartAutoConfiguration"><a href="#3-MultipartAutoConfiguration" class="headerlink" title="3.MultipartAutoConfiguration"></a>3.MultipartAutoConfiguration</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Configuration(proxyBeanMethods = false)</span></span><br><span class="line"><span class="meta">@ConditionalOnClass({ Servlet.class, StandardServletMultipartResolver.class, MultipartConfigElement.class })</span></span><br><span class="line"><span class="meta">@ConditionalOnProperty(prefix = "spring.servlet.multipart", name = "enabled", matchIfMissing = true)</span></span><br><span class="line"><span class="meta">@ConditionalOnWebApplication(type = Type.SERVLET)</span></span><br><span class="line"><span class="meta">@EnableConfigurationProperties(MultipartProperties.class)</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MultipartAutoConfiguration</span> {}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="6-异常处理"><a href="#6-异常处理" class="headerlink" title="6.异常处理"></a>6.异常处理</h3><p>开发中异常处理方法: <a href="https://jasonsgong.gitee.io/posts/31385.html">https://jasonsgong.gitee.io/posts/31385.html</a></p>
|
||
<h4 id="1-默认规则"><a href="#1-默认规则" class="headerlink" title="1.默认规则"></a>1.默认规则</h4><ul>
|
||
<li>默认情况下,Spring Boot提供<code>/error</code>处理所有错误的映射</li>
|
||
<li>对于机器客户端,它将生成JSON响应,其中包含错误,HTTP状态和异常消息的详细信息。对于浏览器客户端,响应一个“ whitelabel”错误视图,以HTML格式呈现相同的数据</li>
|
||
</ul>
|
||
<h4 id="2-自定义错误页面"><a href="#2-自定义错误页面" class="headerlink" title="2.自定义错误页面"></a>2.自定义错误页面</h4><p>templates/error/下的4xx,5xx页面会被自动解析</p>
|
||
<h3 id="7-Web原生组件注入(Servlet、Filter、Listener)"><a href="#7-Web原生组件注入(Servlet、Filter、Listener)" class="headerlink" title="7.Web原生组件注入(Servlet、Filter、Listener)"></a>7.Web原生组件注入(Servlet、Filter、Listener)</h3><h4 id="7-1-使用Servlet-Api"><a href="#7-1-使用Servlet-Api" class="headerlink" title="7.1 使用Servlet Api"></a>7.1 使用Servlet Api</h4><h5 id="1-原生的Servlet的使用"><a href="#1-原生的Servlet的使用" class="headerlink" title="1.原生的Servlet的使用"></a>1.原生的Servlet的使用</h5><p>1.编写自定义的servlet继承HttpServlet</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.servlet;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.ServletException;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.annotation.WebServlet;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServlet;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletRequest;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.http.HttpServletResponse;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@WebServlet(urlPatterns = "/my")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyServlet</span> <span class="keyword">extends</span> <span class="title class_">HttpServlet</span> {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">protected</span> <span class="keyword">void</span> <span class="title function_">doGet</span><span class="params">(HttpServletRequest req, HttpServletResponse resp)</span> <span class="keyword">throws</span> ServletException, IOException {</span><br><span class="line"> resp.getWriter().write(<span class="string">"6666"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.在启动类上添加自定义servlet的包扫描注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.SpringApplication;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.SpringBootApplication;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.web.servlet.ServletComponentScan;</span><br><span class="line"></span><br><span class="line"><span class="meta">@ServletComponentScan("com.atguigu.boot")</span> <span class="comment">//指定原生的servlet的位置</span></span><br><span class="line"><span class="meta">@SpringBootApplication</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Boot05Web01Application</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> {</span><br><span class="line"> SpringApplication.run(Boot05Web01Application.class, args);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.启动程序测试</p>
|
||
<p><img src="/pictures/image-20230826211541424.png" alt="image-20230826211541424"></p>
|
||
<h5 id="2-原生的Filter的使用"><a href="#2-原生的Filter的使用" class="headerlink" title="2.原生的Filter的使用"></a>2.原生的Filter的使用</h5><p>1.编写自定义的Filter实现Filter接口</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.servlet;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.*;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.annotation.WebFilter;</span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@WebFilter(urlPatterns={"/css/*","/images/*","/my"})</span> <span class="comment">//设置拦截的路径</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyFilter</span> <span class="keyword">implements</span> <span class="title class_">Filter</span> {</span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">init</span><span class="params">(FilterConfig filterConfig)</span> <span class="keyword">throws</span> ServletException {</span><br><span class="line"> log.info(<span class="string">"MyFilter初始化完成"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">doFilter</span><span class="params">(ServletRequest request, ServletResponse response, FilterChain chain)</span> <span class="keyword">throws</span> IOException, ServletException {</span><br><span class="line"> log.info(<span class="string">"MyFilter工作"</span>);</span><br><span class="line"> chain.doFilter(request,response);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">destroy</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"MyFilter销毁"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.启动程序测试</p>
|
||
<p><img src="/pictures/image-20230826212400849.png" alt="image-20230826212400849"></p>
|
||
<h5 id="3-原生的Listener的使用"><a href="#3-原生的Listener的使用" class="headerlink" title="3.原生的Listener的使用"></a>3.原生的Listener的使用</h5><p>1.编写自定义的MyServletContextListener实现ServletContextListener</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.servlet;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.servlet.ServletContextEvent;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.ServletContextListener;</span><br><span class="line"><span class="keyword">import</span> javax.servlet.annotation.WebListener;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@WebListener</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyServletContextListener</span> <span class="keyword">implements</span> <span class="title class_">ServletContextListener</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">contextInitialized</span><span class="params">(ServletContextEvent sce)</span> {</span><br><span class="line"> log.info(<span class="string">"MyServletContextListener监听到项目初始化完成"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">contextDestroyed</span><span class="params">(ServletContextEvent sce)</span> {</span><br><span class="line"> log.info(<span class="string">"MyServletContextListener监听到项目销毁"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.启动程序测试</p>
|
||
<p><img src="/pictures/image-20230826213125490.png" alt="image-20230826213125490"></p>
|
||
<h4 id="7-2-使用RegistrationBean"><a href="#7-2-使用RegistrationBean" class="headerlink" title="7.2 使用RegistrationBean"></a>7.2 使用RegistrationBean</h4><p>不使用@WebServlet、@WebFilter、@WebListener注解的方式(注释掉自定义servlet、Filter、Listener上的注解)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.servlet;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.web.servlet.FilterRegistrationBean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.web.servlet.ServletListenerRegistrationBean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.web.servlet.ServletRegistrationBean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Arrays;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/26</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span></span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyRegisterConfig</span> {</span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> ServletRegistrationBean <span class="title function_">myServlet</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">MyServlet</span> <span class="variable">myServlet</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MyServlet</span>();</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">ServletRegistrationBean</span>(myServlet,<span class="string">"/my"</span>,<span class="string">"/my02"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> FilterRegistrationBean <span class="title function_">myFilter</span><span class="params">()</span>{</span><br><span class="line"></span><br><span class="line"> <span class="type">MyFilter</span> <span class="variable">myFilter</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MyFilter</span>();</span><br><span class="line"> <span class="comment">//return new FilterRegistrationBean(myFilter,myServlet());</span></span><br><span class="line"> <span class="type">FilterRegistrationBean</span> <span class="variable">filterRegistrationBean</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">FilterRegistrationBean</span>(myFilter);</span><br><span class="line"> filterRegistrationBean.setUrlPatterns(Arrays.asList(<span class="string">"/my"</span>,<span class="string">"/css/*"</span>));</span><br><span class="line"> <span class="keyword">return</span> filterRegistrationBean;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> ServletListenerRegistrationBean <span class="title function_">myListener</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">MyServletContextListener</span> <span class="variable">mySwervletContextListener</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MyServletContextListener</span>();</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">ServletListenerRegistrationBean</span>(mySwervletContextListener);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>重新启动项目我们可以看到依然生效</p>
|
||
<p><img src="/pictures/image-20230826214253187.png" alt="image-20230826214253187"></p>
|
||
<h3 id="8-嵌入式Servlet容器"><a href="#8-嵌入式Servlet容器" class="headerlink" title="8.嵌入式Servlet容器"></a>8.嵌入式Servlet容器</h3><h4 id="8-1-切换嵌入式Servlet容器"><a href="#8-1-切换嵌入式Servlet容器" class="headerlink" title="8.1 切换嵌入式Servlet容器"></a>8.1 切换嵌入式Servlet容器</h4><ul>
|
||
<li><p>默认支持的webServer</p>
|
||
</li>
|
||
<li><ul>
|
||
<li><code>Tomcat</code>, <code>Jetty</code>, or <code>Undertow</code></li>
|
||
<li><code>ServletWebServerApplicationContext 容器启动寻找ServletWebServerFactory 并引导创建服务器</code></li>
|
||
</ul>
|
||
</li>
|
||
<li><p>切换服务器</p>
|
||
<p>1.排除tomcat的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-web<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusions</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-tomcat<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusions</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.引入需要的服务器场景</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-undertow<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.重启项目,可以看到服务器由tomcat变成了undertow</p>
|
||
<p><img src="/pictures/image-20230826221229898.png" alt="image-20230826221229898"></p>
|
||
</li>
|
||
<li><p>原理</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>SpringBoot应用启动发现当前是Web应用。web场景包-导入tomcat</li>
|
||
<li>web应用会创建一个web版的ioc容器 <code>ServletWebServerApplicationContext</code> </li>
|
||
<li><code>ServletWebServerApplicationContext</code> 启动的时候寻找 <code>**ServletWebServerFactory**``(Servlet 的web服务器工厂---> Servlet 的web服务器)</code> </li>
|
||
<li>SpringBoot底层默认有很多的WebServer工厂;<code>TomcatServletWebServerFactory</code>, <code>JettyServletWebServerFactory</code>, or <code>UndertowServletWebServerFactory</code></li>
|
||
<li><code>底层直接会有一个自动配置类ServletWebServerFactoryAutoConfiguration</code></li>
|
||
<li><code>ServletWebServerFactoryAutoConfiguration导入了ServletWebServerFactoryConfiguration(配置类)</code></li>
|
||
<li><code>ServletWebServerFactoryConfiguration 配置类 根据动态判断系统中到底导入了那个Web服务器的包(默认是web-starter导入tomcat包),容器中就有 TomcatServletWebServerFactory</code></li>
|
||
<li><code>TomcatServletWebServerFactory 创建出Tomcat服务器并启动;TomcatWebServer 的构造器拥有初始化方法initialize---this.tomcat.start();</code></li>
|
||
<li><code>内嵌服务器,就是手动把启动服务器的代码调用(tomcat核心jar包存在)</code></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h4 id="8-2-定制Servlet容器"><a href="#8-2-定制Servlet容器" class="headerlink" title="8.2 定制Servlet容器"></a>8.2 定制Servlet容器</h4><p>修改配置文件中以server.xxx打头的属性信息</p>
|
||
<p><img src="/pictures/image-20230826222050817.png" alt="image-20230826222050817"></p>
|
||
<h2 id="三-数据访问"><a href="#三-数据访问" class="headerlink" title="三.数据访问"></a>三.数据访问</h2><h3 id="1-SQL"><a href="#1-SQL" class="headerlink" title="1.SQL"></a>1.SQL</h3><h4 id="1-1-JDBC的使用"><a href="#1-1-JDBC的使用" class="headerlink" title="1.1 JDBC的使用"></a>1.1 JDBC的使用</h4><p>1.导入JDBC的场景</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-data-jdbc<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.导入自己使用的数据库的驱动(Mysql或者Oracle)版本号不写也可以,官方做了版本仲裁(但是要与实际安装的版本对应)</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line">想要修改版本</span><br><span class="line">1、直接依赖引入具体版本(maven的就近依赖原则)</span><br><span class="line">2、重新声明版本(maven的属性的就近优先原则)</span><br><span class="line"><span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">java.version</span>></span>1.8<span class="tag"></<span class="name">java.version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">mysql.version</span>></span>5.1.45<span class="tag"></<span class="name">mysql.version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">properties</span>></span></span><br><span class="line">或者</span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>mysql<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>mysql-connector-java<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>5.1.45<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.添加配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://localhost:3306/db_account</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="number">123456</span></span><br><span class="line"> <span class="attr">driver-class-name:</span> <span class="string">com.mysql.jdbc.Driver</span></span><br><span class="line"> <span class="comment"># type: com.zaxxer.hikari.HikariDataSource #配置数据源</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.测试</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.jdbc.core.JdbcTemplate;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">Boot05Web01ApplicationTests</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> JdbcTemplate jdbcTemplate;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">contextLoads</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">Long</span> <span class="variable">count</span> <span class="operator">=</span> jdbcTemplate.queryForObject(<span class="string">"select count(*) from `role` "</span>, Long.class);</span><br><span class="line"> log.info(<span class="string">"记录数:{}"</span>,count);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-2-分析自动配置"><a href="#1-2-分析自动配置" class="headerlink" title="1.2 分析自动配置"></a>1.2 分析自动配置</h4><p><strong>自动配置的类</strong></p>
|
||
<p><img src="/pictures/image-20230826224503510.png" alt="image-20230826224503510"></p>
|
||
<ul>
|
||
<li><p>DataSourceAutoConfiguration : 数据源的自动配置</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>修改数据源相关的配置:spring.datasource</li>
|
||
<li>数据库连接池的配置,是自己容器中没有DataSource才自动配置的</li>
|
||
<li>底层配置好的连接池是:HikariDataSource</li>
|
||
</ul>
|
||
</li>
|
||
<li><p>DataSourceTransactionManagerAutoConfiguration: 事务管理器的自动配置</p>
|
||
</li>
|
||
<li><p>JdbcTemplateAutoConfiguration: JdbcTemplate的自动配置,可以来对数据库进行crud</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>可以修改这个配置项@ConfigurationProperties(prefix = “spring.jdbc”) 来修改JdbcTemplate</li>
|
||
</ul>
|
||
</li>
|
||
<li><p>JndiDataSourceAutoConfiguration: jndi的自动配置</p>
|
||
</li>
|
||
<li><p>XADataSourceAutoConfiguration: 分布式事务相关的</p>
|
||
</li>
|
||
</ul>
|
||
<h2 id="四-单元测试"><a href="#四-单元测试" class="headerlink" title="四.单元测试"></a>四.单元测试</h2><h3 id="1-JUnit5的变化"><a href="#1-JUnit5的变化" class="headerlink" title="1.JUnit5的变化"></a>1.JUnit5的变化</h3><p><strong>Spring Boot 2.2.0 版本开始引入 JUnit 5 作为单元测试默认库</strong></p>
|
||
<p>作为最新版本的JUnit框架,JUnit5与之前版本的Junit框架有很大的不同。由三个不同子项目的几个不同模块组成</p>
|
||
<p>JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage</p>
|
||
<p>JUnit Platform: Junit Platform是在JVM上启动测试框架的基础,不仅支持Junit自制的测试引擎,其他测试引擎也都可以接入</p>
|
||
<p>JUnit Jupiter: JUnit Jupiter提供了JUnit5的新的编程模型,是JUnit5新特性的核心。内部 包含了一个测试引擎,用于在Junit Platform上运行</p>
|
||
<p>JUnit Vintage: 由于JUint已经发展多年,为了照顾老的项目,JUnit Vintage提供了兼容JUnit4.x,Junit3.x的测试引擎</p>
|
||
<p><strong>注意:</strong></p>
|
||
<p>SpringBoot 2.4 以上版本移除了默认对 Vintage 的依赖。如果需要兼容junit4需要自行引入(不能使用junit4的功能 @Test)</p>
|
||
<p><strong>以前的版本</strong></p>
|
||
<p>兼容以前的版本(junit4)需要额外导入的依赖(SpringBoot 2.4 以上版本移除了默认对 Vintage 的依赖)</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.junit.vintage<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>junit-vintage-engine<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusions</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.hamcrest<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>hamcrest-core<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusions</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>标注的注解</p>
|
||
<p>@SpringBootTest + @RunWith(SpringRunner.class)+@Test(4版本的@Test)</p>
|
||
<p><strong>现在的版本</strong></p>
|
||
<p>需要导入的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-test<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>test<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>标注的注解</p>
|
||
<p>@SpringBootTest + @Test</p>
|
||
<p><strong>两个不同版本的 @Test 注解</strong></p>
|
||
<p><img src="/pictures/image-20230827112742347.png" alt="image-20230827112742347"></p>
|
||
<h3 id="2-JUnit5常用注解"><a href="#2-JUnit5常用注解" class="headerlink" title="2.JUnit5常用注解"></a>2.JUnit5常用注解</h3><p>JUnit5的注解与JUnit4的注解有所变化</p>
|
||
<p><a href="https://junit.org/junit5/docs/current/user-guide/#writing-tests-annotations">https://junit.org/junit5/docs/current/user-guide/#writing-tests-annotations</a></p>
|
||
<ul>
|
||
<li>@Test :表示方法是测试方法。但是与JUnit4的@Test不同,他的职责非常单一不能声明任何属性,拓展的测试将会由Jupiter提供额外测试</li>
|
||
<li>@ParameterizedTest :表示方法是参数化测试,下方会有详细介绍</li>
|
||
<li>@RepeatedTest :表示方法可重复执行,下方会有详细介绍</li>
|
||
<li>@DisplayName :为测试类或者测试方法设置展示名称</li>
|
||
</ul>
|
||
<p><img src="/pictures/image-20230827114256749.png" alt="image-20230827114256749"></p>
|
||
<ul>
|
||
<li><p>@BeforeEach :表示在每个单元测试之前执行</p>
|
||
</li>
|
||
<li><p>@AfterEach :表示在每个单元测试之后执行</p>
|
||
</li>
|
||
<li><p>@BeforeAll :表示在所有单元测试之前执行</p>
|
||
</li>
|
||
<li><p>@AfterAll :表示在所有单元测试之后执行</p>
|
||
</li>
|
||
</ul>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.*;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.jdbc.core.JdbcTemplate;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/27</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 测试junit5的相关注解</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@DisplayName("Junit5Test测试类")</span></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Junit5Test</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@DisplayName</span> 加在方法或者类上,为测试类或者测试方法设置展示名称</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Disabled</span></span><br><span class="line"> <span class="meta">@DisplayName("测试@DisplayName注解")</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testDisplayName</span><span class="params">()</span>{</span><br><span class="line"> log.info(<span class="string">"@DisplayName注解的测试"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在执行的单元测试方法之前运行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@BeforeEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testBeforeEach</span><span class="params">()</span>{</span><br><span class="line"> log.info(<span class="string">"执行了testBeforeEach()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在执行的单元测试方法之后运行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@AfterEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testAfterEach</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testAfterEach()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在所有的单元测试执行之后执行</span></span><br><span class="line"><span class="comment"> * 注意是静态方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@BeforeAll</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">testBeforeAll</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testBeforeAll()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在所有的单元测试执行之前执行</span></span><br><span class="line"><span class="comment"> * 注意是静态方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@AfterAll</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">testAfterAll</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testAfterAll()方法"</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>@Tag :表示单元测试类别,类似于JUnit4中的@Categories</li>
|
||
<li>@Disabled :表示测试类或测试方法不执行,类似于JUnit4中的@Ignore</li>
|
||
</ul>
|
||
<p><img src="/pictures/image-20230827115900097.png" alt="image-20230827115900097"></p>
|
||
<ul>
|
||
<li>@Timeout :表示测试方法运行如果超过了指定时间将会返回错误</li>
|
||
</ul>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 规定方法超时时间 超出时间测试出异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Timeout(value = 500, unit = TimeUnit.MILLISECONDS)</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testTimeout</span><span class="params">()</span> <span class="keyword">throws</span> InterruptedException {</span><br><span class="line"> Thread.sleep(<span class="number">600</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>@ExtendWith :为测试类或测试方法提供扩展类引用</li>
|
||
</ul>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 重复测试</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RepeatedTest(5)</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testRepeatedTest</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"重复测试中"</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230828095915653.png" alt="image-20230828095915653"></p>
|
||
<p><strong>全部的代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.*;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.jdbc.core.JdbcTemplate;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.concurrent.TimeUnit;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/8/27</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 测试junit5的相关注解</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@DisplayName("Junit5Test测试类")</span></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Junit5Test</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@DisplayName</span> 加在方法或者类上,为测试类或者测试方法设置展示名称</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Disabled</span></span><br><span class="line"> <span class="meta">@DisplayName("测试@DisplayName注解")</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testDisplayName</span><span class="params">()</span>{</span><br><span class="line"> log.info(<span class="string">"@DisplayName注解的测试"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在执行的单元测试方法之前运行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@BeforeEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testBeforeEach</span><span class="params">()</span>{</span><br><span class="line"> log.info(<span class="string">"执行了testBeforeEach()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在执行的单元测试方法之后运行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@AfterEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testAfterEach</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testAfterEach()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在所有的单元测试执行之后执行</span></span><br><span class="line"><span class="comment"> * 注意是静态方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@BeforeAll</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">testBeforeAll</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testBeforeAll()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 在所有的单元测试执行之前执行</span></span><br><span class="line"><span class="comment"> * 注意是静态方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@AfterAll</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">testAfterAll</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"执行了testAfterAll()方法"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 规定方法超时时间 超出时间测试出异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Timeout(value = 500, unit = TimeUnit.MILLISECONDS)</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testTimeout</span><span class="params">()</span> <span class="keyword">throws</span> InterruptedException {</span><br><span class="line"> Thread.sleep(<span class="number">600</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 重复测试</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@RepeatedTest(5)</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testRepeatedTest</span><span class="params">()</span> {</span><br><span class="line"> log.info(<span class="string">"重复测试中"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="3-断言"><a href="#3-断言" class="headerlink" title="3.断言"></a>3.断言</h3><p> 断言(assertions)是测试方法中的核心部分,用来对测试需要满足的条件进行验证。这些断言方法都是 org.junit.jupiter.api.Assertions 的静态方法。检查业务逻辑返回的数据是否合理。所有的测试运行结束以后,会有一个详细的测试报告。</p>
|
||
<h4 id="3-1-简单断言"><a href="#3-1-简单断言" class="headerlink" title="3.1 简单断言"></a>3.1 简单断言</h4><p>用来对单个值进行简单的验证</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>方法</th>
|
||
<th>说明</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td>assertEquals</td>
|
||
<td>判断两个对象或两个原始类型是否相等</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertNotEquals</td>
|
||
<td>判断两个对象或两个原始类型是否不相等</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertSame</td>
|
||
<td>判断两个对象引用是否指向同一个对象</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertNotSame</td>
|
||
<td>判断两个对象引用是否指向不同的对象</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertTrue</td>
|
||
<td>判断给定的布尔值是否为 true</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertFalse</td>
|
||
<td>判断给定的布尔值是否为 false</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertNull</td>
|
||
<td>判断给定的对象引用是否为 null</td>
|
||
</tr>
|
||
<tr>
|
||
<td>assertNotNull</td>
|
||
<td>判断给定的对象引用是否不为 null</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("简单断言")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">simple</span><span class="params">()</span> {</span><br><span class="line"> assertEquals(<span class="number">3</span>, <span class="number">1</span> + <span class="number">2</span>, <span class="string">"simple math"</span>);</span><br><span class="line"> assertNotEquals(<span class="number">3</span>, <span class="number">1</span> + <span class="number">1</span>);</span><br><span class="line"></span><br><span class="line"> assertNotSame(<span class="keyword">new</span> <span class="title class_">Object</span>(), <span class="keyword">new</span> <span class="title class_">Object</span>());</span><br><span class="line"> <span class="type">Object</span> <span class="variable">obj</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Object</span>();</span><br><span class="line"> assertSame(obj, obj);</span><br><span class="line"></span><br><span class="line"> assertFalse(<span class="number">1</span> > <span class="number">2</span>);</span><br><span class="line"> assertTrue(<span class="number">1</span> < <span class="number">2</span>);</span><br><span class="line"></span><br><span class="line"> assertNull(<span class="literal">null</span>);</span><br><span class="line"> assertNotNull(<span class="keyword">new</span> <span class="title class_">Object</span>());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-2-数组断言"><a href="#3-2-数组断言" class="headerlink" title="3.2 数组断言"></a>3.2 数组断言</h4><p>通过 assertArrayEquals 方法来判断两个对象或原始类型的数组是否相等</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("数组断言")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">array</span><span class="params">()</span> {</span><br><span class="line"> assertArrayEquals(<span class="keyword">new</span> <span class="title class_">int</span>[]{<span class="number">1</span>, <span class="number">2</span>}, <span class="keyword">new</span> <span class="title class_">int</span>[] {<span class="number">1</span>, <span class="number">2</span>});</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-3-组合断言"><a href="#3-3-组合断言" class="headerlink" title="3.3 组合断言"></a>3.3 组合断言</h4><p>assertAll 方法接受多个 org.junit.jupiter.api.Executable 函数式接口的实例作为要验证的断言,可以通过 lambda 表达式很容易的提供这些断言</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("组合断言")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">all</span><span class="params">()</span> {</span><br><span class="line"> assertAll(<span class="string">"Math"</span>,</span><br><span class="line"> () -> assertEquals(<span class="number">2</span>, <span class="number">1</span> + <span class="number">1</span>),</span><br><span class="line"> () -> assertTrue(<span class="number">1</span> > <span class="number">0</span>)</span><br><span class="line"> );</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-4-异常断言"><a href="#3-4-异常断言" class="headerlink" title="3.4 异常断言"></a>3.4 异常断言</h4><p>在JUnit4时期,想要测试方法的异常情况时,需要用@Rule注解的ExpectedException变量还是比较麻烦的。而JUnit5提供了一种新的断言方式Assertions.assertThrows() ,配合函数式编程就可以进行使用。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("异常测试")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">exceptionTest</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">ArithmeticException</span> <span class="variable">exception</span> <span class="operator">=</span> Assertions.assertThrows(</span><br><span class="line"> <span class="comment">//扔出断言异常</span></span><br><span class="line"> ArithmeticException.class, () -> System.out.println(<span class="number">1</span> % <span class="number">0</span>));</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-5-超时断言"><a href="#3-5-超时断言" class="headerlink" title="3.5 超时断言"></a>3.5 超时断言</h4><p>Junit5还提供了Assertions.assertTimeout() 为测试方法设置了超时时间</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("超时测试")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">timeoutTest</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//如果测试方法时间超过1s将会异常</span></span><br><span class="line"> Assertions.assertTimeout(Duration.ofMillis(<span class="number">1000</span>), () -> Thread.sleep(<span class="number">500</span>));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="3-6-快速失败"><a href="#3-6-快速失败" class="headerlink" title="3.6 快速失败"></a>3.6 快速失败</h4><p>通过 fail 方法直接使得测试失败</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="meta">@DisplayName("快速失败")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">shouldFail</span><span class="params">()</span> {</span><br><span class="line"> fail(<span class="string">"This should fail"</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>全部代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.admin;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.*;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"><span class="keyword">import</span> org.springframework.jdbc.core.JdbcTemplate;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.concurrent.TimeUnit;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> <span class="keyword">static</span> org.junit.jupiter.api.Assertions.*;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">/*@RunWith*/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@BootstrapWith</span>(SpringBootTestContextBootstrapper.class)</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@ExtendWith</span>(SpringExtension.class)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="comment">//@SpringBootTest</span></span><br><span class="line"><span class="meta">@DisplayName("junit5功能测试类")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Junit5Test</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 断言:前面断言失败,后面的代码都不会执行</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@DisplayName("简单断言")</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testSimpleAssertions</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">cal</span> <span class="operator">=</span> cal(<span class="number">3</span>, <span class="number">2</span>);</span><br><span class="line"> <span class="comment">//相等</span></span><br><span class="line"> assertEquals(<span class="number">6</span>, cal, <span class="string">"业务逻辑计算失败"</span>);</span><br><span class="line"> <span class="type">Object</span> <span class="variable">obj1</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Object</span>();</span><br><span class="line"> <span class="type">Object</span> <span class="variable">obj2</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Object</span>();</span><br><span class="line"> assertSame(obj1, obj2, <span class="string">"两个对象不一样"</span>);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("数组断言")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">array</span><span class="params">()</span> {</span><br><span class="line"> assertArrayEquals(<span class="keyword">new</span> <span class="title class_">int</span>[]{<span class="number">1</span>, <span class="number">2</span>}, <span class="keyword">new</span> <span class="title class_">int</span>[]{<span class="number">1</span>, <span class="number">2</span>}, <span class="string">"数组内容不相等"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("组合断言")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">all</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 所有断言全部需要成功</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> assertAll(<span class="string">"test"</span>,</span><br><span class="line"> () -> assertTrue(<span class="literal">true</span> && <span class="literal">true</span>, <span class="string">"结果不为true"</span>),</span><br><span class="line"> () -> assertEquals(<span class="number">1</span>, <span class="number">2</span>, <span class="string">"结果不是1"</span>));</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"====="</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@DisplayName("异常断言")</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testException</span><span class="params">()</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//断定业务逻辑一定出现异常</span></span><br><span class="line"> assertThrows(ArithmeticException.class, () -> {</span><br><span class="line"> <span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">10</span> / <span class="number">2</span>;</span><br><span class="line"> }, <span class="string">"业务逻辑居然正常运行?"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@DisplayName("快速失败")</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testFail</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">if</span>(<span class="number">1</span> == <span class="number">2</span>){</span><br><span class="line"> fail(<span class="string">"测试失败"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> <span class="type">int</span> <span class="title function_">cal</span><span class="params">(<span class="type">int</span> i, <span class="type">int</span> j)</span> {</span><br><span class="line"> <span class="keyword">return</span> i + j;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="4-前置条件"><a href="#4-前置条件" class="headerlink" title="4.前置条件"></a>4.前置条件</h3><p> JUnit 5 中的前置条件(assumptions[假设])类似于断言,不同之处在于不满足的断言会使得测试方法失败,而不满足的前置条件只会使得测试方法的执行终止。前置条件可以看成是测试方法执行的前提,当该前提不满足时,就没有继续执行的必要</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@DisplayName("前置条件")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AssumptionsTest</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">final</span> <span class="type">String</span> <span class="variable">environment</span> <span class="operator">=</span> <span class="string">"DEV"</span>;</span><br><span class="line"> </span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("simple")</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">simpleAssume</span><span class="params">()</span> {</span><br><span class="line"> assumeTrue(Objects.equals(<span class="built_in">this</span>.environment, <span class="string">"DEV"</span>));</span><br><span class="line"> assumeFalse(() -> Objects.equals(<span class="built_in">this</span>.environment, <span class="string">"PROD"</span>));</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("assume then do")</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">assumeThenDo</span><span class="params">()</span> {</span><br><span class="line"> assumingThat(</span><br><span class="line"> Objects.equals(<span class="built_in">this</span>.environment, <span class="string">"DEV"</span>),</span><br><span class="line"> () -> System.out.println(<span class="string">"In DEV"</span>)</span><br><span class="line"> );</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>assumeTrue 和 assumFalse 确保给定的条件为 true 或 false,不满足条件会使得测试执行终止</p>
|
||
<p>assumingThat 的参数是表示条件的布尔值和对应的 Executable 接口的实现对象</p>
|
||
<p>只有条件满足时,Executable 对象才会被执行;当条件不满足时,测试执行并不会终止</p>
|
||
<h3 id="5-嵌套测试"><a href="#5-嵌套测试" class="headerlink" title="5.嵌套测试"></a>5.嵌套测试</h3><p> JUnit 5 可以通过 Java 中的内部类和@Nested 注解实现嵌套测试,从而可以更好的把相关的测试方法组织在一起。在内部类中可以使用@BeforeEach 和@AfterEach 注解,而且嵌套的层次没有限制</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@DisplayName("A stack")</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">TestingAStackDemo</span> {</span><br><span class="line"></span><br><span class="line"> Stack<Object> stack;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("is instantiated with new Stack()")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">isInstantiatedWithNew</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Nested</span></span><br><span class="line"> <span class="meta">@DisplayName("when new")</span></span><br><span class="line"> <span class="keyword">class</span> <span class="title class_">WhenNew</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@BeforeEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">createNewStack</span><span class="params">()</span> {</span><br><span class="line"> stack = <span class="keyword">new</span> <span class="title class_">Stack</span><>();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("is empty")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">isEmpty</span><span class="params">()</span> {</span><br><span class="line"> assertTrue(stack.isEmpty());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("throws EmptyStackException when popped")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">throwsExceptionWhenPopped</span><span class="params">()</span> {</span><br><span class="line"> assertThrows(EmptyStackException.class, stack::pop);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("throws EmptyStackException when peeked")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">throwsExceptionWhenPeeked</span><span class="params">()</span> {</span><br><span class="line"> assertThrows(EmptyStackException.class, stack::peek);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Nested</span><span class="comment">//b</span></span><br><span class="line"> <span class="meta">@DisplayName("after pushing an element")</span></span><br><span class="line"> <span class="keyword">class</span> <span class="title class_">AfterPushing</span> {</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">anElement</span> <span class="operator">=</span> <span class="string">"an element"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@BeforeEach</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">pushAnElement</span><span class="params">()</span> {</span><br><span class="line"> stack.push(anElement);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("it is no longer empty")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">isNotEmpty</span><span class="params">()</span> {</span><br><span class="line"> assertFalse(stack.isEmpty());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("returns the element when popped and is empty")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">returnElementWhenPopped</span><span class="params">()</span> {</span><br><span class="line"> assertEquals(anElement, stack.pop());</span><br><span class="line"> assertTrue(stack.isEmpty());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="meta">@DisplayName("returns the element when peeked but remains not empty")</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">returnElementWhenPeeked</span><span class="params">()</span> {</span><br><span class="line"> assertEquals(anElement, stack.peek());</span><br><span class="line"> assertFalse(stack.isEmpty());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="6-参数化测试"><a href="#6-参数化测试" class="headerlink" title="6.参数化测试"></a>6.参数化测试</h3><p>参数化测试是JUnit5很重要的一个新特性,它使得用不同的参数多次运行测试成为了可能,也为我们的单元测试带来许多便利</p>
|
||
<p>利用@ValueSource等注解,指定入参,我们将可以使用不同的参数进行多次单元测试,而不需要每新增一个参数就新增一个单元测试,省去了很多冗余代码</p>
|
||
<p>@ValueSource: 为参数化测试指定入参来源,支持八大基础类以及String类型,Class类型</p>
|
||
<p>@NullSource: 表示为参数化测试提供一个null的入参</p>
|
||
<p>@EnumSource: 表示为参数化测试提供一个枚举入参</p>
|
||
<p>@CsvFileSource:表示读取指定CSV文件内容作为参数化测试入参</p>
|
||
<p>@MethodSource:表示读取指定方法的返回值作为参数化测试入参(注意方法返回需要是一个流)</p>
|
||
<p>当然如果参数化测试仅仅只能做到指定普通的入参还达不到让我觉得惊艳的地步。让我真正感到他的强大之处的地方在于他可以支持外部的各类入参。如:CSV,YML,JSON 文件甚至方法的返回值也可以作为入参。只需要去实现ArgumentsProvider接口,任何外部文件都可以作为它的入参</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@ParameterizedTest</span></span><br><span class="line"><span class="meta">@ValueSource(strings = {"one", "two", "three"})</span></span><br><span class="line"><span class="meta">@DisplayName("参数化测试")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">parameterizedTest</span><span class="params">(String string)</span> {</span><br><span class="line"> System.out.println(string);</span><br><span class="line"> Assertions.assertTrue(StringUtils.isNotBlank(string));</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@ParameterizedTest</span></span><br><span class="line"><span class="meta">@MethodSource("method")</span> <span class="comment">//指定方法名</span></span><br><span class="line"><span class="meta">@DisplayName("方法来源参数")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">testWithExplicitLocalMethodSource</span><span class="params">(String name)</span> {<span class="comment">//方法的参数来源于一个方法</span></span><br><span class="line"> System.out.println(name);</span><br><span class="line"> Assertions.assertNotNull(name);</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">static</span> Stream<String> <span class="title function_">method</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> Stream.of(<span class="string">"apple"</span>, <span class="string">"banana"</span>);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="7-迁移指南"><a href="#7-迁移指南" class="headerlink" title="7.迁移指南"></a>7.迁移指南</h3><p>在进行迁移(Junit4迁移到Junit5)的时候需要注意如下的变化:</p>
|
||
<ul>
|
||
<li>注解在 org.junit.jupiter.api 包中,断言在 org.junit.jupiter.api.Assertions 类中,前置条件在 org.junit.jupiter.api.Assumptions 类中。</li>
|
||
<li>把@Before 和@After 替换成@BeforeEach 和@AfterEach。</li>
|
||
<li>把@BeforeClass 和@AfterClass 替换成@BeforeAll 和@AfterAll。</li>
|
||
<li>把@Ignore 替换成@Disabled。</li>
|
||
<li>把@Category 替换成@Tag。</li>
|
||
<li>把@RunWith、@Rule 和@ClassRule 替换成@ExtendWith。</li>
|
||
</ul>
|
||
<h2 id="五-指标监控"><a href="#五-指标监控" class="headerlink" title="五.指标监控"></a>五.指标监控</h2><h3 id="1-SpringBoot-Actuator"><a href="#1-SpringBoot-Actuator" class="headerlink" title="1.SpringBoot Actuator"></a>1.SpringBoot Actuator</h3><p> 未来每一个微服务在云上部署以后,我们都需要对其进行监控、追踪、审计、控制等。SpringBoot就抽取了Actuator场景,使得我们每个微服务快速引用即可获得生产级别的应用监控、审计等功能</p>
|
||
<h4 id="1-1-如何使用"><a href="#1-1-如何使用" class="headerlink" title="1.1 如何使用"></a>1.1 如何使用</h4><p>1.引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-actuator<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.测试访问 <a href="http://localhost:8080/actuator/">http://localhost:8080/actuator/</a> endpoint节点</p>
|
||
<p><img src="/pictures/image-20230828110908056.png" alt="image-20230828110908056"></p>
|
||
<p><img src="/pictures/image-20230828110928951.png" alt="image-20230828110928951"></p>
|
||
<p>3.设置以web的方式访问所有的端点</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">management:</span></span><br><span class="line"> <span class="attr">endpoints:</span></span><br><span class="line"> <span class="attr">enabled-by-default:</span> <span class="literal">true</span> <span class="comment">#暴露所有端点信息</span></span><br><span class="line"> <span class="attr">web:</span></span><br><span class="line"> <span class="attr">exposure:</span></span><br><span class="line"> <span class="attr">include:</span> <span class="string">'*'</span> <span class="comment">#以web方式暴露所有的端点</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>设置之后就可以通过web(访问 <a href="http://localhost:8080/actuator/beans%EF%BC%89%E7%9A%84%E6%96%B9%E5%BC%8F%E8%AE%BF%E9%97%AEbeans%E7%AB%AF%E7%82%B9%E4%BA%86">http://localhost:8080/actuator/beans)的方式访问beans端点了</a></p>
|
||
<p><img src="/pictures/image-20230828113335033.png" alt="image-20230828113335033"></p>
|
||
<p><strong>支持的暴露方式</strong></p>
|
||
<ul>
|
||
<li>HTTP(web):默认只暴露health和info Endpoint,只能访问 <a href="http://localhost:8080/actuator/health%E5%92%8C">http://localhost:8080/actuator/health和</a> <a href="http://localhost:8080/actuator/info">http://localhost:8080/actuator/info</a></li>
|
||
<li>JMX(如Jconsole):默认暴露所有Endpoint,类似于cmd下打开jconsole,可以访问下面所有的endPoints</li>
|
||
<li>除过health和info,剩下的Endpoint都应该进行保护访问。如果引入SpringSecurity,则会默认配置安全访问规则</li>
|
||
</ul>
|
||
<p><strong>是通过web还是jmx方式访问的端点一览表</strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th>JMX</th>
|
||
<th>Web</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td><code>auditevents</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>beans</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>caches</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>conditions</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>configprops</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>env</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>flyway</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>health</code></td>
|
||
<td>Yes</td>
|
||
<td>Yes</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>heapdump</code></td>
|
||
<td>N/A</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>httptrace</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>info</code></td>
|
||
<td>Yes</td>
|
||
<td>Yes</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>integrationgraph</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>jolokia</code></td>
|
||
<td>N/A</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>logfile</code></td>
|
||
<td>N/A</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>loggers</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>liquibase</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>metrics</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>mappings</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>prometheus</code></td>
|
||
<td>N/A</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>scheduledtasks</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>sessions</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>shutdown</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>startup</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>threaddump</code></td>
|
||
<td>Yes</td>
|
||
<td>No</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<h4 id="1-2-常用的EndPoints"><a href="#1-2-常用的EndPoints" class="headerlink" title="1.2 常用的EndPoints"></a>1.2 常用的EndPoints</h4><p><strong><code>http://localhost:8080/actuator/endPoint </code></strong></p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th>描述</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td><code>auditevents</code></td>
|
||
<td>暴露当前应用程序的审核事件信息。需要一个<code>AuditEventRepository组件</code>。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>beans</code></td>
|
||
<td>显示应用程序中所有Spring Bean的完整列表。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>caches</code></td>
|
||
<td>暴露可用的缓存。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>conditions</code></td>
|
||
<td>显示自动配置的所有条件信息,包括匹配或不匹配的原因。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>configprops</code></td>
|
||
<td>显示所有<code>@ConfigurationProperties</code>。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>env</code></td>
|
||
<td>暴露Spring的属性<code>ConfigurableEnvironment</code></td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>flyway</code></td>
|
||
<td>显示已应用的所有Flyway数据库迁移。 需要一个或多个<code>Flyway</code>组件。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>health</code></td>
|
||
<td>显示应用程序运行状况信息。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>httptrace</code></td>
|
||
<td>显示HTTP跟踪信息(默认情况下,最近100个HTTP请求-响应)。需要一个<code>HttpTraceRepository</code>组件。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>info</code></td>
|
||
<td>显示应用程序信息。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>integrationgraph</code></td>
|
||
<td>显示Spring <code>integrationgraph</code> 。需要依赖<code>spring-integration-core</code>。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>loggers</code></td>
|
||
<td>显示和修改应用程序中日志的配置。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>liquibase</code></td>
|
||
<td>显示已应用的所有Liquibase数据库迁移。需要一个或多个<code>Liquibase</code>组件。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>metrics</code></td>
|
||
<td>显示当前应用程序的“指标”信息。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>mappings</code></td>
|
||
<td>显示所有<code>@RequestMapping</code>路径列表。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>scheduledtasks</code></td>
|
||
<td>显示应用程序中的计划任务。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>sessions</code></td>
|
||
<td>允许从Spring Session支持的会话存储中检索和删除用户会话。需要使用Spring Session的基于Servlet的Web应用程序。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>shutdown</code></td>
|
||
<td>使应用程序正常关闭。默认禁用。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>startup</code></td>
|
||
<td>显示由<code>ApplicationStartup</code>收集的启动步骤数据。需要使用<code>SpringApplication</code>进行配置<code>BufferingApplicationStartup</code>。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>threaddump</code></td>
|
||
<td>执行线程转储。</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p>如果您的应用程序是Web应用程序(Spring MVC,Spring WebFlux或Jersey),则可以使用以下附加端点:</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th>描述</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr>
|
||
<td><code>heapdump</code></td>
|
||
<td>返回<code>hprof</code>堆转储文件。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>jolokia</code></td>
|
||
<td>通过HTTP暴露JMX bean(需要引入Jolokia,不适用于WebFlux)。需要引入依赖<code>jolokia-core</code>。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>logfile</code></td>
|
||
<td>返回日志文件的内容(如果已设置<code>logging.file.name</code>或<code>logging.file.path</code>属性)。支持使用HTTP<code>Range</code>标头来检索部分日志文件的内容。</td>
|
||
</tr>
|
||
<tr>
|
||
<td><code>prometheus</code></td>
|
||
<td>以Prometheus服务器可以抓取的格式公开指标。需要依赖<code>micrometer-registry-prometheus</code>。</td>
|
||
</tr>
|
||
</tbody></table>
|
||
<p><strong>最常用的Endpoint</strong></p>
|
||
<ul>
|
||
<li>Health:监控状况</li>
|
||
<li>Metrics:运行时指标</li>
|
||
<li>Loggers:日志记录</li>
|
||
</ul>
|
||
<h4 id="1-3-Health-Endpoint"><a href="#1-3-Health-Endpoint" class="headerlink" title="1.3 Health Endpoint"></a>1.3 Health Endpoint</h4><p>健康检查端点,我们一般用于在云平台,平台会定时的检查应用的健康状况,我们就需要Health Endpoint可以为平台返回当前应用的一系列组件健康状况的集合。</p>
|
||
<p>重要的几点:</p>
|
||
<ul>
|
||
<li>health endpoint返回的结果,应该是一系列健康检查后的一个汇总报告</li>
|
||
<li>很多的健康检查默认已经自动配置好了,比如:数据库、redis等</li>
|
||
<li>可以很容易的添加自定义的健康检查机制</li>
|
||
</ul>
|
||
<p>设置显示health端点的详细信息</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">management:</span></span><br><span class="line"> <span class="attr">endpoint:</span></span><br><span class="line"> <span class="attr">health:</span></span><br><span class="line"> <span class="attr">show-details:</span> <span class="string">always</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230828142631189.png" alt="image-20230828142631189"></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span> <span class="string">"UP"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"components"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"db"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span> <span class="string">"UP"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"details"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"database"</span><span class="punctuation">:</span> <span class="string">"MySQL"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"validationQuery"</span><span class="punctuation">:</span> <span class="string">"isValid()"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"diskSpace"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span> <span class="string">"UP"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"details"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"total"</span><span class="punctuation">:</span> <span class="number">510769754112</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"free"</span><span class="punctuation">:</span> <span class="number">342642921472</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"threshold"</span><span class="punctuation">:</span> <span class="number">10485760</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"exists"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ping"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"status"</span><span class="punctuation">:</span> <span class="string">"UP"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-4-Metrics-Endpoint"><a href="#1-4-Metrics-Endpoint" class="headerlink" title="1.4 Metrics Endpoint"></a>1.4 Metrics Endpoint</h4><p>提供详细的、层级的、空间指标信息,这些信息可以被pull(主动推送)或者push(被动获取)方式得到;</p>
|
||
<ul>
|
||
<li>通过Metrics对接多种监控系统</li>
|
||
<li>简化核心Metrics开发</li>
|
||
<li>添加自定义Metrics或者扩展已有Metrics</li>
|
||
</ul>
|
||
<p>查看完整的监控指标信息 <a href="http://localhost:8080/actuator/metrics">http://localhost:8080/actuator/metrics</a></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"names"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"hikaricp.connections"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.acquire"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.active"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.creation"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.idle"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.max"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.min"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.pending"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.timeout"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"hikaricp.connections.usage"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"http.server.requests"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jdbc.connections.max"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jdbc.connections.min"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.buffer.count"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.buffer.memory.used"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.buffer.total.capacity"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.classes.loaded"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.classes.unloaded"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.gc.live.data.size"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.gc.max.data.size"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.gc.memory.allocated"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.gc.memory.promoted"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.gc.pause"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.memory.committed"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.memory.max"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.memory.used"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.threads.daemon"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.threads.live"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.threads.peak"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"jvm.threads.states"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"logback.events"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"process.cpu.usage"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"process.start.time"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"process.uptime"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"system.cpu.count"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="string">"system.cpu.usage"</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230828143224633.png" alt="image-20230828143224633"></p>
|
||
<p>查看某一个监控指标的详细信息(例如查看hikaricp.connections的详细信息) <a href="http://localhost:8080/actuator/metrics/hikaricp.connections">http://localhost:8080/actuator/metrics/hikaricp.connections</a> </p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"hikaricp.connections"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"description"</span><span class="punctuation">:</span> <span class="string">"Total connections"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"baseUnit"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"measurements"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"statistic"</span><span class="punctuation">:</span> <span class="string">"VALUE"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"value"</span><span class="punctuation">:</span> <span class="number">10</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"availableTags"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"tag"</span><span class="punctuation">:</span> <span class="string">"pool"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"values"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="string">"HikariPool-1"</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-5-管理Endpoint"><a href="#1-5-管理Endpoint" class="headerlink" title="1.5 管理Endpoint"></a>1.5 管理Endpoint</h4><p><strong>开启与禁用Endpoints</strong></p>
|
||
<ul>
|
||
<li>默认所有的Endpoint除过shutdown都是开启的。</li>
|
||
<li>需要开启或者禁用某个Endpoint 配置模式为 management.endpoint.endpointName.enabled = true</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">management:</span></span><br><span class="line"> <span class="attr">endpoint:</span></span><br><span class="line"> <span class="attr">beans:</span> <span class="comment">#可以写health、metrics等端点</span></span><br><span class="line"> <span class="attr">enabled:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<ul>
|
||
<li>或者禁用所有的Endpoint然后手动开启指定的Endpoint</li>
|
||
</ul>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">management:</span></span><br><span class="line"> <span class="attr">endpoints:</span></span><br><span class="line"> <span class="attr">enabled-by-default:</span> <span class="literal">false</span> <span class="comment">#禁用所有的端点(jconsole中也无法使用)</span></span><br><span class="line"> <span class="attr">endpoint:</span></span><br><span class="line"> <span class="attr">beans:</span></span><br><span class="line"> <span class="attr">enabled:</span> <span class="literal">true</span> <span class="comment">#逐一开启端点</span></span><br><span class="line"> <span class="attr">health:</span></span><br><span class="line"> <span class="attr">enabled:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-6-定制Endpoint"><a href="#1-6-定制Endpoint" class="headerlink" title="1.6 定制Endpoint"></a>1.6 定制Endpoint</h4><h5 id="1-6-1-定制health-endpoint"><a href="#1-6-1-定制health-endpoint" class="headerlink" title="1.6.1 定制health endpoint"></a>1.6.1 定制health endpoint</h5><p>1.编写MyComHealthIndicator类继承AbstractHealthIndicator</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.acutuator.health;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.health.AbstractHealthIndicator;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.health.Health;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.health.Status;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 自定义端点</span></span><br><span class="line"><span class="comment"> * 类的后缀必须为HealthIndicator</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyComHealthIndicator</span> <span class="keyword">extends</span> <span class="title class_">AbstractHealthIndicator</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 真实的检查方法 检查健康的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">protected</span> <span class="keyword">void</span> <span class="title function_">doHealthCheck</span><span class="params">(Health.Builder builder)</span> <span class="keyword">throws</span> Exception {</span><br><span class="line"> Map<String,Object> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">// 检查完成</span></span><br><span class="line"> <span class="keyword">if</span>(<span class="number">1</span> == <span class="number">1</span>){ <span class="comment">//这里我们可以编写一个业务逻辑,例如数据库是否连接成功的业务逻辑</span></span><br><span class="line"> <span class="comment">// builder.up(); //健康</span></span><br><span class="line"> builder.status(Status.UP);</span><br><span class="line"> map.put(<span class="string">"count"</span>,<span class="number">1</span>);</span><br><span class="line"> map.put(<span class="string">"ms"</span>,<span class="number">100</span>);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//builder.down();</span></span><br><span class="line"> builder.status(Status.OUT_OF_SERVICE);</span><br><span class="line"> map.put(<span class="string">"err"</span>,<span class="string">"连接超时"</span>);</span><br><span class="line"> map.put(<span class="string">"ms"</span>,<span class="number">3000</span>);</span><br><span class="line"> }</span><br><span class="line"> builder.withDetail(<span class="string">"code"</span>,<span class="number">100</span>)</span><br><span class="line"> .withDetails(map);</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>myCom = MyComHealthIndicator - HealthIndicator 所以类的名字一定要以HealthIndicator为后缀</p>
|
||
<p><img src="/pictures/image-20230828150633322.png" alt="image-20230828150633322"></p>
|
||
<h5 id="1-6-2-定制-info-endpoint"><a href="#1-6-2-定制-info-endpoint" class="headerlink" title="1.6.2 定制 info endpoint"></a>1.6.2 定制 info endpoint</h5><p>方式一: 编写配置文件</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">info:</span></span><br><span class="line"> <span class="attr">appName:</span> <span class="string">boot-admin</span> <span class="comment">#应用名</span></span><br><span class="line"> <span class="attr">version:</span> <span class="number">2.0</span><span class="number">.1</span> <span class="comment">#版本</span></span><br><span class="line"> <span class="attr">mavenProjectName:</span> <span class="string">@project.artifactId@</span> <span class="comment">#使用@@可以获取maven的pom文件值</span></span><br><span class="line"> <span class="attr">mavenProjectVersion:</span> <span class="string">@project.version@</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230828151416487.png" alt="image-20230828151416487"></p>
|
||
<p>方式二: 编写InfoContributor</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.acutuator.info;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.info.Info;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.info.InfoContributor;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Collections;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">AppInfoInfoContributor</span> <span class="keyword">implements</span> <span class="title class_">InfoContributor</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">contribute</span><span class="params">(Info.Builder builder)</span> {</span><br><span class="line"></span><br><span class="line"> builder.withDetail(<span class="string">"msg"</span>,<span class="string">"你好"</span>)</span><br><span class="line"> .withDetail(<span class="string">"hello"</span>,<span class="string">"atguigu"</span>)</span><br><span class="line"> .withDetails(Collections.singletonMap(<span class="string">"world"</span>,<span class="string">"666600"</span>));</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>如果我们没有删除上面配置文件的配置,这时我们访问 <a href="http://localhost:8080/actuator/info">http://localhost:8080/actuator/info</a> 的时候会将配置文件和InfoContributor中的信息共同返回</p>
|
||
<p><img src="/pictures/image-20230828152006549.png" alt="image-20230828152006549"></p>
|
||
<h5 id="1-6-3-定制Metrics信息"><a href="#1-6-3-定制Metrics信息" class="headerlink" title="1.6.3 定制Metrics信息"></a>1.6.3 定制Metrics信息</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">class</span> <span class="title class_">MyService</span>{</span><br><span class="line"> </span><br><span class="line"> Counter counter;</span><br><span class="line"> </span><br><span class="line"> <span class="comment">//构造器注入MeterRegistry</span></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">MyService</span><span class="params">(MeterRegistry meterRegistry)</span>{</span><br><span class="line"> <span class="comment">//访问 http://localhost:8080/actuator/metrics 的时候会多一个监控项myservice.method.running.counter</span></span><br><span class="line"> counter = meterRegistry.counter(<span class="string">"myservice.method.running.counter"</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">hello</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//调用hello方法的时候counter加1</span></span><br><span class="line"> counter.increment();</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">//也可以使用下面的方式</span></span><br><span class="line"><span class="meta">@Bean</span></span><br><span class="line">MeterBinder <span class="title function_">queueSize</span><span class="params">(Queue queue)</span> {</span><br><span class="line"> <span class="keyword">return</span> (registry) -> Gauge.builder(<span class="string">"queueSize"</span>, queue::size).register(registry);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-7-新增Endpoint"><a href="#1-7-新增Endpoint" class="headerlink" title="1.7 新增Endpoint"></a>1.7 新增Endpoint</h4><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.boot.acutuator.endpoint;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.endpoint.annotation.Endpoint;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.endpoint.annotation.ReadOperation;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.actuate.endpoint.annotation.WriteOperation;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Component;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.Collections;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Component</span></span><br><span class="line"><span class="meta">@Endpoint(id = "myservice")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyServiceEndPoint</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@ReadOperation</span></span><br><span class="line"> <span class="keyword">public</span> Map <span class="title function_">getDockerInfo</span><span class="params">()</span>{</span><br><span class="line"> <span class="comment">//端点的读操作 http://localhost:8080/actuator/myservice</span></span><br><span class="line"> <span class="keyword">return</span> Collections.singletonMap(<span class="string">"dockerInfo"</span>,<span class="string">"docker started....."</span>);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@WriteOperation</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">stopDocker</span><span class="params">()</span>{</span><br><span class="line"> System.out.println(<span class="string">"docker stopped....."</span>);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230828153914619.png" alt="image-20230828153914619"></p>
|
||
<p><img src="/pictures/image-20230828153902598.png" alt="image-20230828153902598"></p>
|
||
<h4 id="1-8-可视化"><a href="#1-8-可视化" class="headerlink" title="1.8 可视化"></a>1.8 可视化</h4><p>github地址: <a href="https://github.com/codecentric/spring-boot-admin">https://github.com/codecentric/spring-boot-admin</a></p>
|
||
<p>项目文档: <a href="https://docs.spring-boot-admin.com/current/getting-started.html">https://docs.spring-boot-admin.com/current/getting-started.html</a></p>
|
||
<p>1.创建一个新的springBoot项目用作服务端(场景只需要选择web场景即可)</p>
|
||
<p><img src="/pictures/image-20230828154818630.png" alt="image-20230828154818630"></p>
|
||
<p>2.引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>de.codecentric<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-admin-starter-server<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.在启动类上添加注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@EnableAdminServer</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.修改以下端口号以防和业务的端口冲突</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">server.port</span>=<span class="string">8888</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>5.访问<a href="http://localhost:8888/">http://localhost:8888</a></p>
|
||
<p><img src="/pictures/image-20230828155537932.png" alt="image-20230828155537932"></p>
|
||
<p>6.客户端上引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>de.codecentric<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-admin-starter-client<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.3.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>7.客户端的配置文件添加以下的配置</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.boot.admin.client.url</span>=<span class="string">http://localhost:8888 #服务端的地址</span></span><br><span class="line"><span class="attr">management.endpoints.web.exposure.include</span>=<span class="string">*</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>8.重启一下客户端,然后访问服务端的localhost:8080</p>
|
||
<p><img src="/pictures/image-20230828160606081.png" alt="image-20230828160606081"></p>
|
||
<p>点击应用墙,点击需要查看信息的应用就可以看到应用的详细信息</p>
|
||
<p><img src="/pictures/image-20230828160731314.png" alt="image-20230828160731314"></p>
|
||
<h2 id="六-原理解析"><a href="#六-原理解析" class="headerlink" title="六.原理解析"></a>六.原理解析</h2><h3 id="1-Profile功能"><a href="#1-Profile功能" class="headerlink" title="1.Profile功能"></a>1.Profile功能</h3><p>为了方便多环境适配,springboot简化了profile功能</p>
|
||
<ul>
|
||
<li><p>默认配置文件 application.yaml;任何时候都会加载</p>
|
||
</li>
|
||
<li><p>指定环境配置文件 application-{env}.yaml</p>
|
||
</li>
|
||
<li><p>激活指定环境</p>
|
||
</li>
|
||
<li><ul>
|
||
<li>配置文件激活,在默认配置文件 application.yaml 中添加spring.profiles.active=xxxx</li>
|
||
<li>命令行激活:java -jar xxx.jar –spring.profiles.active=prod</li>
|
||
</ul>
|
||
</li>
|
||
<li><ul>
|
||
<li><ul>
|
||
<li>修改配置文件的任意值,命令行优先</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li><p>默认配置与环境配置同时生效</p>
|
||
</li>
|
||
<li><p>同名配置项,profile配置优先</p>
|
||
</li>
|
||
</ul>
|
||
<p><strong>@Profile注解</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//@Profile("prod")</span></span><br><span class="line"><span class="comment">//可以标注在类和方法上</span></span><br><span class="line"><span class="comment">//标注在类和方法上表示在prod环境下启用</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>外部配置源</strong></p>
|
||
<p>常用:Java属性文件、YAML文件、环境变量、命令行参数;</p>
|
||
<p><strong>配置文件查找位置</strong></p>
|
||
<p>下面的优先级覆盖上面的优先级</p>
|
||
<p>(1) classpath 根路径</p>
|
||
<p>(2) classpath 根路径下config目录</p>
|
||
<p>(3) jar包当前目录</p>
|
||
<p>(4) jar包当前目录的config目录</p>
|
||
<p>(5) /config子目录的直接子目录</p>
|
||
<p><strong>配置文件加载顺序:</strong></p>
|
||
<ol>
|
||
<li> 当前jar包内部的application.properties和application.yml</li>
|
||
<li> 当前jar包内部的application-{profile}.properties 和 application-{profile}.yml</li>
|
||
<li> 引用的外部jar包的application.properties和application.yml</li>
|
||
<li> 引用的外部jar包的application-{profile}.properties 和 application-{profile}.yml</li>
|
||
</ol>
|
||
<p><strong>总结:</strong> 指定环境优先,外部优先,后面的可以覆盖前面的同名配置项</p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>SpringBoot</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>ElasticSearch</title>
|
||
<url>/posts/22654.html</url>
|
||
<content><![CDATA[<p>官网: <a href="https://www.elastic.co/cn/elasticsearch/">https://www.elastic.co/cn/elasticsearch/</a></p>
|
||
<h1 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h1><p> Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎,能够解决不断涌现出的各种用例。作为 Elastic Stack 的核心,Elasticsearch 会集中存储您的数据,让您飞快完成搜索,微调相关性,进行强大的分析,并轻松缩放规模。</p>
|
||
<h1 id="一-基本概念"><a href="#一-基本概念" class="headerlink" title="一.基本概念"></a>一.基本概念</h1><p><strong>1.Index(索引)</strong></p>
|
||
<p>动词:相当于mysql的insert</p>
|
||
<p>名词:相当于mysql的database</p>
|
||
<p><strong>2.Type(类型)</strong></p>
|
||
<p>在index中可以定义一个或者多个类型</p>
|
||
<p>类似于mysql中的Table;每一种类型的数据放在一起</p>
|
||
<p><strong>3.Document(文档)</strong></p>
|
||
<p>保存在某个索引(index)下,某种类型(Type)的一个数据(Document),文档是JSON格式的,</p>
|
||
<p>Document就是像mysql中的某个Table里面的内容。</p>
|
||
<p><strong>4.倒排索引</strong></p>
|
||
<p><img src="/pictures/image-20230628180000365.png" alt="image-20230628180000365"></p>
|
||
<h1 id="二-Docker安装ElasticSearch"><a href="#二-Docker安装ElasticSearch" class="headerlink" title="二.Docker安装ElasticSearch"></a>二.Docker安装ElasticSearch</h1><h2 id="1-安装ElasticSearch-存储和检索数据"><a href="#1-安装ElasticSearch-存储和检索数据" class="headerlink" title="1.安装ElasticSearch(存储和检索数据)"></a>1.安装ElasticSearch(存储和检索数据)</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">拉取ElasticSearch</span></span><br><span class="line">docker pull elasticsearch:7.4.2</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">ES的配置文件存放的位置</span></span><br><span class="line">mkdir -p /mydata/elasticsearch/config</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">ES相关的数据</span></span><br><span class="line">mkdir -p /mydata/elasticsearch/data</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">将<span class="string">"http.host: 0.0.0.0"</span>(可以被任何的机器访问)的配置写入elasticsearch.yml中(注意冒号后面的空格)</span></span><br><span class="line">echo "http.host: 0.0.0.0" >> /mydata/elasticsearch/config/elasticsearch.yml</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置文件的权限</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">递归更改权限,es需要访问</span></span><br><span class="line">chmod -R 777 /mydata/elasticsearch/</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">运行容器的命令 9200端口用于发送请求使用 9300端口用于集群中节点中的通信使用</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">单节点运行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">初始占用64m,最大占用512m(不指定,ES会占用所有的内存)</span></span><br><span class="line">docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \</span><br><span class="line">-e "discovery.type=single-node" \</span><br><span class="line">-e ES_JAVA_OPTS="-Xms64m -Xmx512m" \</span><br><span class="line">-v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \</span><br><span class="line">-v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \</span><br><span class="line">-v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \</span><br><span class="line">-d elasticsearch:7.4.2 </span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动elasticsearch</span></span><br><span class="line">docker update elasticsearch --restart=always</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">访问端口 测试是否安装成功</span></span><br><span class="line">http://虚拟机的ip:9200/</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230628191936254.png" alt="image-20230628191936254"></p>
|
||
<h2 id="2-安装Kibana-可视化检索数据"><a href="#2-安装Kibana-可视化检索数据" class="headerlink" title="2.安装Kibana(可视化检索数据)"></a>2.安装Kibana(可视化检索数据)</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取Kibana</span></span><br><span class="line">docker pull kibana:7.4.2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">这里-e是自己的elasticsearch服务地址(这里的地址一定要改为自己虚拟机的地址)</span></span><br><span class="line">docker run --name kibana -e ELASTICSEARCH_HOSTS=http://192.168.195.100:9200 -p 5601:5601 -d kibana:7.4.2</span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">设置开机启动kibana</span></span><br><span class="line">docker update kibana --restart=always</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">访问对应的网址查看服务</span></span><br><span class="line">http://虚拟机的ip:5601</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701104616032.png" alt="image-20230701104616032"></p>
|
||
<h1 id="三-初步检索"><a href="#三-初步检索" class="headerlink" title="三.初步检索"></a>三.初步检索</h1><h2 id="1-Cat"><a href="#1-Cat" class="headerlink" title="1._Cat"></a>1._Cat</h2><p>GET/_cat/nodes 查看所有节点</p>
|
||
<p>GET/_cat/health 查看es的健康状态</p>
|
||
<p>GET/_cat/master 查看主节点</p>
|
||
<p>GET/_cat/indices 查看所有索引 </p>
|
||
<h2 id="2-索引文档-保存"><a href="#2-索引文档-保存" class="headerlink" title="2.索引文档(保存)"></a>2.索引文档(保存)</h2><p><strong>保存操作可以发送PUT或者POST请求</strong></p>
|
||
<p>put需要在路径上指定id</p>
|
||
<p>post请求可以不指定id,自动生成一个唯一标识</p>
|
||
<p>例:PUT customer/external/1 在customer索引下的external类型下保存1号数据为</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">-> PUT customer/external/<span class="number">1</span></span><br><span class="line"><span class="comment">//请求体</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span><span class="string">"John Doe"</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701144040577.png" alt="image-20230701144040577"></p>
|
||
<p>返回的数据解析</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//_开头的数据称为元数据</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span><span class="punctuation">:</span> <span class="string">"customer"</span><span class="punctuation">,</span><span class="comment">//数据存在的数据库</span></span><br><span class="line"> <span class="attr">"_type"</span><span class="punctuation">:</span> <span class="string">"external"</span><span class="punctuation">,</span><span class="comment">//保存数据的类型</span></span><br><span class="line"> <span class="attr">"_id"</span><span class="punctuation">:</span> <span class="string">"1"</span><span class="punctuation">,</span><span class="comment">//数据的id</span></span><br><span class="line"> <span class="attr">"_version"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span><span class="comment">//数据的版本</span></span><br><span class="line"> <span class="attr">"result"</span><span class="punctuation">:</span> <span class="string">"created"</span><span class="punctuation">,</span><span class="comment">//保存为"created",修改为"updated",发送多次为更新的操作</span></span><br><span class="line"> <span class="attr">"_shards"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//分片</span></span><br><span class="line"> <span class="attr">"total"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"successful"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"failed"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_seq_no"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_primary_term"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-查询文档"><a href="#3-查询文档" class="headerlink" title="3.查询文档"></a>3.查询文档</h2><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">-> GET customer/external/<span class="number">1</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701145518348.png" alt="image-20230701145518348"></p>
|
||
<p>返回数据解析</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span><span class="punctuation">:</span> <span class="string">"customer"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span><span class="punctuation">:</span> <span class="string">"external"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span><span class="punctuation">:</span> <span class="string">"1"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_version"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_seq_no"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span><span class="comment">//并发控制的字段,每次更新就会+1,用来做乐观锁</span></span><br><span class="line"> <span class="attr">"_primary_term"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span><span class="comment">//同上,主分片重新分配,如重启,就会有变化</span></span><br><span class="line"> <span class="attr">"found"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">true</span></span><span class="punctuation">,</span><span class="comment">//是否找到</span></span><br><span class="line"> <span class="attr">"_source"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//数据真正的内容</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"John Doe"</span> </span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="4-更新文档"><a href="#4-更新文档" class="headerlink" title="4.更新文档"></a>4.更新文档</h2><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">POST customer/external/<span class="number">1</span>/_update <span class="comment">//对比原先的数据,和原先的一样_version和_seq_no不会发生改变</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"doc"</span><span class="punctuation">:</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"John Doe"</span> </span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br><span class="line">或者 </span><br><span class="line">POST customer/external/<span class="number">1</span> <span class="comment">//和之前的数据一样的话也会执行更新操作</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"John Doe"</span></span><br><span class="line"><span class="punctuation">}</span></span><br><span class="line">或者</span><br><span class="line">PUT customer/external/<span class="number">1</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"John Doe"</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p> 使用POST customer/external/1/_update 的方式进行更新会对比原先的数据,和原先的一样version和_seq_no不会发生改变,下面是我们使用同样的数据发送两次更新请求,第二次的result显示”noop”,没有进行操作</p>
|
||
<p><img src="/pictures/image-20230701151445190.png" alt="image-20230701151445190"></p>
|
||
<h2 id="5-删除文档-索引"><a href="#5-删除文档-索引" class="headerlink" title="5.删除文档|索引"></a>5.删除文档|索引</h2><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">DELETE customer/external/<span class="number">1</span></span><br><span class="line">DELETE customer</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>删除文档</p>
|
||
<p><img src="/pictures/image-20230701152501989.png" alt="image-20230701152501989"></p>
|
||
<p>删除索引</p>
|
||
<p><img src="/pictures/image-20230701152648756.png" alt="image-20230701152648756"></p>
|
||
<h2 id="6-bulk批量API"><a href="#6-bulk批量API" class="headerlink" title="6.bulk批量API"></a>6.bulk批量API</h2><p><strong>Kibana的使用</strong></p>
|
||
<p><img src="/pictures/image-20230701153754438.png" alt="image-20230701153754438"></p>
|
||
<p><strong>批量保存数据</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">POST /customer/external/_bulk</span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"1"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"name"</span><span class="punctuation">:</span><span class="string">"a"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"2"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"name"</span><span class="punctuation">:</span><span class="string">"b"</span><span class="punctuation">}</span></span><br><span class="line">新增两条数据</span><br><span class="line">新增id为<span class="number">1</span>的 对应 name为a</span><br><span class="line">新增Id为<span class="number">2</span>的 对应 name为b</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701154217181.png" alt="image-20230701154217181"></p>
|
||
<p><strong>复杂批量操作</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">POST /_bulk</span><br><span class="line"><span class="punctuation">{</span><span class="attr">"delete"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_index"</span><span class="punctuation">:</span><span class="string">"website"</span><span class="punctuation">,</span><span class="attr">"_type"</span><span class="punctuation">:</span><span class="string">"blog"</span><span class="punctuation">,</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"123"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"create"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_index"</span><span class="punctuation">:</span><span class="string">"website"</span><span class="punctuation">,</span><span class="attr">"_type"</span><span class="punctuation">:</span><span class="string">"blog"</span><span class="punctuation">,</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"123"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"title"</span><span class="punctuation">:</span><span class="string">"my first blog post"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_index"</span><span class="punctuation">:</span><span class="string">"website"</span><span class="punctuation">,</span><span class="attr">"_type"</span><span class="punctuation">:</span><span class="string">"blog"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"title"</span><span class="punctuation">:</span><span class="string">"my second blog post"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"update"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_index"</span><span class="punctuation">:</span><span class="string">"website"</span><span class="punctuation">,</span><span class="attr">"_type"</span><span class="punctuation">:</span><span class="string">"blog"</span><span class="punctuation">,</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"123"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"doc"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"title"</span><span class="punctuation">:</span><span class="string">"my updated blog post"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701154839574.png" alt="image-20230701154839574"></p>
|
||
<h2 id="7-样本测试数据"><a href="#7-样本测试数据" class="headerlink" title="7.样本测试数据"></a>7.样本测试数据</h2><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">POST /bank/account/_bulk</span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"1"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">1</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39225</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Amber"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Duke"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"880 Holmes Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pyrami"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"amberduke@pyrami.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brogan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"6"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">6</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5686</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hattie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bond"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"671 Bristol Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netagy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hattiebond@netagy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dante"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"13"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">13</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32838</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nanette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bates"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"789 Madison Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quility"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nanettebates@quility.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nogal"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"18"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">18</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4180</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dale"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Adams"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"467 Hutchinson Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Boink"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"daleadams@boink.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Orick"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"20"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16418</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elinor"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ratliff"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"282 Kings Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Scentric"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elinorratliff@scentric.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ribera"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"25"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40540</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Virginia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ayala"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"171 Putnam Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Filodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"virginiaayala@filodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nicholson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"32"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48086</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dillard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcpherson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"702 Quentin Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quailcom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dillardmcpherson@quailcom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Veguita"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"37"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18612</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcgee"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mooney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"826 Fillmore Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Reversus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcgeemooney@reversus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tooleville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"44"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">44</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34487</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Aurelia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harding"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"502 Baycliff Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbalix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aureliaharding@orbalix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yardville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"49"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">49</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29104</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fulton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"451 Humboldt Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Anocha"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fultonholt@anocha.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sunriver"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"51"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">51</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14097</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Burton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Meyers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"334 River Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bezal"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"burtonmeyers@bezal.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jacksonburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"56"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">56</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14992</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Josie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nelson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"857 Tabor Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Emtrac"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"josienelson@emtrac.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sunnyside"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"63"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">63</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6077</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hughes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Owens"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"510 Sedgwick Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Valpreal"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hughesowens@valpreal.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Guilford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"68"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">68</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44214</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hall"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Key"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"927 Bay Parkway"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eventex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hallkey@eventex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shawmut"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"70"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">70</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38172</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Deidre"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Thompson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"685 School Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netplode"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deidrethompson@netplode.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chestnut"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"75"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">75</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40500</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sandoval"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kramer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"166 Irvington Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Overfork"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sandovalkramer@overfork.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Limestone"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"82"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">82</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41412</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Concetta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barnes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"195 Bayview Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fitcore"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"concettabarnes@fitcore.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Summerfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"87"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">87</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1133</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hewitt"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kidd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"446 Halleck Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isologics"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hewittkidd@isologics.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coalmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"94"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">94</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41060</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brittany"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cabrera"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"183 Kathleen Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mixers"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brittanycabrera@mixers.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cornucopia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"99"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">99</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47159</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ratliff"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Heath"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"806 Rockwell Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zappix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ratliffheath@zappix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shaft"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"102"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">102</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29712</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Olson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"759 Newkirk Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hinway"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"denaolson@hinway.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Choctaw"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"107"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">107</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48844</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Randi"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rich"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"694 Jefferson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netplax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"randirich@netplax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bellfountain"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"114"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">114</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43045</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Josephine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Joseph"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"451 Oriental Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Turnabout"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"josephinejoseph@turnabout.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sedley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"119"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">119</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49222</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Laverne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Johnson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"302 Howard Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Senmei"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lavernejohnson@senmei.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Herlong"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"121"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">121</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19594</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Acevedo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dorsey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"479 Nova Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netropic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"acevedodorsey@netropic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Islandia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"126"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">126</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3607</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Effie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gates"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"620 National Drive"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digitalus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"effiegates@digitalus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blodgett"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"133"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">133</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26135</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Deena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Richmond"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"646 Underhill Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sunclipse"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deenarichmond@sunclipse.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Austinburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"138"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">138</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9006</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Daniel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Arnold"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"422 Malbone Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecstasia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"danielarnold@ecstasia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gardiner"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"140"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">140</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26696</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cotton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Christensen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"878 Schermerhorn Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Prowaste"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cottonchristensen@prowaste.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mayfair"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"145"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">145</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47406</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rowena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilkinson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"891 Elton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Asimiline"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rowenawilkinson@asimiline.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ripley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"152"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">152</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8088</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wolfe"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rocha"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"457 Guernsey Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hivedom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wolferocha@hivedom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Adelino"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"157"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">157</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39868</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Claudia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Terry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"132 Gunnison Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lumbrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"claudiaterry@lumbrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Castleton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"164"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">164</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9101</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cummings"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Little"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"308 Schaefer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtrak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cummingslittle@comtrak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chaparrito"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"169"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">169</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45953</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hollie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Osborn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"671 Seaview Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Musaphics"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hollieosborn@musaphics.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hanover"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"171"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">171</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7091</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nelda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hopper"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"742 Prospect Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Equicom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"neldahopper@equicom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Finderne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"176"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">176</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18607</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kemp"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walters"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"906 Howard Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eyewax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kempwalters@eyewax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Why"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"183"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">183</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14223</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hudson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"English"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"823 Herkimer Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xinware"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hudsonenglish@xinware.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Robbins"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"188"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">188</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41504</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Miranda"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"583 Ainslie Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Jasper"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tiamiranda@jasper.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Summerset"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"190"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">190</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3150</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blake"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Davidson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"636 Diamond Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quantasis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blakedavidson@quantasis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crumpler"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"195"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">195</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5025</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kaye"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gibson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"955 Hopkins Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zork"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kayegibson@zork.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ola"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"203"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">203</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21890</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eve"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wyatt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"435 Furman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Assitia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"evewyatt@assitia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jamestown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"208"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">208</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40760</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Garcia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hess"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"810 Nostrand Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quiltigen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"garciahess@quiltigen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brooktrails"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"210"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">210</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33946</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cherry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"539 Tiffany Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Martgo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cherrycarey@martgo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairacres"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"215"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">215</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37427</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Copeland"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Solomon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"741 McDonald Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Recognia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"copelandsolomon@recognia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edmund"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"222"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">222</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14764</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rachelle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rice"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"333 Narrows Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enaut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rachellerice@enaut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wright"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"227"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">227</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19780</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Coleman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Berg"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"776 Little Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exoteric"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"colemanberg@exoteric.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eagleville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"234"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">234</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44207</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Betty"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hall"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"709 Garfield Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Miraclis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bettyhall@miraclis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bendon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"239"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">239</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25719</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Chang"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Boyer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"895 Brigham Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qaboos"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"changboyer@qaboos.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belgreen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"241"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">241</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25379</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Schroeder"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harrington"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"610 Tapscott Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Otherway"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"schroederharrington@otherway.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ebro"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"246"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">246</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28405</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Katheryn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Foster"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"259 Kane Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quantalia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"katherynfoster@quantalia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bath"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"253"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">253</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20240</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Melissa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gould"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"440 Fuller Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Buzzopia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"melissagould@buzzopia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lumberton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"258"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">258</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5712</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lindsey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hawkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"706 Frost Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enormo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lindseyhawkins@enormo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gardners"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"260"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">260</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2726</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kari"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Skinner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"735 Losee Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Singavera"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kariskinner@singavera.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rushford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"265"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">265</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46910</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marion"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Schneider"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"574 Everett Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Evidends"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marionschneider@evidends.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Maplewood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"272"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">272</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19253</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lilly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morgan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"689 Fleet Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Biolive"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lillymorgan@biolive.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sunbury"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"277"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">277</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29564</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Romero"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lott"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"456 Danforth Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plasto"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"romerolott@plasto.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vincent"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"284"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">284</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22806</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Randolph"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Banks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"875 Hamilton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Caxt"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"randolphbanks@caxt.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crawfordsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"289"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">289</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7798</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blair"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Church"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"370 Sutton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cubix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blairchurch@cubix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nile"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"291"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">291</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19955</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lynn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pollard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"685 Pierrepont Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Slambda"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lynnpollard@slambda.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mappsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"296"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">296</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24606</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Oliver"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"168 Woodbine Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Idetica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosaoliver@idetica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Robinson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"304"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">304</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28647</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Palmer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clark"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"866 Boulevard Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Maximind"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"palmerclark@maximind.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Avalon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"309"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">309</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3830</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosemarie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nieves"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"206 Alice Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zounds"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosemarienieves@zounds.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ferney"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"311"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">311</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13388</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vinson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ballard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"960 Glendale Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gynk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vinsonballard@gynk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairforest"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"316"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">316</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8214</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Anita"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ewing"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"396 Lombardy Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Panzent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"anitaewing@panzent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Neahkahnie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"323"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">323</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42230</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Chelsea"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gamble"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"356 Dare Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isosphere"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"chelseagamble@isosphere.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dundee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"328"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">328</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12523</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Good"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Campbell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"438 Hicks Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gracker"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"goodcampbell@gracker.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marion"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"330"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">330</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41620</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Yvette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Browning"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"431 Beekman Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Marketoid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"yvettebrowning@marketoid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Talpa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"335"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">335</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35433</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vera"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hansen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"252 Bushwick Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zanilla"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"verahansen@zanilla.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Manila"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"342"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">342</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33670</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vivian"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wells"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"570 Cobek Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nutralab"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vivianwells@nutralab.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fontanelle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"347"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">347</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36038</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gould"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"784 Pulaski Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mobildata"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gouldcarson@mobildata.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Goochland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"354"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">354</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21294</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kidd"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mclean"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"691 Saratoga Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ronbert"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kiddmclean@ronbert.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tioga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"359"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">359</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29927</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vanessa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harvey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"679 Rutledge Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentime"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vanessaharvey@zentime.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Williston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"361"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">361</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23659</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Noreen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shelton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"702 Tillary Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medmex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"noreenshelton@medmex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Derwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"366"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">366</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42368</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lydia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cooke"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"470 Coleman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comstar"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lydiacooke@comstar.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Datil"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"373"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">373</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9671</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Simpson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carpenter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"837 Horace Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Snips"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"simpsoncarpenter@snips.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tolu"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"378"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">378</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27100</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Watson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Simpson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"644 Thomas Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Wrapture"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"watsonsimpson@wrapture.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Keller"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"380"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">380</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35628</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fernandez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reid"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"154 Melba Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cosmosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fernandezreid@cosmosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Boyd"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"385"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">385</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11022</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosalinda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Valencia"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"933 Lloyd Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zoarere"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosalindavalencia@zoarere.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waverly"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"392"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">392</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31613</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dotson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dean"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"136 Ford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Petigems"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dotsondean@petigems.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chical"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"397"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">397</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37418</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leonard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gray"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"840 Morgan Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Recritube"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leonardgray@recritube.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edenburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"400"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">400</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20685</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kane"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"King"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"405 Cornelia Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tri@Tribalog"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kaneking@tri@tribalog.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gulf"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"405"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">405</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5679</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Strickland"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fuller"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"990 Concord Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digique"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stricklandfuller@digique.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Southmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"412"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">412</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27436</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ilene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Abbott"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"846 Vine Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Typhonica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ileneabbott@typhonica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cedarville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"417"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">417</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1788</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wheeler"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ayers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"677 Hope Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fortean"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wheelerayers@fortean.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ironton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"424"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">424</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36818</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tracie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gregory"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"112 Hunterfly Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comstruct"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"traciegregory@comstruct.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Onton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"429"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">429</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46970</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cantu"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lindsey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"404 Willoughby Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Inquala"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cantulindsey@inquala.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cowiche"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"431"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">431</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13136</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Laurie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shaw"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"263 Aviation Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillanet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laurieshaw@zillanet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harmon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"436"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">436</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27585</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alexander"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sargent"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"363 Albemarle Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fangold"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alexandersargent@fangold.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Calpine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"443"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">443</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7588</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Huff"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Thomas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"538 Erskine Loop"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accufarm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"huffthomas@accufarm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Corinne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"448"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">448</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22776</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Adriana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcfadden"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"984 Woodside Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Telequiet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adrianamcfadden@telequiet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Darrtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"450"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">450</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2643</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bradford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nielsen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"487 Keen Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exovent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bradfordnielsen@exovent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hamilton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"455"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">455</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39556</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lynn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tran"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"741 Richmond Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Optyk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lynntran@optyk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clinton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"462"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">462</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10871</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Calderon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Day"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"810 Milford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cofine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"calderonday@cofine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kula"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"467"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">467</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6312</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Angelica"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"May"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"384 Karweg Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Keeg"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"angelicamay@keeg.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tetherow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"474"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">474</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35896</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Obrien"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"192 Ide Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Suremax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"obrienwalton@suremax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crucible"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"479"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">479</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31865</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cameron"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ross"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"904 Bouck Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Telpod"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cameronross@telpod.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nord"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"481"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">481</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20024</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stanley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"361 Hanover Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Strozen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"linastanley@strozen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wyoming"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"486"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">486</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35902</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dixie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fuentes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"991 Applegate Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Portico"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dixiefuentes@portico.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Salix"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"493"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">493</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5871</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Campbell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Best"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"297 Friel Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fanfare"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"campbellbest@fanfare.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kidder"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"498"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">498</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10516</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Stella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hinton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"649 Columbia Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Flyboyz"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stellahinton@flyboyz.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crenshaw"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"501"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">501</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16572</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kelley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ochoa"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"451 Clifton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bluplanet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kelleyochoa@bluplanet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gouglersville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"506"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">506</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43440</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Davidson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Salas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"731 Cleveland Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sequitur"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"davidsonsalas@sequitur.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lloyd"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"513"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">513</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30040</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maryellen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rose"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"428 Durland Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Waterbaby"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maryellenrose@waterbaby.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kiskimere"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"518"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">518</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48954</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Finch"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Curtis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"137 Ryder Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Viagrand"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"finchcurtis@viagrand.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Riverton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"520"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">520</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27987</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brandy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Calhoun"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"818 Harden Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Maxemia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brandycalhoun@maxemia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sidman"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"525"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">525</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23545</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Miles"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"746 Ludlam Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xurban"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hollymiles@xurban.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harold"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"532"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">532</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17207</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hardin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kirk"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"268 Canarsie Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exposa"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hardinkirk@exposa.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stouchsburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"537"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">537</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31069</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Frost"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"910 Lake Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Primordia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"morinfrost@primordia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rivera"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"544"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">544</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41735</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Short"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dennis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"908 Glen Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Minga"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shortdennis@minga.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"549"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">549</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1932</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jacqueline"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Maxwell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"444 Schenck Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fuelworks"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jacquelinemaxwell@fuelworks.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oretta"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"551"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">551</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21732</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Milagros"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Travis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"380 Murdock Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sloganaut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"milagrostravis@sloganaut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Homeland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"556"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">556</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36420</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Collier"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Odonnell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"591 Nolans Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sultraxin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"collierodonnell@sultraxin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fulford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"563"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">563</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43403</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morgan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Torres"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"672 Belvidere Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quonata"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"morgantorres@quonata.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hollymead"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"568"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">568</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36628</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lesa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Maynard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"295 Whitty Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Coash"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lesamaynard@coash.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Broadlands"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"570"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">570</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26751</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Church"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mercado"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"892 Wyckoff Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xymonk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"churchmercado@xymonk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gloucester"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"575"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">575</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12588</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Buchanan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pope"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"581 Sumner Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Stucco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"buchananpope@stucco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ellerslie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"582"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">582</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33371</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Manning"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Guthrie"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"271 Jodie Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xerex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"manningguthrie@xerex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Breinigsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"587"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">587</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3468</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Johns"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"390 Noll Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gallaxia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carlyjohns@gallaxia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Emison"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"594"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">594</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28194</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Golden"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Donovan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"199 Jewel Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Organica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"goldendonovan@organica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Macdona"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"599"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">599</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11944</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Joanna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jennings"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"318 Irving Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Extremo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"joannajennings@extremo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bartley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"602"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">602</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38699</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcgowan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcclain"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"361 Stoddard Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Oatfarm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcgowanmcclain@oatfarm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kapowsin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"607"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">607</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38350</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"White"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Small"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"736 Judge Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Immunics"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"whitesmall@immunics.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"614"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">614</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13157</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Salazar"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Howard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"847 Imlay Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Retrack"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"salazarhoward@retrack.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"619"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">619</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48755</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Grimes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reynolds"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"378 Denton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Frenex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"grimesreynolds@frenex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Murillo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"621"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">621</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35480</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leslie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sloan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"336 Kansas Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dancity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lesliesloan@dancity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Corriganville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"626"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">626</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19498</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ava"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Richardson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"666 Nautilus Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cinaster"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"avarichardson@cinaster.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sutton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"633"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">633</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35874</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Conner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ramos"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"575 Agate Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insource"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"connerramos@insource.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Madaket"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"638"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">638</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2658</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bridget"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gallegos"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"383 Wogan Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Songlines"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bridgetgallegos@songlines.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Linganore"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"640"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">640</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35596</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Candace"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hancock"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"574 Riverdale Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Animalia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"candacehancock@animalia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blandburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"645"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">645</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29362</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Edwina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hutchinson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"892 Pacific Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Essensia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"edwinahutchinson@essensia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dowling"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"652"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">652</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17363</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bonner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Garner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"219 Grafton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Utarian"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bonnergarner@utarian.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vandiver"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"657"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">657</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40475</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kathleen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilder"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"286 Sutter Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Solgan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kathleenwilder@solgan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Graniteville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"664"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">664</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16163</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hart"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccormick"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"144 Guider Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dyno"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hartmccormick@dyno.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Carbonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"669"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">669</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16934</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jewel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Estrada"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"896 Meeker Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilla"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jewelestrada@zilla.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Goodville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"671"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">671</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29029</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Antoinette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cook"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"375 Cumberland Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Harmoney"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"antoinettecook@harmoney.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bergoo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"676"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">676</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23842</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lisa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dudley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"506 Vanderveer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tropoli"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lisadudley@tropoli.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Konterra"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"683"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">683</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4381</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Matilda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Berger"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"884 Noble Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fibrodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"matildaberger@fibrodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shepardsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"688"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">688</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17931</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Freeman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Zamora"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"114 Herzl Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Elemantra"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"freemanzamora@elemantra.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Libertytown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"690"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">690</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18127</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Russo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Swanson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"256 Roebling Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zaj"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"russoswanson@zaj.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hoagland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"695"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">695</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36800</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gonzales"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcfarland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"647 Louisa Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Songbird"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gonzalesmcfarland@songbird.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crisman"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"703"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">703</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27443</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dona"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"489 Flatlands Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cytrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"donaburton@cytrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Reno"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"708"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">708</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34002</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"May"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ortiz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"244 Chauncey Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Syntac"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mayortiz@syntac.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Munjor"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"710"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">710</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33650</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shelton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stark"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"404 Ovington Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kraggle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sheltonstark@kraggle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ogema"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"715"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">715</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23734</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tammi"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hodge"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"865 Church Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netur"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tammihodge@netur.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lacomb"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"722"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">722</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27256</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Roberts"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Beasley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"305 Kings Hwy"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quintity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"robertsbeasley@quintity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hayden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"727"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">727</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27263</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Natasha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Knapp"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"723 Hubbard Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exostream"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"natashaknapp@exostream.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Trexlertown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"734"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">734</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20325</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Keri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kinney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"490 Balfour Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Retrotex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kerikinney@retrotex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Salunga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"739"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">739</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39063</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gwen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hardy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"733 Stuart Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exozent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gwenhardy@exozent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Drytown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"741"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">741</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33074</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nielsen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Good"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"404 Norfolk Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kiggle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nielsengood@kiggle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cumberland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"746"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">746</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15970</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marguerite"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wall"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"364 Crosby Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquoavo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"margueritewall@aquoavo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jeff"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"753"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">753</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33340</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Katina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Alford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"690 Ross Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Intrawear"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"katinaalford@intrawear.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grimsley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"758"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">758</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15739</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Berta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Short"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"149 Surf Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ozean"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bertashort@ozean.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Odessa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"760"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">760</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40996</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rhea"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blair"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"440 Hubbard Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bicol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rheablair@bicol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stockwell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"765"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">765</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31278</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Knowles"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cunningham"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"753 Macdougal Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Thredz"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"knowlescunningham@thredz.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Thomasville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"772"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">772</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37849</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eloise"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sparks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"608 Willow Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Satiance"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eloisesparks@satiance.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Richford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"777"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">777</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48294</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Adkins"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mejia"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"186 Oxford Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Datagen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adkinsmejia@datagen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Faywood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"784"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">784</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25291</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mabel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Thornton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"124 Louisiana Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zolavo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mabelthornton@zolavo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lynn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"789"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">789</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8760</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cunningham"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kerr"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"154 Sharon Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Polarium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cunninghamkerr@polarium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tuskahoma"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"791"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">791</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48249</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Janine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Huber"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"348 Porter Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Viocular"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janinehuber@viocular.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fivepointville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"796"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">796</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23503</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mona"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Craft"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"511 Henry Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Opticom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"monacraft@opticom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Websterville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"804"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">804</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23610</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rojas"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Oneal"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"669 Sandford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Glukgluk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rojasoneal@glukgluk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wheaton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"809"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">809</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47812</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Christie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Strickland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"346 Bancroft Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Anarco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"christiestrickland@anarco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Baden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"811"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">811</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26007</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Walls"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rogers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"352 Freeman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekmosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wallsrogers@geekmosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caroleen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"816"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">816</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9567</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cornelia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lane"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"384 Bainbridge Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sulfax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cornelialane@sulfax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elizaville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"823"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">823</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48726</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Celia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bernard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"466 Amboy Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mitroc"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"celiabernard@mitroc.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Skyland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"828"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">828</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44890</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blanche"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holmes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"605 Stryker Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Motovate"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blancheholmes@motovate.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Loomis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"830"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">830</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45210</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Louella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"511 Heath Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Conferia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"louellachan@conferia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brookfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"835"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">835</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46558</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Glover"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rutledge"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"641 Royce Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ginkogene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gloverrutledge@ginkogene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dixonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"842"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">842</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49587</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Meagan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Buckner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"833 Bushwick Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Biospan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"meaganbuckner@biospan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Craig"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"847"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">847</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8652</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Antonia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Duncan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"644 Stryker Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Talae"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"antoniaduncan@talae.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dawn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"854"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">854</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49795</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jimenez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"603 Cooper Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Verton"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jimenezbarry@verton.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Moscow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"859"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">859</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20734</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Beulah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stuart"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"651 Albemarle Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hatology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"beulahstuart@hatology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waiohinu"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"861"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">861</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44173</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jaime"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"680 Richardson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Temorak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jaimewilson@temorak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fidelis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"866"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">866</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45565</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Araceli"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Woodward"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"326 Meadow Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Olympix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"araceliwoodward@olympix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dana"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"873"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">873</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43931</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tisha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cotton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"432 Lincoln Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Buzzmaker"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tishacotton@buzzmaker.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bluetown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"878"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">878</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49159</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Battle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blackburn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"234 Hendrix Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilphur"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"battleblackburn@zilphur.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wanamie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"880"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">880</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22575</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Christian"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Myers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"737 Crown Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Combogen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"christianmyers@combogen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Abrams"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"885"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">885</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31661</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Valdez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roberson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"227 Scholes Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Delphide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"valdezroberson@delphide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chilton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"892"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">892</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44974</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hill"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hayes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"721 Dooley Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fuelton"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hillhayes@fuelton.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Orason"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"897"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">897</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45973</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alyson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Irwin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"731 Poplar Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quizka"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alysonirwin@quizka.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Singer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"900"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">900</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6124</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gonzalez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Watson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"624 Sullivan Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Marvane"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gonzalezwatson@marvane.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wikieup"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"905"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">905</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29438</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Schultz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moreno"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"761 Cedar Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Paragonia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"schultzmoreno@paragonia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glenshaw"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"912"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">912</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13675</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Flora"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Alvarado"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"771 Vandervoort Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Boilicon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"floraalvarado@boilicon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vivian"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"917"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">917</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47782</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Parks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hurst"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"933 Cozine Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pyramis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"parkshurst@pyramis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lindcove"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"924"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">924</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3811</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hilary"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Leonard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"235 Hegeman Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Metroz"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hilaryleonard@metroz.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roosevelt"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"929"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">929</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34708</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Willie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hickman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"430 Devoe Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Apextri"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"williehickman@apextri.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clay"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"931"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">931</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8244</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ingrid"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Garcia"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"674 Indiana Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Balooba"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ingridgarcia@balooba.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Interlochen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"936"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">936</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22430</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Beth"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Frye"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"462 Thatford Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Puria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bethfrye@puria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hiseville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"943"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">943</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24187</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wagner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Griffin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"489 Ellery Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gazak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wagnergriffin@gazak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lorraine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"948"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">948</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37074</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sargent"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Powers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"532 Fiske Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accuprint"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sargentpowers@accuprint.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Umapine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"950"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">950</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30916</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sherrie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Patel"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"658 Langham Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Futurize"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sherriepatel@futurize.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Garfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"955"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">955</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41621</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Klein"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kemp"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"370 Vanderbilt Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Synkgen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kleinkemp@synkgen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bonanza"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"962"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">962</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32096</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Trujillo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilcox"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"914 Duffield Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Extragene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"trujillowilcox@extragene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Golconda"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"967"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">967</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19161</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carrie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Huffman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"240 Sands Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Injoy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carriehuffman@injoy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leroy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"974"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">974</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38082</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Deborah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Yang"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"463 Goodwin Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Entogrok"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deborahyang@entogrok.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Herald"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"979"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">979</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43130</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vaughn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pittman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"446 Tompkins Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Phormula"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vaughnpittman@phormula.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fingerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"981"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">981</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20278</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nolan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Warner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"753 Channel Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Interodeo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nolanwarner@interodeo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Layhill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"986"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">986</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35086</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Norris"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hubbard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"600 Celeste Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Printspan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"norrishubbard@printspan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cassel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"993"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">993</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26487</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Campos"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Olsen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"873 Covert Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isbol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"camposolsen@isbol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glendale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"998"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">998</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16869</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Letha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Baker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"206 Llama Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dognosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lethabaker@dognosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dunlo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"2"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">2</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28838</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Roberta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bender"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"560 Kingsway Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Chillium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"robertabender@chillium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bennett"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"7"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">7</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39121</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Levy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Richard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"820 Logan Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Teraprene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"levyrichard@teraprene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shrewsbury"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"14"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">14</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20480</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Erma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kane"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"661 Vista Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Stockpost"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ermakane@stockpost.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chamizal"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"19"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">19</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27894</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Schwartz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Buchanan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"449 Mersereau Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sybixtex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"schwartzbuchanan@sybixtex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greenwich"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"21"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7004</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Estella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Paul"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"859 Portal Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillatide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"estellapaul@zillatide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Churchill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"26"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14127</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lorraine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccullough"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"157 Dupont Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lorrainemccullough@zosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dennard"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"33"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35439</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Savannah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kirby"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"372 Malta Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Musanpoly"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"savannahkirby@musanpoly.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Muse"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"38"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10511</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Erna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fields"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"357 Maple Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eweville"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ernafields@eweville.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Twilight"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"40"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33882</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pace"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Molina"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"263 Ovington Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cytrak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pacemolina@cytrak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Silkworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"45"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">45</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44478</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Geneva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"357 Herkimer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ezent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"genevamorin@ezent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blanco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"52"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">52</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46425</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kayla"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bradshaw"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"449 Barlow Drive"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Magnemo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kaylabradshaw@magnemo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wawona"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"57"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">57</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8705</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Powell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Herring"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"263 Merit Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digiprint"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"powellherring@digiprint.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coral"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"64"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">64</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44036</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Miles"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Battle"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"988 Homecrest Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Koffee"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"milesbattle@koffee.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Motley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"69"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">69</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14253</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Desiree"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harrison"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"694 Garland Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Barkarama"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"desireeharrison@barkarama.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hackneyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"71"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">71</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38201</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sharpe"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hoffman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"450 Conklin Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Centree"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sharpehoffman@centree.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Urbana"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"76"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">76</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38345</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Claudette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Beard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"748 Dorset Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Repetwire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"claudettebeard@repetwire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caln"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"83"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">83</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35928</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mayo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cleveland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"720 Brooklyn Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Indexia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mayocleveland@indexia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roberts"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"88"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">88</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26418</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Adela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tyler"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"737 Clove Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Surelogic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adelatyler@surelogic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Boling"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"90"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">90</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25332</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Herman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Snyder"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"737 College Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lunchpod"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hermansnyder@lunchpod.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Flintville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"95"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">95</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1650</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dominguez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Le"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"539 Grace Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Portica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dominguezle@portica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wollochet"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"103"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">103</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11253</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Calhoun"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bruce"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"731 Clarkson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Automon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"calhounbruce@automon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marienthal"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"108"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">108</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19015</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Christensen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Weaver"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"398 Dearborn Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quilk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"christensenweaver@quilk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belvoir"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"110"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">110</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4850</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Daphne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Byrd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"239 Conover Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Freakin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"daphnebyrd@freakin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Taft"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"115"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">115</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18750</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nikki"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Doyle"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"537 Clara Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fossiel"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nikkidoyle@fossiel.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caron"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"122"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">122</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17128</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Aurora"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"227 Knapp Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Makingway"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aurorafry@makingway.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Maybell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"127"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">127</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48734</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Diann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mclaughlin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"340 Clermont Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enomen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"diannmclaughlin@enomen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rutherford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"134"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">134</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33829</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Madelyn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Norris"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"176 Noel Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Endicil"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"madelynnorris@endicil.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Walker"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"139"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">139</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18444</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rios"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Todd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"281 Georgia Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uberlux"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"riostodd@uberlux.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hannasville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"141"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">141</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20790</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Liliana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Caldwell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"414 Huron Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rubadub"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lilianacaldwell@rubadub.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hiwasse"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"146"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">146</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39078</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lang"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kaufman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"626 Beverley Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rodeomad"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"langkaufman@rodeomad.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mahtowa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"153"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">153</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32074</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bird"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cochran"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"691 Bokee Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Supremia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"birdcochran@supremia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Barrelville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"158"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">158</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9380</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Natalie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcdowell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"953 Roder Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Myopium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nataliemcdowell@myopium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Savage"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"160"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">160</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48974</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hull"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cherry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"275 Beaumont Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Noralex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hullcherry@noralex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Whipholt"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"165"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">165</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18956</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sims"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mckay"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"205 Jackson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtour"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"simsmckay@comtour.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tilden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"172"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">172</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18356</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Whitehead"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"704 Monaco Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sultrax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mariewhitehead@sultrax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dragoon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"177"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">177</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48972</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Harris"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gross"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"468 Suydam Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kidstock"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"harrisgross@kidstock.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yettem"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"184"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">184</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9157</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cathy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morrison"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"882 Pine Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zytrek"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cathymorrison@zytrek.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fedora"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"189"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">189</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20167</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ada"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cortez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"700 Forest Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Micronaut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adacortez@micronaut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eagletown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"191"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">191</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26172</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barr"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sharpe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"428 Auburn Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ziggles"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barrsharpe@ziggles.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Springdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"196"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">196</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29931</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Caldwell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Daniel"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"405 Oliver Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Furnigeer"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"caldwelldaniel@furnigeer.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Zortman"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"204"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">204</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27714</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mavis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Deleon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"400 Waldane Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lotron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mavisdeleon@lotron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stollings"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"209"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">209</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31052</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Myers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Noel"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"691 Alton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Greeker"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"myersnoel@greeker.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hinsdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"211"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">211</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21539</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Graciela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vaughan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"558 Montauk Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fishland"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gracielavaughan@fishland.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Madrid"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"216"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">216</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11422</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Price"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Haley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"233 Portland Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zeam"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pricehaley@zeam.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Titanic"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"223"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">223</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9528</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Newton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fletcher"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"654 Dewitt Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Assistia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"newtonfletcher@assistia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nipinnawasee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"228"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">228</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10543</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Albert"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"185 Gotham Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isoplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosellaalbert@isoplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Finzel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"230"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">230</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10829</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Chris"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Raymond"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"464 Remsen Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cogentry"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"chrisraymond@cogentry.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bowmansville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"235"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">235</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17729</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcpherson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mueller"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"541 Strong Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tingles"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcphersonmueller@tingles.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brantleyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"242"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">242</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42318</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Berger"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roach"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"125 Wakeman Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ovium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bergerroach@ovium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hessville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"247"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">247</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45123</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mccormick"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"582 Brighton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Norsup"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mccormickmoon@norsup.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Forestburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"254"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">254</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35104</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Yang"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dodson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"531 Lott Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mondicil"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"yangdodson@mondicil.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Enoree"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"259"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">259</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41877</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eleanor"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gonzalez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"800 Sumpter Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Futuris"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eleanorgonzalez@futuris.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jenkinsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"261"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">261</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39998</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Millicent"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pickett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"722 Montieth Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gushkool"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"millicentpickett@gushkool.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Norwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"266"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">266</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2777</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Monique"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Conner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"489 Metrotech Courtr"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Flotonic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"moniqueconner@flotonic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Retsof"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"273"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">273</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11181</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Murphy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chandler"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"569 Bradford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"murphychandler@zilch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vicksburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"278"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">278</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22530</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tamra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Navarro"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"175 Woodruff Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Norsul"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tamranavarro@norsul.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glasgow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"280"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">280</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3380</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vilma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shields"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"133 Berriman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Applidec"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vilmashields@applidec.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Adamstown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"285"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">285</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47369</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hilda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Phillips"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"618 Nixon Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comcur"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hildaphillips@comcur.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Siglerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"292"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">292</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26679</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morrow"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Greene"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"691 Nassau Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Columella"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"morrowgreene@columella.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sanborn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"297"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">297</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20508</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tucker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Patrick"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"978 Whitwell Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Valreda"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tuckerpatrick@valreda.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Deseret"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"300"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">300</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25654</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lane"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tate"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"632 Kay Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Genesynk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lanetate@genesynk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lowell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"305"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">305</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11655</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Augusta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Winters"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"377 Paerdegat Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vendblend"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"augustawinters@vendblend.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gwynn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"312"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">312</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8511</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Burgess"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gentry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"382 Bergen Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbixtar"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"burgessgentry@orbixtar.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Conestoga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"317"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">317</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31968</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ruiz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morris"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"972 Dean Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Apex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ruizmorris@apex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jacksonwald"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"324"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">324</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44976</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gladys"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Erickson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"250 Battery Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eternis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gladyserickson@eternis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"329"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">329</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31138</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nellie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mercer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"967 Ebony Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Scenty"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nelliemercer@scenty.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jardine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"331"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">331</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46004</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gibson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Potts"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"994 Dahill Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zensus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gibsonpotts@zensus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Frizzleburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"336"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">336</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40891</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dudley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Avery"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"405 Powers Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Genmom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dudleyavery@genmom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clarksburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"343"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">343</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37684</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Robbie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Logan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"488 Linden Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hydrocom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"robbielogan@hydrocom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stockdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"348"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">348</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1360</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Karina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Russell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"797 Moffat Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Limozen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"karinarussell@limozen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Riegelwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"350"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">350</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4267</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wyatt"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wise"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"896 Bleecker Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rockyard"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wyattwise@rockyard.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Joes"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"355"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">355</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40961</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gregory"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Delacruz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"876 Cortelyou Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Oulu"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gregorydelacruz@oulu.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waterloo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"362"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">362</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14938</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jimmie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dejesus"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"351 Navy Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecolight"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jimmiedejesus@ecolight.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Berlin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"367"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">367</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40458</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elaine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Workman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"188 Ridge Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Colaire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elaineworkman@colaire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Herbster"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"374"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">374</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19521</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blanchard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stein"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"313 Bartlett Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cujo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blanchardstein@cujo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cascades"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"379"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">379</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12962</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ruthie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lamb"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"796 Rockaway Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Incubus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ruthielamb@incubus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hickory"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"381"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">381</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40978</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sophie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mays"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"261 Varanda Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uneeq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sophiemays@uneeq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cressey"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"386"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">386</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42588</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wallace"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barr"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"246 Beverly Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Concility"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wallacebarr@concility.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Durham"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"393"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">393</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43936</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"William"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kelly"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"178 Lawrence Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Techtrix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"williamkelly@techtrix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Orin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"398"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">398</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8543</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leticia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Duran"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"305 Senator Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xleen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leticiaduran@xleen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cavalero"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"401"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">401</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29408</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Contreras"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Randolph"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"104 Lewis Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Inrt"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"contrerasrandolph@inrt.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chesapeake"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"406"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">406</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28127</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mccarthy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dunlap"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"684 Seacoast Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Canopoly"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mccarthydunlap@canopoly.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elliott"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"413"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">413</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15631</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pugh"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hamilton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"124 Euclid Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Techade"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pughhamilton@techade.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Beaulieu"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"418"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">418</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10207</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Reed"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Goff"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"959 Everit Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"reedgoff@zillan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hiko"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"420"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">420</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44699</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brandie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hayden"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"291 Ash Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digifad"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brandiehayden@digifad.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Spelter"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"425"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">425</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41308</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Queen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Leach"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"105 Fair Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Magneato"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"queenleach@magneato.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Barronett"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"432"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">432</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28969</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Preston"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ferguson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"239 Greenwood Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bitendrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"prestonferguson@bitendrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Idledale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"437"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">437</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41225</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosales"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Marquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"873 Ryerson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ronelon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosalesmarquez@ronelon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Allendale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"444"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">444</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44219</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dolly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Finch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"974 Interborough Parkway"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zytrac"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dollyfinch@zytrac.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vowinckel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"449"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">449</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41950</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barnett"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cantrell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"945 Bedell Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentility"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barnettcantrell@zentility.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Swartzville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"451"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">451</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31950</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mason"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcleod"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"438 Havemeyer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Omatom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"masonmcleod@omatom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ryderwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"456"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">456</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21419</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Solis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kline"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"818 Ashford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vetron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"soliskline@vetron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ruffin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"463"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">463</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36672</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Heidi"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Acosta"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"692 Kenmore Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Elpro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"heidiacosta@elpro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ezel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"468"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">468</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18400</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Foreman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fowler"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"443 Jackson Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillactic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"foremanfowler@zillactic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wakarusa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"470"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">470</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20455</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Schneider"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hull"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"724 Apollo Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exospeed"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"schneiderhull@exospeed.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Watchtower"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"475"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">475</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24427</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morales"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jacobs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"225 Desmond Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Oronoko"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"moralesjacobs@oronoko.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clayville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"482"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">482</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14834</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Janie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bass"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"781 Grattan Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Manglo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janiebass@manglo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kenwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"487"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">487</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30718</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sawyer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vincent"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"238 Lancaster Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Brainquil"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sawyervincent@brainquil.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Galesville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"494"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">494</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3592</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holden"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bowen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"374 Elmwood Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Endipine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"holdenbowen@endipine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rosine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"499"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">499</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26060</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lara"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Perkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"703 Monroe Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Paprikut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laraperkins@paprikut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Barstow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"502"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">502</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31898</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Woodard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bailey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"585 Albee Square"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Imperium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"woodardbailey@imperium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Matheny"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"507"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">507</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27675</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blankenship"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ramirez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"630 Graham Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bytrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blankenshipramirez@bytrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bancroft"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"514"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">514</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30125</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Solomon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bush"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"409 Harkness Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Snacktion"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"solomonbush@snacktion.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grayhawk"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"519"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">519</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3282</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lorna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Franco"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"722 Schenck Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lornafranco@zentia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"National"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"521"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">521</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16348</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Josefa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Buckley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"848 Taylor Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mazuda"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"josefabuckley@mazuda.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Saranap"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"526"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">526</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35375</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sweeney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fulton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"550 Martense Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cormoran"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sweeneyfulton@cormoran.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chalfant"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"533"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">533</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13761</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Margarita"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Diaz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"295 Tapscott Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"margaritadiaz@zilodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hondah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"538"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">538</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16416</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Koch"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"919 Gerry Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xplor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kochbarker@xplor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dixie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"540"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">540</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40235</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tammy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wiggins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"186 Schenectady Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Speedbolt"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tammywiggins@speedbolt.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Salvo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"545"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">545</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27011</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lucas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"110 Lamont Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kindaloo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lenalucas@kindaloo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harleigh"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"552"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">552</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14727</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kate"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Estes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"785 Willmohr Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rodeocean"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kateestes@rodeocean.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elfrida"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"557"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">557</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3119</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Landry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Buck"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"558 Schweikerts Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Protodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"landrybuck@protodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edneyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"564"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">564</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43631</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Owens"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bowers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"842 Congress Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nspire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"owensbowers@nspire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Machias"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"569"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">569</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40019</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sherri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rowe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"591 Arlington Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netility"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sherrirowe@netility.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bridgetown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"571"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">571</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3014</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ayers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Duffy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"721 Wortman Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquasseur"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ayersduffy@aquasseur.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tilleda"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"576"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">576</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29682</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Helena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Robertson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"774 Devon Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vicon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"helenarobertson@vicon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dyckesville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"583"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">583</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26558</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Castro"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"West"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"814 Williams Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cipromox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"castrowest@cipromox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nescatunga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"588"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">588</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43531</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Martina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Collins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"301 Anna Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekwagon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"martinacollins@geekwagon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oneida"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"590"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">590</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4652</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ladonna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tucker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"162 Kane Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Infotrips"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ladonnatucker@infotrips.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Utting"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"595"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">595</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12478</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mccall"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Britt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"823 Hill Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cablam"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mccallbritt@cablam.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vernon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"603"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">603</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28145</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Janette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Guzman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"976 Kingston Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Splinx"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janetteguzman@splinx.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Boomer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"608"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">608</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47091</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Whitley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"976 Lawrence Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Poshome"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"careywhitley@poshome.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Weogufka"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"610"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">610</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40571</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Foster"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Weber"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"323 Rochester Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Firewax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fosterweber@firewax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Winston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"615"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">615</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28726</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Delgado"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Curry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"706 Butler Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zoxy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"delgadocurry@zoxy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gracey"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"622"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">622</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9661</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Paulette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hartman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"375 Emerald Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Locazone"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"paulettehartman@locazone.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Canterwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"627"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">627</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47546</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Crawford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sears"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"686 Eastern Parkway"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Updat"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"crawfordsears@updat.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bison"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"634"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">634</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29805</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Deloris"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Levy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"838 Foster Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Homelux"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"delorislevy@homelux.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kempton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"639"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">639</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28875</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Caitlin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clements"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"627 Aster Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bunga"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"caitlinclements@bunga.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cetronia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"641"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">641</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18345</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sheppard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Everett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"791 Norwood Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Roboid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sheppardeverett@roboid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Selma"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"646"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">646</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15559</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lavonne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reyes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"983 Newport Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Parcoe"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lavonnereyes@parcoe.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Monument"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"653"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">653</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7606</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marcia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bennett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"455 Bragg Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Opticall"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marciabennett@opticall.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Magnolia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"658"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">658</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10210</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bass"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcconnell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"274 Ocean Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Combot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bassmcconnell@combot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Beyerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"660"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">660</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46427</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Moon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wood"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"916 Amersfort Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Olucore"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"moonwood@olucore.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Como"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"665"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">665</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15215</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Britney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Young"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"766 Sackman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geoforma"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"britneyyoung@geoforma.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tuttle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"672"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">672</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12621</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Camille"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Munoz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"959 Lewis Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vantage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"camillemunoz@vantage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Whitmer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"677"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">677</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8491</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Snider"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Benton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"827 Evans Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medicroix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sniderbenton@medicroix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kaka"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"684"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">684</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46091</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Warren"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Snow"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"756 Oakland Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bizmatic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"warrensnow@bizmatic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hatteras"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"689"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">689</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14985</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ines"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chaney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"137 Dikeman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zidant"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ineschaney@zidant.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nettie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"691"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">691</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10792</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mclean"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Colon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"876 Classon Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Elentrix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcleancolon@elentrix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Unionville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"696"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">696</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17568</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Crane"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Matthews"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"721 Gerritsen Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Intradisk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cranematthews@intradisk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brewster"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"704"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">704</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45347</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Peters"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kent"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"871 Independence Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Extragen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"peterskent@extragen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Morriston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"709"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">709</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11015</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Abbott"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Odom"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"893 Union Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Jimbies"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"abbottodom@jimbies.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leeper"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"711"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">711</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26939</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Villarreal"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Horton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"861 Creamer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lexicondo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"villarrealhorton@lexicondo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lydia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"716"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">716</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19789</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Paul"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mason"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"618 Nichols Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Slax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"paulmason@slax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Snowville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"723"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">723</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16421</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nixon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moran"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"569 Campus Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cuizine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nixonmoran@cuizine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Buxton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"728"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">728</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44818</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Conley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Preston"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"450 Coventry Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Obones"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"conleypreston@obones.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"730"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">730</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41299</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Moore"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lee"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"797 Turner Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbean"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"moorelee@orbean.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Highland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"735"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">735</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3984</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Loraine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Willis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"928 Grove Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gadtron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lorainewillis@gadtron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lowgap"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"742"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">742</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24765</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Merle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wooten"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"317 Pooles Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tropolis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"merlewooten@tropolis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bentley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"747"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">747</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16617</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Diaz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Austin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"676 Harway Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Irack"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"diazaustin@irack.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cliff"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"754"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">754</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10779</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jones"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vega"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"795 India Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gluid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jonesvega@gluid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tyhee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"759"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">759</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38007</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rose"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carlson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"987 Navy Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquasure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosecarlson@aquasure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Carlton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"761"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">761</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7663</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rae"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Juarez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"560 Gilmore Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Entropix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"raejuarez@entropix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Northchase"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"766"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">766</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21957</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Thomas"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gillespie"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"993 Williams Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Octocore"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"thomasgillespie@octocore.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Defiance"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"773"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">773</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31126</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Liza"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Coffey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"540 Bulwer Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Assurity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lizacoffey@assurity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gilgo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"778"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">778</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46007</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Underwood"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wheeler"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"477 Provost Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Decratex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"underwoodwheeler@decratex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sardis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"780"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">780</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4682</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maryanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hendricks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"709 Wolcott Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sarasonic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maryannehendricks@sarasonic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Santel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"785"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">785</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25078</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fields"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lester"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"808 Chestnut Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Visualix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fieldslester@visualix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rowe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"792"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">792</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13109</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Becky"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jimenez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"539 Front Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isologia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"beckyjimenez@isologia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Summertown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"797"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">797</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6854</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lindsay"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mills"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"919 Quay Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zoinage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lindsaymills@zoinage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elliston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"800"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">800</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26217</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Candy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Oconnor"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"200 Newel Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Radiantix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"candyoconnor@radiantix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sandston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"805"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">805</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18426</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jackson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sampson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"722 Kenmore Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Daido"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jacksonsampson@daido.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bellamy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"812"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">812</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42593</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Graves"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Newman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"916 Joralemon Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecrater"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gravesnewman@ecrater.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"817"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">817</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36582</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Padilla"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bauer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"310 Cadman Plaza"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exoblue"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"padillabauer@exoblue.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ahwahnee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"824"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">824</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6053</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dyer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Henson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"650 Seaview Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nitracyr"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dyerhenson@nitracyr.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gibsonia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"829"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">829</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20263</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Althea"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"319 Cook Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hyplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"altheabell@hyplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wadsworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"831"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">831</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25375</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wendy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Savage"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"421 Veranda Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Neurocell"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wendysavage@neurocell.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fresno"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"836"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">836</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20797</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lloyd"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lindsay"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"953 Dinsmore Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Suretech"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lloydlindsay@suretech.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Conway"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"843"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">843</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15555</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patricia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"406 Seabring Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Providco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"patriciabarton@providco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Avoca"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"848"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">848</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15443</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carmella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cash"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"988 Exeter Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bristo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carmellacash@bristo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Northridge"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"850"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">850</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6531</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carlene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gaines"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"753 Monroe Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Naxdis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carlenegaines@naxdis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Genoa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"855"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">855</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40170</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stevens"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"326 Driggs Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aeora"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"miastevens@aeora.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Delwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"862"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">862</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38792</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Clayton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Golden"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"620 Regent Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accusage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"claytongolden@accusage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ona"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"867"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">867</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45453</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blanca"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ellison"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"593 McKibben Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Koogle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blancaellison@koogle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Frystown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"874"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">874</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23079</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lynette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Higgins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"377 McKinley Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Menbrain"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lynettehiggins@menbrain.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Manitou"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"879"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">879</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48332</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sabrina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lancaster"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"382 Oak Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Webiotic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sabrinalancaster@webiotic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lindisfarne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"881"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">881</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26684</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barnes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ware"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"666 Hooper Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Norali"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barnesware@norali.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cazadero"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"886"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">886</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14867</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Willa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Leblanc"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"773 Bergen Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nurali"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"willaleblanc@nurali.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hilltop"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"893"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">893</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42584</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Moses"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Campos"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"991 Bevy Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Trollery"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mosescampos@trollery.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Freetown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"898"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">898</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12019</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lori"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stevenson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"910 Coles Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Honotron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"loristevenson@honotron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shindler"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"901"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">901</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35038</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Irma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dotson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"245 Mayfair Drive"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bleeko"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"irmadotson@bleeko.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lodoga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"906"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">906</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24073</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vicki"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Suarez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"829 Roosevelt Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Utara"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vickisuarez@utara.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Albrightsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"913"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">913</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47657</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Margery"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Monroe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"941 Fanchon Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exerta"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"margerymonroe@exerta.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bannock"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"918"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">918</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36776</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dianna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hernandez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"499 Moultrie Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isologica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"diannahernandez@isologica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Falconaire"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"920"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">920</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41513</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jerri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mitchell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"831 Kent Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tasmania"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jerrimitchell@tasmania.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cotopaxi"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"925"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">925</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18295</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosario"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jackson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"178 Leonora Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Progenex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosariojackson@progenex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rivereno"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"932"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">932</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3111</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Summer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Porter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"949 Grand Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Multiflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"summerporter@multiflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Spokane"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"937"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">937</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43491</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Selma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Anderson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"205 Reed Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dadabase"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"selmaanderson@dadabase.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Malo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"944"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">944</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46478</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Donaldson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Woodard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"498 Laurel Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zogak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"donaldsonwoodard@zogak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hasty"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"949"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">949</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48703</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Latasha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mullins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"272 Lefferts Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zenolux"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"latashamullins@zenolux.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kieler"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"951"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">951</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36337</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tran"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burris"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"561 Rutland Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geoform"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tranburris@geoform.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Longbranch"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"956"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">956</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19477</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Randall"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lynch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"490 Madison Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cosmetex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"randalllynch@cosmetex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wells"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"963"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">963</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30461</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Griffin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sheppard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"682 Linden Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zanymax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"griffinsheppard@zanymax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fannett"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"968"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">968</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32371</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Luella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"684 Arkansas Drive"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Krag"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"luellaburch@krag.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brambleton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"970"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">970</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19648</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Forbes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wallace"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"990 Mill Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pheast"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"forbeswallace@pheast.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lopezo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"975"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">975</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5239</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Delores"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Booker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"328 Conselyea Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Centice"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deloresbooker@centice.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Williams"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"982"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">982</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16511</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Buck"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Robinson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"301 Melrose Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Calcu"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"buckrobinson@calcu.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Welch"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"987"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">987</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4072</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brock"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sandoval"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"977 Gem Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fiberox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brocksandoval@fiberox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Celeryville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"994"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">994</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33298</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Madge"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holcomb"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"612 Hawthorne Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Escenta"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"madgeholcomb@escenta.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alafaya"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"999"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">999</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6087</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dorothy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barron"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"499 Laurel Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xurban"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dorothybarron@xurban.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belvoir"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"4"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">4</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27658</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rodriquez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Flores"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"986 Wyckoff Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tourmania"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rodriquezflores@tourmania.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eastvale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"9"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">9</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24776</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Opal"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Meadows"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Neptune Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cedward"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"opalmeadows@cedward.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Olney"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"11"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">11</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20203</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jenkins"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Haney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"740 Ferry Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qimonk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jenkinshaney@qimonk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Steinhatchee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"16"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">16</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35883</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Adrian"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pitts"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Fay Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Combogene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adrianpitts@combogene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Remington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"23"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42374</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kirsten"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fox"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"330 Dumont Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Codax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kirstenfox@codax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Walton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"28"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42112</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vega"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Flynn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"647 Hyman Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accupharm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vegaflynn@accupharm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Masthope"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"30"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19087</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lamb"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Townsend"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"169 Lyme Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geeknet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lambtownsend@geeknet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Epworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"35"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42039</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Darla"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bridges"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"315 Central Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xeronk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"darlabridges@xeronk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Woodlake"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"42"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">42</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21137</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Harding"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hobbs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"474 Ridgewood Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xth"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hardinghobbs@xth.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Heil"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"47"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">47</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33044</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Georgia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilkerson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"369 Herbert Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Endipin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"georgiawilkerson@endipin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dellview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"54"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">54</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23406</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Angel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mann"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"229 Ferris Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Amtas"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"angelmann@amtas.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Calverton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"59"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">59</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37728</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Malone"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Justice"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"721 Russell Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Emoltra"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"malonejustice@emoltra.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Trucksville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"61"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">61</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6856</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shawn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Baird"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"605 Monument Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Moltonic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shawnbaird@moltonic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Darlington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"66"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">66</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25939</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Franks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Salinas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"437 Hamilton Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cowtown"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"frankssalinas@cowtown.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chase"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"73"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">73</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33457</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Irene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stephenson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"684 Miller Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hawkster"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"irenestephenson@hawkster.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Levant"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"78"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">78</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48656</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elvira"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Patterson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"834 Amber Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Assistix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elvirapatterson@assistix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dunbar"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"80"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">80</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13445</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lacey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blanchard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"823 Himrod Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comdom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laceyblanchard@comdom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Matthews"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"85"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">85</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48735</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilcox"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sellers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"212 Irving Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Confrenzy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wilcoxsellers@confrenzy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kipp"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"92"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">92</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26753</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gay"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brewer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"369 Ditmars Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Savvy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gaybrewer@savvy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Moquino"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"97"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">97</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49671</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Karen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Trujillo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"512 Cumberland Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tsunamia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"karentrujillo@tsunamia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fredericktown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"100"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">100</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29869</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Madden"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Woods"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"696 Ryder Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Slumberia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maddenwoods@slumberia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Deercroft"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"105"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">105</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29654</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Castillo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dickerson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"673 Oxford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tellifly"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"castillodickerson@tellifly.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Succasunna"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"112"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">112</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38395</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Frederick"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Case"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"580 Lexington Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Talkalot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"frederickcase@talkalot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Orovada"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"117"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">117</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48831</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Robin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hays"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"347 Hornell Loop"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pasturia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"robinhays@pasturia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sims"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"124"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">124</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16425</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fern"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lambert"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"511 Jay Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Furnitech"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fernlambert@furnitech.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cloverdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"129"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">129</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42409</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alexandria"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sanford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"934 Ridgecrest Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kyagoro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alexandriasanford@kyagoro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Concho"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"131"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">131</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28030</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dollie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Koch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"287 Manhattan Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Skinserve"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dolliekoch@skinserve.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shasta"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"136"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">136</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45801</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Winnie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"198 Mill Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Neteria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"winnieholland@neteria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Urie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"143"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">143</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43093</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cohen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Noble"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"454 Nelson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Buzzworks"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cohennoble@buzzworks.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Norvelt"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"148"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">148</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3662</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Annmarie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Snider"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"857 Lafayette Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Edecine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"annmariesnider@edecine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hollins"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"150"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">150</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15306</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ortega"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dalton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"237 Mermaid Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rameon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ortegadalton@rameon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Maxville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"155"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">155</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27878</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Atkinson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hudson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"434 Colin Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qualitern"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"atkinsonhudson@qualitern.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hoehne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"162"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">162</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6302</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Griffith"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Calderon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"871 Vandervoort Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quotezart"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"griffithcalderon@quotezart.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Barclay"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"167"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">167</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42051</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hampton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ryan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"618 Fleet Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zipak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hamptonryan@zipak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Irwin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"174"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">174</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1464</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gamble"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pierce"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"650 Eagle Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Matrixity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gamblepierce@matrixity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Abiquiu"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"179"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">179</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13265</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elise"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Drake"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"305 Christopher Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Turnling"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elisedrake@turnling.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Loretto"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"181"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">181</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27983</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bennett"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hampton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"435 Billings Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Voipa"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bennetthampton@voipa.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rodman"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"186"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">186</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18373</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kline"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Joyce"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"285 Falmouth Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tetratrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"klinejoyce@tetratrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Klondike"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"193"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">193</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13412</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patty"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Petty"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"251 Vermont Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kinetica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pattypetty@kinetica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grantville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"198"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">198</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19686</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rachael"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sharp"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"443 Vernon Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Powernet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rachaelsharp@powernet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Canoochee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"201"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">201</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14586</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ronda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Perry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"856 Downing Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Artiq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rondaperry@artiq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Colton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"206"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">206</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47423</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kelli"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Francis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"671 George Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exoswitch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kellifrancis@exoswitch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Babb"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"213"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">213</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34172</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bauer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Summers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"257 Boynton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Voratak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bauersummers@voratak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oceola"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"218"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">218</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26702</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Garrison"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bryan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"478 Greenpoint Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uniworld"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"garrisonbryan@uniworld.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Comptche"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"220"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">220</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3086</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tania"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Middleton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"541 Gunther Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zerology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"taniamiddleton@zerology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Linwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"225"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">225</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21949</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maryann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Murphy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"894 Bridgewater Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cinesanct"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maryannmurphy@cinesanct.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cartwright"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"232"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">232</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11984</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carr"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jensen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"995 Micieli Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Biohab"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carrjensen@biohab.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waikele"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"237"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">237</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5603</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kirby"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Watkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"348 Blake Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sonique"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kirbywatkins@sonique.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Freelandville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"244"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">244</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8048</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Judith"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Riggs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"590 Kosciusko Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Arctiq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"judithriggs@arctiq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gorham"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"249"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">249</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16822</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mckinney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gallagher"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"939 Seigel Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Premiant"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mckinneygallagher@premiant.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Catharine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"251"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">251</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13475</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Graves"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"427 Lawn Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dentrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marksgraves@dentrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waukeenah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"256"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">256</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48318</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Simon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hogan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"789 Suydam Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dancerity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"simonhogan@dancerity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dargan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"263"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">263</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12837</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Thornton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Meyer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"575 Elliott Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Peticular"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"thorntonmeyer@peticular.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dotsero"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"268"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">268</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20925</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Avis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blackwell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"569 Jerome Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Magnina"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"avisblackwell@magnina.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bethany"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"270"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">270</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43951</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Moody"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harmon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"233 Vanderbilt Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Otherside"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"moodyharmon@otherside.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"275"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">275</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2384</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Reynolds"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barnett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"394 Stockton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Austex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"reynoldsbarnett@austex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grandview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"282"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">282</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38540</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gay"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Schultz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"805 Claver Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Handshake"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gayschultz@handshake.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tampico"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"287"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">287</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10845</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Valerie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lang"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"423 Midwood Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quarx"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"valerielang@quarx.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cannondale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"294"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">294</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29582</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pitts"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Haynes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"901 Broome Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquazure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pittshaynes@aquazure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Turah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"299"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">299</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40825</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Angela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Talley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"822 Bills Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Remold"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"angelatalley@remold.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bethpage"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"302"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">302</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11298</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Isabella"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hewitt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"455 Bedford Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cincyr"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"isabellahewitt@cincyr.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blanford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"307"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">307</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43355</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Enid"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ashley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"412 Emerson Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Avenetro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"enidashley@avenetro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Catherine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"314"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">314</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5848</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Norton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Norton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"252 Ditmas Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Talkola"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nortonnorton@talkola.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Veyo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"319"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">319</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15430</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ferrell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mckinney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"874 Cranberry Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Portaline"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ferrellmckinney@portaline.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rose"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"321"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">321</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43370</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Larsen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"617 Williams Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Manufact"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"martalarsen@manufact.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sisquoc"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"326"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">326</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9692</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pearl"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reese"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"451 Colonial Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accruex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pearlreese@accruex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Westmoreland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"333"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">333</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22778</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Trudy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sweet"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"881 Kiely Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Acumentor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"trudysweet@acumentor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kent"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"338"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">338</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6969</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pierce"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lawrence"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"318 Gallatin Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lunchpad"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"piercelawrence@lunchpad.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Iola"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"340"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">340</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42072</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Juarez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gutierrez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"802 Seba Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Billmed"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"juarezgutierrez@billmed.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Malott"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"345"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">345</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9812</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Parker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hines"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"715 Mill Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Baluba"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"parkerhines@baluba.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blackgum"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"352"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">352</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20290</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kendra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcintosh"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Wolf Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orboid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kendramcintosh@orboid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bladensburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"357"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">357</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15102</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Adele"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carroll"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"381 Arion Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquafire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"adelecarroll@aquafire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Springville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"364"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">364</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35247</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Felicia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Merrill"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"229 Branton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Prosely"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"feliciamerrill@prosely.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dola"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"369"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">369</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17047</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcfadden"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Guy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"445 Lott Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kangle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcfaddenguy@kangle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greenbackville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"371"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">371</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19751</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Allen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"295 Wallabout Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nexgene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barkerallen@nexgene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nanafalia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"376"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">376</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44407</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcmillan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dunn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"771 Dorchester Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eargo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcmillandunn@eargo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yogaville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"383"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">383</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48889</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Knox"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Larson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"962 Bartlett Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bostonic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"knoxlarson@bostonic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Smeltertown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"388"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">388</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9606</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Julianne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nicholson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"338 Crescent Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Viasia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"juliannenicholson@viasia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alleghenyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"390"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">390</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7464</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ramona"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"135 Banner Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Deminimum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ramonaroy@deminimum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dodge"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"395"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">395</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18679</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Juliet"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Whitaker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"128 Remsen Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Toyletry"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"julietwhitaker@toyletry.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yonah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"403"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">403</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18833</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Williamson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Horn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"223 Strickland Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nimon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"williamsonhorn@nimon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bawcomville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"408"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">408</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34666</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lidia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Guerrero"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"254 Stratford Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Snowpoke"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lidiaguerrero@snowpoke.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairlee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"410"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">410</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31200</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fox"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cardenas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"987 Monitor Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Corpulse"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"foxcardenas@corpulse.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Southview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"415"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">415</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19449</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Martinez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Benson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"172 Berkeley Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enersol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"martinezbenson@enersol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chumuckla"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"422"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">422</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40162</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brigitte"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Scott"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"662 Vermont Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Waretel"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brigittescott@waretel.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elrama"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"427"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">427</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1463</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rebekah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Garrison"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"837 Hampton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Niquent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rebekahgarrison@niquent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Zarephath"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"434"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">434</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11329</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Christa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Huff"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"454 Oriental Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earthpure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"christahuff@earthpure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stevens"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"439"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">439</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22752</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lula"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Williams"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"630 Furman Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vinch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lulawilliams@vinch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Newcastle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"441"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">441</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47947</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dickson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcgee"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"478 Knight Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gogol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dicksonmcgee@gogol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Laurelton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"446"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">446</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23071</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lolita"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fleming"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"918 Bridge Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vidto"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lolitafleming@vidto.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brownlee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"453"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">453</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21520</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hood"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Powell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"479 Brevoort Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vortexaco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hoodpowell@vortexaco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alderpoint"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"458"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">458</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8865</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Aida"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wolf"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"403 Thames Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aidawolf@isis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bordelonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"460"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">460</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37734</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Aguirre"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"White"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"190 Crooke Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Unq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aguirrewhite@unq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Albany"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"465"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">465</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10681</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pearlie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"916 Evergreen Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hometown"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pearlieholman@hometown.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Needmore"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"472"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">472</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25571</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lee"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Long"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"288 Mill Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comverges"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leelong@comverges.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Movico"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"477"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">477</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25892</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holcomb"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cobb"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"369 Marconi Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Steeltab"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"holcombcobb@steeltab.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Byrnedale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"484"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">484</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3274</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Staci"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Melendez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"751 Otsego Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Namebox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stacimelendez@namebox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harborton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"489"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">489</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7879</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Garrett"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Langley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"331 Bowne Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillidium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"garrettlangley@zillidium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Riviera"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"491"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">491</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42942</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Teresa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Owen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"713 Canton Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plasmos"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"teresaowen@plasmos.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bartonsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"496"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">496</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14869</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alison"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Conrad"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"347 Varet Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Perkle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alisonconrad@perkle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cliffside"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"504"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">504</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49205</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shanna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chambers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"220 Beard Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Corporana"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shannachambers@corporana.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cashtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"509"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">509</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34754</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Durham"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pacheco"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"129 Plymouth Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Datacator"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"durhampacheco@datacator.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Loveland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"511"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">511</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40908</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elba"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Grant"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"157 Bijou Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dognost"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elbagrant@dognost.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coyote"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"516"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">516</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44940</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Roy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Smith"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"770 Cherry Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Parleynet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"roysmith@parleynet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Carrsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"523"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">523</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28729</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Amalia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Benjamin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"173 Bushwick Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sentia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"amaliabenjamin@sentia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jacumba"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"528"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">528</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4071</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Thompson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hoover"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"580 Garden Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Portalis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"thompsonhoover@portalis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Knowlton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"530"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">530</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8840</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kathrine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Evans"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"422 Division Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Spherix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kathrineevans@spherix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Biddle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"535"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">535</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8715</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"George"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"722 Green Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ewaves"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"frygeorge@ewaves.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kenmar"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"542"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">542</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23285</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Michelle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mayo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"657 Caton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Biflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"michellemayo@biflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Beaverdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"547"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">547</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12870</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eaton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rios"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"744 Withers Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Podunk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eatonrios@podunk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chelsea"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"554"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">554</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33163</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Townsend"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Atkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"566 Ira Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Acruex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"townsendatkins@acruex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Valle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"559"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">559</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11450</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tonia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Schmidt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"508 Sheffield Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Extro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"toniaschmidt@extro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Newry"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"561"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">561</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12370</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sellers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Davis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"860 Madoc Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isodrive"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sellersdavis@isodrive.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Trail"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"566"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">566</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6183</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cox"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"349 Winthrop Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medcom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"coxroman@medcom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rosewood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"573"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">573</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32171</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Callie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Castaneda"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"799 Scott Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earthwax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"calliecastaneda@earthwax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marshall"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"578"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">578</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34259</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holmes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcknight"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"969 Metropolitan Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cubicide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"holmesmcknight@cubicide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Aguila"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"580"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">580</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13716</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcmahon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"York"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"475 Beacon Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillar"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcmahonyork@zillar.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Farmington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"585"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">585</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26745</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nieves"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nolan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"115 Seagate Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Jumpstack"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nievesnolan@jumpstack.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eastmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"592"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">592</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32968</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Head"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Webster"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"987 Lefferts Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Empirica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"headwebster@empirica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rockingham"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"597"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">597</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11246</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Penny"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Knowles"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"139 Forbell Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ersum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pennyknowles@ersum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vallonia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"600"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">600</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10336</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Simmons"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Byers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"250 Dictum Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qualitex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"simmonsbyers@qualitex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wanship"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"605"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">605</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38427</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcclain"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Manning"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"832 Leonard Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qiao"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcclainmanning@qiao.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Calvary"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"612"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">612</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11868</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dunn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cameron"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"156 Lorimer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isonus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dunncameron@isonus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Virgie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"617"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">617</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35445</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kitty"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cooley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"788 Seagate Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ultrimax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kittycooley@ultrimax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clarktown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"624"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">624</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27538</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Roxanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Franklin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"299 Woodrow Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Silodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"roxannefranklin@silodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roulette"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"629"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">629</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32987</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcclure"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rodgers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"806 Pierrepont Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Elita"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcclurerodgers@elita.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brownsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"631"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">631</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21657</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Corrine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barber"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"447 Hunts Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quarmony"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"corrinebarber@quarmony.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wyano"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"636"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">636</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8036</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Agnes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hooper"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"865 Hanson Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digial"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"agneshooper@digial.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sperryville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"643"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">643</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8057</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hendricks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stokes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"142 Barbey Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Remotion"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hendricksstokes@remotion.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lewis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"648"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">648</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11506</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Terry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Montgomery"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"115 Franklin Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enervate"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"terrymontgomery@enervate.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bascom"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"650"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">650</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18091</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Benton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Knight"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"850 Aitken Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pholio"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bentonknight@pholio.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cobbtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"655"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">655</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22912</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eula"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Taylor"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"520 Orient Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Miracula"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eulataylor@miracula.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wacissa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"662"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">662</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10138</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Daisy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burnett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"114 Norman Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Liquicom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"daisyburnett@liquicom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grahamtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"667"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">667</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22559</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Juliana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chase"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"496 Coleridge Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtract"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"julianachase@comtract.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wilsonia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"674"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">674</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36038</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Watts"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shannon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"600 Story Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Joviold"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wattsshannon@joviold.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairhaven"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"679"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">679</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20149</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Henrietta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bonner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"461 Bond Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"henriettabonner@geekol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Richville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"681"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">681</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34244</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Velazquez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wolfe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"773 Eckford Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zisis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"velazquezwolfe@zisis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Smock"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"686"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">686</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10116</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Decker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcclure"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"236 Commerce Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Everest"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deckermcclure@everest.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gibbsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"693"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">693</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31233</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tabatha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Zimmerman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"284 Emmons Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pushcart"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tabathazimmerman@pushcart.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Esmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"698"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">698</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14965</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Baker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Armstrong"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"796 Tehama Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nurplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bakerarmstrong@nurplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Starks"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"701"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">701</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23772</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gardner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Griffith"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"187 Moore Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vertide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gardnergriffith@vertide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coventry"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"706"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">706</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5282</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eliza"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Potter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"945 Dunham Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Playce"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elizapotter@playce.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Woodruff"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"713"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">713</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20054</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Iris"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcguire"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"508 Benson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Duflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"irismcguire@duflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hillsboro"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"718"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">718</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13876</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hickman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dillard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"132 Etna Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Genmy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hickmandillard@genmy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Curtice"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"720"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">720</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31356</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ruth"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vance"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"229 Adams Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilidium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ruthvance@zilidium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Allison"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"725"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">725</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14677</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Reeves"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tillman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"674 Ivan Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cemention"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"reevestillman@cemention.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Navarre"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"732"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">732</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38445</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Delia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cruz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"870 Cheever Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Multron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deliacruz@multron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cresaptown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"737"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">737</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40431</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sampson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Yates"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"214 Cox Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Signidyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sampsonyates@signidyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brazos"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"744"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">744</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8690</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bernard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Martinez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"148 Dunne Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dragbot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bernardmartinez@dragbot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Moraida"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"749"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">749</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1249</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rush"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Boyle"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"310 Argyle Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sportan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rushboyle@sportan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brady"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"751"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">751</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49252</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patrick"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Osborne"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"915 Prospect Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gynko"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"patrickosborne@gynko.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Takilma"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"756"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">756</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40006</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jasmine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Howell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"605 Elliott Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecratic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jasminehowell@ecratic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harrodsburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"763"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">763</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12091</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Liz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bentley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"933 Debevoise Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nipaz"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lizbentley@nipaz.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glenville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"768"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">768</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2213</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sondra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Soto"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"625 Colonial Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Navir"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sondrasoto@navir.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Benson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"770"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">770</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39505</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Joann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Crane"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"798 Farragut Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lingoage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"joanncrane@lingoage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kirk"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"775"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">775</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27943</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Merritt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"288 Thornton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geeky"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wilsonmerritt@geeky.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Holtville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"782"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">782</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3960</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maldonado"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Craig"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"345 Myrtle Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilencio"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maldonadocraig@zilencio.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yukon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"787"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">787</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11876</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Harper"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wynn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"139 Oceanic Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Interfind"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"harperwynn@interfind.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gerber"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"794"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">794</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16491</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Walker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Charles"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"215 Kenilworth Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"walkercharles@orbin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rivers"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"799"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">799</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2889</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Myra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Guerra"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"625 Dahlgreen Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digigene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"myraguerra@digigene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Draper"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"802"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">802</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19630</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gracie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Foreman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"219 Kent Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Supportal"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gracieforeman@supportal.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Westboro"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"807"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">807</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29206</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hatfield"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lowe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"499 Adler Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lovepad"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hatfieldlowe@lovepad.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wiscon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"814"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">814</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9838</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morse"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcbride"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"776 Calyer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Inear"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"morsemcbride@inear.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kingstowne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"819"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">819</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3971</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Karyn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Medina"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"417 Utica Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qnekt"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"karynmedina@qnekt.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kerby"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"821"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">821</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33271</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Trisha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blankenship"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"329 Jamaica Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Chorizon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"trishablankenship@chorizon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sexton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"826"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">826</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11548</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Summers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vinson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"742 Irwin Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Globoil"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"summersvinson@globoil.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Callaghan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"833"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">833</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46154</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Woodward"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hood"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"398 Atkins Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zedalis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"woodwardhood@zedalis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stonybrook"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"838"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">838</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24629</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Latonya"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blake"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"531 Milton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rugstars"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"latonyablake@rugstars.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tedrow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"840"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">840</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39615</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Boone"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gomez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"256 Hampton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekular"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"boonegomez@geekular.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Westerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"845"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">845</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35422</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tracy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vaughn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"645 Rockaway Parkway"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Andryx"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tracyvaughn@andryx.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wilmington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"852"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">852</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6041</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Allen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hammond"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"793 Essex Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tersanki"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"allenhammond@tersanki.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Osmond"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"857"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">857</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39678</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alyce"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Douglas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"326 Robert Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earbang"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alycedouglas@earbang.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Thornport"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"864"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">864</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21804</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Duffy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Anthony"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"582 Cooke Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Schoolio"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"duffyanthony@schoolio.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brenton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"869"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">869</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43544</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Corinne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Robbins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"732 Quentin Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbaxter"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"corinnerobbins@orbaxter.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"871"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">871</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35854</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Norma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"934 Cyrus Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Magnafone"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"normaburt@magnafone.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"876"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">876</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48568</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brady"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Glover"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"565 Oceanview Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comvex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bradyglover@comvex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Noblestown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"883"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">883</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33679</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Austin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jefferson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"846 Lincoln Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Polarax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"austinjefferson@polarax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Savannah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"888"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">888</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22277</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Myrna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Herman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"649 Harwood Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enthaze"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"myrnaherman@enthaze.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Idamay"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"890"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">890</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31198</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alvarado"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pate"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"269 Ashland Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ovolo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alvaradopate@ovolo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Volta"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"895"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">895</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7327</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lara"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcdaniel"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"854 Willow Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Acusage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laramcdaniel@acusage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Imperial"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"903"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">903</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10238</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wade"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Page"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"685 Waldorf Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eplosion"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wadepage@eplosion.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Welda"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"908"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">908</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45975</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mosley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holloway"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"929 Eldert Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Anivet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mosleyholloway@anivet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Biehle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"910"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">910</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36831</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Esmeralda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"James"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"535 High Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Terrasys"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"esmeraldajames@terrasys.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dubois"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"915"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">915</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19816</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Farrell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"French"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"126 McKibbin Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Techmania"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"farrellfrench@techmania.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wescosville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"922"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">922</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39347</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Irwin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pugh"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"463 Shale Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Idego"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"irwinpugh@idego.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ivanhoe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"927"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">927</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19976</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jeanette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Acevedo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"694 Polhemus Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Halap"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jeanetteacevedo@halap.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harrison"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"934"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">934</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43987</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Freida"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Daniels"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"448 Cove Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vurbo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"freidadaniels@vurbo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Snelling"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"939"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">939</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31228</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hodges"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Massey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"431 Dahl Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kegular"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hodgesmassey@kegular.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Katonah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"941"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">941</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38796</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kim"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moss"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"105 Onderdonk Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digirang"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kimmoss@digirang.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Centerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"946"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">946</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42794</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Obrien"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"339 Rewe Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eclipsent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"inaobrien@eclipsent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Soham"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"953"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">953</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1110</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Baxter"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Black"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"720 Stillwell Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uplinx"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"baxterblack@uplinx.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Drummond"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"958"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">958</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32849</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Brown"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wilkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"686 Delmonico Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medesign"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"brownwilkins@medesign.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Shelby"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"960"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">960</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2905</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Curry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vargas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"242 Blake Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pearlesex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"curryvargas@pearlesex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Henrietta"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"965"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">965</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21882</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patrica"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Melton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"141 Rodney Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Flexigen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"patricamelton@flexigen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Klagetoh"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"972"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">972</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24719</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leona"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Christian"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"900 Woodpoint Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Extrawear"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leonachristian@extrawear.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roderfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"977"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">977</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6744</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rodgers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccray"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"612 Duryea Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Papricut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rodgersmccray@papricut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marenisco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"984"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">984</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1904</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Viola"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Crawford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"354 Linwood Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ginkle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"violacrawford@ginkle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Witmer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"989"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">989</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48622</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Franklin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Frank"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"270 Carlton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Shopabout"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"franklinfrank@shopabout.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Guthrie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"991"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">991</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4239</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Connie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Berry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"647 Gardner Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Flumbo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"connieberry@flumbo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Frierson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"996"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">996</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17541</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Andrews"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Herrera"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"570 Vandam Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Klugger"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"andrewsherrera@klugger.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Whitehaven"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"0"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">0</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16623</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bradshaw"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mckenzie"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"244 Columbus Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Euron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bradshawmckenzie@euron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hobucken"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"5"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">5</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29342</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leola"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stewart"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"311 Elm Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Diginetic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leolastewart@diginetic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"12"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">12</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37055</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Stafford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brock"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"296 Wythe Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uncorp"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"staffordbrock@uncorp.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bend"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"17"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">17</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7831</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bessie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Orr"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"239 Hinsdale Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Skyplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bessieorr@skyplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Graball"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"24"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44182</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wood"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dale"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"582 Gelston Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Besto"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wooddale@besto.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Juntura"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"29"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27323</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Santiago"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"193 Schenck Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isologix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leahsantiago@isologix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gerton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"31"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30443</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kristen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Santana"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"130 Middagh Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dogspa"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kristensantana@dogspa.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"36"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15902</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alexandra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nguyen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"389 Elizabeth Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bittor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alexandranguyen@bittor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hemlock"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"43"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">43</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33474</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ryan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Howe"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"660 Huntington Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Microluxe"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ryanhowe@microluxe.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clara"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"48"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">48</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40608</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Peck"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Downs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"594 Dwight Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ramjob"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"peckdowns@ramjob.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coloma"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"50"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">50</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43695</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sheena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kirkland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"598 Bank Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zerbina"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sheenakirkland@zerbina.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Walland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"55"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">55</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22020</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shelia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Puckett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"265 Royce Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Izzby"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sheliapuckett@izzby.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Slovan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"62"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">62</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43065</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lester"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stanton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"969 Doughty Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekko"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lesterstanton@geekko.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Itmann"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"67"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">67</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39430</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Isabelle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Spence"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"718 Troy Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geeketron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"isabellespence@geeketron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Camptown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"74"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">74</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47167</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lauri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Saunders"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"768 Lynch Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Securia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laurisaunders@securia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caroline"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"79"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">79</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28185</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Booker"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lowery"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"817 Campus Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sensate"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bookerlowery@sensate.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Carlos"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"81"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">81</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46568</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dennis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gilbert"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"619 Minna Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Melbacor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dennisgilbert@melbacor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kersey"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"86"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">86</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15428</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Walton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Butler"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"999 Schenck Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Unisure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"waltonbutler@unisure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bentonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"93"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">93</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17728</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jeri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Booth"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"322 Roosevelt Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jeribooth@geekology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leming"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"98"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">98</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15085</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cora"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barrett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"555 Neptune Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kiosk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"corabarrett@kiosk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Independence"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"101"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">101</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43400</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cecelia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Grimes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"972 Lincoln Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecosys"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ceceliagrimes@ecosys.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Manchester"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"106"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">106</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8212</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Josefina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wagner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"418 Estate Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kyaguru"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"josefinawagner@kyaguru.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Darbydale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"113"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">113</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41652</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Burt"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moses"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"633 Berry Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uni"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"burtmoses@uni.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Russellville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"118"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">118</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2223</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ballard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vasquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"101 Bush Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Intergeek"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ballardvasquez@intergeek.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Century"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"120"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">120</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38565</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Browning"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rodriquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"910 Moore Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Opportech"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"browningrodriquez@opportech.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cutter"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"125"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">125</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5396</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tanisha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dixon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"482 Hancock Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Junipoor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tanishadixon@junipoor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wauhillau"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"132"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">132</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37707</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Horton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Romero"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"427 Rutherford Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Affluex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hortonromero@affluex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hall"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"137"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">137</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3596</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Frost"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Freeman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"191 Dennett Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Beadzza"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"frostfreeman@beadzza.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sabillasville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"144"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">144</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43257</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Evans"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dyer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"912 Post Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Magmina"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"evansdyer@magmina.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gordon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"149"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">149</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22994</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Megan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gonzales"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"836 Tampa Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Andershun"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"megangonzales@andershun.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rockhill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"151"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">151</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34473</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kent"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Joyner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"799 Truxton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kozgene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kentjoyner@kozgene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Allamuchy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"156"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">156</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40185</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sloan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pennington"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"573 Opal Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hopeli"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sloanpennington@hopeli.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Evergreen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"163"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">163</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43075</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Norman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"173 Beadel Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kog"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wildanorman@kog.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bodega"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"168"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">168</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49568</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carissa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Simon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"975 Flatbush Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillacom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carissasimon@zillacom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Neibert"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"170"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">170</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6025</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Madden"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"161 Radde Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Farmex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mannmadden@farmex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Thermal"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"175"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">175</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16213</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Montoya"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Donaldson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"481 Morton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Envire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"montoyadonaldson@envire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Delco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"182"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">182</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7803</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Manuela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dillon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"742 Garnet Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Moreganic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"manueladillon@moreganic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ilchester"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"187"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">187</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26581</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Autumn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hodges"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"757 Granite Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ezentia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"autumnhodges@ezentia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Martinsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"194"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">194</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16311</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Beck"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rosario"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"721 Cambridge Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zoid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"beckrosario@zoid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Efland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"199"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">199</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18086</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Branch"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Love"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"458 Commercial Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Frolix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"branchlove@frolix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caspar"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"202"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">202</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26466</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Medina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brown"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"519 Sunnyside Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bleendot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"medinabrown@bleendot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Winfred"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"207"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">207</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45535</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Evelyn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lara"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"636 Chestnut Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ultrasure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"evelynlara@ultrasure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Logan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"214"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">214</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24418</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Luann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Faulkner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"697 Hazel Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zolar"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"luannfaulkner@zolar.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ticonderoga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"219"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">219</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17127</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Edwards"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hurley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"834 Stockholm Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Austech"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"edwardshurley@austech.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bayview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"221"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">221</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15803</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Benjamin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barrera"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"568 Main Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zaphire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"benjaminbarrera@zaphire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Germanton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"226"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">226</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37720</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilkins"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brady"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"486 Baltic Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dogtown"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wilkinsbrady@dogtown.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Condon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"233"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">233</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23020</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Washington"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walsh"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"366 Church Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Candecor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"washingtonwalsh@candecor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Westphalia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"238"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">238</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21287</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Constance"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wong"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"496 Brown Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Grainspot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"constancewong@grainspot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cecilia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"240"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">240</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49741</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Oconnor"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clay"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"659 Highland Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Franscene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"oconnorclay@franscene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kilbourne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"245"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">245</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22026</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fran"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bolton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"147 Jerome Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Solaren"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"franbolton@solaren.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nash"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"252"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">252</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18831</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elvia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Poole"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"836 Delevan Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Velity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elviapoole@velity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Groveville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"257"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">257</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5318</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Olive"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Oneil"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"457 Decatur Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Helixo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"oliveoneil@helixo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chicopee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"264"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">264</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22084</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Samantha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ferrell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"488 Fulton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Flum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"samanthaferrell@flum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brandywine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"269"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">269</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43317</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Crosby"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Figueroa"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"910 Aurelia Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pyramia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"crosbyfigueroa@pyramia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leyner"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"271"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">271</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11864</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holt"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"645 Poplar Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Grupoli"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"holtwalter@grupoli.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mansfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"276"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">276</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11606</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pittman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mathis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"567 Charles Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zuvy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pittmanmathis@zuvy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roeville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"283"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">283</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24070</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fuentes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Foley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"729 Walker Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Knowlysis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fuentesfoley@knowlysis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tryon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"288"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">288</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27243</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wong"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stone"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"440 Willoughby Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wongstone@zentix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wheatfields"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"290"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">290</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26103</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Neva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burgess"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"985 Wyona Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Slofast"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nevaburgess@slofast.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cawood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"295"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">295</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37358</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Howe"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nash"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"833 Union Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquacine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"howenash@aquacine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Indio"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"303"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">303</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21976</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Huffman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Green"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"455 Colby Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtest"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"huffmangreen@comtest.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Weeksville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"308"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">308</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33989</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Glass"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Schroeder"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"670 Veterans Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Realmo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"glassschroeder@realmo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gratton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"310"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">310</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23049</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shannon"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"412 Pleasant Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ovation"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shannonmorton@ovation.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edgar"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"315"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">315</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1314</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Clare"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morrow"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"728 Madeline Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gaptec"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"claremorrow@gaptec.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mapletown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"322"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">322</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6303</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gilliam"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Horne"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"414 Florence Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Shepard"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gilliamhorne@shepard.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Winesburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"327"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">327</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29294</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Contreras"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"694 Gold Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Momentia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nellcontreras@momentia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cumminsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"334"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">334</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9178</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cross"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Floyd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"815 Herkimer Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Maroptic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"crossfloyd@maroptic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kraemer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"339"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">339</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3992</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Franco"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Welch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"776 Brightwater Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earthplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"francowelch@earthplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Naomi"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"341"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">341</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44367</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alberta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bradford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"670 Grant Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bugsall"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"albertabradford@bugsall.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Romeville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"346"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">346</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26594</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shelby"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sanchez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"257 Fillmore Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shelbysanchez@geekus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Seymour"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"353"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">353</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45182</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rivera"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sherman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"603 Garden Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bovis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"riverasherman@bovis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Otranto"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"358"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">358</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44043</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hale"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Baldwin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"845 Menahan Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kidgrease"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"halebaldwin@kidgrease.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Day"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"360"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">360</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26651</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ward"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hicks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"592 Brighton Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Biotica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wardhicks@biotica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kanauga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"365"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">365</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3176</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sanders"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holder"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"453 Cypress Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekola"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sandersholder@geekola.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Staples"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"372"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">372</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28566</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alba"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Forbes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"814 Meserole Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isostream"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"albaforbes@isostream.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Clarence"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"377"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">377</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5374</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Margo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gay"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"613 Chase Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rotodyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"margogay@rotodyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waumandee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"384"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">384</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48758</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sallie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Houston"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"836 Polar Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Squish"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"salliehouston@squish.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Morningside"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"389"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">389</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8839</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"York"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cummings"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"778 Centre Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insurity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"yorkcummings@insurity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Freeburn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"391"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">391</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14733</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Holman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jordan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"391 Forrest Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Maineland"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"holmanjordan@maineland.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cade"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"396"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">396</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14613</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marsha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Elliott"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"297 Liberty Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Orbiflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marshaelliott@orbiflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Windsor"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"404"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">404</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34978</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Massey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Becker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"930 Pitkin Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Genekom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"masseybecker@genekom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blairstown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"409"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">409</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36960</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maura"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Glenn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"183 Poly Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Viagreat"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mauraglenn@viagreat.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Foscoe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"411"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">411</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1172</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Guzman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Whitfield"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"181 Perry Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Springbee"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"guzmanwhitfield@springbee.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Balm"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"416"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">416</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27169</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hunt"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Schwartz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"461 Havens Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Danja"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"huntschwartz@danja.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grenelefe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"423"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">423</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38852</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hines"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Underwood"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"284 Louise Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Namegen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hinesunderwood@namegen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Downsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"428"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">428</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13925</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Stephens"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cain"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"189 Summit Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rocklogic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stephenscain@rocklogic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bourg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"430"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">430</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15251</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alejandra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chavez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"651 Butler Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alejandrachavez@gology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Allensworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"435"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">435</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14654</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sue"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lopez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"632 Stone Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Emergent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"suelopez@emergent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waterford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"442"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">442</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36211</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lawanda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Leon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"126 Canal Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xixan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lawandaleon@xixan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Berwind"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"447"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">447</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11402</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lucia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Livingston"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"773 Lake Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Soprano"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lucialivingston@soprano.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edgewater"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"454"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">454</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31687</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alicia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rollins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"483 Verona Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Boilcat"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aliciarollins@boilcat.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lutsen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"459"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">459</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18869</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pamela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Henry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"361 Locust Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Imageflow"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pamelahenry@imageflow.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greenfields"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"461"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">461</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38807</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcbride"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Padilla"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"550 Borinquen Pl"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zepitope"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcbridepadilla@zepitope.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Emory"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"466"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">466</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25109</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marcie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcmillan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"947 Gain Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Entroflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marciemcmillan@entroflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ronco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"473"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">473</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5391</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Susan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Luna"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"521 Bogart Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zaya"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"susanluna@zaya.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grazierville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"478"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">478</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28044</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Decker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"627 Dobbin Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Acrodance"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"danadecker@acrodance.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sharon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"480"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">480</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40807</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Anastasia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Parker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"650 Folsom Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zilladyne"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"anastasiaparker@zilladyne.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oberlin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"485"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">485</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44235</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Albert"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roberts"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"385 Harman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Stralum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"albertroberts@stralum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Watrous"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"492"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">492</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31055</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Burnett"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Briggs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"987 Cass Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pharmex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"burnettbriggs@pharmex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cornfields"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"497"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">497</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13493</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Doyle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jenkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"205 Nevins Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Unia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"doylejenkins@unia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nicut"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"500"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">500</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39143</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pope"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Keith"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"537 Fane Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zboo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"popekeith@zboo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Courtland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"505"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">505</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45493</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shelley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Webb"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"873 Crawford Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quadeebo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shelleywebb@quadeebo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Topanga"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"512"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">512</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47432</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alisha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morales"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"623 Batchelder Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Terragen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alishamorales@terragen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gilmore"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"517"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">517</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3022</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Allyson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walls"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"334 Coffey Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gorganic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"allysonwalls@gorganic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dahlen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"524"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">524</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49334</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Salas"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Farley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"499 Trucklemans Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xumonk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"salasfarley@xumonk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Noxen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"529"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">529</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21788</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Deann"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fisher"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"511 Buffalo Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Twiist"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"deannfisher@twiist.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Templeton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"531"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">531</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39770</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Janet"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pena"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"645 Livonia Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Corecom"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janetpena@corecom.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Garberville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"536"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">536</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6255</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Emma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Adkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"971 Calder Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ontagene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"emmaadkins@ontagene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ruckersville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"543"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">543</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48022</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rasmussen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"446 Love Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Crustatia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marinarasmussen@crustatia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Statenville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"548"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">548</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36930</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sandra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Andrews"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"973 Prospect Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Datagene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sandraandrews@datagene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Inkerman"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"550"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">550</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32238</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Walsh"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Goodwin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"953 Canda Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Proflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"walshgoodwin@proflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ypsilanti"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"555"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">555</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10750</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fannie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Slater"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"457 Tech Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kineticut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fannieslater@kineticut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Basye"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"562"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">562</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10737</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sarah"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Strong"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"177 Pioneer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Megall"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sarahstrong@megall.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ladera"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"567"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">567</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6507</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Diana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dominguez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"419 Albany Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ohmnet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dianadominguez@ohmnet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wildwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"574"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">574</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32954</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Andrea"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mosley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"368 Throop Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Musix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"andreamosley@musix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blende"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"579"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">579</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12044</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Banks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sawyer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"652 Doone Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rooforia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bankssawyer@rooforia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Foxworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"581"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">581</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16525</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fuller"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcintyre"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"169 Bergen Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Applideck"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fullermcintyre@applideck.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kenvil"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"586"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">586</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13644</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Love"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Velasquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"290 Girard Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zomboid"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lovevelasquez@zomboid.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Villarreal"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"593"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">593</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41230</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Muriel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vazquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"395 Montgomery Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sustenza"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"murielvazquez@sustenza.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Strykersville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"598"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">598</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33251</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Morgan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Coleman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"324 McClancy Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aclima"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"morgancoleman@aclima.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bowden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"601"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">601</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20796</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vickie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Valentine"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"432 Bassett Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comvene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vickievalentine@comvene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Teasdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"606"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">606</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28770</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Michael"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bray"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"935 Lake Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Telepark"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"michaelbray@telepark.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lemoyne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"613"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">613</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39340</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eddie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccarty"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"971 Richards Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bisba"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eddiemccarty@bisba.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fruitdale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"618"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">618</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8976</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cheri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"803 Ridgewood Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zorromop"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cheriford@zorromop.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gambrills"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"620"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">620</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7224</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Coleen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bartlett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"761 Carroll Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Idealis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"coleenbartlett@idealis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mathews"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"625"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">625</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46010</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cynthia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Johnston"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"142 Box Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentry"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cynthiajohnston@zentry.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Makena"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"632"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">632</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40470</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kay"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Warren"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"422 Alabama Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Realysis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kaywarren@realysis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Homestead"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"637"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">637</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3169</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kathy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"410 Jamison Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Limage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kathycarter@limage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ernstville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"644"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">644</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44021</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Etta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Miller"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"376 Lawton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bluegrain"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ettamiller@bluegrain.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Baker"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"649"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">649</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20275</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jeanine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Malone"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"114 Dodworth Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nixelt"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jeaninemalone@nixelt.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Keyport"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"651"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">651</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18360</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Young"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reeves"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"581 Plaza Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Krog"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"youngreeves@krog.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sussex"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"656"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">656</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21632</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Olson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hunt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"342 Jaffray Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Volax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"olsonhunt@volax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bangor"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"663"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">663</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2456</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rollins"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Richards"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"129 Sullivan Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geostele"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rollinsrichards@geostele.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Morgandale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"668"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">668</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45069</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Potter"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Michael"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"803 Glenmore Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ontality"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pottermichael@ontality.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Newkirk"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"670"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">670</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10178</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ollie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Riley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"252 Jackson Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Adornica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ollieriley@adornica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brethren"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"675"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">675</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36102</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fisher"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shepard"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"859 Varick Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Qot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fishershepard@qot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Diaperville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"682"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">682</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14168</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Anne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hale"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"708 Anthony Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cytrek"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"annehale@cytrek.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Beechmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"687"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">687</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48630</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Caroline"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cox"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"626 Hillel Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Opticon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carolinecox@opticon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Loma"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"694"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">694</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33125</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Craig"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Palmer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"273 Montrose Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comvey"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"craigpalmer@comvey.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cleary"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"699"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">699</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4156</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gallagher"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Marshall"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"648 Clifford Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exiand"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gallaghermarshall@exiand.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belfair"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"702"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">702</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46490</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Meadows"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Delgado"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"612 Jardine Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Daisu"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"meadowsdelgado@daisu.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Venice"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"707"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">707</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30325</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sonya"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Trevino"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"181 Irving Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Atgen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sonyatrevino@atgen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Enetai"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"714"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">714</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16602</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Socorro"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Murray"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"810 Manhattan Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isoswitch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"socorromurray@isoswitch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jugtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"719"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">719</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33107</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leanna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reed"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"528 Krier Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rodeology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leannareed@rodeology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Carrizo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"721"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">721</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32958</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mara"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dickson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"810 Harrison Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtours"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maradickson@comtours.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Thynedale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"726"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">726</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44737</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosemary"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Salazar"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"290 Croton Loop"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rockabye"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosemarysalazar@rockabye.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Helen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"733"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">733</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15722</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lakeisha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccarthy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"782 Turnbull Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lakeishamccarthy@exosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caberfae"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"738"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">738</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44936</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosalind"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hunter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"644 Eaton Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zolarity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosalindhunter@zolarity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cataract"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"740"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">740</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6143</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Chambers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hahn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"937 Windsor Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medalert"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"chambershahn@medalert.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dorneyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"745"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">745</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4572</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jacobs"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sweeney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"189 Lott Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jacobssweeney@comtent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Advance"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"752"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">752</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14039</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jerry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rush"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"632 Dank Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ebidco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jerryrush@ebidco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Geyserville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"757"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">757</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34628</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mccullough"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moore"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"304 Hastings Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nikuda"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcculloughmoore@nikuda.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Charco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"764"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">764</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3728</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Noemi"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gill"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"427 Chester Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Avit"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"noemigill@avit.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chesterfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"769"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">769</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15362</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Francis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Beck"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"454 Livingston Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Furnafix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"francisbeck@furnafix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dunnavant"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"771"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">771</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32784</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jocelyn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Boone"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"513 Division Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Collaire"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jocelynboone@collaire.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lisco"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"776"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">776</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29177</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Duke"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Atkinson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"520 Doscher Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tripsch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dukeatkinson@tripsch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lafferty"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"783"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">783</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11911</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Faith"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cooper"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"539 Rapelye Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insuron"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"faithcooper@insuron.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jennings"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"788"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">788</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12473</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marianne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Aguilar"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"213 Holly Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Marqet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marianneaguilar@marqet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alfarata"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"790"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">790</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29912</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ellis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sullivan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"877 Coyle Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enersave"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ellissullivan@enersave.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Canby"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"795"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">795</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31450</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bruce"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Avila"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"865 Newkirk Placez"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plasmosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bruceavila@plasmosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ada"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"803"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">803</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49567</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marissa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Spears"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Highland Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Centregy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marissaspears@centregy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bloomington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"808"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">808</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11251</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nola"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Quinn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"863 Wythe Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Iplax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nolaquinn@iplax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cuylerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"810"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">810</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10563</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alyssa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ortega"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"977 Clymer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eventage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alyssaortega@eventage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Convent"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"815"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">815</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19336</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Guthrie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Morse"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"685 Vandalia Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gronk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"guthriemorse@gronk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fowlerville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"822"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">822</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13024</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hicks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Farrell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"468 Middleton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zolarex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hicksfarrell@zolarex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Columbus"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"827"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">827</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37536</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Naomi"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ball"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"319 Stewart Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isotronic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"naomiball@isotronic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Trona"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"834"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">834</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38049</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sybil"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carrillo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"359 Baughman Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Phuel"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sybilcarrillo@phuel.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kohatk"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"839"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">839</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38292</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Langley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Neal"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"565 Newton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Liquidoc"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"langleyneal@liquidoc.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Osage"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"841"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">841</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28291</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dalton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Waters"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"859 Grand Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Malathion"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"daltonwaters@malathion.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tonopah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"846"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">846</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35099</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maureen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Glass"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"140 Amherst Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Stelaecor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maureenglass@stelaecor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cucumber"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"853"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">853</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38353</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Travis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Parks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"930 Bay Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pyramax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"travisparks@pyramax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gadsden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"858"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">858</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23194</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Small"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hatfield"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"593 Tennis Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Letpro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"smallhatfield@letpro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Haena"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"860"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">860</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23613</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Clark"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Boyd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"501 Rock Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Deepends"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"clarkboyd@deepends.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Whitewater"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"865"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">865</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10574</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cook"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kelley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"865 Lincoln Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quizmo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cookkelley@quizmo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kansas"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"872"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">872</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26314</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jane"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Greer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"717 Hewes Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Newcube"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janegreer@newcube.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Delshire"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"877"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">877</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42879</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tracey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ruiz"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"141 Tompkins Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Waab"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"traceyruiz@waab.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Zeba"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"884"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">884</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29316</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Reva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rosa"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"784 Greene Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Urbanshee"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"revarosa@urbanshee.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bakersville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"889"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">889</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26464</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Fischer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Klein"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"948 Juliana Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtext"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fischerklein@comtext.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jackpot"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"891"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">891</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34829</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jacobson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clemons"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"507 Wilson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quilm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jacobsonclemons@quilm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Muir"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"896"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">896</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31947</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Buckley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Peterson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"217 Beayer Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earwax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"buckleypeterson@earwax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Franklin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"904"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">904</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27707</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mendez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcneil"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"431 Halsey Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Macronaut"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mendezmcneil@macronaut.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Troy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"909"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">909</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18421</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Stark"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lewis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"409 Tilden Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Frosnex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"starklewis@frosnex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Axis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"911"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">911</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42655</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Annie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lyons"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"518 Woods Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enerforce"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"annielyons@enerforce.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stagecoach"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"916"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">916</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47887</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jarvis"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Alexander"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"406 Bergen Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Equitax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jarvisalexander@equitax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Haring"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"923"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">923</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48466</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mueller"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mckee"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"298 Ruby Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Luxuria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"muellermckee@luxuria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coleville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"928"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">928</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19611</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hester"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Copeland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"425 Cropsey Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dymi"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hestercopeland@dymi.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wolcott"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"930"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">930</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47257</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kinney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lawson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"501 Raleigh Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Neptide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kinneylawson@neptide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Deltaville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"935"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">935</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4959</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Flowers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Robles"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"201 Hull Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xelegyl"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"flowersrobles@xelegyl.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rehrersburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"942"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">942</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21299</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hamilton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clayton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"413 Debevoise Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Architax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hamiltonclayton@architax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Terlingua"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"947"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">947</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22039</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Virgie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Garza"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"903 Matthews Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plasmox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"virgiegarza@plasmox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Somerset"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"954"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">954</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49404</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jenna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Martin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"688 Hart Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zinca"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jennamartin@zinca.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oasis"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"959"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">959</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34743</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shaffer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cervantes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"931 Varick Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Oceanica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shaffercervantes@oceanica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bowie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"961"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">961</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43219</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Betsy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hyde"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"183 Junius Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tubalum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"betsyhyde@tubalum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Driftwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"966"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">966</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20619</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Susanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rodriguez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"255 Knickerbocker Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtrek"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"susannerodriguez@comtrek.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Trinway"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"973"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">973</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45756</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rice"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Farmer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"476 Nassau Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Photobin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ricefarmer@photobin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Suitland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"978"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">978</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21459</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Melanie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rojas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"991 Java Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"melanierojas@kage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greenock"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"980"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">980</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42436</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cash"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Collier"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"999 Sapphire Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ceprene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cashcollier@ceprene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glidden"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"985"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">985</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20083</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Martin"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gardner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"644 Fairview Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Golistic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"martingardner@golistic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Connerton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"992"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">992</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11413</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kristie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kennedy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"750 Hudson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ludak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kristiekennedy@ludak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Warsaw"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"997"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">997</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25311</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Combs"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Frederick"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"586 Lloyd Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pathways"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"combsfrederick@pathways.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Williamson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"3"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">3</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44947</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Levine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"328 Wilson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Amtap"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"levineburks@amtap.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cochranville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"8"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">8</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48868</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burns"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"699 Visitation Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Glasstep"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janburns@glasstep.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wakulla"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"10"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">10</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46170</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dominique"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Park"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"100 Gatling Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Conjurica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dominiquepark@conjurica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Omar"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"15"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">15</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43456</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bobbie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sexton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"232 Sedgwick Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zytrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bobbiesexton@zytrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hendersonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"22"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40283</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barrera"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Terrell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"292 Orange Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Steelfab"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barreraterrell@steelfab.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bynum"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"27"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6176</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Meyers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Williamson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"675 Henderson Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plexia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"meyerswilliamson@plexia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Richmond"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"34"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35379</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ellison"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Kim"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"986 Revere Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Signity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ellisonkim@signity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sehili"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"39"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38688</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bowers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mendez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"665 Bennet Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Farmage"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bowersmendez@farmage.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Duryea"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"41"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">41</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36060</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hancock"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Holden"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"625 Gaylord Drive"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Poochies"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hancockholden@poochies.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Alamo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"46"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">46</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12351</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Karla"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bowman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"554 Chapel Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Undertap"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"karlabowman@undertap.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sylvanite"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"53"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">53</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28101</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kathryn"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Payne"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"467 Louis Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Katakana"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kathrynpayne@katakana.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Harviell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"58"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">58</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31697</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cannon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"993 Highland Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comcubine"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marvacannon@comcubine.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Orviston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"60"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">60</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45955</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maude"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Casey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"566 Strauss Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quilch"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maudecasey@quilch.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Enlow"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"65"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">65</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23282</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leonor"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pruitt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"974 Terrace Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Velos"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leonorpruitt@velos.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Devon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"72"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">72</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9732</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barlow"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rhodes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"891 Clinton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zialactic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barlowrhodes@zialactic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Echo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"77"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">77</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5724</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Byrd"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Conley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"698 Belmont Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zidox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"byrdconley@zidox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rockbridge"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"84"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">84</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3001</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hutchinson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Newton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"553 Locust Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zaggles"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hutchinsonnewton@zaggles.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Snyderville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"89"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">89</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13263</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcdowell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bradley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"960 Howard Alley"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Grok"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcdowellbradley@grok.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Toftrees"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"91"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">91</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29799</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vonda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Galloway"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"988 Voorhies Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Illumity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vondagalloway@illumity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Holcombe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"96"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">96</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15933</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shirley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Edwards"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"817 Caton Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Equitox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shirleyedwards@equitox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nelson"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"104"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">104</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32619</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Casey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Roth"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Railroad Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hotcakes"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"caseyroth@hotcakes.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Davenport"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"109"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">109</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25812</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gretchen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Dawson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"610 Bethel Loop"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tetak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gretchendawson@tetak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hailesboro"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"111"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">111</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1481</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Traci"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Allison"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"922 Bryant Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enjola"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"traciallison@enjola.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Robinette"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"116"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">116</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21335</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hobbs"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wright"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"965 Temple Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Netbook"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hobbswright@netbook.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Strong"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"123"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">123</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3079</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cleo"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Beach"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"653 Haring Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Proxsoft"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cleobeach@proxsoft.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greensburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"128"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">128</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3556</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mack"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bullock"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"462 Ingraham Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Terascape"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mackbullock@terascape.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eureka"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"130"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">130</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24171</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Roxie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cantu"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"841 Catherine Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Skybold"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"roxiecantu@skybold.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Deputy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"135"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">135</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24885</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Stevenson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Crosby"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"473 Boardwalk "</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accel"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stevensoncrosby@accel.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Norris"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"142"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">142</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4544</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Vang"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hughes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"357 Landis Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bolax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"vanghughes@bolax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Emerald"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"147"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">147</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35921</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Charmaine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Whitney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"484 Seton Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comveyer"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"charmainewhitney@comveyer.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dexter"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"154"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">154</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40945</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Burns"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Solis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"274 Lorraine Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Rodemco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"burnssolis@rodemco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ballico"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"159"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">159</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1696</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alvarez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mack"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"897 Manor Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Snorus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alvarezmack@snorus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rosedale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"161"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">161</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4659</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Doreen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Randall"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"178 Court Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Calcula"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"doreenrandall@calcula.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belmont"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"166"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">166</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33847</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rutledge"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rivas"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"352 Verona Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Virxo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rutledgerivas@virxo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brandermill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"173"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">173</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5989</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Whitley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Blevins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"127 Brooklyn Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pawnagra"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"whitleyblevins@pawnagra.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rodanthe"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"178"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">178</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36735</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Clements"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Finley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"270 Story Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Imaginart"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"clementsfinley@imaginart.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lookingglass"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"180"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">180</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34236</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ursula"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Goodman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"414 Clinton Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Earthmark"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ursulagoodman@earthmark.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rote"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"185"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">185</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43532</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Laurel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cline"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"788 Fenimore Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Prismatic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"laurelcline@prismatic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Frank"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"192"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">192</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23508</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ramsey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carr"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"209 Williamsburg Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Strezzo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ramseycarr@strezzo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Grapeview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"197"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">197</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17246</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sweet"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sanders"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"712 Homecrest Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isosure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sweetsanders@isosure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sheatown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"200"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">200</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26210</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Teri"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hester"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"653 Abbey Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Electonic"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"terihester@electonic.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Martell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"205"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">205</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">45493</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Johnson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chang"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"331 John Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gleamink"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"johnsonchang@gleamink.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sultana"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"212"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">212</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10299</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marisol"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fischer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"362 Prince Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Autograte"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marisolfischer@autograte.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Oley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"217"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">217</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33730</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sally"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccoy"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"854 Corbin Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Omnigog"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sallymccoy@omnigog.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Escondida"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"224"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">224</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42708</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Billie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nixon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"241 Kaufman Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xanide"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"billienixon@xanide.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chapin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"229"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">229</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2740</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hensley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"176 Erasmus Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isotrack"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"janahensley@isotrack.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Caledonia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"231"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">231</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46180</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Essie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Clarke"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"308 Harbor Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pharmacon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"essieclarke@pharmacon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fillmore"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"236"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">236</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41200</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Suzanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bird"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"219 Luquer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Imant"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"suzannebird@imant.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bainbridge"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"243"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">243</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29902</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Evangelina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Perez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"787 Joval Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Keengen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"evangelinaperez@keengen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mulberry"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"248"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">248</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49989</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"West"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"England"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"717 Hendrickson Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Obliq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"westengland@obliq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Maury"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"250"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">250</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27893</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Earlene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ellis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"512 Bay Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Codact"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"earleneellis@codact.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sunwest"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"255"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">255</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49339</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Iva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rivers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"470 Rost Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mantrix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ivarivers@mantrix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Disautel"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"262"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">262</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30289</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tameka"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Levine"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"815 Atlantic Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Acium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tamekalevine@acium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Winchester"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"267"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">267</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42753</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Weeks"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Castillo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"526 Holt Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Talendula"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"weekscastillo@talendula.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Washington"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"274"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">274</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12104</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Frieda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"House"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"171 Banker Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quonk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"friedahouse@quonk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Aberdeen"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"279"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">279</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15904</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Chapman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hart"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"902 Bliss Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kongene"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"chapmanhart@kongene.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bradenville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"281"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">281</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39830</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bean"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Aguirre"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"133 Pilling Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Amril"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"beanaguirre@amril.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Waterview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"286"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">286</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39063</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rosetta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Turner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"169 Jefferson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Spacewax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosettaturner@spacewax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stewart"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"293"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">293</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29867</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cruz"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carver"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"465 Boerum Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vitricomp"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cruzcarver@vitricomp.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Crayne"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"298"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">298</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34334</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bullock"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Marsh"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"589 Virginia Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Renovize"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bullockmarsh@renovize.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coinjock"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"301"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">301</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16782</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Minerva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Graham"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"532 Harrison Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sureplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"minervagraham@sureplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belleview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"GA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"306"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">306</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2171</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hensley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hardin"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"196 Maujer Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Neocent"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hensleyhardin@neocent.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Reinerton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"313"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">313</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34108</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alston"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Henderson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"132 Prescott Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Prosure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alstonhenderson@prosure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Worton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"318"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">318</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8512</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Nichole"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pearson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"656 Lacon Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Yurture"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"nicholepearson@yurture.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Juarez"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"320"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">320</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34521</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patti"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brennan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"870 Degraw Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cognicode"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pattibrennan@cognicode.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Torboy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"325"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">325</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1956</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Magdalena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Simmons"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"681 Townsend Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekosis"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"magdalenasimmons@geekosis.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sterling"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"332"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">332</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">37770</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shepherd"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Davenport"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"586 Montague Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ecraze"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shepherddavenport@ecraze.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Accoville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"337"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">337</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43432</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Monroe"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stafford"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"183 Seigel Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Centuria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"monroestafford@centuria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Camino"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"344"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">344</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42654</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sasha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Baxter"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"700 Bedford Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Callflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sashabaxter@callflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Campo"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"349"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">349</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24180</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Allison"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fitzpatrick"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"913 Arlington Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Veraq"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"allisonfitzpatrick@veraq.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marbury"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"351"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">351</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47089</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hendrix"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stephens"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"181 Beaver Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Recrisys"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hendrixstephens@recrisys.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Denio"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"356"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">356</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34540</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lourdes"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Valdez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"700 Anchorage Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Interloo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lourdesvaldez@interloo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Goldfield"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"363"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">363</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34007</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Peggy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bright"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"613 Engert Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Inventure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"peggybright@inventure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chautauqua"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"368"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">368</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23535</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hooper"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tyson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"892 Taaffe Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zaggle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hoopertyson@zaggle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nutrioso"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"370"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">370</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28499</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Oneill"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Carney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"773 Adelphi Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bedder"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"oneillcarney@bedder.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Yorklyn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"375"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">375</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23860</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Phoebe"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Patton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"564 Hale Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xoggle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"phoebepatton@xoggle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brule"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"382"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">382</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42061</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Finley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Singleton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"407 Clay Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quarex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"finleysingleton@quarex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bedias"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"387"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">387</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35916</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"April"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hill"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"818 Bayard Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kengen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aprilhill@kengen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chloride"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"394"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">394</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6121</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lorrie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nunez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"221 Ralph Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bullzone"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lorrienunez@bullzone.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Longoria"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"399"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">399</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32587</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carmela"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Franks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"617 Dewey Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zensure"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carmelafranks@zensure.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sanders"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"402"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">402</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1282</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pacheco"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rosales"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"538 Pershing Loop"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Circum"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pachecorosales@circum.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Elbert"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"407"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">407</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36417</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gilda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jacobson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"883 Loring Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comveyor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gildajacobson@comveyor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Topaz"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"414"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">414</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17506</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Conway"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Daugherty"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"643 Kermit Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lyria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"conwaydaugherty@lyria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vaughn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"419"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">419</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">34847</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Helen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Montoya"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"736 Kingsland Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Hairport"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"helenmontoya@hairport.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Edinburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NE"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"421"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">421</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46868</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tamika"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mccall"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"764 Bragg Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eventix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tamikamccall@eventix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tivoli"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"426"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">426</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4499</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Julie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Parsons"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"768 Keap Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Goko"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"julieparsons@goko.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coldiron"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"433"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">433</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19266</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilkinson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Flowers"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"154 Douglass Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xsports"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wilkinsonflowers@xsports.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coultervillle"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"438"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">438</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16367</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Walter"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Velez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"931 Farragut Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Virva"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"waltervelez@virva.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tyro"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"440"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">440</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41590</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ray"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wiley"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"102 Barwell Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Polaria"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"raywiley@polaria.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hardyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"445"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">445</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41178</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rodriguez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Macias"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"164 Boerum Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xylar"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rodriguezmacias@xylar.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Riner"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"452"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">452</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3589</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Blackwell"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Delaney"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"443 Sackett Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Imkan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"blackwelldelaney@imkan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gasquet"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"457"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">457</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14057</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bush"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gordon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"975 Dakota Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Softmicro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bushgordon@softmicro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chemung"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"PA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"464"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">464</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20504</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cobb"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Humphrey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"823 Sunnyside Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Apexia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cobbhumphrey@apexia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wintersburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"469"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">469</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26509</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Marci"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shepherd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"565 Hall Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Shadease"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marcishepherd@shadease.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Springhill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"471"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">471</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7629</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Juana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Silva"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"249 Amity Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Artworlds"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"juanasilva@artworlds.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Norfolk"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"476"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">476</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33386</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Silva"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Marks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"183 Eldert Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Medifax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"silvamarks@medifax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hachita"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"483"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">483</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6344</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kelley"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harper"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"758 Preston Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xyqag"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kelleyharper@xyqag.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Healy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"488"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">488</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">6289</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Wilma"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hopkins"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"428 Lee Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Entality"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"wilmahopkins@entality.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Englevale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"490"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">490</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1447</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Strong"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hendrix"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"134 Beach Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Duoflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"stronghendrix@duoflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Allentown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"495"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">495</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13478</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Abigail"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Nichols"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"887 President Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Enquility"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"abigailnichols@enquility.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bagtown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NM"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"503"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">503</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42649</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leta"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Stout"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"518 Bowery Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pivitol"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"letastout@pivitol.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Boonville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"508"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">508</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41300</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lawrence"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mathews"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"987 Rose Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Deviltoe"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lawrencemathews@deviltoe.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Woodburn"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"510"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">510</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48504</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Petty"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sykes"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"566 Village Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Nebulean"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pettysykes@nebulean.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wedgewood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"515"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">515</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18531</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lott"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Keller"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"827 Miami Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Translink"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lottkeller@translink.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gila"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"522"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">522</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19879</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Faulkner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Garrett"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"396 Grove Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pigzart"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"faulknergarrett@pigzart.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Felt"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"527"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">527</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">2028</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carver"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Peters"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"816 Victor Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Housedown"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carverpeters@housedown.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Nadine"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"534"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">534</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20470</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cristina"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Russo"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"500 Highlawn Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Cyclonica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cristinarusso@cyclonica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gorst"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"539"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">539</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24560</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tami"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Maddox"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"741 Pineapple Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Accidency"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tamimaddox@accidency.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kennedyville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"541"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">541</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42915</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Logan"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Burke"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"904 Clarendon Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Overplex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"loganburke@overplex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Johnsonburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"546"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">546</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43242</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bernice"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sims"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"382 Columbia Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Verbus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bernicesims@verbus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sena"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"553"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">553</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28390</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Aimee"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cohen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"396 Lafayette Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eplode"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"aimeecohen@eplode.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Thatcher"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"558"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">558</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8922</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Horne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Valenzuela"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"979 Kensington Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isoternia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hornevalenzuela@isoternia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greenbush"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"560"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">560</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24514</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Felecia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Oneill"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"995 Autumn Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mediot"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"feleciaoneill@mediot.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Joppa"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"565"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">565</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">15197</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Taylor"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ingram"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"113 Will Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Lyrichord"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tayloringram@lyrichord.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Collins"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"572"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">572</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49355</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Therese"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Espinoza"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"994 Chester Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gonkle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"thereseespinoza@gonkle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hayes"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"577"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">577</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21398</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gilbert"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Serrano"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"294 Troutman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Senmao"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gilbertserrano@senmao.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Greer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"584"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">584</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">5346</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Pearson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bryant"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"971 Heyward Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Anacho"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pearsonbryant@anacho.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Bluffview"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"589"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">589</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">33260</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ericka"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cote"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"425 Bath Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Venoflex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"erickacote@venoflex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Blue"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"591"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">591</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48997</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rivers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Macdonald"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"919 Johnson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Ziore"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"riversmacdonald@ziore.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Townsend"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"596"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">596</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4063</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Letitia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Walker"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Vanderveer Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zizzle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"letitiawalker@zizzle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rossmore"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"604"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">604</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10675</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Isabel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gilliam"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"854 Broadway "</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zenthall"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"isabelgilliam@zenthall.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Ventress"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"609"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">609</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28586</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Montgomery"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Washington"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"169 Schroeders Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kongle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"montgomerywashington@kongle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Croom"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AZ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"611"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">611</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17528</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Katherine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Prince"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"705 Elm Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zillacon"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"katherineprince@zillacon.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rew"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"616"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">616</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">25276</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jessie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mayer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"683 Chester Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Emtrak"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jessiemayer@emtrak.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Marysville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"HI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"623"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">623</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">20514</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rose"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Combs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"312 Grimes Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Aquamate"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rosecombs@aquamate.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fostoria"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"628"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">628</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">42736</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Buckner"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"863 Rugby Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Jamnation"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bucknerchen@jamnation.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Camas"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"630"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">630</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">46060</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Leanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jones"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"451 Bayview Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Wazzu"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"leannejones@wazzu.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kylertown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"635"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">635</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44705</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Norman"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gilmore"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"330 Gates Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comfirm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"normangilmore@comfirm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Riceville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"642"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">642</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32852</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Reyna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harris"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"305 Powell Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bedlam"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"reynaharris@bedlam.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Florence"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"647"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">647</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10147</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Annabelle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Velazquez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"299 Kensington Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Sealoud"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"annabellevelazquez@sealoud.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Soudan"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"654"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">654</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38695</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Armstrong"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Frazier"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"899 Seeley Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zensor"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"armstrongfrazier@zensor.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Cherokee"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"659"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">659</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29648</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Dorsey"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sosa"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"270 Aberdeen Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Daycore"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"dorseysosa@daycore.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Chamberino"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"661"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">661</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3679</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Joanne"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Spencer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"910 Montauk Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Visalia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"joannespencer@visalia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Valmy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NH"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"666"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">666</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13880</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcguire"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lloyd"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"658 Just Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Centrexin"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcguirelloyd@centrexin.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Warren"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"673"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">673</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11303</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mcdaniel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Harrell"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"565 Montgomery Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eyeris"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mcdanielharrell@eyeris.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Garnet"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"678"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">678</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43663</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ruby"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Shaffer"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">28</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"350 Clark Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comtrail"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rubyshaffer@comtrail.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Aurora"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"680"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">680</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31561</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Melton"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Camacho"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"771 Montana Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insuresys"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"meltoncamacho@insuresys.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sparkill"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"685"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">685</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22249</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Yesenia"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rowland"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"193 Dekalb Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Coriander"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"yeseniarowland@coriander.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lupton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"692"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">692</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10435</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Haney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barlow"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"267 Lenox Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Egypto"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"haneybarlow@egypto.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Detroit"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"697"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">697</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">48745</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mallory"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Emerson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"318 Dunne Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exoplode"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"malloryemerson@exoplode.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Montura"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"700"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">700</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19164</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Patel"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Durham"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"440 King Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Icology"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pateldurham@icology.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mammoth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"705"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">705</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28415</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Krystal"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cross"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"604 Drew Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Tubesys"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"krystalcross@tubesys.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dalton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"712"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">712</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12459</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Butler"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Alston"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"486 Hemlock Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quordate"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"butleralston@quordate.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Verdi"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"717"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">717</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29270</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Erickson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcdonald"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"873 Franklin Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exotechno"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ericksonmcdonald@exotechno.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Jessie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"724"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">724</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12548</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hopper"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Peck"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"849 Hendrickson Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Uxmox"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hopperpeck@uxmox.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Faxon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"UT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"729"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">729</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">41812</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Katy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Rivera"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"791 Olive Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Blurrybus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"katyrivera@blurrybus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Innsbrook"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"731"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">731</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">4994</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lorene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Weiss"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"990 Ocean Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Comvoy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"loreneweiss@comvoy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lavalette"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"736"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">736</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">28677</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rogers"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcmahon"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"423 Cameron Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Brainclip"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"rogersmcmahon@brainclip.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Saddlebrooke"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"FL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"743"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">743</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14077</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Susana"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Moody"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"842 Fountain Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bitrex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"susanamoody@bitrex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Temperanceville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"748"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">748</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">38060</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Branch"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"926 Cypress Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Buzzness"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"fordbranch@buzzness.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Beason"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"DC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"750"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">750</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40481</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Cherie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Brooks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"601 Woodhull Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kaggle"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"cheriebrooks@kaggle.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Groton"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"755"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">755</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43878</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Bartlett"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Conway"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"453 Times Placez"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Konnect"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"bartlettconway@konnect.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Belva"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"762"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">762</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10291</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Amanda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Head"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"990 Ocean Parkway"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zentury"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"amandahead@zentury.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hegins"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"767"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">767</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26220</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Anthony"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Sutton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"179 Fayette Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Xiix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"anthonysutton@xiix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Iberia"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"774"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">774</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">35287</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lynnette"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Alvarez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"991 Brightwater Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Gink"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lynnettealvarez@gink.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leola"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"779"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">779</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">40983</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Maggie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pace"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"104 Harbor Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Bulljuice"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"maggiepace@bulljuice.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Floris"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"781"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">781</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">29961</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sanford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mullen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"879 Dover Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zanity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sanfordmullen@zanity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Martinez"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"786"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">786</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3024</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Rene"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Vang"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"506 Randolph Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Isopop"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"renevang@isopop.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Vienna"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"793"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">793</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16911</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alford"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Compton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"186 Veronica Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zyple"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alfordcompton@zyple.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sugartown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"798"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">798</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">3165</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Catherine"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ward"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"325 Burnett Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Dreamia"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"catherineward@dreamia.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Glenbrook"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"801"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">801</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14954</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Molly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Maldonado"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">37</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"518 Maple Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Straloy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mollymaldonado@straloy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hebron"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"806"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">806</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">36492</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Riddle"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"984 Lois Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Terrago"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carsonriddle@terrago.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Leland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"813"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">813</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">30833</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ebony"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bishop"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">20</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"487 Ridge Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Optique"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ebonybishop@optique.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Fairmount"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"818"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">818</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">24433</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Espinoza"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Petersen"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"641 Glenwood Road"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Futurity"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"espinozapetersen@futurity.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Floriston"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"820"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">820</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1011</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shepard"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Ramsey"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"806 Village Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mantro"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shepardramsey@mantro.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tibbie"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"825"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">825</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49000</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Terra"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Witt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"590 Conway Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insectus"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"terrawitt@insectus.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Forbestown"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AR"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"832"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">832</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">8582</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Laura"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Gibbs"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"511 Osborn Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Corepan"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lauragibbs@corepan.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Worcester"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"KS"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"837"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">837</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">14485</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Amy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Villarreal"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"381 Stillwell Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Fleetmix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"amyvillarreal@fleetmix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sanford"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"844"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">844</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26840</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Jill"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"David"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"346 Legion Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zytrax"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"jilldavid@zytrax.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Saticoy"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"SC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"849"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">849</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">16200</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barry"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Chapman"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"931 Dekoven Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Darwinium"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barrychapman@darwinium.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Whitestone"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"851"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">851</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22026</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Henderson"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Price"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"530 Hausman Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Plutorque"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hendersonprice@plutorque.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brutus"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"RI"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"856"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">856</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27583</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Alissa"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Knox"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"258 Empire Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geologix"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"alissaknox@geologix.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hartsville/Hartley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"863"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">863</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23165</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Melendez"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fernandez"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"661 Johnson Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Vixo"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"melendezfernandez@vixo.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Farmers"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"868"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">868</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">27624</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Polly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Barron"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">22</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"129 Frank Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geofarm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"pollybarron@geofarm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Loyalhanna"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ND"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"870"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">870</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">43882</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Goff"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Phelps"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"164 Montague Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Digigen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"goffphelps@digigen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Weedville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"875"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">875</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">19655</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mercer"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Pratt"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"608 Perry Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Twiggery"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mercerpratt@twiggery.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Eggertsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"882"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">882</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">10895</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mari"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Landry"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">39</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"963 Gerald Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kenegy"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"marilandry@kenegy.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lithium"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NC"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"887"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">887</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31772</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Eunice"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Watts"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"707 Stuyvesant Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Memora"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"eunicewatts@memora.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Westwood"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"894"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">894</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">1031</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tyler"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Fitzgerald"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"787 Meserole Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Jetsilk"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tylerfitzgerald@jetsilk.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Woodlands"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"899"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">899</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">32953</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Carney"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Callahan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"724 Kimball Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Mangelica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"carneycallahan@mangelica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Tecolotito"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"902"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">902</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">13345</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hallie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Jarvis"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">23</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"237 Duryea Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Anixang"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"halliejarvis@anixang.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Boykin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"IN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"907"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">907</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">12961</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Ingram"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"William"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">36</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"826 Overbaugh Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Genmex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"ingramwilliam@genmex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Kimmell"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"914"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">914</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">7120</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Esther"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Bean"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"583 Macon Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Applica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"estherbean@applica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Homeworth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MN"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"919"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">919</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">39655</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Shauna"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hanson"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">27</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"557 Hart Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exospace"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"shaunahanson@exospace.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Outlook"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"LA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"921"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">921</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49119</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Barbara"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Wade"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"687 Hoyts Lane"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Roughies"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"barbarawade@roughies.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Sattley"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"CO"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"926"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">926</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">49433</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Welch"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mcgowan"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"833 Quincy Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Atomica"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"welchmcgowan@atomica.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Hampstead"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"933"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">933</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">18071</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Tabitha"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Cole"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">21</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"916 Rogers Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eclipto"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"tabithacole@eclipto.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Lawrence"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"TX"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"938"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">938</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">9597</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Sharron"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Santos"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">40</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"215 Matthews Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Zenco"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"sharronsantos@zenco.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Wattsville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VT"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"940"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">940</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23285</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Melinda"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Mendoza"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">38</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"806 Kossuth Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Kneedles"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"melindamendoza@kneedles.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Coaldale"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"OK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"945"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">945</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">23085</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Hansen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Hebert"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"287 Conduit Boulevard"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Capscreen"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"hansenhebert@capscreen.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Taycheedah"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AK"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"952"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">952</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21430</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Angelique"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Weeks"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">33</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"659 Reeve Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Exodoc"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"angeliqueweeks@exodoc.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Turpin"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MD"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"957"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">957</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">11373</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Michael"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Giles"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">31</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"668 Court Square"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Yogasm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"michaelgiles@yogasm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Rosburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"WV"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"964"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">964</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">26154</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Elena"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Waller"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"618 Crystal Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Insurety"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"elenawaller@insurety.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Gallina"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NY"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"969"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">969</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22214</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Briggs"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Lynn"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">30</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"952 Lester Court"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Quinex"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"briggslynn@quinex.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Roland"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"971"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">971</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">22772</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Gabrielle"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Reilly"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">32</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"964 Tudor Terrace"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Blanet"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"gabriellereilly@blanet.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Falmouth"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"AL"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"976"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">976</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">31707</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mullen"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Tanner"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">26</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"711 Whitney Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pulze"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mullentanner@pulze.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mooresburg"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"MA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"983"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">983</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">47205</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Mattie"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Eaton"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">24</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"418 Allen Avenue"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Trasola"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"mattieeaton@trasola.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Dupuyer"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"NJ"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"988"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">988</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">17803</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Lucy"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Castro"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">34</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"F"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"425 Fleet Walk"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Geekfarm"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"lucycastro@geekfarm.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Mulino"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"VA"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"990"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">990</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">44456</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Kelly"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Steele"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">35</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"809 Hoyt Street"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Eschoir"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"kellysteele@eschoir.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Stewartville"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ID"</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"index"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"_id"</span><span class="punctuation">:</span><span class="string">"995"</span><span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">{</span><span class="attr">"account_number"</span><span class="punctuation">:</span><span class="number">995</span><span class="punctuation">,</span><span class="attr">"balance"</span><span class="punctuation">:</span><span class="number">21153</span><span class="punctuation">,</span><span class="attr">"firstname"</span><span class="punctuation">:</span><span class="string">"Phelps"</span><span class="punctuation">,</span><span class="attr">"lastname"</span><span class="punctuation">:</span><span class="string">"Parrish"</span><span class="punctuation">,</span><span class="attr">"age"</span><span class="punctuation">:</span><span class="number">25</span><span class="punctuation">,</span><span class="attr">"gender"</span><span class="punctuation">:</span><span class="string">"M"</span><span class="punctuation">,</span><span class="attr">"address"</span><span class="punctuation">:</span><span class="string">"666 Miller Place"</span><span class="punctuation">,</span><span class="attr">"employer"</span><span class="punctuation">:</span><span class="string">"Pearlessa"</span><span class="punctuation">,</span><span class="attr">"email"</span><span class="punctuation">:</span><span class="string">"phelpsparrish@pearlessa.com"</span><span class="punctuation">,</span><span class="attr">"city"</span><span class="punctuation">:</span><span class="string">"Brecon"</span><span class="punctuation">,</span><span class="attr">"state"</span><span class="punctuation">:</span><span class="string">"ME"</span><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701155812781.png" alt="image-20230701155812781"></p>
|
||
<h1 id="四-进阶检索"><a href="#四-进阶检索" class="headerlink" title="四.进阶检索"></a>四.进阶检索</h1><h2 id="1-SearchAPI"><a href="#1-SearchAPI" class="headerlink" title="1.SearchAPI"></a>1.SearchAPI</h2><p>ES支持两种基本的方式检索:</p>
|
||
<ul>
|
||
<li>一个是通过使用REST request URI 发送搜索参数(uri+检索参数)</li>
|
||
<li>另一个是通过使用 REST request body来发送它们(uri+请求体)</li>
|
||
</ul>
|
||
<h3 id="1-1-检索信息"><a href="#1-1-检索信息" class="headerlink" title="1.1 检索信息"></a>1.1 检索信息</h3><p><strong>一切检索从_search开始</strong></p>
|
||
<h4 id="1-1-1-使用uri-检索参数的方式进行检索"><a href="#1-1-1-使用uri-检索参数的方式进行检索" class="headerlink" title="1.1.1 使用uri+检索参数的方式进行检索"></a>1.1.1 使用uri+检索参数的方式进行检索</h4><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET bank/_search <span class="comment">//检索bank下所有信息,包含type和docs</span></span><br><span class="line">GET bank/_search?q=*&sort=account_number<span class="punctuation">:</span>asc <span class="comment">//请求参数方式检索</span></span><br><span class="line"><span class="comment">//q=*表示查询所有</span></span><br><span class="line"><span class="comment">//sort=account_number:asc 按照account_number进行升序排序</span></span><br><span class="line"><span class="comment">//相应的结果解析</span></span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"took"</span><span class="punctuation">:</span><span class="number">29</span><span class="punctuation">,</span><span class="comment">//执行搜索的时间</span></span><br><span class="line"> <span class="attr">"time_out"</span><span class="punctuation">:</span><span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span> <span class="comment">//搜索是否超时</span></span><br><span class="line"> <span class="attr">"_shards"</span><span class="punctuation">:</span><span class="punctuation">{</span>.....<span class="punctuation">}</span><span class="punctuation">,</span><span class="comment">//有多少个分片被搜索了,以及统计成功/失败的搜索分片</span></span><br><span class="line"> <span class="attr">"hits"</span><span class="punctuation">:</span><span class="punctuation">{</span>.......<span class="punctuation">}</span><span class="comment">//搜索的结果</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701162247192.png" alt="image-20230701162247192"></p>
|
||
<p>完整的响应结果</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"took"</span> <span class="punctuation">:</span> <span class="number">29</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"timed_out"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_shards"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"total"</span> <span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"successful"</span> <span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skipped"</span> <span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"failed"</span> <span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"hits"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"total"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"value"</span> <span class="punctuation">:</span> <span class="number">1000</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"relation"</span> <span class="punctuation">:</span> <span class="string">"eq"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"max_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"hits"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"0"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">16623</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Bradshaw"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Mckenzie"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">29</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"F"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"244 Columbus Place"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Euron"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"bradshawmckenzie@euron.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Hobucken"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"CO"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"1"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">39225</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Amber"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Duke"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">32</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"M"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"880 Holmes Lane"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Pyrami"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"amberduke@pyrami.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Brogan"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"IL"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"2"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">28838</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Roberta"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Bender"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"F"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"560 Kingsway Place"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Chillium"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"robertabender@chillium.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Bennett"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"LA"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">2</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"3"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">44947</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Levine"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Burks"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">26</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"F"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"328 Wilson Avenue"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Amtap"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"levineburks@amtap.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Cochranville"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"HI"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">3</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"4"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">4</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">27658</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Rodriquez"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Flores"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">31</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"F"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"986 Wyckoff Avenue"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Tourmania"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"rodriquezflores@tourmania.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Eastvale"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"HI"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">4</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"5"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">5</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">29342</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Leola"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Stewart"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">30</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"F"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"311 Elm Place"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Diginetic"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"leolastewart@diginetic.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Fairview"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"NJ"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">5</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"6"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">6</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">5686</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Hattie"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Bond"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">36</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"M"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"671 Bristol Street"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Netagy"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"hattiebond@netagy.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Dante"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"TN"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">6</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"7"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">7</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">39121</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Levy"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Richard"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">22</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"M"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"820 Logan Street"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Teraprene"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"levyrichard@teraprene.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Shrewsbury"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"MO"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">7</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"8"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">8</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">48868</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Jan"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Burns"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">35</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"M"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"699 Visitation Place"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Glasstep"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"janburns@glasstep.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Wakulla"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"AZ"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">8</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"_index"</span> <span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_type"</span> <span class="punctuation">:</span> <span class="string">"account"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_id"</span> <span class="punctuation">:</span> <span class="string">"9"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_score"</span> <span class="punctuation">:</span> <span class="literal"><span class="keyword">null</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"_source"</span> <span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span> <span class="punctuation">:</span> <span class="number">9</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span> <span class="punctuation">:</span> <span class="number">24776</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span> <span class="punctuation">:</span> <span class="string">"Opal"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span> <span class="punctuation">:</span> <span class="string">"Meadows"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span> <span class="punctuation">:</span> <span class="number">39</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span> <span class="punctuation">:</span> <span class="string">"M"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span> <span class="punctuation">:</span> <span class="string">"963 Neptune Avenue"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span> <span class="punctuation">:</span> <span class="string">"Cedward"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span> <span class="punctuation">:</span> <span class="string">"opalmeadows@cedward.com"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span> <span class="punctuation">:</span> <span class="string">"Olney"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span> <span class="punctuation">:</span> <span class="string">"OH"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span> <span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="number">9</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-1-2-使用uri-请求体的方式进行检索"><a href="#1-1-2-使用uri-请求体的方式进行检索" class="headerlink" title="1.1.2 使用uri+请求体的方式进行检索"></a>1.1.2 使用uri+请求体的方式进行检索</h4><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search </span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span> </span><br><span class="line"> <span class="attr">"match_all"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="punctuation">}</span> <span class="comment">//查询所有(匹配条件)</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="comment">//排序规则</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span><span class="punctuation">:</span> <span class="string">"asc"</span><span class="comment">//根据account_number升序</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span> </span><br><span class="line"> <span class="attr">"balance"</span><span class="punctuation">:</span><span class="string">"desc"</span> <span class="comment">//根据balance降序</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230701163210869.png" alt="image-20230701163210869"></p>
|
||
<h2 id="2-Query-DSL"><a href="#2-Query-DSL" class="headerlink" title="2.Query DSL"></a>2.Query DSL</h2><h3 id="2-1-基本的语法"><a href="#2-1-基本的语法" class="headerlink" title="2.1 基本的语法"></a>2.1 基本的语法</h3><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//查询操作</span></span><br><span class="line"> <span class="attr">"match_all"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="punctuation">}</span> <span class="comment">//查询的条件 </span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"sort"</span><span class="punctuation">:</span> <span class="punctuation">[</span> <span class="comment">//排序的条件(数组,可以指定多个排序规则)</span></span><br><span class="line"> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"balance"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//排序的字段</span></span><br><span class="line"> <span class="attr">"order"</span><span class="punctuation">:</span> <span class="string">"desc"</span> <span class="comment">//排序的规则(升序或者降序)</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"from"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span><span class="comment">//分页字段,从第几页开始</span></span><br><span class="line"> <span class="attr">"size"</span><span class="punctuation">:</span> <span class="number">5</span><span class="punctuation">,</span><span class="comment">//每页的记录数</span></span><br><span class="line"> <span class="attr">"_source"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"balance"</span><span class="punctuation">,</span><span class="string">"firstname"</span><span class="punctuation">]</span> <span class="comment">//返回指定的字段</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-match查询-匹配查询"><a href="#2-2-match查询-匹配查询" class="headerlink" title="2.2 match查询[匹配查询]"></a>2.2 match查询[匹配查询]</h3><p><strong>根据某个字段的值进行匹配查询</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询account_number是20的数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//查询account_number是20的数据</span></span><br><span class="line"> <span class="attr">"account_number"</span><span class="punctuation">:</span> <span class="string">"20"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>模糊匹配</strong></p>
|
||
<p>对检索的条件进行分词匹配,按照评分的进行排序</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询地址中包含mill或者lane或者mill lane的数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="string">"Mill lane"</span> <span class="comment">//查询地址中包含Mill或者lane中一个或者多个的数据,然后按照命中的评分排序</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-match-phrase-短语匹配"><a href="#2-3-match-phrase-短语匹配" class="headerlink" title="2.3 match_phrase[短语匹配]"></a>2.3 match_phrase[短语匹配]</h3><p>匹配的短语不分割进行匹配,一整个进行匹配</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询地址中包含Mill lane短语的数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match_phrase"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="string">"Mill lane"</span> <span class="comment">//查询包含整个Mill lane的数据</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4-multi-match-多字段匹配"><a href="#2-4-multi-match-多字段匹配" class="headerlink" title="2.4 multi_match[多字段匹配]"></a>2.4 multi_match[多字段匹配]</h3><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询state和address中包含mill的数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"multi_match"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//查询在state或者在address字段中包含mill的数据</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="string">"mill"</span><span class="punctuation">,</span><span class="comment">//多字段匹配在查询的时候也会分词进行匹配</span></span><br><span class="line"> <span class="attr">"fields"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"state"</span><span class="punctuation">,</span><span class="string">"address"</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-5-bool-复合查询"><a href="#2-5-bool-复合查询" class="headerlink" title="2.5 bool[复合查询]"></a>2.5 bool[复合查询]</h3><figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询性别是M和地址中包含mill并且年龄不是28,lastname最好是Hines的数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"bool"</span><span class="punctuation">:</span> <span class="punctuation">{</span> <span class="comment">//多条件复合查询</span></span><br><span class="line"> <span class="attr">"must"</span><span class="punctuation">:</span> <span class="punctuation">[</span> <span class="comment">//必须符合的条件</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"gender"</span><span class="punctuation">:</span> <span class="string">"M"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="string">"mill"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"must_not"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="comment">//必须不符合的条件</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="string">"38"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"should"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"lastname"</span><span class="punctuation">:</span> <span class="string">"Hines"</span> <span class="comment">//最好lastname是Hines,满足这个条件的得分会高一些</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-6-Filter-结果过滤"><a href="#2-6-Filter-结果过滤" class="headerlink" title="2.6 Filter[结果过滤]"></a>2.6 Filter[结果过滤]</h3><p><strong>使用Filter进行检索相比上面的检索,不会影响过滤结果的得分</strong>(上面的检索都可以通过Filter实现)</p>
|
||
<p>举例:未使用filter的查询:</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//查询年龄在18-20之间的所有数据</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"bool"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"must"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"range"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"gte"</span><span class="punctuation">:</span> <span class="number">18</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lte"</span><span class="punctuation">:</span> <span class="number">30</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>有得分的变化</p>
|
||
<p><img src="/pictures/image-20230702111451660.png" alt="image-20230702111451660"></p>
|
||
<p>使用了Filter的查询:</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"bool"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"filter"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"range"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"gte"</span><span class="punctuation">:</span> <span class="number">18</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lte"</span><span class="punctuation">:</span> <span class="number">30</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>没有得分的变化</p>
|
||
<p><img src="/pictures/image-20230702111554667.png" alt="image-20230702111554667"></p>
|
||
<p><strong>Filter可以和上面的检索条件一起使用</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">"bool"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">"must"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"gender"</span><span class="punctuation">:</span> <span class="string">"M"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="string">"mill"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">"must_not"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="string">"18"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">"should"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"lastname"</span><span class="punctuation">:</span> <span class="string">"Wallace"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> </span><br><span class="line"> <span class="attr">"filter"</span><span class="punctuation">:</span> <span class="punctuation">[</span></span><br><span class="line"> <span class="punctuation">{</span><span class="attr">"range"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"gte"</span><span class="punctuation">:</span> <span class="number">18</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lte"</span><span class="punctuation">:</span> <span class="number">30</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-7-term"><a href="#2-7-term" class="headerlink" title="2.7 term"></a>2.7 term</h3><p>和match一样,匹配某个属性的值。全文检索字段用match,其他非text字段匹配用term(精确性字段推荐使用term,例如年龄,数量等)</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"term"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//精确的使用term,全文检索字段用match</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="string">"28"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-8-aggregations-执行聚合"><a href="#2-8-aggregations-执行聚合" class="headerlink" title="2.8 aggregations[执行聚合]"></a>2.8 aggregations[执行聚合]</h3><p>聚合提供了从数据中分组和提取数据的能力.类似于MySql中的Group by函数</p>
|
||
<p><strong>搜索address中包含mill的所有人的年龄分布以及平均年龄</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//搜索address中包含mill的所有人的年龄分布以及平均年龄</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="string">"mill"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"ageAgg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"terms"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//查看年龄的分布情况</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"age"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"size"</span><span class="punctuation">:</span> <span class="number">10</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ageAvg"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="comment">//年龄平均值</span></span><br><span class="line"> <span class="attr">"avg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"age"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balanceAvg"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="comment">//工资的平均值</span></span><br><span class="line"> <span class="attr">"avg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"balance"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703101958163.png" alt="image-20230703101958163"></p>
|
||
<p><strong>按照年龄聚合,并且获取这些年龄段的这些人的平均薪资[子聚合]</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//按照年龄聚合,并且获取这些年龄段的这些人的平均薪资</span></span><br><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match_all"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"ageAgg"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//年龄段的聚合</span></span><br><span class="line"> <span class="attr">"terms"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"age"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"size"</span><span class="punctuation">:</span> <span class="number">100</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"ageAvg"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//年龄段的聚合里面嵌套一个求年龄平均值的聚合</span></span><br><span class="line"> <span class="attr">"avg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"balance"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703102805047.png" alt="image-20230703102805047"></p>
|
||
<p><strong>查询所有年龄分布,并且这些年龄段中男的平均工资和女的平均工资以及这个年龄段的总体平均薪资</strong></p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">GET /bank/_search</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"query"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"match_all"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"avgAgg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"terms"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//根据年龄进行分段</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"age"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"size"</span><span class="punctuation">:</span> <span class="number">100</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"genderAgg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"terms"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//根据性别进行分段</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"gender.keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"aggs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"balanceAvg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"avg"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//求出每个年龄段对应的不同性别的平均工资</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"balance"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"ageBalanceAvg"</span><span class="punctuation">:</span> <span class="punctuation">{</span><span class="comment">//计算每个年龄段对应的平均工资</span></span><br><span class="line"> <span class="attr">"avg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"field"</span><span class="punctuation">:</span> <span class="string">"balance"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703105247964.png" alt="image-20230703105247964"></p>
|
||
<h2 id="3-Mapping"><a href="#3-Mapping" class="headerlink" title="3.Mapping"></a>3.Mapping</h2><p><strong>指定ES中数据的数据类型</strong></p>
|
||
<h3 id="3-1-创建映射"><a href="#3-1-创建映射" class="headerlink" title="3.1 创建映射"></a>3.1 创建映射</h3><p>在创建索引的时候我们可以指定属性名的数据类型</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">##创建一个新的索引<span class="punctuation">,</span>指定索引下字段的映射关系</span><br><span class="line">PUT /my_index</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"mappings"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"properties"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"integer"</span><span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span><span class="punctuation">{</span><span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"text"</span><span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703112342368.png" alt="image-20230703112342368"></p>
|
||
<h3 id="3-2-添加新的映射"><a href="#3-2-添加新的映射" class="headerlink" title="3.2 添加新的映射"></a>3.2 添加新的映射</h3><figure class="highlight json"><table><tr><td class="code"><pre><span class="line">##添加一个映射</span><br><span class="line">PUT /my_index/_mapping</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"properties"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"employee-id"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span> <span class="comment">//表示这个字段不参与检索</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703113121234.png" alt="image-20230703113121234"></p>
|
||
<h3 id="3-3-更新映射"><a href="#3-3-更新映射" class="headerlink" title="3.3 更新映射"></a>3.3 更新映射</h3><p>对于已经存在的映射字段,我们不能更新,更新必须创建新的索引进行数据迁移</p>
|
||
<h3 id="3-4-数据迁移"><a href="#3-4-数据迁移" class="headerlink" title="3.4 数据迁移"></a>3.4 数据迁移</h3><p>1.创建一个新的索引并指定映射</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">PUT /new_bank</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"mappings"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"properties"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"account_number"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"address"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"text"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"age"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"integer"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"balance"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"city"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"email"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"employer"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"firstname"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"text"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"gender"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"lastname"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"state"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.数据迁移</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="comment">//新版本的写法(6.0以后)</span></span><br><span class="line">POST _reindex</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"source"</span><span class="punctuation">:</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span><span class="string">"twitter"</span> <span class="comment">//老的索引</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"dest"</span><span class="punctuation">:</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span><span class="string">"new_twitter"</span> <span class="comment">//新的索引</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br><span class="line"><span class="comment">//旧版本需要指定数据类型</span></span><br><span class="line">#数据迁移</span><br><span class="line">POST _reindex</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"source"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="string">"bank"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"account"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"dest"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="string">"new_bank"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703115140810.png" alt="image-20230703115140810"></p>
|
||
<h2 id="4-分词"><a href="#4-分词" class="headerlink" title="4.分词"></a>4.分词</h2><h3 id="4-1-安装分词器"><a href="#4-1-安装分词器" class="headerlink" title="4.1 安装分词器"></a>4.1 安装分词器</h3><p>安装地址: <a href="https://github.com/medcl/elasticsearch-analysis-ik">https://github.com/medcl/elasticsearch-analysis-ik</a></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到es挂载在注解的plugins目录</span></span><br><span class="line">cd /mydata/elasticsearch/plugins/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装wget</span></span><br><span class="line">yum install wget </span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载ik分词器的压缩包(下载的速度不是很快(5分钟左右),建议本地下载好了之后,上传上去)</span></span><br><span class="line">wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入容器内部查看一下文件是否同步到了容器的内部</span></span><br><span class="line">docker exec -it 容器Id /bin/bash</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到plugins目录中去,这时目录中也存在elasticsearch-analysis-ik-7.4.2.zip这个压缩包</span></span><br><span class="line">cd plugins/ #使用ls查看一下</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器</span></span><br><span class="line">exit</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在主机下解压elasticsearch-analysis-ik-7.4.2.zip这个压缩包</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">zip的解压需要使用unzip解压命令 这里我们直接在本地解压一下 上传到plugins目录(解压的文件名为ik)</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装unzip</span></span><br><span class="line">yum install -y unzip</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看ik分词器是否安装成功</span></span><br><span class="line">docker exec -it 容器Id /bin/bash</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到bin目录</span></span><br><span class="line">cd bin/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">执行下面的命令,有ik显示即为安装成功</span></span><br><span class="line">elasticsearch-plugin list</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器,重启一下</span></span><br><span class="line">docker restart elasticsearch</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试使用</p>
|
||
<p><img src="/pictures/image-20230703152110823.png" alt="image-20230703152110823"></p>
|
||
<h3 id="4-2-自定义词库"><a href="#4-2-自定义词库" class="headerlink" title="4.2 自定义词库"></a>4.2 自定义词库</h3><p>1.安装nginx,用作设置ik的远程分词库</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建nginx容器挂载的目录</span></span><br><span class="line">mkdir /mydata/nginx/conf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">拉取nginx的镜像</span></span><br><span class="line">docker pull nginx:1.10</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">随便启动一个nginx实例,为了复制其配置</span></span><br><span class="line">docker run -p 80:80 --name nginx -d nginx:1.10</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">将容器内的配置文件拷贝到conf目录(注意这里有个点和空格)</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">注意在nginx的目录下操作,(成功之后/mydata/nginx/conf目录下会有相应的配置文件和目录)</span></span><br><span class="line">docker container cp nginx:/etc/nginx /mydata/nginx/conf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">停掉并删除之前的启动的nginx</span></span><br><span class="line">docker stop nginx</span><br><span class="line">docker rm nginx</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">正式的启动容器</span></span><br><span class="line">docker run -p 80:80 --name nginx \</span><br><span class="line">-v /mydata/nginx/html:/usr/share/nginx/html \</span><br><span class="line">-v /mydata/nginx/logs:/var/log/nginx \</span><br><span class="line">-v /mydata/nginx/conf:/etc/nginx \</span><br><span class="line">-d nginx:1.10</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置开机自启</span></span><br><span class="line">docker update nginx --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.配置自定义的词库</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在nginx外部挂载的html目录下创建相应的目录</span></span><br><span class="line">mkdir es</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建分词需要使用的文本文件</span></span><br><span class="line">vim fenci.txt</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在这个文本文件中加入我们需要添加的新词</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">例如:奥里给 老铁之类的</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在浏览器上可以通过http://192.168.195.100/es/fenci.txt访问到里面的内容</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.配置es远程词库的地址</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到ik分词器配置文件所在的目录</span></span><br><span class="line">cd elasticsearch/plugins/ik/config/</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">修改配置文件,设置远程分词库的地址</span></span><br><span class="line">vim IKAnalyzer.cfg.xml</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230703170719714.png" alt="image-20230703170719714"></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启es</span></span><br><span class="line">docker restart elasticsearch</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>4.测试一下(这时我们使用网络中新颖的词就可以识别成一个词语)</p>
|
||
<p><img src="/pictures/image-20230703171420471.png" alt="image-20230703171420471"></p>
|
||
<h1 id="五-Elasticsearch-Rest-Client"><a href="#五-Elasticsearch-Rest-Client" class="headerlink" title="五.Elasticsearch-Rest-Client"></a>五.Elasticsearch-Rest-Client</h1><h2 id="1-环境配置"><a href="#1-环境配置" class="headerlink" title="1.环境配置"></a>1.环境配置</h2><p><strong>1.导入依赖</strong></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--指定版本--></span></span><br><span class="line"><span class="tag"><<span class="name">properties</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">elasticsearch.version</span>></span>7.4.2<span class="tag"></<span class="name">elasticsearch.version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">properties</span>></span></span><br><span class="line"><span class="comment"><!--ES的依赖--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.elasticsearch.client<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>elasticsearch-rest-high-level-client<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>7.4.2<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.编写配置文件</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.apache.http.HttpHost;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.HttpResponse;</span><br><span class="line"><span class="keyword">import</span> org.apache.http.nio.protocol.HttpAsyncResponseConsumer;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.HttpAsyncResponseConsumerFactory;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RequestOptions;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RestClient;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RestHighLevelClient;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/3</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> ES的配置文件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">ElasticSearchConfig</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">//通用设置项</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> RequestOptions COMMON_OPTIONS;</span><br><span class="line"> <span class="keyword">static</span> {</span><br><span class="line"> RequestOptions.<span class="type">Builder</span> <span class="variable">builder</span> <span class="operator">=</span> RequestOptions.DEFAULT.toBuilder();</span><br><span class="line"></span><br><span class="line"> COMMON_OPTIONS = builder.build();</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> RestHighLevelClient <span class="title function_">esRestClient</span><span class="params">()</span> {</span><br><span class="line"> <span class="type">RestHighLevelClient</span> <span class="variable">client</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">RestHighLevelClient</span>(</span><br><span class="line"> RestClient.builder(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">HttpHost</span>(<span class="string">"192.168.195.100"</span>, <span class="number">9200</span>, <span class="string">"http"</span>)</span><br><span class="line"> )</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> client;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.测试使用</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.search;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RestHighLevelClient;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.AfterAll;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">GulimallSearchApplicationTests</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> RestHighLevelClient client;</span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">contextLoads</span><span class="params">()</span> {</span><br><span class="line"> System.out.println(client);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="2-代码操作ES"><a href="#2-代码操作ES" class="headerlink" title="2.代码操作ES"></a>2.代码操作ES</h2><h3 id="2-1-创建索引"><a href="#2-1-创建索引" class="headerlink" title="2.1 创建索引"></a><strong>2.1 创建索引</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建一个索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testCreateIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">CreateIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CreateIndexRequest</span>(<span class="string">"test_create"</span>);</span><br><span class="line"> <span class="type">CreateIndexResponse</span> <span class="variable">createIndexResponse</span> <span class="operator">=</span> client.indices().create(request, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"创建一个索引:{}"</span>,createIndexResponse);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-判断索引是否存在"><a href="#2-2-判断索引是否存在" class="headerlink" title="2.2 判断索引是否存在"></a><strong>2.2 判断索引是否存在</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断索引是否存在</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testExistIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetIndexRequest</span>(<span class="string">"users"</span>);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">exists</span> <span class="operator">=</span> client.indices().exists(request, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"索引是否存在:{}"</span>,exists);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-3-删除索引"><a href="#2-3-删除索引" class="headerlink" title="2.3 删除索引"></a><strong>2.3 删除索引</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testDeleteIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">DeleteIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DeleteIndexRequest</span>(<span class="string">"test_create"</span>);</span><br><span class="line"> <span class="type">AcknowledgedResponse</span> <span class="variable">delete</span> <span class="operator">=</span> client.indices().delete(request, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(delete.isAcknowledged());</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-4-保存文档"><a href="#2-4-保存文档" class="headerlink" title="2.4 保存文档"></a><strong>2.4 保存文档</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 测试向es中存储数据</span></span><br><span class="line"><span class="comment"> * 保存和修改的操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">indexData</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//在users索引下存储数据</span></span><br><span class="line"> <span class="type">IndexRequest</span> <span class="variable">indexRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">IndexRequest</span>(<span class="string">"users"</span>);</span><br><span class="line"> <span class="comment">//存储的数据的id</span></span><br><span class="line"> indexRequest.id(<span class="string">"1"</span>);</span><br><span class="line"> <span class="comment">//第一种方式</span></span><br><span class="line"> <span class="comment">//indexRequest.source("userName","zhangSan","age",18,"gender","男");</span></span><br><span class="line"> <span class="comment">//第二种方式</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"tom"</span>,<span class="string">"男"</span>,<span class="number">22</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">jsonString</span> <span class="operator">=</span> JSON.toJSONString(user);</span><br><span class="line"> indexRequest.source(jsonString, XContentType.JSON);</span><br><span class="line"> <span class="comment">//执行真正的保存操作</span></span><br><span class="line"> <span class="comment">//下面方法的第二个参数也可以使用这个参数GulimallElasticSearchConfig.COMMON_OPTIONS</span></span><br><span class="line"> <span class="type">IndexResponse</span> <span class="variable">index</span> <span class="operator">=</span> client.index(indexRequest, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"保存之后响应的数据:{}"</span>,index);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-5-判断文档是否存在"><a href="#2-5-判断文档是否存在" class="headerlink" title="2.5 判断文档是否存在"></a><strong>2.5 判断文档是否存在</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断文档是否存在</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testIsExists</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetRequest</span> <span class="variable">getRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> getRequest.fetchSourceContext(<span class="keyword">new</span> <span class="title class_">FetchSourceContext</span>(<span class="literal">false</span>));</span><br><span class="line"> getRequest.storedFields(<span class="string">"_none_"</span>);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">exists</span> <span class="operator">=</span> client.exists(getRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(exists);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-6-获取文档信息"><a href="#2-6-获取文档信息" class="headerlink" title="2.6 获取文档信息"></a><strong>2.6 获取文档信息</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取文档的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testGetDocument</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetRequest</span> <span class="variable">getRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> <span class="type">GetResponse</span> <span class="variable">getResponse</span> <span class="operator">=</span> client.get(getRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(getResponse.getSourceAsString());</span><br><span class="line"> System.out.println(getResponse);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-7-修改文档信息"><a href="#2-7-修改文档信息" class="headerlink" title="2.7 修改文档信息"></a><strong>2.7 修改文档信息</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 更新文档的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testUpdateRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">UpdateRequest</span> <span class="variable">updateRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UpdateRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> updateRequest.timeout(<span class="string">"1s"</span>);</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"修改之后的用户名"</span>, <span class="string">"男"</span>,<span class="number">23</span>);</span><br><span class="line"> updateRequest.doc(JSON.toJSONString(user), XContentType.JSON);</span><br><span class="line"> <span class="type">UpdateResponse</span> <span class="variable">updateResponse</span> <span class="operator">=</span> client.update(updateRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(updateResponse.status());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-8-删除文档记录"><a href="#2-8-删除文档记录" class="headerlink" title="2.8 删除文档记录"></a><strong>2.8 删除文档记录</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除文档记录</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testDeleteRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">DeleteRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DeleteRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> request.timeout(<span class="string">"1s"</span>);</span><br><span class="line"> <span class="type">DeleteResponse</span> <span class="variable">deleteResponse</span> <span class="operator">=</span> client.delete(request, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(deleteResponse.status());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-9-批量添加"><a href="#2-9-批量添加" class="headerlink" title="2.9 批量添加"></a><strong>2.9 批量添加</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 批量添加文档</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testBulkRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">BulkRequest</span> <span class="variable">bulkRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BulkRequest</span>();</span><br><span class="line"> bulkRequest.timeout(<span class="string">"10s"</span>);</span><br><span class="line"> ArrayList<User> userList = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"A"</span>, <span class="string">"男"</span>,<span class="number">23</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"B"</span>, <span class="string">"男"</span>,<span class="number">32</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"C"</span>, <span class="string">"女"</span>,<span class="number">34</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"D"</span>, <span class="string">"女"</span>,<span class="number">56</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"E"</span>, <span class="string">"男"</span>,<span class="number">34</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"F"</span>, <span class="string">"女"</span>,<span class="number">65</span>));</span><br><span class="line"> <span class="comment">// 批处理请求</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < userList.size(); i++) {</span><br><span class="line"> <span class="comment">// 批量更新和批量删除,就在这里修改对应的请求就可以了</span></span><br><span class="line"> bulkRequest.add(<span class="keyword">new</span> <span class="title class_">IndexRequest</span>(<span class="string">"users"</span>).id(<span class="string">""</span> + (i + <span class="number">1</span>))</span><br><span class="line"> .source(JSON.toJSONString(userList.get(i)), XContentType.JSON));</span><br><span class="line"> }</span><br><span class="line"> <span class="type">BulkResponse</span> <span class="variable">bulkResponse</span> <span class="operator">=</span> client.bulk(bulkRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(<span class="string">"是否批量添加成功:"</span>+!bulkResponse.hasFailures());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-10-条件查询"><a href="#2-10-条件查询" class="headerlink" title="2.10 条件查询"></a><strong>2.10 条件查询</strong></h3><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 检索的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testSearchRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//1.创建一个检索请求</span></span><br><span class="line"> <span class="type">SearchRequest</span> <span class="variable">searchRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SearchRequest</span>();</span><br><span class="line"> <span class="comment">//设置检索的索引</span></span><br><span class="line"> searchRequest.indices(<span class="string">"bank"</span>);</span><br><span class="line"> <span class="comment">//指定DSL,检索条件</span></span><br><span class="line"> <span class="type">SearchSourceBuilder</span> <span class="variable">sourceBuilder</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SearchSourceBuilder</span>();</span><br><span class="line"> sourceBuilder.query(QueryBuilders.matchQuery(<span class="string">"address"</span>, <span class="string">"mill"</span>));<span class="comment">//查询地址中包含mill的数据</span></span><br><span class="line"> sourceBuilder.aggregation(AggregationBuilders.terms(<span class="string">"ageAgg"</span>).field(<span class="string">"age"</span>).size(<span class="number">10</span>));<span class="comment">//聚合名ageAgg,根据age字段聚合,只取10条</span></span><br><span class="line"> sourceBuilder.aggregation(AggregationBuilders.avg(<span class="string">"balanceAvg"</span>).field(<span class="string">"balance"</span>));<span class="comment">//求平均工资</span></span><br><span class="line"> System.out.println(<span class="string">"检索的条件:"</span> + sourceBuilder);</span><br><span class="line"> searchRequest.source(sourceBuilder);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.执行检索</span></span><br><span class="line"> <span class="type">SearchResponse</span> <span class="variable">searchResponse</span> <span class="operator">=</span> client.search(searchRequest, RequestOptions.DEFAULT);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3.分析检索的结果</span></span><br><span class="line"> System.out.println(<span class="string">"查询到的数据:"</span> + searchResponse.toString());</span><br><span class="line"> <span class="comment">//Map map = JSON.parseObject(searchResponse.toString(), Map.class);//可以转换成一个map</span></span><br><span class="line"> <span class="type">SearchHits</span> <span class="variable">hits</span> <span class="operator">=</span> searchResponse.getHits();<span class="comment">//拿到命中的记录</span></span><br><span class="line"> <span class="keyword">for</span> (SearchHit hit : hits) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">index</span> <span class="operator">=</span> hit.getIndex();<span class="comment">//获取索引信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">type</span> <span class="operator">=</span> hit.getType();<span class="comment">//类型信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">id</span> <span class="operator">=</span> hit.getId();<span class="comment">//id信息</span></span><br><span class="line"> <span class="type">float</span> <span class="variable">score</span> <span class="operator">=</span> hit.getScore();<span class="comment">//得分信息</span></span><br><span class="line"> <span class="type">TimeValue</span> <span class="variable">took</span> <span class="operator">=</span> searchResponse.getTook();</span><br><span class="line"> <span class="type">String</span> <span class="variable">sourceAsString</span> <span class="operator">=</span> hit.getSourceAsString();<span class="comment">//直接转化成对应的java对象</span></span><br><span class="line"> <span class="comment">//转换成Account对象</span></span><br><span class="line"> <span class="type">Account</span> <span class="variable">account</span> <span class="operator">=</span> JSON.parseObject(sourceAsString, Account.class);</span><br><span class="line"> System.out.println(<span class="string">"Account:"</span> + account);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//获取聚合分析的信息</span></span><br><span class="line"> <span class="comment">//获取年龄的分段信息</span></span><br><span class="line"> <span class="type">Aggregations</span> <span class="variable">aggregations</span> <span class="operator">=</span> searchResponse.getAggregations();</span><br><span class="line"> <span class="type">Terms</span> <span class="variable">ageAgg</span> <span class="operator">=</span> aggregations.get(<span class="string">"ageAgg"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Terms.Bucket bucket : ageAgg.getBuckets()) {</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"年龄:"</span> + bucket.getKeyAsString() + <span class="string">"有"</span> + bucket.getDocCount() + <span class="string">"人"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取薪资的平均值</span></span><br><span class="line"> <span class="type">Avg</span> <span class="variable">balanceAvg</span> <span class="operator">=</span> aggregations.get(<span class="string">"balanceAvg"</span>);</span><br><span class="line"> System.out.println(<span class="string">"平均薪资:"</span> + balanceAvg.getValue());</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>示例的完整代码</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.search;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.alibaba.fastjson.JSON;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.gulimall.search.config.GulimallElasticSearchConfig;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> lombok.ToString;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.bulk.BulkRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.bulk.BulkResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.delete.DeleteRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.delete.DeleteResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.get.GetRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.get.GetResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.index.IndexRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.index.IndexResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.search.SearchRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.search.SearchResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.support.master.AcknowledgedResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.update.UpdateRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.action.update.UpdateResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RequestOptions;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.RestHighLevelClient;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.indices.CreateIndexRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.indices.CreateIndexResponse;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.client.indices.GetIndexRequest;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.common.unit.TimeValue;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.common.xcontent.XContentType;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.index.query.QueryBuilders;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.SearchHit;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.SearchHits;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.Aggregation;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.AggregationBuilder;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.AggregationBuilders;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.Aggregations;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.bucket.terms.Terms;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.aggregations.metrics.Avg;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.builder.SearchSourceBuilder;</span><br><span class="line"><span class="keyword">import</span> org.elasticsearch.search.fetch.subphase.FetchSourceContext;</span><br><span class="line"><span class="keyword">import</span> org.junit.jupiter.api.Test;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.test.context.SpringBootTest;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@SpringBootTest</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">GulimallSearchApplicationTests</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> RestHighLevelClient client;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">contextLoads</span><span class="params">()</span> {</span><br><span class="line"> System.out.println(client);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 测试向es中存储数据</span></span><br><span class="line"><span class="comment"> * 保存和修改的操作</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">indexData</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//在users索引下存储数据</span></span><br><span class="line"> <span class="type">IndexRequest</span> <span class="variable">indexRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">IndexRequest</span>(<span class="string">"users"</span>);</span><br><span class="line"> <span class="comment">//存储的数据的id</span></span><br><span class="line"> indexRequest.id(<span class="string">"1"</span>);</span><br><span class="line"> <span class="comment">//第一种方式</span></span><br><span class="line"> <span class="comment">//indexRequest.source("userName","zhangSan","age",18,"gender","男");</span></span><br><span class="line"> <span class="comment">//第二种方式</span></span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"tom"</span>, <span class="string">"男"</span>, <span class="number">22</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">jsonString</span> <span class="operator">=</span> JSON.toJSONString(user);</span><br><span class="line"> indexRequest.source(jsonString, XContentType.JSON);</span><br><span class="line"> <span class="comment">//执行真正的保存操作</span></span><br><span class="line"> <span class="comment">//下面方法的第二个参数也可以使用这个参数GulimallElasticSearchConfig.COMMON_OPTIONS</span></span><br><span class="line"> <span class="type">IndexResponse</span> <span class="variable">index</span> <span class="operator">=</span> client.index(indexRequest, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"保存之后响应的数据:{}"</span>, index);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断索引是否存在</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testExistIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetIndexRequest</span>(<span class="string">"users"</span>);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">exists</span> <span class="operator">=</span> client.indices().exists(request, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"索引是否存在:{}"</span>, exists);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 创建一个索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testCreateIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">CreateIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CreateIndexRequest</span>(<span class="string">"test_create"</span>);</span><br><span class="line"> <span class="type">CreateIndexResponse</span> <span class="variable">createIndexResponse</span> <span class="operator">=</span> client.indices().create(request, RequestOptions.DEFAULT);</span><br><span class="line"> log.info(<span class="string">"创建一个索引:{}"</span>, createIndexResponse);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除索引</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testDeleteIndex</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">DeleteIndexRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DeleteIndexRequest</span>(<span class="string">"users"</span>);</span><br><span class="line"> <span class="type">AcknowledgedResponse</span> <span class="variable">delete</span> <span class="operator">=</span> client.indices().delete(request, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(delete.isAcknowledged());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断文档是否存在</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testIsExists</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetRequest</span> <span class="variable">getRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> getRequest.fetchSourceContext(<span class="keyword">new</span> <span class="title class_">FetchSourceContext</span>(<span class="literal">false</span>));</span><br><span class="line"> getRequest.storedFields(<span class="string">"_none_"</span>);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">exists</span> <span class="operator">=</span> client.exists(getRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(exists);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取文档的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testGetDocument</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">GetRequest</span> <span class="variable">getRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">GetRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> <span class="type">GetResponse</span> <span class="variable">getResponse</span> <span class="operator">=</span> client.get(getRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(getResponse.getSourceAsString());</span><br><span class="line"> System.out.println(getResponse);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 更新文档的信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testUpdateRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">UpdateRequest</span> <span class="variable">updateRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UpdateRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> updateRequest.timeout(<span class="string">"1s"</span>);</span><br><span class="line"> <span class="type">User</span> <span class="variable">user</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"修改之后的用户名"</span>, <span class="string">"男"</span>, <span class="number">23</span>);</span><br><span class="line"> updateRequest.doc(JSON.toJSONString(user), XContentType.JSON);</span><br><span class="line"> <span class="type">UpdateResponse</span> <span class="variable">updateResponse</span> <span class="operator">=</span> client.update(updateRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(updateResponse.status());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除文档记录</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testDeleteRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">DeleteRequest</span> <span class="variable">request</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">DeleteRequest</span>(<span class="string">"users"</span>, <span class="string">"1"</span>);</span><br><span class="line"> request.timeout(<span class="string">"1s"</span>);</span><br><span class="line"> <span class="type">DeleteResponse</span> <span class="variable">deleteResponse</span> <span class="operator">=</span> client.delete(request, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(deleteResponse.status());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 批量添加文档</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testBulkRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="type">BulkRequest</span> <span class="variable">bulkRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BulkRequest</span>();</span><br><span class="line"> bulkRequest.timeout(<span class="string">"10s"</span>);</span><br><span class="line"> ArrayList<User> userList = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"A"</span>, <span class="string">"男"</span>, <span class="number">23</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"B"</span>, <span class="string">"男"</span>, <span class="number">32</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"C"</span>, <span class="string">"女"</span>, <span class="number">34</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"D"</span>, <span class="string">"女"</span>, <span class="number">56</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"E"</span>, <span class="string">"男"</span>, <span class="number">34</span>));</span><br><span class="line"> userList.add(<span class="keyword">new</span> <span class="title class_">User</span>(<span class="string">"F"</span>, <span class="string">"女"</span>, <span class="number">65</span>));</span><br><span class="line"> <span class="comment">// 批处理请求</span></span><br><span class="line"> <span class="keyword">for</span> (<span class="type">int</span> <span class="variable">i</span> <span class="operator">=</span> <span class="number">0</span>; i < userList.size(); i++) {</span><br><span class="line"> <span class="comment">// 批量更新和批量删除,就在这里修改对应的请求就可以了</span></span><br><span class="line"> bulkRequest.add(<span class="keyword">new</span> <span class="title class_">IndexRequest</span>(<span class="string">"users"</span>).id(<span class="string">""</span> + (i + <span class="number">1</span>))</span><br><span class="line"> .source(JSON.toJSONString(userList.get(i)), XContentType.JSON));</span><br><span class="line"> }</span><br><span class="line"> <span class="type">BulkResponse</span> <span class="variable">bulkResponse</span> <span class="operator">=</span> client.bulk(bulkRequest, RequestOptions.DEFAULT);</span><br><span class="line"> System.out.println(<span class="string">"是否批量添加成功:"</span> + !bulkResponse.hasFailures());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 检索的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Test</span></span><br><span class="line"> <span class="keyword">void</span> <span class="title function_">testSearchRequest</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//1.创建一个检索请求</span></span><br><span class="line"> <span class="type">SearchRequest</span> <span class="variable">searchRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SearchRequest</span>();</span><br><span class="line"> <span class="comment">//设置检索的索引</span></span><br><span class="line"> searchRequest.indices(<span class="string">"bank"</span>);</span><br><span class="line"> <span class="comment">//指定DSL,检索条件</span></span><br><span class="line"> <span class="type">SearchSourceBuilder</span> <span class="variable">sourceBuilder</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SearchSourceBuilder</span>();</span><br><span class="line"> sourceBuilder.query(QueryBuilders.matchQuery(<span class="string">"address"</span>, <span class="string">"mill"</span>));<span class="comment">//查询地址中包含mill的数据</span></span><br><span class="line"> sourceBuilder.aggregation(AggregationBuilders.terms(<span class="string">"ageAgg"</span>).field(<span class="string">"age"</span>).size(<span class="number">10</span>));<span class="comment">//聚合名ageAgg,根据age字段聚合,只取10条</span></span><br><span class="line"> sourceBuilder.aggregation(AggregationBuilders.avg(<span class="string">"balanceAvg"</span>).field(<span class="string">"balance"</span>));<span class="comment">//求平均工资</span></span><br><span class="line"> System.out.println(<span class="string">"检索的条件:"</span> + sourceBuilder);</span><br><span class="line"> searchRequest.source(sourceBuilder);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//2.执行检索</span></span><br><span class="line"> <span class="type">SearchResponse</span> <span class="variable">searchResponse</span> <span class="operator">=</span> client.search(searchRequest, RequestOptions.DEFAULT);</span><br><span class="line"></span><br><span class="line"> <span class="comment">//3.分析检索的结果</span></span><br><span class="line"> System.out.println(<span class="string">"查询到的数据:"</span> + searchResponse.toString());</span><br><span class="line"> <span class="comment">//Map map = JSON.parseObject(searchResponse.toString(), Map.class);//可以转换成一个map</span></span><br><span class="line"> <span class="type">SearchHits</span> <span class="variable">hits</span> <span class="operator">=</span> searchResponse.getHits();<span class="comment">//拿到命中的记录</span></span><br><span class="line"> <span class="keyword">for</span> (SearchHit hit : hits) {</span><br><span class="line"> <span class="type">String</span> <span class="variable">index</span> <span class="operator">=</span> hit.getIndex();<span class="comment">//获取索引信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">type</span> <span class="operator">=</span> hit.getType();<span class="comment">//类型信息</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">id</span> <span class="operator">=</span> hit.getId();<span class="comment">//id信息</span></span><br><span class="line"> <span class="type">float</span> <span class="variable">score</span> <span class="operator">=</span> hit.getScore();<span class="comment">//得分信息</span></span><br><span class="line"> <span class="type">TimeValue</span> <span class="variable">took</span> <span class="operator">=</span> searchResponse.getTook();</span><br><span class="line"> <span class="type">String</span> <span class="variable">sourceAsString</span> <span class="operator">=</span> hit.getSourceAsString();<span class="comment">//直接转化成对应的java对象</span></span><br><span class="line"> <span class="comment">//转换成Account对象</span></span><br><span class="line"> <span class="type">Account</span> <span class="variable">account</span> <span class="operator">=</span> JSON.parseObject(sourceAsString, Account.class);</span><br><span class="line"> System.out.println(<span class="string">"Account:"</span> + account);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">//获取聚合分析的信息</span></span><br><span class="line"> <span class="comment">//获取年龄的分段信息</span></span><br><span class="line"> <span class="type">Aggregations</span> <span class="variable">aggregations</span> <span class="operator">=</span> searchResponse.getAggregations();</span><br><span class="line"> <span class="type">Terms</span> <span class="variable">ageAgg</span> <span class="operator">=</span> aggregations.get(<span class="string">"ageAgg"</span>);</span><br><span class="line"> <span class="keyword">for</span> (Terms.Bucket bucket : ageAgg.getBuckets()) {</span><br><span class="line"></span><br><span class="line"> System.out.println(<span class="string">"年龄:"</span> + bucket.getKeyAsString() + <span class="string">"有"</span> + bucket.getDocCount() + <span class="string">"人"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取薪资的平均值</span></span><br><span class="line"> <span class="type">Avg</span> <span class="variable">balanceAvg</span> <span class="operator">=</span> aggregations.get(<span class="string">"balanceAvg"</span>);</span><br><span class="line"> System.out.println(<span class="string">"平均薪资:"</span> + balanceAvg.getValue());</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="meta">@ToString</span></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">Account</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> account_number;</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> balance;</span><br><span class="line"> <span class="keyword">private</span> String firstname;</span><br><span class="line"> <span class="keyword">private</span> String lastname;</span><br><span class="line"> <span class="keyword">private</span> <span class="type">int</span> age;</span><br><span class="line"> <span class="keyword">private</span> String gender;</span><br><span class="line"> <span class="keyword">private</span> String address;</span><br><span class="line"> <span class="keyword">private</span> String employer;</span><br><span class="line"> <span class="keyword">private</span> String email;</span><br><span class="line"> <span class="keyword">private</span> String city;</span><br><span class="line"> <span class="keyword">private</span> String state;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">User</span> {</span><br><span class="line"> <span class="keyword">private</span> String userName;</span><br><span class="line"> <span class="keyword">private</span> String gender;</span><br><span class="line"> <span class="keyword">private</span> Integer age;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> <span class="title function_">User</span><span class="params">(String userName, String gender, Integer age)</span> {</span><br><span class="line"> <span class="built_in">this</span>.userName = userName;</span><br><span class="line"> <span class="built_in">this</span>.gender = gender;</span><br><span class="line"> <span class="built_in">this</span>.age = age;</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>ElasticSearch</tag>
|
||
</tags>
|
||
</entry>
|
||
<entry>
|
||
<title>项目实战-谷粒商城</title>
|
||
<url>/posts/45726.html</url>
|
||
<content><![CDATA[<h1 id="一-项目简介"><a href="#一-项目简介" class="headerlink" title="一.项目简介"></a>一.项目简介</h1><h2 id="1-项目背景"><a href="#1-项目背景" class="headerlink" title="1.项目背景"></a>1.项目背景</h2><p><strong>电商模式</strong> 谷粒商城使用的B2C模式,销售自营的商品给客户</p>
|
||
<p>市面上5种常见的电商模式B2B、B2C、C2B、C2C、O2O</p>
|
||
<p><strong>1、B2B模式:</strong><br>business to business,是指商家与商家建立的商业关系。如阿里巴巴。</p>
|
||
<p><strong>2、B2C模式:</strong><br>business to consumer,商对客模式。即通常说的商业零售,供应商直接把商品卖给用户。如:苏宁易购、京东、天猫、小米商城。</p>
|
||
<p><strong>3、C2B模式:</strong><br>customer to business,即消费者对企业。先有消费者需求而后有企业生产。例如众筹类的商城。</p>
|
||
<p><strong>4、C2C模式:</strong><br>customer to consumer,客户之间直接把东西放上网上去卖。如:淘宝、闲鱼。</p>
|
||
<p><strong>5、O2O模式:</strong><br>online to offline,线上线下。线上快速支付,线下优质服务。如:饿了么、美团、京东到家。</p>
|
||
<h2 id="2-项目架构图"><a href="#2-项目架构图" class="headerlink" title="2.项目架构图"></a>2.项目架构图</h2><p><strong>项目的架构图</strong></p>
|
||
<p><img src="/pictures/image-20230518000727005.png"></p>
|
||
<p> <strong>微服务划分图</strong></p>
|
||
<p><img src="/pictures/image-20230518015831413.png" alt="image-20230518015831413"></p>
|
||
<h2 id="3-项目技术和特色"><a href="#3-项目技术和特色" class="headerlink" title="3.项目技术和特色"></a>3.项目技术和特色</h2><ul>
|
||
<li><strong>前后端分离开发,开发基于VUE的后台管理系统</strong></li>
|
||
<li><strong>SpringCloud全新解决方案</strong></li>
|
||
<li><strong>应用监控、限流、网关、熔断降级等分布式方案 全方位涉及</strong></li>
|
||
<li><strong>包含分布式事务、分布式锁等技术难点</strong></li>
|
||
<li><strong>分析高并发场景的编码方式、线程池、异步编排等使用</strong></li>
|
||
<li><strong>压力测试与性能优化</strong></li>
|
||
<li><strong>各种集群技术的区别已经使用</strong></li>
|
||
<li><strong>CI/CD的使用</strong></li>
|
||
</ul>
|
||
<h2 id="4-项目的前置要求"><a href="#4-项目的前置要求" class="headerlink" title="4.项目的前置要求"></a>4.项目的前置要求</h2><ul>
|
||
<li><strong>熟悉SpringBoot以及常见的整合方案</strong></li>
|
||
<li><strong>了解SpringCloud</strong></li>
|
||
<li><strong>熟悉Maven git</strong></li>
|
||
<li><strong>熟悉linux、redis、docker基本操作</strong></li>
|
||
<li><strong>了解html、css、js、vue</strong></li>
|
||
<li><strong>熟练使用idea开发项目</strong></li>
|
||
</ul>
|
||
<h1 id="二-分布式基础概念"><a href="#二-分布式基础概念" class="headerlink" title="二.分布式基础概念"></a>二.分布式基础概念</h1><h2 id="1-微服务"><a href="#1-微服务" class="headerlink" title="1.微服务"></a>1.微服务</h2><p>微服务架构风格,就像是一个<strong>单独的应用程序</strong>开发为<strong>一套小服务</strong>,每个服务运行在自己的进程中,并使用轻量级机制通信,通常是HTTP API。这些服务围绕业务能力来构建,并通过完全自动化部署机制来独立部署。这些服务使用不同的编程语言编写,以及不同的数据存储技术,并保持最低限度的集中式管理。</p>
|
||
<p><strong>简而言之:拒绝大型单体应用,基于业务边界进行服务微化拆分,各个应用独立部署运行。</strong></p>
|
||
<h2 id="2-集群-分布式-节点"><a href="#2-集群-分布式-节点" class="headerlink" title="2.集群|分布式|节点"></a>2.集群|分布式|节点</h2><p><strong>集群是一个物理形态 ,分布式是个工作方式</strong></p>
|
||
<p><strong>分布式:</strong> 将不同的业务分布在不同的地方</p>
|
||
<p><strong>集群:</strong> 集群指的是将几台服务器集中在一起,实现同一业务</p>
|
||
<p><strong>分布式中的每一个节点,都可以做集群。而集群不一定是分布式的。</strong></p>
|
||
<p><strong>节点:</strong> 集群中的一个服务器</p>
|
||
<h2 id="3-远程调用"><a href="#3-远程调用" class="headerlink" title="3.远程调用"></a>3.远程调用</h2><p><strong>在分布式系统中,各个服务可能处于不同主机,但是服务之间不可避免的需要相互调用,我们称之为远程调用。</strong></p>
|
||
<p>SpringCloud中使用HTTP+JSON的方式完成远程调用</p>
|
||
<p><img src="/pictures/image-20230518010847966.png" alt="image-20230518010847966"></p>
|
||
<h2 id="4-负载均衡"><a href="#4-负载均衡" class="headerlink" title="4.负载均衡"></a>4.负载均衡</h2><img src="/pictures/image-20230518011030343.png" alt="image-20230518011030343" style="zoom:150%;" />
|
||
|
||
<pre><code>分布式系统中,A服务需要调用B服务,B服务在多台机器上都存在,A调用任意一个服务均可完成功能。为了使每一个服务器都不要太忙或者太闲,我们可以使用负载均衡的调用每一个服务器,提升网站的健壮性。
|
||
</code></pre>
|
||
<p><strong>常见的负载均衡算法:</strong></p>
|
||
<p><strong>轮询:</strong> 为第一个请求选择健康池中的第一台后端服务器,然后按顺序往后依次选择,直到最后一个,然后循环。</p>
|
||
<p><strong>最小连接:</strong> 有限选择连接数量少,也就是压力最小的后端服务器,在会话较长的情况下可以考虑采取这种方式。</p>
|
||
<p><strong>随机法:</strong>通过系统的随机算法,根据后端服务器的列表大小值来随机选取其中的一台服务器进行访问。由概率统计理论可以得知,随着客户端调用服务端的次数增多,其实际效果越来越接近于平均分配调用量到后端的每一台服务器,也就是轮询的结果。</p>
|
||
<p><strong>源地址哈希法:</strong>源地址哈希的思想是根据获取客户端的IP地址,通过哈希函数计算得到的一个数值,用该数值对服务器列表的大小进行取模运算,得到的结果便是客服端要访问服务器的序号。采用源地址哈希法进行负载均衡,同一IP地址的客户端,当后端服务器列表不变时,它每次都会映射到同一台后端服务器进行访问。</p>
|
||
<p><strong>加权轮询法:</strong>不同的后端服务器可能机器的配置和当前系统的负载并不相同,因此它们的抗压能力也不相同。给配置高、负载低的机器配置更高的权重,让其处理更多的请;而配置低、负载高的机器,给其分配较低的权重,降低其系统负载,加权轮询能很好地处理这一问题,并将请求顺序且按照权重分配到后端。</p>
|
||
<p><strong>加权随机法:</strong>与加权轮询法一样,加权随机法也根据后端机器的配置,系统的负载分配不同的权重。不同的是,它是按照权重随机请求后端服务器,而非顺序。</p>
|
||
<h2 id="5-服务注册-发现-注册中心"><a href="#5-服务注册-发现-注册中心" class="headerlink" title="5.服务注册|发现|注册中心"></a>5.服务注册|发现|注册中心</h2><p><img src="/pictures/image-20230518012211042.png" alt="image-20230518012211042"></p>
|
||
<h2 id="6-配置中心"><a href="#6-配置中心" class="headerlink" title="6.配置中心"></a>6.配置中心</h2><pre><code>每一个服务最终会有大量的配置,并且每个服务都可能部署在多台机器上。我们经常需要变更配置,我们可以让每个服务在配置中心获取自己的配置。
|
||
</code></pre>
|
||
<p><img src="/pictures/image-20230518012538349.png" alt="image-20230518012538349"></p>
|
||
<h2 id="7-服务熔断和服务降级"><a href="#7-服务熔断和服务降级" class="headerlink" title="7.服务熔断和服务降级"></a>7.服务熔断和服务降级</h2><pre><code>在微服务的架构中,微服务之间通过网络进行通信,存在相互依赖,当其中的一个服务不可用时,有可能会造成雪崩效应。要防止这样的情况,必须要有容错机制来保护服务。
|
||
</code></pre>
|
||
<p><strong>服务熔断:</strong> 设置服务的超时,当被调用的服务经常失败到达某个阈值,我们可以开启短路保护机制,后来的请求不再去调用这个服务。本地直接返回默认的数据。</p>
|
||
<p><strong>服务降级:</strong> 在运维期间,当系统处于高峰期,系统资源紧张,我们可以让非核心的业务降级运行。降级:某些业务不处理,或者简单处理[抛异常、返回NULL、调用mock数据、调用Fallback处理逻辑]。</p>
|
||
<p><img src="/pictures/image-20230518013254404.png" alt="image-20230518013254404"></p>
|
||
<p><img src="/pictures/image-20230518013624395.png" alt="image-20230518013624395"></p>
|
||
<h2 id="8-API网关"><a href="#8-API网关" class="headerlink" title="8.API网关"></a>8.API网关</h2><pre><code>在微服务的架构中,API Gateway作为整体架构的重要组件,他抽象了微服务中都需要的公共功能,同时提供了客户端的负载均衡,服务自动熔断,灰度发布、统一认证、限流流控、日志统计等丰富功能,帮助我们解决很多API管理难题。
|
||
</code></pre>
|
||
<img src="/pictures/image-20230518014732955.png" alt="image-20230518014732955" style="zoom:150%;" />
|
||
|
||
<h1 id="三-环境搭建"><a href="#三-环境搭建" class="headerlink" title="三.环境搭建"></a>三.环境搭建</h1><h2 id="1-安装虚拟机"><a href="#1-安装虚拟机" class="headerlink" title="1.安装虚拟机"></a>1.<strong>安装虚拟机</strong></h2><p>需要使用虚拟机安装相关的软件和部署集群</p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/47407.html">VMWare虚拟机安装Linux教程 | The Blog (gitee.io)</a></strong></p>
|
||
<p>将Linxu的IP地址固定下来</p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/21883.html">Linux设置静态IP | The Blog (gitee.io)</a></strong></p>
|
||
<h2 id="2-Docker安装与配置"><a href="#2-Docker安装与配置" class="headerlink" title="2.Docker安装与配置"></a>2.Docker安装与配置</h2><p>包含docker安装、开启开机自启动、配置镜像加速服务</p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/19306.html">Docker容器化技术 | The Blog (gitee.io)</a></strong><img src="/pictures/image-20230518141429712.png" alt="image-20230518141429712"></p>
|
||
<p><img src="/pictures/image-20230518145456236.png" alt="image-20230518145456236"></p>
|
||
<h2 id="3-Docker安装mysql"><a href="#3-Docker安装mysql" class="headerlink" title="3.Docker安装mysql"></a>3.Docker安装mysql</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载mysql的镜像文件 这里以下载mysql5.7为例</span></span><br><span class="line">docker pull mysql:5.7</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看是否下载成功</span></span><br><span class="line">docker images</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">使用MySQL的镜像启动一个容器</span></span><br><span class="line"> docker run -p 3306:3306 --name mysql \</span><br><span class="line">-v /mydata/mysql/log:/var/log/mysql \</span><br><span class="line">-v /mydata/mysql/data:/var/lib/mysql \</span><br><span class="line">-v /mydata/mysql/conf:/etc/mysql \</span><br><span class="line">-e MYSQL_ROOT_PASSWORD=root \</span><br><span class="line">-d mysql:5.7</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">参数说明</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">-p 3306:3306:将容器的 3306 端口映射到主机的 3306 端口</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/conf:/etc/mysql:将配置文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/log:/var/log/mysql:将日志文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-v /mydata/mysql/data:/var/lib/mysql/:将配置文件夹挂载到主机</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">-e MYSQL_ROOT_PASSWORD=root:初始化 root 用户的密码</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看是否运行成功 这时使用Navicat就可以连接上了 连接不上 关闭防火墙</span></span><br><span class="line">docker ps #查看正在运行的容器</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">进入容器的内部</span></span><br><span class="line">docker exec -it mysql /bin/bash</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看容器内部的目录结构 我们可以看到容器的内部是一个小小的linux系统</span></span><br><span class="line">ls / #注意中间有一个空格</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看与mysql相关的目录</span></span><br><span class="line">whereis mysql</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">退出容器</span></span><br><span class="line">exit;</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在容器外部查看mysql挂载在本地的三个文件</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">容器内部文件的变化会同步在这三个文件中 conf data <span class="built_in">log</span></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">外部修改 也会同步到内部</span></span><br><span class="line">cd /mydata/mysql</span><br><span class="line">ls</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建一个mysql的配置文件设置字符编码 将下面的内容粘贴到配置文件中</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">1.创建配置文件</span></span><br><span class="line">vi /mydata/mysql/conf/my.cnf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">2.将以下的内容粘贴到配置文件配置文件内容</span></span><br><span class="line">[client]</span><br><span class="line">default-character-set=utf8</span><br><span class="line">[mysql]</span><br><span class="line">default-character-set=utf8</span><br><span class="line">[mysqld]</span><br><span class="line">init_connect='SET collation_connection = utf8_unicode_ci'</span><br><span class="line">init_connect='SET NAMES utf8'</span><br><span class="line">character-set-server=utf8</span><br><span class="line">collation-server=utf8_unicode_ci</span><br><span class="line">skip-character-set-client-handshake</span><br><span class="line">skip-name-resolve</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">3.重启MySQl的服务 让配置文件生效 这个配置文件也会同步到容器内部</span></span><br><span class="line">docker restart mysql</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置开机自启动</span></span><br><span class="line">docker update mysql --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="4-Docker安装redis"><a href="#4-Docker安装redis" class="headerlink" title="4.Docker安装redis"></a>4.Docker安装redis</h2><figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">下载redis的镜像文件 直接下载最新的</span></span><br><span class="line">docker pull redis</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建redis挂载在宿主机的配置文件和目录</span></span><br><span class="line">mkdir -p /mydata/redis/conf #创建目录</span><br><span class="line">touch /mydata/redis/conf/redis.conf #创建配置文件</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">创建并启动容器 这是以配置文件的方式启动 \前面有一个空格</span></span><br><span class="line">docker run -p 6379:6379 --name redis \</span><br><span class="line">-v /mydata/redis/data:/data \</span><br><span class="line">-v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf \</span><br><span class="line">-d redis redis-server /etc/redis/redis.conf</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">检查容器的运行情况</span></span><br><span class="line">docker ps</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">测试客户端的使用</span></span><br><span class="line">docker exec -it redis redis-cli</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">可以在redis客户端中使用如下命令</span></span><br><span class="line">127.0.0.1:6379> set name tom #存值</span><br><span class="line">OK</span><br><span class="line">127.0.0.1:6379> get name #取值</span><br><span class="line">"tom"</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">redis中的数据不能持久化 关机重启之后数据会丢失</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">通过以下的配置 实现redis的持久化操作 AOF的持久化</span></span><br><span class="line">vi /mydata/redis/conf/redis.conf #修改之前创建的配置文件</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">添加如下配置</span></span><br><span class="line">appendonly yes</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">重启redis 让配置生效</span></span><br><span class="line">docker restart redis</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">设置开机自启动</span></span><br><span class="line">docker update redis --restart=always</span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="5-统一开发环境"><a href="#5-统一开发环境" class="headerlink" title="5.统一开发环境"></a>5.统一开发环境</h2><p><strong>其中Java使用的是java8及以上</strong></p>
|
||
<p><strong>Maven 配置阿里云的镜像 profiles</strong></p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/63333.html">开发环境的搭建 | The Blog (gitee.io)</a></strong></p>
|
||
<p><strong>IDEA中修改使用自己安装的Maven</strong></p>
|
||
<p><strong>IDEA插件:Lombok|MybatisX</strong></p>
|
||
<p><strong>VSCode插件:</strong></p>
|
||
<p><img src="/pictures/image-20230518160444927.png" alt="image-20230518160444927"></p>
|
||
<p><img src="/pictures/image-20230518155308167.png" alt="image-20230518155308167"></p>
|
||
<h2 id="6-配置Git"><a href="#6-配置Git" class="headerlink" title="6.配置Git"></a>6.配置Git</h2><p><strong>官网下载:<a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a></strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">以下的操作在下载安装完毕之后进行</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">1.鼠标在桌面右键 选择Git Bash Here 打开控制台</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">2.配置用户名和邮箱</span></span><br><span class="line">git config --global user.name "用户名" #随意</span><br><span class="line">git config --global user.email "邮箱" #自己的邮箱</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">3.配置SSH免密连接</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">生成密钥</span></span><br><span class="line">ssh-keygen -t rsa -C "在码云上注册的邮箱地址" #连续三次回车</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">查看密钥并复制公钥的内容</span></span><br><span class="line">cat ~/.ssh/id_rsa.pub</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.将密钥的复制到码云的SSH公钥中</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">4.1添加公钥 公钥名随意 公钥内容就是上面复制的内容</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">5.测试</span></span><br><span class="line">ssh -T git@gitee.com</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>常用命令</strong></p>
|
||
<img src="/pictures/image-20230518161145808.png" alt="image-20230518161145808" style="zoom: 200%;" />
|
||
|
||
<h2 id="7-从Gitee上初始化一个项目"><a href="#7-从Gitee上初始化一个项目" class="headerlink" title="7.从Gitee上初始化一个项目"></a>7.从Gitee上初始化一个项目</h2><p>我们是先从码云上初始化一个项目 然后拉取到本地</p>
|
||
<p><strong>创建一个仓库</strong></p>
|
||
<p><img src="/pictures/image-20230518163703370.png" alt="image-20230518163703370"></p>
|
||
<p><strong>复制刚才创建仓库的地址</strong></p>
|
||
<p><img src="/pictures/image-20230518163838162.png" alt="image-20230518163838162"></p>
|
||
<p><strong>将工程导入到IDEA中</strong></p>
|
||
<p><img src="/pictures/image-20230518164005690.png" alt="image-20230518164005690"></p>
|
||
<p><strong>导入成功</strong></p>
|
||
<p><img src="/pictures/image-20230518164217773.png" alt="image-20230518164217773"></p>
|
||
<h2 id="8-创建微服务模块"><a href="#8-创建微服务模块" class="headerlink" title="8.创建微服务模块"></a>8.创建微服务模块</h2><img src="/pictures/image-20230518171355588.png" alt="image-20230518171355588" style="zoom:150%;" />
|
||
|
||
<h2 id="9-数据库设计"><a href="#9-数据库设计" class="headerlink" title="9.数据库设计"></a>9.数据库设计</h2><p><img src="/pictures/image-20230518171546236.png" alt="image-20230518171546236"></p>
|
||
<img src="/pictures/image-20230518173203605.png" alt="image-20230518173203605" style="zoom:200%;" />
|
||
|
||
<h2 id="10-后台管理系统的搭建"><a href="#10-后台管理系统的搭建" class="headerlink" title="10.后台管理系统的搭建"></a>10.后台管理系统的搭建</h2><h3 id="10-1-后端的搭建"><a href="#10-1-后端的搭建" class="headerlink" title="10.1.后端的搭建"></a>10.1.后端的搭建</h3><p><strong>后台管理系统使用的是人人开源提供的一个脚手架:</strong></p>
|
||
<p><strong>仓库的地址信息:</strong></p>
|
||
<p><strong>仓库主页:<a href="https://gitee.com/renrenio">https://gitee.com/renrenio</a></strong></p>
|
||
<p><strong>后端renren-fast:<a href="https://gitee.com/renrenio/renren-fast.git">https://gitee.com/renrenio/renren-fast.git</a></strong></p>
|
||
<p><strong>前端renren-fast-vue:<a href="https://gitee.com/renrenio/renren-fast-vue.git">https://gitee.com/renrenio/renren-fast-vue.git</a></strong></p>
|
||
<p>将其作为一个模块集成到gulimall中</p>
|
||
<p><img src="/pictures/image-20230518221222845.png" alt="image-20230518221222845"></p>
|
||
<p>同时创建好这个脚手架需要的数据库</p>
|
||
<p><img src="/pictures/image-20230518221433314.png" alt="image-20230518221433314"></p>
|
||
<p><strong>修改配置文件中数据库账号密码ip的设置,启动项目看有没有报错</strong></p>
|
||
<h3 id="10-2-前端的搭建"><a href="#10-2-前端的搭建" class="headerlink" title="10.2 前端的搭建"></a>10.2 前端的搭建</h3><p><strong>安装node.js 和 npm包管理工具 (node.js自带npm包管理工具)</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">检查是否安装成功</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">出现版本号就是安装成功了</span></span><br><span class="line">node -v</span><br><span class="line">npm -v</span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">npm配置淘宝的镜像 下载依赖的速度更快</span></span><br><span class="line">npm config set registry https://registry.npmmirror.com</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>将项目导入到vscode中,并安装依赖</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">安装依赖的命令</span></span><br><span class="line">npm install</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230518223021928.png" alt="image-20230518223021928"></p>
|
||
<p><strong>下载完成之后,运行前端的项目</strong></p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">运行命令</span></span><br><span class="line">npm run dev</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>运行成功过之后访问 <a href="http://localhost:8001/">http://localhost:8001</a></strong></p>
|
||
<p><strong>成功的页面显示如下</strong></p>
|
||
<p><img src="/pictures/image-20230518223525151.png" alt="image-20230518223525151"></p>
|
||
<p>**使用账号:admin密码:admin 登录 **</p>
|
||
<p><strong>可以登录成功并显示以下的页面说明前后端的联调通过</strong></p>
|
||
<p><img src="/pictures/image-20230518223921179.png" alt="image-20230518223921179"></p>
|
||
<h2 id="11-快速开发-逆向工程的搭建"><a href="#11-快速开发-逆向工程的搭建" class="headerlink" title="11.快速开发-逆向工程的搭建"></a>11.快速开发-逆向工程的搭建</h2><h3 id="1-代码生成器快速使用案例"><a href="#1-代码生成器快速使用案例" class="headerlink" title="1.代码生成器快速使用案例"></a>1.代码生成器快速使用案例</h3><p><strong>人人开源代码生成器的地址:<a href="https://gitee.com/renrenio/renren-generator.git">https://gitee.com/renrenio/renren-generator.git</a></strong></p>
|
||
<p><strong>集成代码生成器</strong></p>
|
||
<p><img src="/pictures/image-20230518230016421.png" alt="image-20230518230016421"></p>
|
||
<p><strong>修改代码生成器的配置文件</strong></p>
|
||
<p><strong>1.修改yml配置文件中数据库的连接信息</strong></p>
|
||
<p><strong>2.修改properties中与代码生成相关的配置信息</strong></p>
|
||
<p>配置举例 根据不同的模块 不同的数据库 配置不同</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#代码生成器配置信息</span></span><br><span class="line"></span><br><span class="line"><span class="attr">mainPath</span>=<span class="string">com.atguigu</span></span><br><span class="line"><span class="comment">#包名</span></span><br><span class="line"><span class="attr">package</span>=<span class="string">com.atguigu.gulimall</span></span><br><span class="line"><span class="attr">moduleName</span>=<span class="string">product</span></span><br><span class="line"><span class="comment">#作者</span></span><br><span class="line"><span class="attr">author</span>=<span class="string">JasonGong</span></span><br><span class="line"><span class="comment">#Email</span></span><br><span class="line"><span class="attr">email</span>=<span class="string">JasonGong@gmail.com</span></span><br><span class="line"><span class="comment">#表前缀(类名不会包含表前缀)</span></span><br><span class="line"><span class="attr">tablePrefix</span>=<span class="string">pms_</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">#以下的配置信息一般不动</span></span><br><span class="line"><span class="comment">#类型转换配置信息</span></span><br><span class="line"><span class="attr">tinyint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">smallint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">mediumint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">int</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">integer</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">bigint</span>=<span class="string">Long</span></span><br><span class="line"><span class="attr">float</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">double</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">decimal</span>=<span class="string">BigDecimal</span></span><br><span class="line"><span class="attr">bit</span>=<span class="string">Boolean</span></span><br><span class="line"></span><br><span class="line"><span class="attr">char</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">varchar</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">tinytext</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">text</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">mediumtext</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">longtext</span>=<span class="string">String</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="attr">date</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">datetime</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">timestamp</span>=<span class="string">Date</span></span><br><span class="line"></span><br><span class="line"><span class="attr">NUMBER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">INT</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">INTEGER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">BINARY_INTEGER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">LONG</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">FLOAT</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">BINARY_FLOAT</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">DOUBLE</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">BINARY_DOUBLE</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">DECIMAL</span>=<span class="string">BigDecimal</span></span><br><span class="line"><span class="attr">CHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">VARCHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">VARCHAR2</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">NVARCHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">NVARCHAR2</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">CLOB</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">BLOB</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">DATE</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">DATETIME</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">TIMESTAMP</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">TIMESTAMP(6)</span>=<span class="string">Date</span></span><br><span class="line"></span><br><span class="line"><span class="attr">int8</span>=<span class="string">Long</span></span><br><span class="line"><span class="attr">int4</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">int2</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">numeric</span>=<span class="string">BigDecimal</span></span><br><span class="line"></span><br><span class="line"><span class="attr">nvarchar</span>=<span class="string">String</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.运行项目</strong></p>
|
||
<p><strong>通过<a href="http://localhost:81/">http://localhost:81</a> 访问</strong></p>
|
||
<p><img src="/pictures/image-20230518234030568.png" alt="image-20230518234030568"></p>
|
||
<p><strong>4.使用生成代码的功能生成代码</strong></p>
|
||
<p><img src="/pictures/image-20230518234311272.png" alt="image-20230518234311272"></p>
|
||
<p>解压之后的文件如下</p>
|
||
<p><img src="/pictures/image-20230518234941961.png" alt="image-20230518234941961"></p>
|
||
<p>压缩包中的文件如下所示</p>
|
||
<p><img src="/pictures/image-20230518234922087.png" alt="image-20230518234922087"></p>
|
||
<p><strong>由于项目中没有使用shiro安全框架,我们注释掉安全框架的注解生成模板</strong></p>
|
||
<p><img src="/pictures/image-20230519002146272.png" alt="image-20230519002146272"></p>
|
||
<p><strong>配置每个模块的配置文件</strong></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">8080</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://192.168.111.100:3306/gulimall_pms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">driver-class-name:</span> <span class="string">com.mysql.cj.jdbc.Driver</span></span><br><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">mapper-locations:</span> <span class="string">classpath*:/mapper/**/*.xml</span> <span class="comment">#定义mapper.xml文件的位置</span></span><br><span class="line"> <span class="attr">global-config:</span></span><br><span class="line"> <span class="attr">db-config:</span></span><br><span class="line"> <span class="attr">id-type:</span> <span class="string">auto</span> <span class="comment">#主键的生成规则</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>测试生成的代码</strong></p>
|
||
<p><img src="/pictures/image-20230519005131468.png" alt="image-20230519005131468"></p>
|
||
<h3 id="2-代码生成器的使用步骤"><a href="#2-代码生成器的使用步骤" class="headerlink" title="2.代码生成器的使用步骤"></a>2.代码生成器的使用步骤</h3><p><strong>1.修改代码生成器的配置文件generator.properties</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#代码生成器配置信息</span></span><br><span class="line"></span><br><span class="line"><span class="attr">mainPath</span>=<span class="string">com.atguigu</span></span><br><span class="line"><span class="comment">#包名</span></span><br><span class="line"><span class="attr">package</span>=<span class="string">com.atguigu.gulimall</span></span><br><span class="line"><span class="attr">moduleName</span>=<span class="string">ware #1.修改模块名 </span></span><br><span class="line"><span class="comment">#作者</span></span><br><span class="line"><span class="attr">author</span>=<span class="string">JasonGong</span></span><br><span class="line"><span class="comment">#Email</span></span><br><span class="line"><span class="attr">email</span>=<span class="string">JasonGong@gmail.com</span></span><br><span class="line"><span class="comment">#表前缀(类名不会包含表前缀)</span></span><br><span class="line"><span class="attr">tablePrefix</span>=<span class="string">wms_ #2.数据库表的前缀</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">#以下的配置信息一般不动</span></span><br><span class="line"><span class="comment">#类型转换配置信息</span></span><br><span class="line"><span class="attr">tinyint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">smallint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">mediumint</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">int</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">integer</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">bigint</span>=<span class="string">Long</span></span><br><span class="line"><span class="attr">float</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">double</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">decimal</span>=<span class="string">BigDecimal</span></span><br><span class="line"><span class="attr">bit</span>=<span class="string">Boolean</span></span><br><span class="line"></span><br><span class="line"><span class="attr">char</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">varchar</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">tinytext</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">text</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">mediumtext</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">longtext</span>=<span class="string">String</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="attr">date</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">datetime</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">timestamp</span>=<span class="string">Date</span></span><br><span class="line"></span><br><span class="line"><span class="attr">NUMBER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">INT</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">INTEGER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">BINARY_INTEGER</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">LONG</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">FLOAT</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">BINARY_FLOAT</span>=<span class="string">Float</span></span><br><span class="line"><span class="attr">DOUBLE</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">BINARY_DOUBLE</span>=<span class="string">Double</span></span><br><span class="line"><span class="attr">DECIMAL</span>=<span class="string">BigDecimal</span></span><br><span class="line"><span class="attr">CHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">VARCHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">VARCHAR2</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">NVARCHAR</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">NVARCHAR2</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">CLOB</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">BLOB</span>=<span class="string">String</span></span><br><span class="line"><span class="attr">DATE</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">DATETIME</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">TIMESTAMP</span>=<span class="string">Date</span></span><br><span class="line"><span class="attr">TIMESTAMP(6)</span>=<span class="string">Date</span></span><br><span class="line"></span><br><span class="line"><span class="attr">int8</span>=<span class="string">Long</span></span><br><span class="line"><span class="attr">int4</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">int2</span>=<span class="string">Integer</span></span><br><span class="line"><span class="attr">numeric</span>=<span class="string">BigDecimal</span></span><br><span class="line"></span><br><span class="line"><span class="attr">nvarchar</span>=<span class="string">String</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2修改要生成增删改查代码的数据库的连接配置application.yml</strong></p>
|
||
<p>只用配置数据库的连接信息即可</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">81</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># mysql</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">main:</span></span><br><span class="line"> <span class="attr">allow-circular-references:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">type:</span> <span class="string">com.alibaba.druid.pool.DruidDataSource</span></span><br><span class="line"> <span class="comment">#MySQL配置</span></span><br><span class="line"> <span class="attr">driverClassName:</span> <span class="string">com.mysql.cj.jdbc.Driver</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://192.168.111.100:3306/gulimall_wms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="string">root</span></span><br><span class="line"> <span class="comment">#oracle配置</span></span><br><span class="line"> <span class="comment"># driverClassName: oracle.jdbc.OracleDriver</span></span><br><span class="line"> <span class="comment"># url: jdbc:oracle:thin:@47.100.206.162:1521:xe</span></span><br><span class="line"> <span class="comment"># username: renren</span></span><br><span class="line"> <span class="comment"># password: 123456</span></span><br><span class="line"> <span class="comment">#SQLServer配置</span></span><br><span class="line"> <span class="comment"># driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver</span></span><br><span class="line"> <span class="comment"># url: jdbc:sqlserver://192.168.10.10:1433;DatabaseName=renren_fast</span></span><br><span class="line"> <span class="comment"># username: sa</span></span><br><span class="line"> <span class="comment"># password: 123456</span></span><br><span class="line"> <span class="comment">#PostgreSQL配置</span></span><br><span class="line"> <span class="comment"># driverClassName: org.postgresql.Driver</span></span><br><span class="line"> <span class="comment"># url: jdbc:postgresql://192.168.10.10:5432/renren_fast</span></span><br><span class="line"> <span class="comment"># username: postgres</span></span><br><span class="line"> <span class="comment"># password: 123456</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="attr">jackson:</span></span><br><span class="line"> <span class="attr">time-zone:</span> <span class="string">GMT+8</span></span><br><span class="line"> <span class="attr">date-format:</span> <span class="string">yyyy-MM-dd</span> <span class="string">HH:mm:ss</span></span><br><span class="line"> <span class="attr">web:</span></span><br><span class="line"> <span class="attr">resources:</span></span><br><span class="line"> <span class="attr">static-locations:</span> <span class="string">classpath:/static/,classpath:/views/</span></span><br><span class="line"></span><br><span class="line"><span class="comment">#mongodb:</span></span><br><span class="line"><span class="comment"># host: localhost</span></span><br><span class="line"><span class="comment"># port: 27017</span></span><br><span class="line"><span class="comment"># auth: false #是否使用密码验证</span></span><br><span class="line"><span class="comment"># username: tincery</span></span><br><span class="line"><span class="comment"># password: renren</span></span><br><span class="line"><span class="comment"># source: 123456</span></span><br><span class="line"><span class="comment"># database: test</span></span><br><span class="line"></span><br><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">mapperLocations:</span> <span class="string">classpath:mapper/**/*.xml</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="attr">pagehelper:</span></span><br><span class="line"> <span class="attr">reasonable:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">supportMethodsArguments:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">params:</span> <span class="string">count=countSql</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">#指定数据库,可选值有【mysql、oracle、sqlserver、postgresql、mongodb】</span></span><br><span class="line"><span class="attr">renren:</span></span><br><span class="line"> <span class="attr">database:</span> <span class="string">mysql</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.启动服务生成代码,将生成的代码解压并粘贴到对应的模块中去</strong></p>
|
||
<p>将main这个目录替换原来模块中的main目录即可,sql文件暂时不用管</p>
|
||
<p><strong>4.创建模块的配置文件</strong></p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">8080</span></span><br><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">datasource:</span></span><br><span class="line"> <span class="attr">url:</span> <span class="string">jdbc:mysql://192.168.111.100:3306/gulimall_pms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai</span></span><br><span class="line"> <span class="attr">username:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">password:</span> <span class="string">root</span></span><br><span class="line"> <span class="attr">driver-class-name:</span> <span class="string">com.mysql.cj.jdbc.Driver</span></span><br><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">mapper-locations:</span> <span class="string">classpath*:/mapper/**/*.xml</span> <span class="comment">#定义mapper.xml文件的位置</span></span><br><span class="line"> <span class="attr">global-config:</span></span><br><span class="line"> <span class="attr">db-config:</span></span><br><span class="line"> <span class="attr">id-type:</span> <span class="string">auto</span> <span class="comment">#主键的生成规则</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>5.启动测试生成的代码</strong></p>
|
||
<pre><code>在启动的时候,我们要处理好代码依赖的包,这些包都存在与生成代码的模块中,我们在生成代码的模块中复制过来即可,然后手动的引入相应的包,处理好报错信息。
|
||
</code></pre>
|
||
<h3 id="3-后台搭建完成之后的项目树"><a href="#3-后台搭建完成之后的项目树" class="headerlink" title="3.后台搭建完成之后的项目树"></a>3.后台搭建完成之后的项目树</h3><figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">C:.</span><br><span class="line">│ .gitignore</span><br><span class="line">│ LICENSE</span><br><span class="line">│ pom.xml</span><br><span class="line">│</span><br><span class="line">├─.idea</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ compiler.xml</span><br><span class="line">│ │ encodings.xml</span><br><span class="line">│ │ jarRepositories.xml</span><br><span class="line">│ │ misc.xml</span><br><span class="line">│ │ uiDesigner.xml</span><br><span class="line">│ │ vcs.xml</span><br><span class="line">│ │ workspace.xml</span><br><span class="line">│ │</span><br><span class="line">│ └─codeStyles</span><br><span class="line">│ codeStyleConfig.xml</span><br><span class="line">│ Project.xml</span><br><span class="line">│</span><br><span class="line">├─gulimall-common</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─common</span><br><span class="line">│ │ │ │ ├─exception</span><br><span class="line">│ │ │ │ │ RRException.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─utils</span><br><span class="line">│ │ │ │ │ Constant.java</span><br><span class="line">│ │ │ │ │ PageUtils.java</span><br><span class="line">│ │ │ │ │ Query.java</span><br><span class="line">│ │ │ │ │ R.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─xss</span><br><span class="line">│ │ │ │ HTMLFilter.java</span><br><span class="line">│ │ │ │ SQLFilter.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─common</span><br><span class="line">│ │ ├─exception</span><br><span class="line">│ │ │ RRException.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─utils</span><br><span class="line">│ │ │ Constant$MenuType.class</span><br><span class="line">│ │ │ Constant$ScheduleStatus.class</span><br><span class="line">│ │ │ Constant.class</span><br><span class="line">│ │ │ PageUtils.class</span><br><span class="line">│ │ │ Query.class</span><br><span class="line">│ │ │ R.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─xss</span><br><span class="line">│ │ HTMLFilter.class</span><br><span class="line">│ │ SQLFilter.class</span><br><span class="line">│ │</span><br><span class="line">│ └─generated-sources</span><br><span class="line">│ └─annotations</span><br><span class="line">├─gulimall-coupon</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ gulimall-coupon.iml</span><br><span class="line">│ │ HELP.md</span><br><span class="line">│ │ mvnw</span><br><span class="line">│ │ mvnw.cmd</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─.mvn</span><br><span class="line">│ │ └─wrapper</span><br><span class="line">│ │ maven-wrapper.jar</span><br><span class="line">│ │ maven-wrapper.properties</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─gulimall</span><br><span class="line">│ │ │ │ └─coupon</span><br><span class="line">│ │ │ │ │ GulimallCouponApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ CouponController.java</span><br><span class="line">│ │ │ │ │ CouponHistoryController.java</span><br><span class="line">│ │ │ │ │ CouponSpuCategoryRelationController.java</span><br><span class="line">│ │ │ │ │ CouponSpuRelationController.java</span><br><span class="line">│ │ │ │ │ HomeAdvController.java</span><br><span class="line">│ │ │ │ │ HomeSubjectController.java</span><br><span class="line">│ │ │ │ │ HomeSubjectSpuController.java</span><br><span class="line">│ │ │ │ │ MemberPriceController.java</span><br><span class="line">│ │ │ │ │ SeckillPromotionController.java</span><br><span class="line">│ │ │ │ │ SeckillSessionController.java</span><br><span class="line">│ │ │ │ │ SeckillSkuNoticeController.java</span><br><span class="line">│ │ │ │ │ SeckillSkuRelationController.java</span><br><span class="line">│ │ │ │ │ SkuFullReductionController.java</span><br><span class="line">│ │ │ │ │ SkuLadderController.java</span><br><span class="line">│ │ │ │ │ SpuBoundsController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ CouponDao.java</span><br><span class="line">│ │ │ │ │ CouponHistoryDao.java</span><br><span class="line">│ │ │ │ │ CouponSpuCategoryRelationDao.java</span><br><span class="line">│ │ │ │ │ CouponSpuRelationDao.java</span><br><span class="line">│ │ │ │ │ HomeAdvDao.java</span><br><span class="line">│ │ │ │ │ HomeSubjectDao.java</span><br><span class="line">│ │ │ │ │ HomeSubjectSpuDao.java</span><br><span class="line">│ │ │ │ │ MemberPriceDao.java</span><br><span class="line">│ │ │ │ │ SeckillPromotionDao.java</span><br><span class="line">│ │ │ │ │ SeckillSessionDao.java</span><br><span class="line">│ │ │ │ │ SeckillSkuNoticeDao.java</span><br><span class="line">│ │ │ │ │ SeckillSkuRelationDao.java</span><br><span class="line">│ │ │ │ │ SkuFullReductionDao.java</span><br><span class="line">│ │ │ │ │ SkuLadderDao.java</span><br><span class="line">│ │ │ │ │ SpuBoundsDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ CouponEntity.java</span><br><span class="line">│ │ │ │ │ CouponHistoryEntity.java</span><br><span class="line">│ │ │ │ │ CouponSpuCategoryRelationEntity.java</span><br><span class="line">│ │ │ │ │ CouponSpuRelationEntity.java</span><br><span class="line">│ │ │ │ │ HomeAdvEntity.java</span><br><span class="line">│ │ │ │ │ HomeSubjectEntity.java</span><br><span class="line">│ │ │ │ │ HomeSubjectSpuEntity.java</span><br><span class="line">│ │ │ │ │ MemberPriceEntity.java</span><br><span class="line">│ │ │ │ │ SeckillPromotionEntity.java</span><br><span class="line">│ │ │ │ │ SeckillSessionEntity.java</span><br><span class="line">│ │ │ │ │ SeckillSkuNoticeEntity.java</span><br><span class="line">│ │ │ │ │ SeckillSkuRelationEntity.java</span><br><span class="line">│ │ │ │ │ SkuFullReductionEntity.java</span><br><span class="line">│ │ │ │ │ SkuLadderEntity.java</span><br><span class="line">│ │ │ │ │ SpuBoundsEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ CouponHistoryService.java</span><br><span class="line">│ │ │ │ │ CouponService.java</span><br><span class="line">│ │ │ │ │ CouponSpuCategoryRelationService.java</span><br><span class="line">│ │ │ │ │ CouponSpuRelationService.java</span><br><span class="line">│ │ │ │ │ HomeAdvService.java</span><br><span class="line">│ │ │ │ │ HomeSubjectService.java</span><br><span class="line">│ │ │ │ │ HomeSubjectSpuService.java</span><br><span class="line">│ │ │ │ │ MemberPriceService.java</span><br><span class="line">│ │ │ │ │ SeckillPromotionService.java</span><br><span class="line">│ │ │ │ │ SeckillSessionService.java</span><br><span class="line">│ │ │ │ │ SeckillSkuNoticeService.java</span><br><span class="line">│ │ │ │ │ SeckillSkuRelationService.java</span><br><span class="line">│ │ │ │ │ SkuFullReductionService.java</span><br><span class="line">│ │ │ │ │ SkuLadderService.java</span><br><span class="line">│ │ │ │ │ SpuBoundsService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ CouponHistoryServiceImpl.java</span><br><span class="line">│ │ │ │ CouponServiceImpl.java</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationServiceImpl.java</span><br><span class="line">│ │ │ │ CouponSpuRelationServiceImpl.java</span><br><span class="line">│ │ │ │ HomeAdvServiceImpl.java</span><br><span class="line">│ │ │ │ HomeSubjectServiceImpl.java</span><br><span class="line">│ │ │ │ HomeSubjectSpuServiceImpl.java</span><br><span class="line">│ │ │ │ MemberPriceServiceImpl.java</span><br><span class="line">│ │ │ │ SeckillPromotionServiceImpl.java</span><br><span class="line">│ │ │ │ SeckillSessionServiceImpl.java</span><br><span class="line">│ │ │ │ SeckillSkuNoticeServiceImpl.java</span><br><span class="line">│ │ │ │ SeckillSkuRelationServiceImpl.java</span><br><span class="line">│ │ │ │ SkuFullReductionServiceImpl.java</span><br><span class="line">│ │ │ │ SkuLadderServiceImpl.java</span><br><span class="line">│ │ │ │ SpuBoundsServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application.properties</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ └─coupon</span><br><span class="line">│ │ │ │ CouponDao.xml</span><br><span class="line">│ │ │ │ CouponHistoryDao.xml</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationDao.xml</span><br><span class="line">│ │ │ │ CouponSpuRelationDao.xml</span><br><span class="line">│ │ │ │ HomeAdvDao.xml</span><br><span class="line">│ │ │ │ HomeSubjectDao.xml</span><br><span class="line">│ │ │ │ HomeSubjectSpuDao.xml</span><br><span class="line">│ │ │ │ MemberPriceDao.xml</span><br><span class="line">│ │ │ │ SeckillPromotionDao.xml</span><br><span class="line">│ │ │ │ SeckillSessionDao.xml</span><br><span class="line">│ │ │ │ SeckillSkuNoticeDao.xml</span><br><span class="line">│ │ │ │ SeckillSkuRelationDao.xml</span><br><span class="line">│ │ │ │ SkuFullReductionDao.xml</span><br><span class="line">│ │ │ │ SkuLadderDao.xml</span><br><span class="line">│ │ │ │ SpuBoundsDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─src</span><br><span class="line">│ │ │ │ └─views</span><br><span class="line">│ │ │ │ └─modules</span><br><span class="line">│ │ │ │ └─coupon</span><br><span class="line">│ │ │ │ coupon-add-or-update.vue</span><br><span class="line">│ │ │ │ coupon.vue</span><br><span class="line">│ │ │ │ couponhistory-add-or-update.vue</span><br><span class="line">│ │ │ │ couponhistory.vue</span><br><span class="line">│ │ │ │ couponspucategoryrelation-add-or-update.vue</span><br><span class="line">│ │ │ │ couponspucategoryrelation.vue</span><br><span class="line">│ │ │ │ couponspurelation-add-or-update.vue</span><br><span class="line">│ │ │ │ couponspurelation.vue</span><br><span class="line">│ │ │ │ homeadv-add-or-update.vue</span><br><span class="line">│ │ │ │ homeadv.vue</span><br><span class="line">│ │ │ │ homesubject-add-or-update.vue</span><br><span class="line">│ │ │ │ homesubject.vue</span><br><span class="line">│ │ │ │ homesubjectspu-add-or-update.vue</span><br><span class="line">│ │ │ │ homesubjectspu.vue</span><br><span class="line">│ │ │ │ memberprice-add-or-update.vue</span><br><span class="line">│ │ │ │ memberprice.vue</span><br><span class="line">│ │ │ │ seckillpromotion-add-or-update.vue</span><br><span class="line">│ │ │ │ seckillpromotion.vue</span><br><span class="line">│ │ │ │ seckillsession-add-or-update.vue</span><br><span class="line">│ │ │ │ seckillsession.vue</span><br><span class="line">│ │ │ │ seckillskunotice-add-or-update.vue</span><br><span class="line">│ │ │ │ seckillskunotice.vue</span><br><span class="line">│ │ │ │ seckillskurelation-add-or-update.vue</span><br><span class="line">│ │ │ │ seckillskurelation.vue</span><br><span class="line">│ │ │ │ skufullreduction-add-or-update.vue</span><br><span class="line">│ │ │ │ skufullreduction.vue</span><br><span class="line">│ │ │ │ skuladder-add-or-update.vue</span><br><span class="line">│ │ │ │ skuladder.vue</span><br><span class="line">│ │ │ │ spubounds-add-or-update.vue</span><br><span class="line">│ │ │ │ spubounds.vue</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─static</span><br><span class="line">│ │ │ └─templates</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─gulimall</span><br><span class="line">│ │ └─coupon</span><br><span class="line">│ │ GulimallCouponApplicationTests.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application.properties</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─com</span><br><span class="line">│ │ │ └─atguigu</span><br><span class="line">│ │ │ └─gulimall</span><br><span class="line">│ │ │ └─coupon</span><br><span class="line">│ │ │ │ GulimallCouponApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ CouponController.class</span><br><span class="line">│ │ │ │ CouponHistoryController.class</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationController.class</span><br><span class="line">│ │ │ │ CouponSpuRelationController.class</span><br><span class="line">│ │ │ │ HomeAdvController.class</span><br><span class="line">│ │ │ │ HomeSubjectController.class</span><br><span class="line">│ │ │ │ HomeSubjectSpuController.class</span><br><span class="line">│ │ │ │ MemberPriceController.class</span><br><span class="line">│ │ │ │ SeckillPromotionController.class</span><br><span class="line">│ │ │ │ SeckillSessionController.class</span><br><span class="line">│ │ │ │ SeckillSkuNoticeController.class</span><br><span class="line">│ │ │ │ SeckillSkuRelationController.class</span><br><span class="line">│ │ │ │ SkuFullReductionController.class</span><br><span class="line">│ │ │ │ SkuLadderController.class</span><br><span class="line">│ │ │ │ SpuBoundsController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ CouponDao.class</span><br><span class="line">│ │ │ │ CouponHistoryDao.class</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationDao.class</span><br><span class="line">│ │ │ │ CouponSpuRelationDao.class</span><br><span class="line">│ │ │ │ HomeAdvDao.class</span><br><span class="line">│ │ │ │ HomeSubjectDao.class</span><br><span class="line">│ │ │ │ HomeSubjectSpuDao.class</span><br><span class="line">│ │ │ │ MemberPriceDao.class</span><br><span class="line">│ │ │ │ SeckillPromotionDao.class</span><br><span class="line">│ │ │ │ SeckillSessionDao.class</span><br><span class="line">│ │ │ │ SeckillSkuNoticeDao.class</span><br><span class="line">│ │ │ │ SeckillSkuRelationDao.class</span><br><span class="line">│ │ │ │ SkuFullReductionDao.class</span><br><span class="line">│ │ │ │ SkuLadderDao.class</span><br><span class="line">│ │ │ │ SpuBoundsDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ CouponEntity.class</span><br><span class="line">│ │ │ │ CouponHistoryEntity.class</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationEntity.class</span><br><span class="line">│ │ │ │ CouponSpuRelationEntity.class</span><br><span class="line">│ │ │ │ HomeAdvEntity.class</span><br><span class="line">│ │ │ │ HomeSubjectEntity.class</span><br><span class="line">│ │ │ │ HomeSubjectSpuEntity.class</span><br><span class="line">│ │ │ │ MemberPriceEntity.class</span><br><span class="line">│ │ │ │ SeckillPromotionEntity.class</span><br><span class="line">│ │ │ │ SeckillSessionEntity.class</span><br><span class="line">│ │ │ │ SeckillSkuNoticeEntity.class</span><br><span class="line">│ │ │ │ SeckillSkuRelationEntity.class</span><br><span class="line">│ │ │ │ SkuFullReductionEntity.class</span><br><span class="line">│ │ │ │ SkuLadderEntity.class</span><br><span class="line">│ │ │ │ SpuBoundsEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ CouponHistoryService.class</span><br><span class="line">│ │ │ │ CouponService.class</span><br><span class="line">│ │ │ │ CouponSpuCategoryRelationService.class</span><br><span class="line">│ │ │ │ CouponSpuRelationService.class</span><br><span class="line">│ │ │ │ HomeAdvService.class</span><br><span class="line">│ │ │ │ HomeSubjectService.class</span><br><span class="line">│ │ │ │ HomeSubjectSpuService.class</span><br><span class="line">│ │ │ │ MemberPriceService.class</span><br><span class="line">│ │ │ │ SeckillPromotionService.class</span><br><span class="line">│ │ │ │ SeckillSessionService.class</span><br><span class="line">│ │ │ │ SeckillSkuNoticeService.class</span><br><span class="line">│ │ │ │ SeckillSkuRelationService.class</span><br><span class="line">│ │ │ │ SkuFullReductionService.class</span><br><span class="line">│ │ │ │ SkuLadderService.class</span><br><span class="line">│ │ │ │ SpuBoundsService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ CouponHistoryServiceImpl.class</span><br><span class="line">│ │ │ CouponServiceImpl.class</span><br><span class="line">│ │ │ CouponSpuCategoryRelationServiceImpl.class</span><br><span class="line">│ │ │ CouponSpuRelationServiceImpl.class</span><br><span class="line">│ │ │ HomeAdvServiceImpl.class</span><br><span class="line">│ │ │ HomeSubjectServiceImpl.class</span><br><span class="line">│ │ │ HomeSubjectSpuServiceImpl.class</span><br><span class="line">│ │ │ MemberPriceServiceImpl.class</span><br><span class="line">│ │ │ SeckillPromotionServiceImpl.class</span><br><span class="line">│ │ │ SeckillSessionServiceImpl.class</span><br><span class="line">│ │ │ SeckillSkuNoticeServiceImpl.class</span><br><span class="line">│ │ │ SeckillSkuRelationServiceImpl.class</span><br><span class="line">│ │ │ SkuFullReductionServiceImpl.class</span><br><span class="line">│ │ │ SkuLadderServiceImpl.class</span><br><span class="line">│ │ │ SpuBoundsServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ └─coupon</span><br><span class="line">│ │ │ CouponDao.xml</span><br><span class="line">│ │ │ CouponHistoryDao.xml</span><br><span class="line">│ │ │ CouponSpuCategoryRelationDao.xml</span><br><span class="line">│ │ │ CouponSpuRelationDao.xml</span><br><span class="line">│ │ │ HomeAdvDao.xml</span><br><span class="line">│ │ │ HomeSubjectDao.xml</span><br><span class="line">│ │ │ HomeSubjectSpuDao.xml</span><br><span class="line">│ │ │ MemberPriceDao.xml</span><br><span class="line">│ │ │ SeckillPromotionDao.xml</span><br><span class="line">│ │ │ SeckillSessionDao.xml</span><br><span class="line">│ │ │ SeckillSkuNoticeDao.xml</span><br><span class="line">│ │ │ SeckillSkuRelationDao.xml</span><br><span class="line">│ │ │ SkuFullReductionDao.xml</span><br><span class="line">│ │ │ SkuLadderDao.xml</span><br><span class="line">│ │ │ SpuBoundsDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─src</span><br><span class="line">│ │ └─views</span><br><span class="line">│ │ └─modules</span><br><span class="line">│ │ └─coupon</span><br><span class="line">│ │ coupon-add-or-update.vue</span><br><span class="line">│ │ coupon.vue</span><br><span class="line">│ │ couponhistory-add-or-update.vue</span><br><span class="line">│ │ couponhistory.vue</span><br><span class="line">│ │ couponspucategoryrelation-add-or-update.vue</span><br><span class="line">│ │ couponspucategoryrelation.vue</span><br><span class="line">│ │ couponspurelation-add-or-update.vue</span><br><span class="line">│ │ couponspurelation.vue</span><br><span class="line">│ │ homeadv-add-or-update.vue</span><br><span class="line">│ │ homeadv.vue</span><br><span class="line">│ │ homesubject-add-or-update.vue</span><br><span class="line">│ │ homesubject.vue</span><br><span class="line">│ │ homesubjectspu-add-or-update.vue</span><br><span class="line">│ │ homesubjectspu.vue</span><br><span class="line">│ │ memberprice-add-or-update.vue</span><br><span class="line">│ │ memberprice.vue</span><br><span class="line">│ │ seckillpromotion-add-or-update.vue</span><br><span class="line">│ │ seckillpromotion.vue</span><br><span class="line">│ │ seckillsession-add-or-update.vue</span><br><span class="line">│ │ seckillsession.vue</span><br><span class="line">│ │ seckillskunotice-add-or-update.vue</span><br><span class="line">│ │ seckillskunotice.vue</span><br><span class="line">│ │ seckillskurelation-add-or-update.vue</span><br><span class="line">│ │ seckillskurelation.vue</span><br><span class="line">│ │ skufullreduction-add-or-update.vue</span><br><span class="line">│ │ skufullreduction.vue</span><br><span class="line">│ │ skuladder-add-or-update.vue</span><br><span class="line">│ │ skuladder.vue</span><br><span class="line">│ │ spubounds-add-or-update.vue</span><br><span class="line">│ │ spubounds.vue</span><br><span class="line">│ │</span><br><span class="line">│ ├─generated-sources</span><br><span class="line">│ │ └─annotations</span><br><span class="line">│ └─maven-status</span><br><span class="line">│ └─maven-compiler-plugin</span><br><span class="line">│ └─compile</span><br><span class="line">│ └─default-compile</span><br><span class="line">│ createdFiles.lst</span><br><span class="line">│ inputFiles.lst</span><br><span class="line">│</span><br><span class="line">├─gulimall-member</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ gulimall-member.iml</span><br><span class="line">│ │ HELP.md</span><br><span class="line">│ │ mvnw</span><br><span class="line">│ │ mvnw.cmd</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─.mvn</span><br><span class="line">│ │ └─wrapper</span><br><span class="line">│ │ maven-wrapper.jar</span><br><span class="line">│ │ maven-wrapper.properties</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─gulimall</span><br><span class="line">│ │ │ │ └─member</span><br><span class="line">│ │ │ │ │ GulimallMemberApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ GrowthChangeHistoryController.java</span><br><span class="line">│ │ │ │ │ IntegrationChangeHistoryController.java</span><br><span class="line">│ │ │ │ │ MemberCollectSpuController.java</span><br><span class="line">│ │ │ │ │ MemberCollectSubjectController.java</span><br><span class="line">│ │ │ │ │ MemberController.java</span><br><span class="line">│ │ │ │ │ MemberLevelController.java</span><br><span class="line">│ │ │ │ │ MemberLoginLogController.java</span><br><span class="line">│ │ │ │ │ MemberReceiveAddressController.java</span><br><span class="line">│ │ │ │ │ MemberStatisticsInfoController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ GrowthChangeHistoryDao.java</span><br><span class="line">│ │ │ │ │ IntegrationChangeHistoryDao.java</span><br><span class="line">│ │ │ │ │ MemberCollectSpuDao.java</span><br><span class="line">│ │ │ │ │ MemberCollectSubjectDao.java</span><br><span class="line">│ │ │ │ │ MemberDao.java</span><br><span class="line">│ │ │ │ │ MemberLevelDao.java</span><br><span class="line">│ │ │ │ │ MemberLoginLogDao.java</span><br><span class="line">│ │ │ │ │ MemberReceiveAddressDao.java</span><br><span class="line">│ │ │ │ │ MemberStatisticsInfoDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ GrowthChangeHistoryEntity.java</span><br><span class="line">│ │ │ │ │ IntegrationChangeHistoryEntity.java</span><br><span class="line">│ │ │ │ │ MemberCollectSpuEntity.java</span><br><span class="line">│ │ │ │ │ MemberCollectSubjectEntity.java</span><br><span class="line">│ │ │ │ │ MemberEntity.java</span><br><span class="line">│ │ │ │ │ MemberLevelEntity.java</span><br><span class="line">│ │ │ │ │ MemberLoginLogEntity.java</span><br><span class="line">│ │ │ │ │ MemberReceiveAddressEntity.java</span><br><span class="line">│ │ │ │ │ MemberStatisticsInfoEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ GrowthChangeHistoryService.java</span><br><span class="line">│ │ │ │ │ IntegrationChangeHistoryService.java</span><br><span class="line">│ │ │ │ │ MemberCollectSpuService.java</span><br><span class="line">│ │ │ │ │ MemberCollectSubjectService.java</span><br><span class="line">│ │ │ │ │ MemberLevelService.java</span><br><span class="line">│ │ │ │ │ MemberLoginLogService.java</span><br><span class="line">│ │ │ │ │ MemberReceiveAddressService.java</span><br><span class="line">│ │ │ │ │ MemberService.java</span><br><span class="line">│ │ │ │ │ MemberStatisticsInfoService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ GrowthChangeHistoryServiceImpl.java</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryServiceImpl.java</span><br><span class="line">│ │ │ │ MemberCollectSpuServiceImpl.java</span><br><span class="line">│ │ │ │ MemberCollectSubjectServiceImpl.java</span><br><span class="line">│ │ │ │ MemberLevelServiceImpl.java</span><br><span class="line">│ │ │ │ MemberLoginLogServiceImpl.java</span><br><span class="line">│ │ │ │ MemberReceiveAddressServiceImpl.java</span><br><span class="line">│ │ │ │ MemberServiceImpl.java</span><br><span class="line">│ │ │ │ MemberStatisticsInfoServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application.properties</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ └─member</span><br><span class="line">│ │ │ │ GrowthChangeHistoryDao.xml</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryDao.xml</span><br><span class="line">│ │ │ │ MemberCollectSpuDao.xml</span><br><span class="line">│ │ │ │ MemberCollectSubjectDao.xml</span><br><span class="line">│ │ │ │ MemberDao.xml</span><br><span class="line">│ │ │ │ MemberLevelDao.xml</span><br><span class="line">│ │ │ │ MemberLoginLogDao.xml</span><br><span class="line">│ │ │ │ MemberReceiveAddressDao.xml</span><br><span class="line">│ │ │ │ MemberStatisticsInfoDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─src</span><br><span class="line">│ │ │ │ └─views</span><br><span class="line">│ │ │ │ └─modules</span><br><span class="line">│ │ │ │ └─member</span><br><span class="line">│ │ │ │ growthchangehistory-add-or-update.vue</span><br><span class="line">│ │ │ │ growthchangehistory.vue</span><br><span class="line">│ │ │ │ integrationchangehistory-add-or-update.vue</span><br><span class="line">│ │ │ │ integrationchangehistory.vue</span><br><span class="line">│ │ │ │ member-add-or-update.vue</span><br><span class="line">│ │ │ │ member.vue</span><br><span class="line">│ │ │ │ membercollectspu-add-or-update.vue</span><br><span class="line">│ │ │ │ membercollectspu.vue</span><br><span class="line">│ │ │ │ membercollectsubject-add-or-update.vue</span><br><span class="line">│ │ │ │ membercollectsubject.vue</span><br><span class="line">│ │ │ │ memberlevel-add-or-update.vue</span><br><span class="line">│ │ │ │ memberlevel.vue</span><br><span class="line">│ │ │ │ memberloginlog-add-or-update.vue</span><br><span class="line">│ │ │ │ memberloginlog.vue</span><br><span class="line">│ │ │ │ memberreceiveaddress-add-or-update.vue</span><br><span class="line">│ │ │ │ memberreceiveaddress.vue</span><br><span class="line">│ │ │ │ memberstatisticsinfo-add-or-update.vue</span><br><span class="line">│ │ │ │ memberstatisticsinfo.vue</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─static</span><br><span class="line">│ │ │ └─templates</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─gulimall</span><br><span class="line">│ │ └─member</span><br><span class="line">│ │ GulimallMemberApplicationTests.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application.properties</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─com</span><br><span class="line">│ │ │ └─atguigu</span><br><span class="line">│ │ │ └─gulimall</span><br><span class="line">│ │ │ └─member</span><br><span class="line">│ │ │ │ GulimallMemberApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ GrowthChangeHistoryController.class</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryController.class</span><br><span class="line">│ │ │ │ MemberCollectSpuController.class</span><br><span class="line">│ │ │ │ MemberCollectSubjectController.class</span><br><span class="line">│ │ │ │ MemberController.class</span><br><span class="line">│ │ │ │ MemberLevelController.class</span><br><span class="line">│ │ │ │ MemberLoginLogController.class</span><br><span class="line">│ │ │ │ MemberReceiveAddressController.class</span><br><span class="line">│ │ │ │ MemberStatisticsInfoController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ GrowthChangeHistoryDao.class</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryDao.class</span><br><span class="line">│ │ │ │ MemberCollectSpuDao.class</span><br><span class="line">│ │ │ │ MemberCollectSubjectDao.class</span><br><span class="line">│ │ │ │ MemberDao.class</span><br><span class="line">│ │ │ │ MemberLevelDao.class</span><br><span class="line">│ │ │ │ MemberLoginLogDao.class</span><br><span class="line">│ │ │ │ MemberReceiveAddressDao.class</span><br><span class="line">│ │ │ │ MemberStatisticsInfoDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ GrowthChangeHistoryEntity.class</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryEntity.class</span><br><span class="line">│ │ │ │ MemberCollectSpuEntity.class</span><br><span class="line">│ │ │ │ MemberCollectSubjectEntity.class</span><br><span class="line">│ │ │ │ MemberEntity.class</span><br><span class="line">│ │ │ │ MemberLevelEntity.class</span><br><span class="line">│ │ │ │ MemberLoginLogEntity.class</span><br><span class="line">│ │ │ │ MemberReceiveAddressEntity.class</span><br><span class="line">│ │ │ │ MemberStatisticsInfoEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ GrowthChangeHistoryService.class</span><br><span class="line">│ │ │ │ IntegrationChangeHistoryService.class</span><br><span class="line">│ │ │ │ MemberCollectSpuService.class</span><br><span class="line">│ │ │ │ MemberCollectSubjectService.class</span><br><span class="line">│ │ │ │ MemberLevelService.class</span><br><span class="line">│ │ │ │ MemberLoginLogService.class</span><br><span class="line">│ │ │ │ MemberReceiveAddressService.class</span><br><span class="line">│ │ │ │ MemberService.class</span><br><span class="line">│ │ │ │ MemberStatisticsInfoService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ GrowthChangeHistoryServiceImpl.class</span><br><span class="line">│ │ │ IntegrationChangeHistoryServiceImpl.class</span><br><span class="line">│ │ │ MemberCollectSpuServiceImpl.class</span><br><span class="line">│ │ │ MemberCollectSubjectServiceImpl.class</span><br><span class="line">│ │ │ MemberLevelServiceImpl.class</span><br><span class="line">│ │ │ MemberLoginLogServiceImpl.class</span><br><span class="line">│ │ │ MemberReceiveAddressServiceImpl.class</span><br><span class="line">│ │ │ MemberServiceImpl.class</span><br><span class="line">│ │ │ MemberStatisticsInfoServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ └─member</span><br><span class="line">│ │ │ GrowthChangeHistoryDao.xml</span><br><span class="line">│ │ │ IntegrationChangeHistoryDao.xml</span><br><span class="line">│ │ │ MemberCollectSpuDao.xml</span><br><span class="line">│ │ │ MemberCollectSubjectDao.xml</span><br><span class="line">│ │ │ MemberDao.xml</span><br><span class="line">│ │ │ MemberLevelDao.xml</span><br><span class="line">│ │ │ MemberLoginLogDao.xml</span><br><span class="line">│ │ │ MemberReceiveAddressDao.xml</span><br><span class="line">│ │ │ MemberStatisticsInfoDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─src</span><br><span class="line">│ │ └─views</span><br><span class="line">│ │ └─modules</span><br><span class="line">│ │ └─member</span><br><span class="line">│ │ growthchangehistory-add-or-update.vue</span><br><span class="line">│ │ growthchangehistory.vue</span><br><span class="line">│ │ integrationchangehistory-add-or-update.vue</span><br><span class="line">│ │ integrationchangehistory.vue</span><br><span class="line">│ │ member-add-or-update.vue</span><br><span class="line">│ │ member.vue</span><br><span class="line">│ │ membercollectspu-add-or-update.vue</span><br><span class="line">│ │ membercollectspu.vue</span><br><span class="line">│ │ membercollectsubject-add-or-update.vue</span><br><span class="line">│ │ membercollectsubject.vue</span><br><span class="line">│ │ memberlevel-add-or-update.vue</span><br><span class="line">│ │ memberlevel.vue</span><br><span class="line">│ │ memberloginlog-add-or-update.vue</span><br><span class="line">│ │ memberloginlog.vue</span><br><span class="line">│ │ memberreceiveaddress-add-or-update.vue</span><br><span class="line">│ │ memberreceiveaddress.vue</span><br><span class="line">│ │ memberstatisticsinfo-add-or-update.vue</span><br><span class="line">│ │ memberstatisticsinfo.vue</span><br><span class="line">│ │</span><br><span class="line">│ ├─generated-sources</span><br><span class="line">│ │ └─annotations</span><br><span class="line">│ └─maven-status</span><br><span class="line">│ └─maven-compiler-plugin</span><br><span class="line">│ └─compile</span><br><span class="line">│ └─default-compile</span><br><span class="line">│ createdFiles.lst</span><br><span class="line">│ inputFiles.lst</span><br><span class="line">│</span><br><span class="line">├─gulimall-order</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ gulimall-order.iml</span><br><span class="line">│ │ HELP.md</span><br><span class="line">│ │ mvnw</span><br><span class="line">│ │ mvnw.cmd</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─.mvn</span><br><span class="line">│ │ └─wrapper</span><br><span class="line">│ │ maven-wrapper.jar</span><br><span class="line">│ │ maven-wrapper.properties</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─gulimall</span><br><span class="line">│ │ │ │ └─order</span><br><span class="line">│ │ │ │ │ GulimallOrderApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ OrderController.java</span><br><span class="line">│ │ │ │ │ OrderItemController.java</span><br><span class="line">│ │ │ │ │ OrderOperateHistoryController.java</span><br><span class="line">│ │ │ │ │ OrderReturnApplyController.java</span><br><span class="line">│ │ │ │ │ OrderReturnReasonController.java</span><br><span class="line">│ │ │ │ │ OrderSettingController.java</span><br><span class="line">│ │ │ │ │ PaymentInfoController.java</span><br><span class="line">│ │ │ │ │ RefundInfoController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ OrderDao.java</span><br><span class="line">│ │ │ │ │ OrderItemDao.java</span><br><span class="line">│ │ │ │ │ OrderOperateHistoryDao.java</span><br><span class="line">│ │ │ │ │ OrderReturnApplyDao.java</span><br><span class="line">│ │ │ │ │ OrderReturnReasonDao.java</span><br><span class="line">│ │ │ │ │ OrderSettingDao.java</span><br><span class="line">│ │ │ │ │ PaymentInfoDao.java</span><br><span class="line">│ │ │ │ │ RefundInfoDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ OrderEntity.java</span><br><span class="line">│ │ │ │ │ OrderItemEntity.java</span><br><span class="line">│ │ │ │ │ OrderOperateHistoryEntity.java</span><br><span class="line">│ │ │ │ │ OrderReturnApplyEntity.java</span><br><span class="line">│ │ │ │ │ OrderReturnReasonEntity.java</span><br><span class="line">│ │ │ │ │ OrderSettingEntity.java</span><br><span class="line">│ │ │ │ │ PaymentInfoEntity.java</span><br><span class="line">│ │ │ │ │ RefundInfoEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ OrderItemService.java</span><br><span class="line">│ │ │ │ │ OrderOperateHistoryService.java</span><br><span class="line">│ │ │ │ │ OrderReturnApplyService.java</span><br><span class="line">│ │ │ │ │ OrderReturnReasonService.java</span><br><span class="line">│ │ │ │ │ OrderService.java</span><br><span class="line">│ │ │ │ │ OrderSettingService.java</span><br><span class="line">│ │ │ │ │ PaymentInfoService.java</span><br><span class="line">│ │ │ │ │ RefundInfoService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ OrderItemServiceImpl.java</span><br><span class="line">│ │ │ │ OrderOperateHistoryServiceImpl.java</span><br><span class="line">│ │ │ │ OrderReturnApplyServiceImpl.java</span><br><span class="line">│ │ │ │ OrderReturnReasonServiceImpl.java</span><br><span class="line">│ │ │ │ OrderServiceImpl.java</span><br><span class="line">│ │ │ │ OrderSettingServiceImpl.java</span><br><span class="line">│ │ │ │ PaymentInfoServiceImpl.java</span><br><span class="line">│ │ │ │ RefundInfoServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application.properties</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ └─order</span><br><span class="line">│ │ │ │ OrderDao.xml</span><br><span class="line">│ │ │ │ OrderItemDao.xml</span><br><span class="line">│ │ │ │ OrderOperateHistoryDao.xml</span><br><span class="line">│ │ │ │ OrderReturnApplyDao.xml</span><br><span class="line">│ │ │ │ OrderReturnReasonDao.xml</span><br><span class="line">│ │ │ │ OrderSettingDao.xml</span><br><span class="line">│ │ │ │ PaymentInfoDao.xml</span><br><span class="line">│ │ │ │ RefundInfoDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─src</span><br><span class="line">│ │ │ │ └─views</span><br><span class="line">│ │ │ │ └─modules</span><br><span class="line">│ │ │ │ └─order</span><br><span class="line">│ │ │ │ order-add-or-update.vue</span><br><span class="line">│ │ │ │ order.vue</span><br><span class="line">│ │ │ │ orderitem-add-or-update.vue</span><br><span class="line">│ │ │ │ orderitem.vue</span><br><span class="line">│ │ │ │ orderoperatehistory-add-or-update.vue</span><br><span class="line">│ │ │ │ orderoperatehistory.vue</span><br><span class="line">│ │ │ │ orderreturnapply-add-or-update.vue</span><br><span class="line">│ │ │ │ orderreturnapply.vue</span><br><span class="line">│ │ │ │ orderreturnreason-add-or-update.vue</span><br><span class="line">│ │ │ │ orderreturnreason.vue</span><br><span class="line">│ │ │ │ ordersetting-add-or-update.vue</span><br><span class="line">│ │ │ │ ordersetting.vue</span><br><span class="line">│ │ │ │ paymentinfo-add-or-update.vue</span><br><span class="line">│ │ │ │ paymentinfo.vue</span><br><span class="line">│ │ │ │ refundinfo-add-or-update.vue</span><br><span class="line">│ │ │ │ refundinfo.vue</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─static</span><br><span class="line">│ │ │ └─templates</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─gulimall</span><br><span class="line">│ │ └─order</span><br><span class="line">│ │ GulimallOrderApplicationTests.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application.properties</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─com</span><br><span class="line">│ │ │ └─atguigu</span><br><span class="line">│ │ │ └─gulimall</span><br><span class="line">│ │ │ ├─gulimallorder</span><br><span class="line">│ │ │ │ GulimallOrderApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─order</span><br><span class="line">│ │ │ │ GulimallOrderApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ OrderController.class</span><br><span class="line">│ │ │ │ OrderItemController.class</span><br><span class="line">│ │ │ │ OrderOperateHistoryController.class</span><br><span class="line">│ │ │ │ OrderReturnApplyController.class</span><br><span class="line">│ │ │ │ OrderReturnReasonController.class</span><br><span class="line">│ │ │ │ OrderSettingController.class</span><br><span class="line">│ │ │ │ PaymentInfoController.class</span><br><span class="line">│ │ │ │ RefundInfoController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ OrderDao.class</span><br><span class="line">│ │ │ │ OrderItemDao.class</span><br><span class="line">│ │ │ │ OrderOperateHistoryDao.class</span><br><span class="line">│ │ │ │ OrderReturnApplyDao.class</span><br><span class="line">│ │ │ │ OrderReturnReasonDao.class</span><br><span class="line">│ │ │ │ OrderSettingDao.class</span><br><span class="line">│ │ │ │ PaymentInfoDao.class</span><br><span class="line">│ │ │ │ RefundInfoDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ OrderEntity.class</span><br><span class="line">│ │ │ │ OrderItemEntity.class</span><br><span class="line">│ │ │ │ OrderOperateHistoryEntity.class</span><br><span class="line">│ │ │ │ OrderReturnApplyEntity.class</span><br><span class="line">│ │ │ │ OrderReturnReasonEntity.class</span><br><span class="line">│ │ │ │ OrderSettingEntity.class</span><br><span class="line">│ │ │ │ PaymentInfoEntity.class</span><br><span class="line">│ │ │ │ RefundInfoEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ OrderItemService.class</span><br><span class="line">│ │ │ │ OrderOperateHistoryService.class</span><br><span class="line">│ │ │ │ OrderReturnApplyService.class</span><br><span class="line">│ │ │ │ OrderReturnReasonService.class</span><br><span class="line">│ │ │ │ OrderService.class</span><br><span class="line">│ │ │ │ OrderSettingService.class</span><br><span class="line">│ │ │ │ PaymentInfoService.class</span><br><span class="line">│ │ │ │ RefundInfoService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ OrderItemServiceImpl.class</span><br><span class="line">│ │ │ OrderOperateHistoryServiceImpl.class</span><br><span class="line">│ │ │ OrderReturnApplyServiceImpl.class</span><br><span class="line">│ │ │ OrderReturnReasonServiceImpl.class</span><br><span class="line">│ │ │ OrderServiceImpl.class</span><br><span class="line">│ │ │ OrderSettingServiceImpl.class</span><br><span class="line">│ │ │ PaymentInfoServiceImpl.class</span><br><span class="line">│ │ │ RefundInfoServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ └─order</span><br><span class="line">│ │ │ OrderDao.xml</span><br><span class="line">│ │ │ OrderItemDao.xml</span><br><span class="line">│ │ │ OrderOperateHistoryDao.xml</span><br><span class="line">│ │ │ OrderReturnApplyDao.xml</span><br><span class="line">│ │ │ OrderReturnReasonDao.xml</span><br><span class="line">│ │ │ OrderSettingDao.xml</span><br><span class="line">│ │ │ PaymentInfoDao.xml</span><br><span class="line">│ │ │ RefundInfoDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─src</span><br><span class="line">│ │ └─views</span><br><span class="line">│ │ └─modules</span><br><span class="line">│ │ └─order</span><br><span class="line">│ │ order-add-or-update.vue</span><br><span class="line">│ │ order.vue</span><br><span class="line">│ │ orderitem-add-or-update.vue</span><br><span class="line">│ │ orderitem.vue</span><br><span class="line">│ │ orderoperatehistory-add-or-update.vue</span><br><span class="line">│ │ orderoperatehistory.vue</span><br><span class="line">│ │ orderreturnapply-add-or-update.vue</span><br><span class="line">│ │ orderreturnapply.vue</span><br><span class="line">│ │ orderreturnreason-add-or-update.vue</span><br><span class="line">│ │ orderreturnreason.vue</span><br><span class="line">│ │ ordersetting-add-or-update.vue</span><br><span class="line">│ │ ordersetting.vue</span><br><span class="line">│ │ paymentinfo-add-or-update.vue</span><br><span class="line">│ │ paymentinfo.vue</span><br><span class="line">│ │ refundinfo-add-or-update.vue</span><br><span class="line">│ │ refundinfo.vue</span><br><span class="line">│ │</span><br><span class="line">│ ├─generated-sources</span><br><span class="line">│ │ └─annotations</span><br><span class="line">│ └─maven-status</span><br><span class="line">│ └─maven-compiler-plugin</span><br><span class="line">│ └─compile</span><br><span class="line">│ └─default-compile</span><br><span class="line">│ createdFiles.lst</span><br><span class="line">│ inputFiles.lst</span><br><span class="line">│</span><br><span class="line">├─gulimall-product</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ gulimall-product.iml</span><br><span class="line">│ │ HELP.md</span><br><span class="line">│ │ mvnw</span><br><span class="line">│ │ mvnw.cmd</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─.mvn</span><br><span class="line">│ │ └─wrapper</span><br><span class="line">│ │ maven-wrapper.jar</span><br><span class="line">│ │ maven-wrapper.properties</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─gulimall</span><br><span class="line">│ │ │ │ └─product</span><br><span class="line">│ │ │ │ │ GulimallProductApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ AttrAttrgroupRelationController.java</span><br><span class="line">│ │ │ │ │ AttrController.java</span><br><span class="line">│ │ │ │ │ AttrGroupController.java</span><br><span class="line">│ │ │ │ │ BrandController.java</span><br><span class="line">│ │ │ │ │ CategoryBrandRelationController.java</span><br><span class="line">│ │ │ │ │ CategoryController.java</span><br><span class="line">│ │ │ │ │ CommentReplayController.java</span><br><span class="line">│ │ │ │ │ ProductAttrValueController.java</span><br><span class="line">│ │ │ │ │ SkuImagesController.java</span><br><span class="line">│ │ │ │ │ SkuInfoController.java</span><br><span class="line">│ │ │ │ │ SkuSaleAttrValueController.java</span><br><span class="line">│ │ │ │ │ SpuCommentController.java</span><br><span class="line">│ │ │ │ │ SpuImagesController.java</span><br><span class="line">│ │ │ │ │ SpuInfoController.java</span><br><span class="line">│ │ │ │ │ SpuInfoDescController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ AttrAttrgroupRelationDao.java</span><br><span class="line">│ │ │ │ │ AttrDao.java</span><br><span class="line">│ │ │ │ │ AttrGroupDao.java</span><br><span class="line">│ │ │ │ │ BrandDao.java</span><br><span class="line">│ │ │ │ │ CategoryBrandRelationDao.java</span><br><span class="line">│ │ │ │ │ CategoryDao.java</span><br><span class="line">│ │ │ │ │ CommentReplayDao.java</span><br><span class="line">│ │ │ │ │ ProductAttrValueDao.java</span><br><span class="line">│ │ │ │ │ SkuImagesDao.java</span><br><span class="line">│ │ │ │ │ SkuInfoDao.java</span><br><span class="line">│ │ │ │ │ SkuSaleAttrValueDao.java</span><br><span class="line">│ │ │ │ │ SpuCommentDao.java</span><br><span class="line">│ │ │ │ │ SpuImagesDao.java</span><br><span class="line">│ │ │ │ │ SpuInfoDao.java</span><br><span class="line">│ │ │ │ │ SpuInfoDescDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ AttrAttrgroupRelationEntity.java</span><br><span class="line">│ │ │ │ │ AttrEntity.java</span><br><span class="line">│ │ │ │ │ AttrGroupEntity.java</span><br><span class="line">│ │ │ │ │ BrandEntity.java</span><br><span class="line">│ │ │ │ │ CategoryBrandRelationEntity.java</span><br><span class="line">│ │ │ │ │ CategoryEntity.java</span><br><span class="line">│ │ │ │ │ CommentReplayEntity.java</span><br><span class="line">│ │ │ │ │ ProductAttrValueEntity.java</span><br><span class="line">│ │ │ │ │ SkuImagesEntity.java</span><br><span class="line">│ │ │ │ │ SkuInfoEntity.java</span><br><span class="line">│ │ │ │ │ SkuSaleAttrValueEntity.java</span><br><span class="line">│ │ │ │ │ SpuCommentEntity.java</span><br><span class="line">│ │ │ │ │ SpuImagesEntity.java</span><br><span class="line">│ │ │ │ │ SpuInfoDescEntity.java</span><br><span class="line">│ │ │ │ │ SpuInfoEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ AttrAttrgroupRelationService.java</span><br><span class="line">│ │ │ │ │ AttrGroupService.java</span><br><span class="line">│ │ │ │ │ AttrService.java</span><br><span class="line">│ │ │ │ │ BrandService.java</span><br><span class="line">│ │ │ │ │ CategoryBrandRelationService.java</span><br><span class="line">│ │ │ │ │ CategoryService.java</span><br><span class="line">│ │ │ │ │ CommentReplayService.java</span><br><span class="line">│ │ │ │ │ ProductAttrValueService.java</span><br><span class="line">│ │ │ │ │ SkuImagesService.java</span><br><span class="line">│ │ │ │ │ SkuInfoService.java</span><br><span class="line">│ │ │ │ │ SkuSaleAttrValueService.java</span><br><span class="line">│ │ │ │ │ SpuCommentService.java</span><br><span class="line">│ │ │ │ │ SpuImagesService.java</span><br><span class="line">│ │ │ │ │ SpuInfoDescService.java</span><br><span class="line">│ │ │ │ │ SpuInfoService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationServiceImpl.java</span><br><span class="line">│ │ │ │ AttrGroupServiceImpl.java</span><br><span class="line">│ │ │ │ AttrServiceImpl.java</span><br><span class="line">│ │ │ │ BrandServiceImpl.java</span><br><span class="line">│ │ │ │ CategoryBrandRelationServiceImpl.java</span><br><span class="line">│ │ │ │ CategoryServiceImpl.java</span><br><span class="line">│ │ │ │ CommentReplayServiceImpl.java</span><br><span class="line">│ │ │ │ ProductAttrValueServiceImpl.java</span><br><span class="line">│ │ │ │ SkuImagesServiceImpl.java</span><br><span class="line">│ │ │ │ SkuInfoServiceImpl.java</span><br><span class="line">│ │ │ │ SkuSaleAttrValueServiceImpl.java</span><br><span class="line">│ │ │ │ SpuCommentServiceImpl.java</span><br><span class="line">│ │ │ │ SpuImagesServiceImpl.java</span><br><span class="line">│ │ │ │ SpuInfoDescServiceImpl.java</span><br><span class="line">│ │ │ │ SpuInfoServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application.properties</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ └─product</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationDao.xml</span><br><span class="line">│ │ │ │ AttrDao.xml</span><br><span class="line">│ │ │ │ AttrGroupDao.xml</span><br><span class="line">│ │ │ │ BrandDao.xml</span><br><span class="line">│ │ │ │ CategoryBrandRelationDao.xml</span><br><span class="line">│ │ │ │ CategoryDao.xml</span><br><span class="line">│ │ │ │ CommentReplayDao.xml</span><br><span class="line">│ │ │ │ ProductAttrValueDao.xml</span><br><span class="line">│ │ │ │ SkuImagesDao.xml</span><br><span class="line">│ │ │ │ SkuInfoDao.xml</span><br><span class="line">│ │ │ │ SkuSaleAttrValueDao.xml</span><br><span class="line">│ │ │ │ SpuCommentDao.xml</span><br><span class="line">│ │ │ │ SpuImagesDao.xml</span><br><span class="line">│ │ │ │ SpuInfoDao.xml</span><br><span class="line">│ │ │ │ SpuInfoDescDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─src</span><br><span class="line">│ │ │ │ └─views</span><br><span class="line">│ │ │ │ └─modules</span><br><span class="line">│ │ │ │ └─product</span><br><span class="line">│ │ │ │ attr-add-or-update.vue</span><br><span class="line">│ │ │ │ attr.vue</span><br><span class="line">│ │ │ │ attrattrgrouprelation-add-or-update.vue</span><br><span class="line">│ │ │ │ attrattrgrouprelation.vue</span><br><span class="line">│ │ │ │ attrgroup-add-or-update.vue</span><br><span class="line">│ │ │ │ attrgroup.vue</span><br><span class="line">│ │ │ │ brand-add-or-update.vue</span><br><span class="line">│ │ │ │ brand.vue</span><br><span class="line">│ │ │ │ category-add-or-update.vue</span><br><span class="line">│ │ │ │ category.vue</span><br><span class="line">│ │ │ │ categorybrandrelation-add-or-update.vue</span><br><span class="line">│ │ │ │ categorybrandrelation.vue</span><br><span class="line">│ │ │ │ commentreplay-add-or-update.vue</span><br><span class="line">│ │ │ │ commentreplay.vue</span><br><span class="line">│ │ │ │ productattrvalue-add-or-update.vue</span><br><span class="line">│ │ │ │ productattrvalue.vue</span><br><span class="line">│ │ │ │ skuimages-add-or-update.vue</span><br><span class="line">│ │ │ │ skuimages.vue</span><br><span class="line">│ │ │ │ skuinfo-add-or-update.vue</span><br><span class="line">│ │ │ │ skuinfo.vue</span><br><span class="line">│ │ │ │ skusaleattrvalue-add-or-update.vue</span><br><span class="line">│ │ │ │ skusaleattrvalue.vue</span><br><span class="line">│ │ │ │ spucomment-add-or-update.vue</span><br><span class="line">│ │ │ │ spucomment.vue</span><br><span class="line">│ │ │ │ spuimages-add-or-update.vue</span><br><span class="line">│ │ │ │ spuimages.vue</span><br><span class="line">│ │ │ │ spuinfo-add-or-update.vue</span><br><span class="line">│ │ │ │ spuinfo.vue</span><br><span class="line">│ │ │ │ spuinfodesc-add-or-update.vue</span><br><span class="line">│ │ │ │ spuinfodesc.vue</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─static</span><br><span class="line">│ │ │ └─templates</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─gulimall</span><br><span class="line">│ │ └─product</span><br><span class="line">│ │ GulimallProductApplicationTests.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application.properties</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─com</span><br><span class="line">│ │ │ └─atguigu</span><br><span class="line">│ │ │ └─gulimall</span><br><span class="line">│ │ │ └─product</span><br><span class="line">│ │ │ │ GulimallProductApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationController.class</span><br><span class="line">│ │ │ │ AttrController.class</span><br><span class="line">│ │ │ │ AttrGroupController.class</span><br><span class="line">│ │ │ │ BrandController.class</span><br><span class="line">│ │ │ │ CategoryBrandRelationController.class</span><br><span class="line">│ │ │ │ CategoryController.class</span><br><span class="line">│ │ │ │ CommentReplayController.class</span><br><span class="line">│ │ │ │ ProductAttrValueController.class</span><br><span class="line">│ │ │ │ SkuImagesController.class</span><br><span class="line">│ │ │ │ SkuInfoController.class</span><br><span class="line">│ │ │ │ SkuSaleAttrValueController.class</span><br><span class="line">│ │ │ │ SpuCommentController.class</span><br><span class="line">│ │ │ │ SpuImagesController.class</span><br><span class="line">│ │ │ │ SpuInfoController.class</span><br><span class="line">│ │ │ │ SpuInfoDescController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationDao.class</span><br><span class="line">│ │ │ │ AttrDao.class</span><br><span class="line">│ │ │ │ AttrGroupDao.class</span><br><span class="line">│ │ │ │ BrandDao.class</span><br><span class="line">│ │ │ │ CategoryBrandRelationDao.class</span><br><span class="line">│ │ │ │ CategoryDao.class</span><br><span class="line">│ │ │ │ CommentReplayDao.class</span><br><span class="line">│ │ │ │ ProductAttrValueDao.class</span><br><span class="line">│ │ │ │ SkuImagesDao.class</span><br><span class="line">│ │ │ │ SkuInfoDao.class</span><br><span class="line">│ │ │ │ SkuSaleAttrValueDao.class</span><br><span class="line">│ │ │ │ SpuCommentDao.class</span><br><span class="line">│ │ │ │ SpuImagesDao.class</span><br><span class="line">│ │ │ │ SpuInfoDao.class</span><br><span class="line">│ │ │ │ SpuInfoDescDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationEntity.class</span><br><span class="line">│ │ │ │ AttrEntity.class</span><br><span class="line">│ │ │ │ AttrGroupEntity.class</span><br><span class="line">│ │ │ │ BrandEntity.class</span><br><span class="line">│ │ │ │ CategoryBrandRelationEntity.class</span><br><span class="line">│ │ │ │ CategoryEntity.class</span><br><span class="line">│ │ │ │ CommentReplayEntity.class</span><br><span class="line">│ │ │ │ ProductAttrValueEntity.class</span><br><span class="line">│ │ │ │ SkuImagesEntity.class</span><br><span class="line">│ │ │ │ SkuInfoEntity.class</span><br><span class="line">│ │ │ │ SkuSaleAttrValueEntity.class</span><br><span class="line">│ │ │ │ SpuCommentEntity.class</span><br><span class="line">│ │ │ │ SpuImagesEntity.class</span><br><span class="line">│ │ │ │ SpuInfoDescEntity.class</span><br><span class="line">│ │ │ │ SpuInfoEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ AttrAttrgroupRelationService.class</span><br><span class="line">│ │ │ │ AttrGroupService.class</span><br><span class="line">│ │ │ │ AttrService.class</span><br><span class="line">│ │ │ │ BrandService.class</span><br><span class="line">│ │ │ │ CategoryBrandRelationService.class</span><br><span class="line">│ │ │ │ CategoryService.class</span><br><span class="line">│ │ │ │ CommentReplayService.class</span><br><span class="line">│ │ │ │ ProductAttrValueService.class</span><br><span class="line">│ │ │ │ SkuImagesService.class</span><br><span class="line">│ │ │ │ SkuInfoService.class</span><br><span class="line">│ │ │ │ SkuSaleAttrValueService.class</span><br><span class="line">│ │ │ │ SpuCommentService.class</span><br><span class="line">│ │ │ │ SpuImagesService.class</span><br><span class="line">│ │ │ │ SpuInfoDescService.class</span><br><span class="line">│ │ │ │ SpuInfoService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ AttrAttrgroupRelationServiceImpl.class</span><br><span class="line">│ │ │ AttrGroupServiceImpl.class</span><br><span class="line">│ │ │ AttrServiceImpl.class</span><br><span class="line">│ │ │ BrandServiceImpl.class</span><br><span class="line">│ │ │ CategoryBrandRelationServiceImpl.class</span><br><span class="line">│ │ │ CategoryServiceImpl.class</span><br><span class="line">│ │ │ CommentReplayServiceImpl.class</span><br><span class="line">│ │ │ ProductAttrValueServiceImpl.class</span><br><span class="line">│ │ │ SkuImagesServiceImpl.class</span><br><span class="line">│ │ │ SkuInfoServiceImpl.class</span><br><span class="line">│ │ │ SkuSaleAttrValueServiceImpl.class</span><br><span class="line">│ │ │ SpuCommentServiceImpl.class</span><br><span class="line">│ │ │ SpuImagesServiceImpl.class</span><br><span class="line">│ │ │ SpuInfoDescServiceImpl.class</span><br><span class="line">│ │ │ SpuInfoServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ └─product</span><br><span class="line">│ │ │ AttrAttrgroupRelationDao.xml</span><br><span class="line">│ │ │ AttrDao.xml</span><br><span class="line">│ │ │ AttrGroupDao.xml</span><br><span class="line">│ │ │ BrandDao.xml</span><br><span class="line">│ │ │ CategoryBrandRelationDao.xml</span><br><span class="line">│ │ │ CategoryDao.xml</span><br><span class="line">│ │ │ CommentReplayDao.xml</span><br><span class="line">│ │ │ ProductAttrValueDao.xml</span><br><span class="line">│ │ │ SkuImagesDao.xml</span><br><span class="line">│ │ │ SkuInfoDao.xml</span><br><span class="line">│ │ │ SkuSaleAttrValueDao.xml</span><br><span class="line">│ │ │ SpuCommentDao.xml</span><br><span class="line">│ │ │ SpuImagesDao.xml</span><br><span class="line">│ │ │ SpuInfoDao.xml</span><br><span class="line">│ │ │ SpuInfoDescDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─src</span><br><span class="line">│ │ └─views</span><br><span class="line">│ │ └─modules</span><br><span class="line">│ │ └─product</span><br><span class="line">│ │ attr-add-or-update.vue</span><br><span class="line">│ │ attr.vue</span><br><span class="line">│ │ attrattrgrouprelation-add-or-update.vue</span><br><span class="line">│ │ attrattrgrouprelation.vue</span><br><span class="line">│ │ attrgroup-add-or-update.vue</span><br><span class="line">│ │ attrgroup.vue</span><br><span class="line">│ │ brand-add-or-update.vue</span><br><span class="line">│ │ brand.vue</span><br><span class="line">│ │ category-add-or-update.vue</span><br><span class="line">│ │ category.vue</span><br><span class="line">│ │ categorybrandrelation-add-or-update.vue</span><br><span class="line">│ │ categorybrandrelation.vue</span><br><span class="line">│ │ commentreplay-add-or-update.vue</span><br><span class="line">│ │ commentreplay.vue</span><br><span class="line">│ │ productattrvalue-add-or-update.vue</span><br><span class="line">│ │ productattrvalue.vue</span><br><span class="line">│ │ skuimages-add-or-update.vue</span><br><span class="line">│ │ skuimages.vue</span><br><span class="line">│ │ skuinfo-add-or-update.vue</span><br><span class="line">│ │ skuinfo.vue</span><br><span class="line">│ │ skusaleattrvalue-add-or-update.vue</span><br><span class="line">│ │ skusaleattrvalue.vue</span><br><span class="line">│ │ spucomment-add-or-update.vue</span><br><span class="line">│ │ spucomment.vue</span><br><span class="line">│ │ spuimages-add-or-update.vue</span><br><span class="line">│ │ spuimages.vue</span><br><span class="line">│ │ spuinfo-add-or-update.vue</span><br><span class="line">│ │ spuinfo.vue</span><br><span class="line">│ │ spuinfodesc-add-or-update.vue</span><br><span class="line">│ │ spuinfodesc.vue</span><br><span class="line">│ │</span><br><span class="line">│ ├─generated-sources</span><br><span class="line">│ │ └─annotations</span><br><span class="line">│ ├─generated-test-sources</span><br><span class="line">│ │ └─test-annotations</span><br><span class="line">│ ├─maven-status</span><br><span class="line">│ │ └─maven-compiler-plugin</span><br><span class="line">│ │ └─compile</span><br><span class="line">│ │ └─default-compile</span><br><span class="line">│ │ createdFiles.lst</span><br><span class="line">│ │ inputFiles.lst</span><br><span class="line">│ │</span><br><span class="line">│ └─test-classes</span><br><span class="line">│ └─com</span><br><span class="line">│ └─atguigu</span><br><span class="line">│ └─gulimall</span><br><span class="line">│ └─product</span><br><span class="line">│ GulimallProductApplicationTests.class</span><br><span class="line">│</span><br><span class="line">├─gulimall-ware</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ gulimall-ware.iml</span><br><span class="line">│ │ HELP.md</span><br><span class="line">│ │ mvnw</span><br><span class="line">│ │ mvnw.cmd</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │</span><br><span class="line">│ ├─.mvn</span><br><span class="line">│ │ └─wrapper</span><br><span class="line">│ │ maven-wrapper.jar</span><br><span class="line">│ │ maven-wrapper.properties</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─com</span><br><span class="line">│ │ │ │ └─atguigu</span><br><span class="line">│ │ │ │ └─gulimall</span><br><span class="line">│ │ │ │ └─ware</span><br><span class="line">│ │ │ │ │ GulimallWareApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ WareInfoController.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskController.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskDetailController.java</span><br><span class="line">│ │ │ │ │ WareSkuController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ WareInfoDao.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskDao.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskDetailDao.java</span><br><span class="line">│ │ │ │ │ WareSkuDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ WareInfoEntity.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskDetailEntity.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskEntity.java</span><br><span class="line">│ │ │ │ │ WareSkuEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ WareInfoService.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskDetailService.java</span><br><span class="line">│ │ │ │ │ WareOrderTaskService.java</span><br><span class="line">│ │ │ │ │ WareSkuService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ WareInfoServiceImpl.java</span><br><span class="line">│ │ │ │ WareOrderTaskDetailServiceImpl.java</span><br><span class="line">│ │ │ │ WareOrderTaskServiceImpl.java</span><br><span class="line">│ │ │ │ WareSkuServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ └─ware</span><br><span class="line">│ │ │ │ WareInfoDao.xml</span><br><span class="line">│ │ │ │ WareOrderTaskDao.xml</span><br><span class="line">│ │ │ │ WareOrderTaskDetailDao.xml</span><br><span class="line">│ │ │ │ WareSkuDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─src</span><br><span class="line">│ │ │ └─views</span><br><span class="line">│ │ │ └─modules</span><br><span class="line">│ │ │ └─ware</span><br><span class="line">│ │ │ wareinfo-add-or-update.vue</span><br><span class="line">│ │ │ wareinfo.vue</span><br><span class="line">│ │ │ wareordertask-add-or-update.vue</span><br><span class="line">│ │ │ wareordertask.vue</span><br><span class="line">│ │ │ wareordertaskdetail-add-or-update.vue</span><br><span class="line">│ │ │ wareordertaskdetail.vue</span><br><span class="line">│ │ │ waresku-add-or-update.vue</span><br><span class="line">│ │ │ waresku.vue</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─com</span><br><span class="line">│ │ └─atguigu</span><br><span class="line">│ │ └─gulimall</span><br><span class="line">│ │ └─gulimallware</span><br><span class="line">│ │ GulimallWareApplicationTests.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─com</span><br><span class="line">│ │ │ └─atguigu</span><br><span class="line">│ │ │ └─gulimall</span><br><span class="line">│ │ │ ├─gulimallware</span><br><span class="line">│ │ │ │ GulimallWareApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─ware</span><br><span class="line">│ │ │ │ GulimallWareApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ WareInfoController.class</span><br><span class="line">│ │ │ │ WareOrderTaskController.class</span><br><span class="line">│ │ │ │ WareOrderTaskDetailController.class</span><br><span class="line">│ │ │ │ WareSkuController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ WareInfoDao.class</span><br><span class="line">│ │ │ │ WareOrderTaskDao.class</span><br><span class="line">│ │ │ │ WareOrderTaskDetailDao.class</span><br><span class="line">│ │ │ │ WareSkuDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ WareInfoEntity.class</span><br><span class="line">│ │ │ │ WareOrderTaskDetailEntity.class</span><br><span class="line">│ │ │ │ WareOrderTaskEntity.class</span><br><span class="line">│ │ │ │ WareSkuEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ WareInfoService.class</span><br><span class="line">│ │ │ │ WareOrderTaskDetailService.class</span><br><span class="line">│ │ │ │ WareOrderTaskService.class</span><br><span class="line">│ │ │ │ WareSkuService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ WareInfoServiceImpl.class</span><br><span class="line">│ │ │ WareOrderTaskDetailServiceImpl.class</span><br><span class="line">│ │ │ WareOrderTaskServiceImpl.class</span><br><span class="line">│ │ │ WareSkuServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ └─ware</span><br><span class="line">│ │ │ WareInfoDao.xml</span><br><span class="line">│ │ │ WareOrderTaskDao.xml</span><br><span class="line">│ │ │ WareOrderTaskDetailDao.xml</span><br><span class="line">│ │ │ WareSkuDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─src</span><br><span class="line">│ │ └─views</span><br><span class="line">│ │ └─modules</span><br><span class="line">│ │ └─ware</span><br><span class="line">│ │ wareinfo-add-or-update.vue</span><br><span class="line">│ │ wareinfo.vue</span><br><span class="line">│ │ wareordertask-add-or-update.vue</span><br><span class="line">│ │ wareordertask.vue</span><br><span class="line">│ │ wareordertaskdetail-add-or-update.vue</span><br><span class="line">│ │ wareordertaskdetail.vue</span><br><span class="line">│ │ waresku-add-or-update.vue</span><br><span class="line">│ │ waresku.vue</span><br><span class="line">│ │</span><br><span class="line">│ ├─generated-sources</span><br><span class="line">│ │ └─annotations</span><br><span class="line">│ ├─generated-test-sources</span><br><span class="line">│ │ └─test-annotations</span><br><span class="line">│ ├─maven-status</span><br><span class="line">│ │ └─maven-compiler-plugin</span><br><span class="line">│ │ └─compile</span><br><span class="line">│ │ └─default-compile</span><br><span class="line">│ │ createdFiles.lst</span><br><span class="line">│ │ inputFiles.lst</span><br><span class="line">│ │</span><br><span class="line">│ └─test-classes</span><br><span class="line">│ └─com</span><br><span class="line">│ └─atguigu</span><br><span class="line">│ └─gulimall</span><br><span class="line">│ └─gulimallware</span><br><span class="line">│ GulimallWareApplicationTests.class</span><br><span class="line">│</span><br><span class="line">├─renren-fast</span><br><span class="line">│ │ .gitignore</span><br><span class="line">│ │ docker-compose.yml</span><br><span class="line">│ │ Dockerfile</span><br><span class="line">│ │ LICENSE</span><br><span class="line">│ │ pom.xml</span><br><span class="line">│ │ README.md</span><br><span class="line">│ │ renren-fast.iml</span><br><span class="line">│ │</span><br><span class="line">│ ├─db</span><br><span class="line">│ │ mysql.sql</span><br><span class="line">│ │ oracle.sql</span><br><span class="line">│ │ postgresql.sql</span><br><span class="line">│ │ sqlserver.sql</span><br><span class="line">│ │</span><br><span class="line">│ ├─src</span><br><span class="line">│ │ ├─main</span><br><span class="line">│ │ │ ├─java</span><br><span class="line">│ │ │ │ └─io</span><br><span class="line">│ │ │ │ └─renren</span><br><span class="line">│ │ │ │ │ RenrenApplication.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─common</span><br><span class="line">│ │ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ │ SysLog.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─aspect</span><br><span class="line">│ │ │ │ │ │ RedisAspect.java</span><br><span class="line">│ │ │ │ │ │ SysLogAspect.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─exception</span><br><span class="line">│ │ │ │ │ │ RRException.java</span><br><span class="line">│ │ │ │ │ │ RRExceptionHandler.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─utils</span><br><span class="line">│ │ │ │ │ │ ConfigConstant.java</span><br><span class="line">│ │ │ │ │ │ Constant.java</span><br><span class="line">│ │ │ │ │ │ DateUtils.java</span><br><span class="line">│ │ │ │ │ │ HttpContextUtils.java</span><br><span class="line">│ │ │ │ │ │ IPUtils.java</span><br><span class="line">│ │ │ │ │ │ MapUtils.java</span><br><span class="line">│ │ │ │ │ │ PageUtils.java</span><br><span class="line">│ │ │ │ │ │ Query.java</span><br><span class="line">│ │ │ │ │ │ R.java</span><br><span class="line">│ │ │ │ │ │ RedisKeys.java</span><br><span class="line">│ │ │ │ │ │ RedisUtils.java</span><br><span class="line">│ │ │ │ │ │ ShiroUtils.java</span><br><span class="line">│ │ │ │ │ │ SpringContextUtils.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─validator</span><br><span class="line">│ │ │ │ │ │ │ Assert.java</span><br><span class="line">│ │ │ │ │ │ │ ValidatorUtils.java</span><br><span class="line">│ │ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ │ └─group</span><br><span class="line">│ │ │ │ │ │ AddGroup.java</span><br><span class="line">│ │ │ │ │ │ AliyunGroup.java</span><br><span class="line">│ │ │ │ │ │ Group.java</span><br><span class="line">│ │ │ │ │ │ QcloudGroup.java</span><br><span class="line">│ │ │ │ │ │ QiniuGroup.java</span><br><span class="line">│ │ │ │ │ │ UpdateGroup.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─xss</span><br><span class="line">│ │ │ │ │ HTMLFilter.java</span><br><span class="line">│ │ │ │ │ SQLFilter.java</span><br><span class="line">│ │ │ │ │ XssFilter.java</span><br><span class="line">│ │ │ │ │ XssHttpServletRequestWrapper.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ CorsConfig.java</span><br><span class="line">│ │ │ │ │ FilterConfig.java</span><br><span class="line">│ │ │ │ │ KaptchaConfig.java</span><br><span class="line">│ │ │ │ │ MybatisPlusConfig.java</span><br><span class="line">│ │ │ │ │ RedisConfig.java</span><br><span class="line">│ │ │ │ │ ShiroConfig.java</span><br><span class="line">│ │ │ │ │ SwaggerConfig.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─datasource</span><br><span class="line">│ │ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ │ DataSource.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─aspect</span><br><span class="line">│ │ │ │ │ │ DataSourceAspect.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ │ DynamicContextHolder.java</span><br><span class="line">│ │ │ │ │ │ DynamicDataSource.java</span><br><span class="line">│ │ │ │ │ │ DynamicDataSourceConfig.java</span><br><span class="line">│ │ │ │ │ │ DynamicDataSourceFactory.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─properties</span><br><span class="line">│ │ │ │ │ DataSourceProperties.java</span><br><span class="line">│ │ │ │ │ DynamicDataSourceProperties.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─modules</span><br><span class="line">│ │ │ │ ├─app</span><br><span class="line">│ │ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ │ Login.java</span><br><span class="line">│ │ │ │ │ │ LoginUser.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ │ WebMvcConfig.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ │ AppLoginController.java</span><br><span class="line">│ │ │ │ │ │ AppRegisterController.java</span><br><span class="line">│ │ │ │ │ │ AppTestController.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ │ UserDao.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ │ UserEntity.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─form</span><br><span class="line">│ │ │ │ │ │ LoginForm.java</span><br><span class="line">│ │ │ │ │ │ RegisterForm.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─interceptor</span><br><span class="line">│ │ │ │ │ │ AuthorizationInterceptor.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─resolver</span><br><span class="line">│ │ │ │ │ │ LoginUserHandlerMethodArgumentResolver.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─service</span><br><span class="line">│ │ │ │ │ │ │ UserService.java</span><br><span class="line">│ │ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ │ └─impl</span><br><span class="line">│ │ │ │ │ │ UserServiceImpl.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─utils</span><br><span class="line">│ │ │ │ │ JwtUtils.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─job</span><br><span class="line">│ │ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ │ ScheduleConfig.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ │ ScheduleJobController.java</span><br><span class="line">│ │ │ │ │ │ ScheduleJobLogController.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ │ ScheduleJobDao.java</span><br><span class="line">│ │ │ │ │ │ ScheduleJobLogDao.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ │ ScheduleJobEntity.java</span><br><span class="line">│ │ │ │ │ │ ScheduleJobLogEntity.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─service</span><br><span class="line">│ │ │ │ │ │ │ ScheduleJobLogService.java</span><br><span class="line">│ │ │ │ │ │ │ ScheduleJobService.java</span><br><span class="line">│ │ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ │ └─impl</span><br><span class="line">│ │ │ │ │ │ ScheduleJobLogServiceImpl.java</span><br><span class="line">│ │ │ │ │ │ ScheduleJobServiceImpl.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─task</span><br><span class="line">│ │ │ │ │ │ ITask.java</span><br><span class="line">│ │ │ │ │ │ TestTask.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─utils</span><br><span class="line">│ │ │ │ │ ScheduleJob.java</span><br><span class="line">│ │ │ │ │ ScheduleUtils.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─oss</span><br><span class="line">│ │ │ │ │ ├─cloud</span><br><span class="line">│ │ │ │ │ │ AliyunCloudStorageService.java</span><br><span class="line">│ │ │ │ │ │ CloudStorageConfig.java</span><br><span class="line">│ │ │ │ │ │ CloudStorageService.java</span><br><span class="line">│ │ │ │ │ │ OSSFactory.java</span><br><span class="line">│ │ │ │ │ │ QcloudCloudStorageService.java</span><br><span class="line">│ │ │ │ │ │ QiniuCloudStorageService.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ │ SysOssController.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ │ SysOssDao.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ │ SysOssEntity.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ │ SysOssService.java</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─impl</span><br><span class="line">│ │ │ │ │ SysOssServiceImpl.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─sys</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ AbstractController.java</span><br><span class="line">│ │ │ │ │ SysConfigController.java</span><br><span class="line">│ │ │ │ │ SysLogController.java</span><br><span class="line">│ │ │ │ │ SysLoginController.java</span><br><span class="line">│ │ │ │ │ SysMenuController.java</span><br><span class="line">│ │ │ │ │ SysRoleController.java</span><br><span class="line">│ │ │ │ │ SysUserController.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ SysCaptchaDao.java</span><br><span class="line">│ │ │ │ │ SysConfigDao.java</span><br><span class="line">│ │ │ │ │ SysLogDao.java</span><br><span class="line">│ │ │ │ │ SysMenuDao.java</span><br><span class="line">│ │ │ │ │ SysRoleDao.java</span><br><span class="line">│ │ │ │ │ SysRoleMenuDao.java</span><br><span class="line">│ │ │ │ │ SysUserDao.java</span><br><span class="line">│ │ │ │ │ SysUserRoleDao.java</span><br><span class="line">│ │ │ │ │ SysUserTokenDao.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ SysCaptchaEntity.java</span><br><span class="line">│ │ │ │ │ SysConfigEntity.java</span><br><span class="line">│ │ │ │ │ SysLogEntity.java</span><br><span class="line">│ │ │ │ │ SysMenuEntity.java</span><br><span class="line">│ │ │ │ │ SysRoleEntity.java</span><br><span class="line">│ │ │ │ │ SysRoleMenuEntity.java</span><br><span class="line">│ │ │ │ │ SysUserEntity.java</span><br><span class="line">│ │ │ │ │ SysUserRoleEntity.java</span><br><span class="line">│ │ │ │ │ SysUserTokenEntity.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─form</span><br><span class="line">│ │ │ │ │ PasswordForm.java</span><br><span class="line">│ │ │ │ │ SysLoginForm.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─oauth2</span><br><span class="line">│ │ │ │ │ OAuth2Filter.java</span><br><span class="line">│ │ │ │ │ OAuth2Realm.java</span><br><span class="line">│ │ │ │ │ OAuth2Token.java</span><br><span class="line">│ │ │ │ │ TokenGenerator.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─redis</span><br><span class="line">│ │ │ │ │ SysConfigRedis.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ ShiroService.java</span><br><span class="line">│ │ │ │ │ SysCaptchaService.java</span><br><span class="line">│ │ │ │ │ SysConfigService.java</span><br><span class="line">│ │ │ │ │ SysLogService.java</span><br><span class="line">│ │ │ │ │ SysMenuService.java</span><br><span class="line">│ │ │ │ │ SysRoleMenuService.java</span><br><span class="line">│ │ │ │ │ SysRoleService.java</span><br><span class="line">│ │ │ │ │ SysUserRoleService.java</span><br><span class="line">│ │ │ │ │ SysUserService.java</span><br><span class="line">│ │ │ │ │ SysUserTokenService.java</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ ShiroServiceImpl.java</span><br><span class="line">│ │ │ │ SysCaptchaServiceImpl.java</span><br><span class="line">│ │ │ │ SysConfigServiceImpl.java</span><br><span class="line">│ │ │ │ SysLogServiceImpl.java</span><br><span class="line">│ │ │ │ SysMenuServiceImpl.java</span><br><span class="line">│ │ │ │ SysRoleMenuServiceImpl.java</span><br><span class="line">│ │ │ │ SysRoleServiceImpl.java</span><br><span class="line">│ │ │ │ SysUserRoleServiceImpl.java</span><br><span class="line">│ │ │ │ SysUserServiceImpl.java</span><br><span class="line">│ │ │ │ SysUserTokenServiceImpl.java</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─resources</span><br><span class="line">│ │ │ │ application-dev.yml</span><br><span class="line">│ │ │ │ application-prod.yml</span><br><span class="line">│ │ │ │ application-test.yml</span><br><span class="line">│ │ │ │ application.yml</span><br><span class="line">│ │ │ │ banner.txt</span><br><span class="line">│ │ │ │ logback-spring.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─mapper</span><br><span class="line">│ │ │ │ ├─app</span><br><span class="line">│ │ │ │ │ UserDao.xml</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─job</span><br><span class="line">│ │ │ │ │ ScheduleJobDao.xml</span><br><span class="line">│ │ │ │ │ ScheduleJobLogDao.xml</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─oss</span><br><span class="line">│ │ │ │ │ SysOssDao.xml</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─sys</span><br><span class="line">│ │ │ │ SysConfigDao.xml</span><br><span class="line">│ │ │ │ SysLogDao.xml</span><br><span class="line">│ │ │ │ SysMenuDao.xml</span><br><span class="line">│ │ │ │ SysRoleDao.xml</span><br><span class="line">│ │ │ │ SysRoleMenuDao.xml</span><br><span class="line">│ │ │ │ SysUserDao.xml</span><br><span class="line">│ │ │ │ SysUserRoleDao.xml</span><br><span class="line">│ │ │ │ SysUserTokenDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─static</span><br><span class="line">│ │ │ │ favicon.ico</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─swagger</span><br><span class="line">│ │ │ │ favicon-16x16.png</span><br><span class="line">│ │ │ │ favicon-32x32.png</span><br><span class="line">│ │ │ │ index.html</span><br><span class="line">│ │ │ │ index.yaml</span><br><span class="line">│ │ │ │ o2c.html</span><br><span class="line">│ │ │ │ oauth2-redirect.html</span><br><span class="line">│ │ │ │ swagger-ui-bundle.js</span><br><span class="line">│ │ │ │ swagger-ui-bundle.js.map</span><br><span class="line">│ │ │ │ swagger-ui-standalone-preset.js</span><br><span class="line">│ │ │ │ swagger-ui-standalone-preset.js.map</span><br><span class="line">│ │ │ │ swagger-ui.css</span><br><span class="line">│ │ │ │ swagger-ui.css.map</span><br><span class="line">│ │ │ │ swagger-ui.js</span><br><span class="line">│ │ │ │ swagger-ui.js.map</span><br><span class="line">│ │ │ │ swagger-ui.min.js</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─css</span><br><span class="line">│ │ │ │ print.css</span><br><span class="line">│ │ │ │ reset.css</span><br><span class="line">│ │ │ │ screen.css</span><br><span class="line">│ │ │ │ style.css</span><br><span class="line">│ │ │ │ typography.css</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─fonts</span><br><span class="line">│ │ │ │ DroidSans-Bold.ttf</span><br><span class="line">│ │ │ │ DroidSans.ttf</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─images</span><br><span class="line">│ │ │ │ collapse.gif</span><br><span class="line">│ │ │ │ expand.gif</span><br><span class="line">│ │ │ │ explorer_icons.png</span><br><span class="line">│ │ │ │ favicon-16x16.png</span><br><span class="line">│ │ │ │ favicon-32x32.png</span><br><span class="line">│ │ │ │ favicon.ico</span><br><span class="line">│ │ │ │ logo_small.png</span><br><span class="line">│ │ │ │ pet_store_api.png</span><br><span class="line">│ │ │ │ throbber.gif</span><br><span class="line">│ │ │ │ wordnik_api.png</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─lang</span><br><span class="line">│ │ │ │ en.js</span><br><span class="line">│ │ │ │ translator.js</span><br><span class="line">│ │ │ │ zh-cn.js</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─lib</span><br><span class="line">│ │ │ backbone-min.js</span><br><span class="line">│ │ │ es5-shim.js</span><br><span class="line">│ │ │ handlebars-4.0.5.js</span><br><span class="line">│ │ │ highlight.9.1.0.pack.js</span><br><span class="line">│ │ │ highlight.9.1.0.pack_extended.js</span><br><span class="line">│ │ │ jquery-1.8.0.min.js</span><br><span class="line">│ │ │ jquery.ba-bbq.min.js</span><br><span class="line">│ │ │ jquery.slideto.min.js</span><br><span class="line">│ │ │ jquery.wiggle.min.js</span><br><span class="line">│ │ │ js-yaml.min.js</span><br><span class="line">│ │ │ jsoneditor.min.js</span><br><span class="line">│ │ │ lodash.min.js</span><br><span class="line">│ │ │ marked.js</span><br><span class="line">│ │ │ object-assign-pollyfill.js</span><br><span class="line">│ │ │ sanitize-html.min.js</span><br><span class="line">│ │ │ swagger-oauth.js</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─test</span><br><span class="line">│ │ └─java</span><br><span class="line">│ │ └─io</span><br><span class="line">│ │ └─renren</span><br><span class="line">│ │ │ DynamicDataSourceTest.java</span><br><span class="line">│ │ │ JwtTest.java</span><br><span class="line">│ │ │ RedisTest.java</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─service</span><br><span class="line">│ │ DynamicDataSourceTestService.java</span><br><span class="line">│ │</span><br><span class="line">│ └─target</span><br><span class="line">│ ├─classes</span><br><span class="line">│ │ │ application-dev.yml</span><br><span class="line">│ │ │ application-prod.yml</span><br><span class="line">│ │ │ application-test.yml</span><br><span class="line">│ │ │ application.yml</span><br><span class="line">│ │ │ banner.txt</span><br><span class="line">│ │ │ logback-spring.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─io</span><br><span class="line">│ │ │ └─renren</span><br><span class="line">│ │ │ │ RenrenApplication.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─common</span><br><span class="line">│ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ SysLog.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─aspect</span><br><span class="line">│ │ │ │ │ RedisAspect.class</span><br><span class="line">│ │ │ │ │ SysLogAspect.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─exception</span><br><span class="line">│ │ │ │ │ RRException.class</span><br><span class="line">│ │ │ │ │ RRExceptionHandler.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─utils</span><br><span class="line">│ │ │ │ │ ConfigConstant.class</span><br><span class="line">│ │ │ │ │ Constant$CloudService.class</span><br><span class="line">│ │ │ │ │ Constant$MenuType.class</span><br><span class="line">│ │ │ │ │ Constant$ScheduleStatus.class</span><br><span class="line">│ │ │ │ │ Constant.class</span><br><span class="line">│ │ │ │ │ DateUtils.class</span><br><span class="line">│ │ │ │ │ HttpContextUtils.class</span><br><span class="line">│ │ │ │ │ IPUtils.class</span><br><span class="line">│ │ │ │ │ MapUtils.class</span><br><span class="line">│ │ │ │ │ PageUtils.class</span><br><span class="line">│ │ │ │ │ Query.class</span><br><span class="line">│ │ │ │ │ R.class</span><br><span class="line">│ │ │ │ │ RedisKeys.class</span><br><span class="line">│ │ │ │ │ RedisUtils.class</span><br><span class="line">│ │ │ │ │ ShiroUtils.class</span><br><span class="line">│ │ │ │ │ SpringContextUtils.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─validator</span><br><span class="line">│ │ │ │ │ │ Assert.class</span><br><span class="line">│ │ │ │ │ │ ValidatorUtils.class</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─group</span><br><span class="line">│ │ │ │ │ AddGroup.class</span><br><span class="line">│ │ │ │ │ AliyunGroup.class</span><br><span class="line">│ │ │ │ │ Group.class</span><br><span class="line">│ │ │ │ │ QcloudGroup.class</span><br><span class="line">│ │ │ │ │ QiniuGroup.class</span><br><span class="line">│ │ │ │ │ UpdateGroup.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─xss</span><br><span class="line">│ │ │ │ HTMLFilter.class</span><br><span class="line">│ │ │ │ SQLFilter.class</span><br><span class="line">│ │ │ │ XssFilter.class</span><br><span class="line">│ │ │ │ XssHttpServletRequestWrapper$1.class</span><br><span class="line">│ │ │ │ XssHttpServletRequestWrapper.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─config</span><br><span class="line">│ │ │ │ CorsConfig.class</span><br><span class="line">│ │ │ │ FilterConfig.class</span><br><span class="line">│ │ │ │ KaptchaConfig.class</span><br><span class="line">│ │ │ │ MybatisPlusConfig.class</span><br><span class="line">│ │ │ │ RedisConfig.class</span><br><span class="line">│ │ │ │ ShiroConfig.class</span><br><span class="line">│ │ │ │ SwaggerConfig.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─datasource</span><br><span class="line">│ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ DataSource.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─aspect</span><br><span class="line">│ │ │ │ │ DataSourceAspect.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ DynamicContextHolder$1.class</span><br><span class="line">│ │ │ │ │ DynamicContextHolder.class</span><br><span class="line">│ │ │ │ │ DynamicDataSource.class</span><br><span class="line">│ │ │ │ │ DynamicDataSourceConfig.class</span><br><span class="line">│ │ │ │ │ DynamicDataSourceFactory.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─properties</span><br><span class="line">│ │ │ │ DataSourceProperties.class</span><br><span class="line">│ │ │ │ DynamicDataSourceProperties.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─modules</span><br><span class="line">│ │ │ ├─app</span><br><span class="line">│ │ │ │ ├─annotation</span><br><span class="line">│ │ │ │ │ Login.class</span><br><span class="line">│ │ │ │ │ LoginUser.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ WebMvcConfig.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ AppLoginController.class</span><br><span class="line">│ │ │ │ │ AppRegisterController.class</span><br><span class="line">│ │ │ │ │ AppTestController.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ UserDao.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ UserEntity.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─form</span><br><span class="line">│ │ │ │ │ LoginForm.class</span><br><span class="line">│ │ │ │ │ RegisterForm.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─interceptor</span><br><span class="line">│ │ │ │ │ AuthorizationInterceptor.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─resolver</span><br><span class="line">│ │ │ │ │ LoginUserHandlerMethodArgumentResolver.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─service</span><br><span class="line">│ │ │ │ │ │ UserService.class</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─impl</span><br><span class="line">│ │ │ │ │ UserServiceImpl.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─utils</span><br><span class="line">│ │ │ │ JwtUtils.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─job</span><br><span class="line">│ │ │ │ ├─config</span><br><span class="line">│ │ │ │ │ ScheduleConfig.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ ScheduleJobController.class</span><br><span class="line">│ │ │ │ │ ScheduleJobLogController.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ ScheduleJobDao.class</span><br><span class="line">│ │ │ │ │ ScheduleJobLogDao.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ ScheduleJobEntity.class</span><br><span class="line">│ │ │ │ │ ScheduleJobLogEntity.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─service</span><br><span class="line">│ │ │ │ │ │ ScheduleJobLogService.class</span><br><span class="line">│ │ │ │ │ │ ScheduleJobService.class</span><br><span class="line">│ │ │ │ │ │</span><br><span class="line">│ │ │ │ │ └─impl</span><br><span class="line">│ │ │ │ │ ScheduleJobLogServiceImpl.class</span><br><span class="line">│ │ │ │ │ ScheduleJobServiceImpl.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─task</span><br><span class="line">│ │ │ │ │ ITask.class</span><br><span class="line">│ │ │ │ │ TestTask.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─utils</span><br><span class="line">│ │ │ │ ScheduleJob.class</span><br><span class="line">│ │ │ │ ScheduleUtils.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─oss</span><br><span class="line">│ │ │ │ ├─cloud</span><br><span class="line">│ │ │ │ │ AliyunCloudStorageService.class</span><br><span class="line">│ │ │ │ │ CloudStorageConfig.class</span><br><span class="line">│ │ │ │ │ CloudStorageService.class</span><br><span class="line">│ │ │ │ │ OSSFactory.class</span><br><span class="line">│ │ │ │ │ QcloudCloudStorageService.class</span><br><span class="line">│ │ │ │ │ QiniuCloudStorageService.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─controller</span><br><span class="line">│ │ │ │ │ SysOssController.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─dao</span><br><span class="line">│ │ │ │ │ SysOssDao.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ ├─entity</span><br><span class="line">│ │ │ │ │ SysOssEntity.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─service</span><br><span class="line">│ │ │ │ │ SysOssService.class</span><br><span class="line">│ │ │ │ │</span><br><span class="line">│ │ │ │ └─impl</span><br><span class="line">│ │ │ │ SysOssServiceImpl.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─sys</span><br><span class="line">│ │ │ ├─controller</span><br><span class="line">│ │ │ │ AbstractController.class</span><br><span class="line">│ │ │ │ SysConfigController.class</span><br><span class="line">│ │ │ │ SysLogController.class</span><br><span class="line">│ │ │ │ SysLoginController.class</span><br><span class="line">│ │ │ │ SysMenuController.class</span><br><span class="line">│ │ │ │ SysRoleController.class</span><br><span class="line">│ │ │ │ SysUserController.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─dao</span><br><span class="line">│ │ │ │ SysCaptchaDao.class</span><br><span class="line">│ │ │ │ SysConfigDao.class</span><br><span class="line">│ │ │ │ SysLogDao.class</span><br><span class="line">│ │ │ │ SysMenuDao.class</span><br><span class="line">│ │ │ │ SysRoleDao.class</span><br><span class="line">│ │ │ │ SysRoleMenuDao.class</span><br><span class="line">│ │ │ │ SysUserDao.class</span><br><span class="line">│ │ │ │ SysUserRoleDao.class</span><br><span class="line">│ │ │ │ SysUserTokenDao.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─entity</span><br><span class="line">│ │ │ │ SysCaptchaEntity.class</span><br><span class="line">│ │ │ │ SysConfigEntity.class</span><br><span class="line">│ │ │ │ SysLogEntity.class</span><br><span class="line">│ │ │ │ SysMenuEntity.class</span><br><span class="line">│ │ │ │ SysRoleEntity.class</span><br><span class="line">│ │ │ │ SysRoleMenuEntity.class</span><br><span class="line">│ │ │ │ SysUserEntity.class</span><br><span class="line">│ │ │ │ SysUserRoleEntity.class</span><br><span class="line">│ │ │ │ SysUserTokenEntity.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─form</span><br><span class="line">│ │ │ │ PasswordForm.class</span><br><span class="line">│ │ │ │ SysLoginForm.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─oauth2</span><br><span class="line">│ │ │ │ OAuth2Filter.class</span><br><span class="line">│ │ │ │ OAuth2Realm.class</span><br><span class="line">│ │ │ │ OAuth2Token.class</span><br><span class="line">│ │ │ │ TokenGenerator.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─redis</span><br><span class="line">│ │ │ │ SysConfigRedis.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─service</span><br><span class="line">│ │ │ │ ShiroService.class</span><br><span class="line">│ │ │ │ SysCaptchaService.class</span><br><span class="line">│ │ │ │ SysConfigService.class</span><br><span class="line">│ │ │ │ SysLogService.class</span><br><span class="line">│ │ │ │ SysMenuService.class</span><br><span class="line">│ │ │ │ SysRoleMenuService.class</span><br><span class="line">│ │ │ │ SysRoleService.class</span><br><span class="line">│ │ │ │ SysUserRoleService.class</span><br><span class="line">│ │ │ │ SysUserService.class</span><br><span class="line">│ │ │ │ SysUserTokenService.class</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─impl</span><br><span class="line">│ │ │ ShiroServiceImpl.class</span><br><span class="line">│ │ │ SysCaptchaServiceImpl.class</span><br><span class="line">│ │ │ SysConfigServiceImpl.class</span><br><span class="line">│ │ │ SysLogServiceImpl.class</span><br><span class="line">│ │ │ SysMenuServiceImpl.class</span><br><span class="line">│ │ │ SysRoleMenuServiceImpl.class</span><br><span class="line">│ │ │ SysRoleServiceImpl.class</span><br><span class="line">│ │ │ SysUserRoleServiceImpl.class</span><br><span class="line">│ │ │ SysUserServiceImpl.class</span><br><span class="line">│ │ │ SysUserTokenServiceImpl.class</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─mapper</span><br><span class="line">│ │ │ ├─app</span><br><span class="line">│ │ │ │ UserDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─job</span><br><span class="line">│ │ │ │ ScheduleJobDao.xml</span><br><span class="line">│ │ │ │ ScheduleJobLogDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ ├─oss</span><br><span class="line">│ │ │ │ SysOssDao.xml</span><br><span class="line">│ │ │ │</span><br><span class="line">│ │ │ └─sys</span><br><span class="line">│ │ │ SysConfigDao.xml</span><br><span class="line">│ │ │ SysLogDao.xml</span><br><span class="line">│ │ │ SysMenuDao.xml</span><br><span class="line">│ │ │ SysRoleDao.xml</span><br><span class="line">│ │ │ SysRoleMenuDao.xml</span><br><span class="line">│ │ │ SysUserDao.xml</span><br><span class="line">│ │ │ SysUserRoleDao.xml</span><br><span class="line">│ │ │ SysUserTokenDao.xml</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─META-INF</span><br><span class="line">│ │ │ spring-configuration-metadata.json</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─static</span><br><span class="line">│ │ │ favicon.ico</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─swagger</span><br><span class="line">│ │ │ favicon-16x16.png</span><br><span class="line">│ │ │ favicon-32x32.png</span><br><span class="line">│ │ │ index.html</span><br><span class="line">│ │ │ index.yaml</span><br><span class="line">│ │ │ o2c.html</span><br><span class="line">│ │ │ oauth2-redirect.html</span><br><span class="line">│ │ │ swagger-ui-bundle.js</span><br><span class="line">│ │ │ swagger-ui-bundle.js.map</span><br><span class="line">│ │ │ swagger-ui-standalone-preset.js</span><br><span class="line">│ │ │ swagger-ui-standalone-preset.js.map</span><br><span class="line">│ │ │ swagger-ui.css</span><br><span class="line">│ │ │ swagger-ui.css.map</span><br><span class="line">│ │ │ swagger-ui.js</span><br><span class="line">│ │ │ swagger-ui.js.map</span><br><span class="line">│ │ │ swagger-ui.min.js</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─css</span><br><span class="line">│ │ │ print.css</span><br><span class="line">│ │ │ reset.css</span><br><span class="line">│ │ │ screen.css</span><br><span class="line">│ │ │ style.css</span><br><span class="line">│ │ │ typography.css</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─fonts</span><br><span class="line">│ │ │ DroidSans-Bold.ttf</span><br><span class="line">│ │ │ DroidSans.ttf</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─images</span><br><span class="line">│ │ │ collapse.gif</span><br><span class="line">│ │ │ expand.gif</span><br><span class="line">│ │ │ explorer_icons.png</span><br><span class="line">│ │ │ favicon-16x16.png</span><br><span class="line">│ │ │ favicon-32x32.png</span><br><span class="line">│ │ │ favicon.ico</span><br><span class="line">│ │ │ logo_small.png</span><br><span class="line">│ │ │ pet_store_api.png</span><br><span class="line">│ │ │ throbber.gif</span><br><span class="line">│ │ │ wordnik_api.png</span><br><span class="line">│ │ │</span><br><span class="line">│ │ ├─lang</span><br><span class="line">│ │ │ en.js</span><br><span class="line">│ │ │ translator.js</span><br><span class="line">│ │ │ zh-cn.js</span><br><span class="line">│ │ │</span><br><span class="line">│ │ └─lib</span><br><span class="line">│ │ backbone-min.js</span><br><span class="line">│ │ es5-shim.js</span><br><span class="line">│ │ handlebars-4.0.5.js</span><br><span class="line">│ │ highlight.9.1.0.pack.js</span><br><span class="line">│ │ highlight.9.1.0.pack_extended.js</span><br><span class="line">│ │ jquery-1.8.0.min.js</span><br><span class="line">│ │ jquery.ba-bbq.min.js</span><br><span class="line">│ │ jquery.slideto.min.js</span><br><span class="line">│ │ jquery.wiggle.min.js</span><br><span class="line">│ │ js-yaml.min.js</span><br><span class="line">│ │ jsoneditor.min.js</span><br><span class="line">│ │ lodash.min.js</span><br><span class="line">│ │ marked.js</span><br><span class="line">│ │ object-assign-pollyfill.js</span><br><span class="line">│ │ sanitize-html.min.js</span><br><span class="line">│ │ swagger-oauth.js</span><br><span class="line">│ │</span><br><span class="line">│ └─generated-sources</span><br><span class="line">│ └─annotations</span><br><span class="line">└─renren-generator</span><br><span class="line"> │ .gitignore</span><br><span class="line"> │ LICENSE</span><br><span class="line"> │ pom.xml</span><br><span class="line"> │ README.md</span><br><span class="line"> │ renren-generator.iml</span><br><span class="line"> │</span><br><span class="line"> ├─src</span><br><span class="line"> │ ├─main</span><br><span class="line"> │ │ ├─java</span><br><span class="line"> │ │ │ └─io</span><br><span class="line"> │ │ │ └─renren</span><br><span class="line"> │ │ │ │ RenrenApplicationGenerator.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─adaptor</span><br><span class="line"> │ │ │ │ MongoTableInfoAdaptor.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─config</span><br><span class="line"> │ │ │ │ DbConfig.java</span><br><span class="line"> │ │ │ │ MongoCondition.java</span><br><span class="line"> │ │ │ │ MongoConfig.java</span><br><span class="line"> │ │ │ │ MongoManager.java</span><br><span class="line"> │ │ │ │ MongoNullCondition.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─controller</span><br><span class="line"> │ │ │ │ SysGeneratorController.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─dao</span><br><span class="line"> │ │ │ │ GeneratorDao.java</span><br><span class="line"> │ │ │ │ MongoDBGeneratorDao.java</span><br><span class="line"> │ │ │ │ MySQLGeneratorDao.java</span><br><span class="line"> │ │ │ │ OracleGeneratorDao.java</span><br><span class="line"> │ │ │ │ PostgreSQLGeneratorDao.java</span><br><span class="line"> │ │ │ │ SQLServerGeneratorDao.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─entity</span><br><span class="line"> │ │ │ │ │ ColumnEntity.java</span><br><span class="line"> │ │ │ │ │ TableEntity.java</span><br><span class="line"> │ │ │ │ │</span><br><span class="line"> │ │ │ │ └─mongo</span><br><span class="line"> │ │ │ │ MongoDefinition.java</span><br><span class="line"> │ │ │ │ MongoGeneratorEntity.java</span><br><span class="line"> │ │ │ │ Type.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─factory</span><br><span class="line"> │ │ │ │ MongoDBCollectionFactory.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─service</span><br><span class="line"> │ │ │ │ SysGeneratorService.java</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─utils</span><br><span class="line"> │ │ │ Constant.java</span><br><span class="line"> │ │ │ DateUtils.java</span><br><span class="line"> │ │ │ GenUtils.java</span><br><span class="line"> │ │ │ MongoScanner.java</span><br><span class="line"> │ │ │ PageUtils.java</span><br><span class="line"> │ │ │ Query.java</span><br><span class="line"> │ │ │ R.java</span><br><span class="line"> │ │ │ RRException.java</span><br><span class="line"> │ │ │ RRExceptionHandler.java</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─resources</span><br><span class="line"> │ │ │ application.yml</span><br><span class="line"> │ │ │ generator.properties</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─mapper</span><br><span class="line"> │ │ │ MySQLGeneratorDao.xml</span><br><span class="line"> │ │ │ OracleGeneratorDao.xml</span><br><span class="line"> │ │ │ PostgreSQLGeneratorDao.xml</span><br><span class="line"> │ │ │ SQLServerGeneratorDao.xml</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─static</span><br><span class="line"> │ │ │ │ favicon.ico</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─css</span><br><span class="line"> │ │ │ │ AdminLTE.min.css</span><br><span class="line"> │ │ │ │ all-skins.min.css</span><br><span class="line"> │ │ │ │ bootstrap.min.css</span><br><span class="line"> │ │ │ │ font-awesome.min.css</span><br><span class="line"> │ │ │ │ main.css</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─fonts</span><br><span class="line"> │ │ │ │ fontawesome-webfont.eot</span><br><span class="line"> │ │ │ │ fontawesome-webfont.svg</span><br><span class="line"> │ │ │ │ fontawesome-webfont.ttf</span><br><span class="line"> │ │ │ │ fontawesome-webfont.woff</span><br><span class="line"> │ │ │ │ fontawesome-webfont.woff2</span><br><span class="line"> │ │ │ │ FontAwesome.otf</span><br><span class="line"> │ │ │ │ glyphicons-halflings-regular.eot</span><br><span class="line"> │ │ │ │ glyphicons-halflings-regular.svg</span><br><span class="line"> │ │ │ │ glyphicons-halflings-regular.ttf</span><br><span class="line"> │ │ │ │ glyphicons-halflings-regular.woff</span><br><span class="line"> │ │ │ │ glyphicons-halflings-regular.woff2</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─js</span><br><span class="line"> │ │ │ │ common.js</span><br><span class="line"> │ │ │ │ generator.js</span><br><span class="line"> │ │ │ │ index.js</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─libs</span><br><span class="line"> │ │ │ │ app.js</span><br><span class="line"> │ │ │ │ app.min.js</span><br><span class="line"> │ │ │ │ bootstrap.min.js</span><br><span class="line"> │ │ │ │ fastclick.min.js</span><br><span class="line"> │ │ │ │ jquery.min.js</span><br><span class="line"> │ │ │ │ jquery.slimscroll.min.js</span><br><span class="line"> │ │ │ │ router.js</span><br><span class="line"> │ │ │ │ vue.min.js</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─plugins</span><br><span class="line"> │ │ │ ├─jqgrid</span><br><span class="line"> │ │ │ │ grid.locale-cn.js</span><br><span class="line"> │ │ │ │ jquery.jqGrid.min.js</span><br><span class="line"> │ │ │ │ ui.jqgrid-bootstrap-ui.css</span><br><span class="line"> │ │ │ │ ui.jqgrid-bootstrap.css</span><br><span class="line"> │ │ │ │ ui.jqgrid.css</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─layer</span><br><span class="line"> │ │ │ │ layer.js</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ ├─mobile</span><br><span class="line"> │ │ │ │ │ layer.js</span><br><span class="line"> │ │ │ │ │</span><br><span class="line"> │ │ │ │ └─need</span><br><span class="line"> │ │ │ │ layer.css</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─skin</span><br><span class="line"> │ │ │ ├─default</span><br><span class="line"> │ │ │ │ icon-ext.png</span><br><span class="line"> │ │ │ │ icon.png</span><br><span class="line"> │ │ │ │ layer.css</span><br><span class="line"> │ │ │ │ loading-0.gif</span><br><span class="line"> │ │ │ │ loading-1.gif</span><br><span class="line"> │ │ │ │ loading-2.gif</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─moon</span><br><span class="line"> │ │ │ default.png</span><br><span class="line"> │ │ │ style.css</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─template</span><br><span class="line"> │ │ │ add-or-update.vue.vm</span><br><span class="line"> │ │ │ Controller.java.vm</span><br><span class="line"> │ │ │ Dao.java.vm</span><br><span class="line"> │ │ │ Dao.xml.vm</span><br><span class="line"> │ │ │ Entity.java.vm</span><br><span class="line"> │ │ │ index.vue.vm</span><br><span class="line"> │ │ │ menu.sql.vm</span><br><span class="line"> │ │ │ MongoChildrenEntity.java.vm</span><br><span class="line"> │ │ │ MongoEntity.java.vm</span><br><span class="line"> │ │ │ Service.java.vm</span><br><span class="line"> │ │ │ ServiceImpl.java.vm</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─views</span><br><span class="line"> │ │ generator.html</span><br><span class="line"> │ │ index.html</span><br><span class="line"> │ │ main.html</span><br><span class="line"> │ │</span><br><span class="line"> │ └─test</span><br><span class="line"> │ └─java</span><br><span class="line"> │ └─io</span><br><span class="line"> │ └─renren</span><br><span class="line"> │ RenrenApplicationTests.java</span><br><span class="line"> │</span><br><span class="line"> └─target</span><br><span class="line"> ├─classes</span><br><span class="line"> │ │ application.yml</span><br><span class="line"> │ │ generator.properties</span><br><span class="line"> │ │</span><br><span class="line"> │ ├─io</span><br><span class="line"> │ │ └─renren</span><br><span class="line"> │ │ │ RenrenApplicationGenerator.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─adaptor</span><br><span class="line"> │ │ │ MongoTableInfoAdaptor.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─config</span><br><span class="line"> │ │ │ DbConfig.class</span><br><span class="line"> │ │ │ MongoCondition.class</span><br><span class="line"> │ │ │ MongoConfig.class</span><br><span class="line"> │ │ │ MongoManager.class</span><br><span class="line"> │ │ │ MongoNullCondition.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─controller</span><br><span class="line"> │ │ │ SysGeneratorController.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─dao</span><br><span class="line"> │ │ │ GeneratorDao.class</span><br><span class="line"> │ │ │ MongoDBGeneratorDao.class</span><br><span class="line"> │ │ │ MySQLGeneratorDao.class</span><br><span class="line"> │ │ │ OracleGeneratorDao.class</span><br><span class="line"> │ │ │ PostgreSQLGeneratorDao.class</span><br><span class="line"> │ │ │ SQLServerGeneratorDao.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─entity</span><br><span class="line"> │ │ │ │ ColumnEntity.class</span><br><span class="line"> │ │ │ │ TableEntity.class</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─mongo</span><br><span class="line"> │ │ │ MongoDefinition.class</span><br><span class="line"> │ │ │ MongoGeneratorEntity.class</span><br><span class="line"> │ │ │ Type.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─factory</span><br><span class="line"> │ │ │ MongoDBCollectionFactory.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─service</span><br><span class="line"> │ │ │ SysGeneratorService.class</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─utils</span><br><span class="line"> │ │ Constant.class</span><br><span class="line"> │ │ DateUtils.class</span><br><span class="line"> │ │ GenUtils.class</span><br><span class="line"> │ │ MongoScanner$ForkJoinGetProcessName.class</span><br><span class="line"> │ │ MongoScanner$ForkJoinProcessType.class</span><br><span class="line"> │ │ MongoScanner.class</span><br><span class="line"> │ │ PageUtils.class</span><br><span class="line"> │ │ Query.class</span><br><span class="line"> │ │ R.class</span><br><span class="line"> │ │ RRException.class</span><br><span class="line"> │ │ RRExceptionHandler.class</span><br><span class="line"> │ │</span><br><span class="line"> │ ├─mapper</span><br><span class="line"> │ │ MySQLGeneratorDao.xml</span><br><span class="line"> │ │ OracleGeneratorDao.xml</span><br><span class="line"> │ │ PostgreSQLGeneratorDao.xml</span><br><span class="line"> │ │ SQLServerGeneratorDao.xml</span><br><span class="line"> │ │</span><br><span class="line"> │ ├─static</span><br><span class="line"> │ │ │ favicon.ico</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─css</span><br><span class="line"> │ │ │ AdminLTE.min.css</span><br><span class="line"> │ │ │ all-skins.min.css</span><br><span class="line"> │ │ │ bootstrap.min.css</span><br><span class="line"> │ │ │ font-awesome.min.css</span><br><span class="line"> │ │ │ main.css</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─fonts</span><br><span class="line"> │ │ │ fontawesome-webfont.eot</span><br><span class="line"> │ │ │ fontawesome-webfont.svg</span><br><span class="line"> │ │ │ fontawesome-webfont.ttf</span><br><span class="line"> │ │ │ fontawesome-webfont.woff</span><br><span class="line"> │ │ │ fontawesome-webfont.woff2</span><br><span class="line"> │ │ │ FontAwesome.otf</span><br><span class="line"> │ │ │ glyphicons-halflings-regular.eot</span><br><span class="line"> │ │ │ glyphicons-halflings-regular.svg</span><br><span class="line"> │ │ │ glyphicons-halflings-regular.ttf</span><br><span class="line"> │ │ │ glyphicons-halflings-regular.woff</span><br><span class="line"> │ │ │ glyphicons-halflings-regular.woff2</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─js</span><br><span class="line"> │ │ │ common.js</span><br><span class="line"> │ │ │ generator.js</span><br><span class="line"> │ │ │ index.js</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─libs</span><br><span class="line"> │ │ │ app.js</span><br><span class="line"> │ │ │ app.min.js</span><br><span class="line"> │ │ │ bootstrap.min.js</span><br><span class="line"> │ │ │ fastclick.min.js</span><br><span class="line"> │ │ │ jquery.min.js</span><br><span class="line"> │ │ │ jquery.slimscroll.min.js</span><br><span class="line"> │ │ │ router.js</span><br><span class="line"> │ │ │ vue.min.js</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─plugins</span><br><span class="line"> │ │ ├─jqgrid</span><br><span class="line"> │ │ │ grid.locale-cn.js</span><br><span class="line"> │ │ │ jquery.jqGrid.min.js</span><br><span class="line"> │ │ │ ui.jqgrid-bootstrap-ui.css</span><br><span class="line"> │ │ │ ui.jqgrid-bootstrap.css</span><br><span class="line"> │ │ │ ui.jqgrid.css</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─layer</span><br><span class="line"> │ │ │ layer.js</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ ├─mobile</span><br><span class="line"> │ │ │ │ layer.js</span><br><span class="line"> │ │ │ │</span><br><span class="line"> │ │ │ └─need</span><br><span class="line"> │ │ │ layer.css</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─skin</span><br><span class="line"> │ │ ├─default</span><br><span class="line"> │ │ │ icon-ext.png</span><br><span class="line"> │ │ │ icon.png</span><br><span class="line"> │ │ │ layer.css</span><br><span class="line"> │ │ │ loading-0.gif</span><br><span class="line"> │ │ │ loading-1.gif</span><br><span class="line"> │ │ │ loading-2.gif</span><br><span class="line"> │ │ │</span><br><span class="line"> │ │ └─moon</span><br><span class="line"> │ │ default.png</span><br><span class="line"> │ │ style.css</span><br><span class="line"> │ │</span><br><span class="line"> │ ├─template</span><br><span class="line"> │ │ add-or-update.vue.vm</span><br><span class="line"> │ │ Controller.java.vm</span><br><span class="line"> │ │ Dao.java.vm</span><br><span class="line"> │ │ Dao.xml.vm</span><br><span class="line"> │ │ Entity.java.vm</span><br><span class="line"> │ │ index.vue.vm</span><br><span class="line"> │ │ menu.sql.vm</span><br><span class="line"> │ │ MongoChildrenEntity.java.vm</span><br><span class="line"> │ │ MongoEntity.java.vm</span><br><span class="line"> │ │ Service.java.vm</span><br><span class="line"> │ │ ServiceImpl.java.vm</span><br><span class="line"> │ │</span><br><span class="line"> │ └─views</span><br><span class="line"> │ generator.html</span><br><span class="line"> │ index.html</span><br><span class="line"> │ main.html</span><br><span class="line"> │</span><br><span class="line"> └─generated-sources</span><br><span class="line"> └─annotations</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h1 id="四-项目前置知识"><a href="#四-项目前置知识" class="headerlink" title="四.项目前置知识"></a>四.项目前置知识</h1><h2 id="1-SpringCloud-Alibaba"><a href="#1-SpringCloud-Alibaba" class="headerlink" title="1.SpringCloud Alibaba"></a>1.SpringCloud Alibaba</h2><h3 id="1-1简介"><a href="#1-1简介" class="headerlink" title="1.1简介"></a>1.1简介</h3><pre><code>SpringCloud Alibaba致力于提供微服务开发的一站式解决方案。此项目包含开发分布式应用微服务必须的组件,方便开发者通过SpringCloud编程模型轻松使用这些组件来开发分布式的应用服务。
|
||
|
||
依托SpringCloud Alibaba,你只需要添加一些注解和少量的配置,就可以将SpringCloud应用接入阿里微服务解决方案,通过阿里中间件来迅速搭建分布式应用系统。
|
||
</code></pre>
|
||
<p>github的地址:<a href="https://github.com/alibaba/spring-cloud-alibaba">https://github.com/alibaba/spring-cloud-alibaba</a></p>
|
||
<h3 id="1-2为什么使用SpringCloud-Alibaba?"><a href="#1-2为什么使用SpringCloud-Alibaba?" class="headerlink" title="1.2为什么使用SpringCloud Alibaba?"></a>1.2为什么使用SpringCloud Alibaba?</h3><p><strong>SpringCloud的不足:</strong></p>
|
||
<ul>
|
||
<li>部分组件停止维护,给开发带来不便</li>
|
||
<li>环境搭建复杂,没有完善的可视化界面,需要大量的二次开发和定制</li>
|
||
<li>配置复杂,难以上手,部分配置差别难以区分和合理应用</li>
|
||
</ul>
|
||
<p><strong>SpringCloud Alibaba的优势:</strong></p>
|
||
<p>阿里使用过的组件经历了考验,性能强悍,设计合理,开源成套的搭配和可视化的界面给开发带来极大的便利,搭建简单,学习成本低。</p>
|
||
<h3 id="1-3-SpringCloud-Alibaba最终的技术搭配方案"><a href="#1-3-SpringCloud-Alibaba最终的技术搭配方案" class="headerlink" title="1.3 SpringCloud Alibaba最终的技术搭配方案"></a>1.3 SpringCloud Alibaba最终的技术搭配方案</h3><p><strong>SpringCloud Alibaba - Nacos :注册中心(服务发现/注册)</strong></p>
|
||
<p><strong>SpringCloud Alibaba - Nacos :配置中心(动态的配置管理)</strong></p>
|
||
<p><strong>SpringCloud - Ribbon: 负载均衡</strong></p>
|
||
<p><strong>SpringCloud - Feign: 声明式HTTP客户端(远程调用服务/服务调用)</strong></p>
|
||
<p><strong>SpringCloud Alibaba - Sentinel:服务容错(限流、降级、熔断)</strong></p>
|
||
<p><strong>SpringCloud - Gateway: API网关(webflux编程模式)</strong></p>
|
||
<p><strong>SpringCloud - Sleuth:调用链监控</strong></p>
|
||
<p><strong>SpringCloud Alibaba - Seata:原Fescar,即分布式事务解决方案</strong></p>
|
||
<img src="/pictures/image-20230519161707857.png" alt="image-20230519161707857" style="zoom:150%;" />
|
||
|
||
<h3 id="1-4-项目中使用SpringCloud-Alibaba"><a href="#1-4-项目中使用SpringCloud-Alibaba" class="headerlink" title="1.4 项目中使用SpringCloud Alibaba"></a>1.4 项目中使用SpringCloud Alibaba</h3><p>在common模块中添加如下的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependencyManagement</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependencies</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-alibaba-dependencies<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.2.0.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">type</span>></span>pom<span class="tag"></<span class="name">type</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">scope</span>></span>import<span class="tag"></<span class="name">scope</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">dependencies</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependencyManagement</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-5-SpringCloud-Alibaba的组件"><a href="#1-5-SpringCloud-Alibaba的组件" class="headerlink" title="1.5 SpringCloud Alibaba的组件"></a>1.5 SpringCloud Alibaba的组件</h3><h4 id="1-Nacos注册中心"><a href="#1-Nacos注册中心" class="headerlink" title="1.Nacos注册中心"></a>1.Nacos注册中心</h4><img src="/pictures/image-20230519162859782.png" alt="image-20230519162859782" style="zoom:150%;" />
|
||
|
||
<p><strong>简介</strong></p>
|
||
<p>Nacos 是阿里巴巴推出来的一个新开源项目,这是一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。</p>
|
||
<p>Nacos 致力于帮助您发现、配置和管理微服务。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据及流量管理。</p>
|
||
<p>Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。 Nacos 是构建以“服务”为中心的现代应用架构 (例如微服务范式、云原生范式) 的服务基础设施</p>
|
||
<p><strong>Nacos 支持如下核心特性</strong></p>
|
||
<p>1)服务发现: 支持 DNS 与 RPC 服务发现,也提供原生 SDK 、OpenAPI 等多种服务注册方式和 DNS、HTTP 与 API 等多种服务发现方式。<br>2)服务健康监测: Nacos 提供对服务的实时的健康检查,阻止向不健康的主机或服务实例发送请求。<br>3)动态配置服务: Nacos 提供配置统一管理功能,能够帮助我们将配置以中心化、外部化和动态化的方式管理所有环境的应用配置和服务配置。<br>4)动态 DNS 服务: Nacos 支持动态 DNS 服务权重路由,能够让我们很容易地实现中间层负载均衡、更灵活的路由策略、流量控制以及数据中心内网的简单 DNS 解析服务。<br>5)服务及其元数据管理: Nacos 支持从微服务平台建设的视角管理数据中心的所有服务及元数据,包括管理服务的描述、生命周期、服务的静态依赖分析、服务的健康状态、服务的流量管理、路由及安全策略、服务的 SLA 以及最首要的 metrics 统计数据。</p>
|
||
<p><strong>使用nacos</strong></p>
|
||
<p>使用之前需要下载nacos并启动nacos的服务</p>
|
||
<p><img src="/pictures/image-20230519164012950.png" alt="image-20230519164012950"></p>
|
||
<p>在common工程中添加依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-discovery<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>配置中心中配置Nacos的地址</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">gulimall-coupon</span> <span class="comment">#指定服务的名字,指定了名字才能注册到注册中心中</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">nacos:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">127.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:8848</span> <span class="comment">#指定注册中心的地址信息</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在每个启动类上使用注解开启服务的注册与发现功能</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//开启服务的注册与发现功能</span></span><br><span class="line"><span class="meta">@EnableDiscoveryClient</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>查看注册服务列表</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">通过访问: http://localhost:8848/nacos</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230519165606784.png" alt="image-20230519165606784"></p>
|
||
<h4 id="2-Feign声明式远程调用"><a href="#2-Feign声明式远程调用" class="headerlink" title="2.Feign声明式远程调用"></a>2.Feign声明式远程调用</h4><p><strong>简介</strong></p>
|
||
<pre><code>Feign是一个声明式的HTTP客户端,它的目的是让远程调用变得更简单。Feign提供了HTTP请求的模板,通过**编写简单的接口和插入注解**,就可以定义好HTTP请求的参数、格式、地址等信息。
|
||
|
||
Feign整合了Ribbon(负载均衡)和Hystrix(服务熔断),可以让我们不再需要显式的使用这两个组件。
|
||
</code></pre>
|
||
<p><strong>使用</strong></p>
|
||
<p>引入依赖,每个模块都需要引入这个依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"> <span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-openfeign<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>编写代码测试远程调用,这里我们以用户模块调用优惠卷模块来获取用户的拥有的优惠卷为例来测试远程调用。</p>
|
||
<p><em><strong>会员模块提供获取用户名下优惠卷的方法</strong></em></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取用户明名下的优惠卷</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("member/list")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">membercoupons</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">CouponEntity</span> <span class="variable">couponEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CouponEntity</span>();</span><br><span class="line"> couponEntity.setCouponName(<span class="string">"满一百减五十"</span>);</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"coupons"</span>,Arrays.asList(couponEntity));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><em><strong>用户模块远程调用优惠卷模块</strong></em></p>
|
||
<p>远程调用别的服务端步骤</p>
|
||
<ol>
|
||
<li><p>引入open-feign的依赖</p>
|
||
</li>
|
||
<li><p>调用端编写一个接口,告诉SpringCloud这个接口需要调用远程服务,</p>
|
||
<p>声明接口的每一个方法都是调用哪个远程服务的那个请求</p>
|
||
</li>
|
||
<li><p>开启远程调用的功能,在调用端的启动类上添加**@EnableFeignClients**注解</p>
|
||
</li>
|
||
</ol>
|
||
<p><em><strong>在用户模块创建一个Feign包(维护的时候见名知义),声明调用的接口,在启动类上添加注解</strong></em></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//注解</span></span><br><span class="line"><span class="comment">//basePackages声明的远程调用的接口所在的包</span></span><br><span class="line"><span class="meta">@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign")</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.member.feign;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.R;</span><br><span class="line"><span class="keyword">import</span> org.springframework.cloud.openfeign.FeignClient;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/19</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 远程调用优惠卷服务</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@FeignClient("gulimall-coupon")</span><span class="comment">//告诉springCloud这是一个远程客户端,并指定要调用服务的服务名</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">interface</span> <span class="title class_">CouponFeignService</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 这里需要写全路径</span></span><br><span class="line"><span class="comment"> * 远程调用优惠卷模块中获取优惠卷信息的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@RequestMapping("/coupon/coupon/member/list")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">membercoupons</span><span class="params">()</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><em><strong>测试远程调用</strong></em></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line"><span class="keyword">private</span> CouponFeignService couponFeignService;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 测试远程调用优惠卷模块的服务</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/coupons")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">test</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">MemberEntity</span> <span class="variable">memberEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MemberEntity</span>();</span><br><span class="line"> memberEntity.setNickname(<span class="string">"张三"</span>);</span><br><span class="line"> <span class="type">R</span> <span class="variable">membercoupons</span> <span class="operator">=</span> couponFeignService.membercoupons();</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"member"</span>, memberEntity).put(<span class="string">"coupons"</span>, membercoupons.get(<span class="string">"coupons"</span>));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试的时候出现的小问题</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc</span></span><br><span class="line"><span class="comment">出现这个问题是没有loadbalanc,但是nacos中ribbon会造成loadbalanc包失效,在common的pom中的依赖改成如下的依赖--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-discovery<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusions</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-netflix-ribbon<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusions</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-loadbalancer<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.2.2.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>处理完上面的报错之后,浏览器访问 <a href="http://localhost:8000/member/member/coupons">http://localhost:8000/member/member/coupons</a> ,显示如下的内容,说明远程调用成功</p>
|
||
<p><img src="/pictures/image-20230519210917423.png" alt="image-20230519210917423"></p>
|
||
<h4 id="3-Nacos配置中心"><a href="#3-Nacos配置中心" class="headerlink" title="3.Nacos配置中心"></a>3.Nacos配置中心</h4><p><strong>简介</strong></p>
|
||
<p>简介见上面的nacos注册中心,这里的Nacos配置中心和上面的nacos注册中心是同一个东西</p>
|
||
<p><strong>使用</strong></p>
|
||
<p>1.在common中引入nacos配置中心的依赖,和上面的注册中心的依赖不一样</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-config<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.给需要配置中心管理的模块下创建配置文件<strong>bootstrap.properties</strong>,这个文件会优先于application.properties读取</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#服务名</span></span><br><span class="line"><span class="attr">spring.application.name</span>=<span class="string">gulimall-coupon</span></span><br><span class="line"><span class="comment">#Nacos配置中心的地址的地址</span></span><br><span class="line"><span class="comment">#注意看这里多了一个config,和模块中nacos的地址还是有区别的</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.server-addr</span>=<span class="string">127.0.0.1:8848</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.测试</p>
|
||
<p>3.1.在application.properties配置文件中添加如下的配置</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">coupon.user.name</span>=<span class="string">zhansan</span></span><br><span class="line"><span class="attr">coupon.user.age</span>=<span class="string">18</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.2 编写接口并访问测试</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取配置文件中的配置信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Value("${user.name}")</span></span><br><span class="line"><span class="keyword">private</span> String name;</span><br><span class="line"><span class="meta">@Value("${user.age}")</span></span><br><span class="line"><span class="keyword">private</span> Integer age;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 测试优先获取哪个配置文件的值</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/test")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">test</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"name"</span>,name).put(<span class="string">"age"</span>,age);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>测试的结果如下:</p>
|
||
<img src="/pictures/image-20230519213945320.png" alt="image-20230519213945320" style="zoom: 200%;" />
|
||
|
||
<p>3.3 需求:应用不重启,实时的修改配置文件中的值</p>
|
||
<p>3.3.1 在Nacos配置中心中创建一个名为 <strong>应用名.properties</strong>(例如:gulimall-coupon.properties) 的配置文件</p>
|
||
<p>进入nacos管理的可视化页面,点击<strong>配置列表</strong>,点击 <strong>+</strong> ,新建一个配置 ,同时将配置文件中name值改为lihua</p>
|
||
<p><img src="/pictures/image-20230519215420623.png" alt="image-20230519215420623"></p>
|
||
<p>发布之后,就可以在配置列表中看到这个配置了</p>
|
||
<p><img src="/pictures/image-20230519215232782.png" alt="image-20230519215232782"></p>
|
||
<p>重启项目测试,配置中心的配置是否生效</p>
|
||
<p>没有生效的话,添加这个依赖,springBoot2.4以上的版本需要</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-bootstrap<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>4.0.1<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>生效的话,这时刷新页面,可以看到name已经由zhangsan变成lihua了</p>
|
||
<img src="/pictures/image-20230519220357933.png" alt="image-20230519220357933" style="zoom:150%;" />
|
||
|
||
<p>3.3.2 想让配置文件实时生效的话,这时我们还要添加以下的注解,然后重启应用,让注解生效</p>
|
||
<p>注意: <strong>@RefreshScope</strong> 这里的注解添加在<strong>Controller</strong>上,不是添加在启动类上</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//给需要配置中心统一配置的模块的Controller上上添加@RefreshScope的注解</span></span><br><span class="line"><span class="meta">@RefreshScope</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>最终测试</strong></p>
|
||
<p>这时我们在配置中心中修改配置并发布,这些配置就可以实时的生效了</p>
|
||
<p>我们在配置中心修改name和age的值,并发布</p>
|
||
<p><img src="/pictures/image-20230519220922701.png" alt="image-20230519220922701"></p>
|
||
<p>这时刷新请求接口的页面,我们可以看到页面中的数据发生了实时的变化</p>
|
||
<img src="/pictures/image-20230519223403139.png" alt="image-20230519223403139" style="zoom:150%;" />
|
||
|
||
<p><strong>总结</strong></p>
|
||
<p>实现nacos配置中心统一配置的流程</p>
|
||
<ol>
|
||
<li><p>引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.alibaba.cloud<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-cloud-starter-alibaba-nacos-config<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure></li>
|
||
<li><p>创建一个bootstrap.properties的配置文件,添加如下的内容:</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#服务名</span></span><br><span class="line"><span class="attr">spring.application.name</span>=<span class="string">gulimall-coupon</span></span><br><span class="line"><span class="comment">#Nacos配置中心的地址</span></span><br><span class="line"><span class="comment">#注意看这里多了一个config,和模块中nacos的地址还是有区别的</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.server-addr</span>=<span class="string">127.0.0.1:8848</span></span><br></pre></td></tr></table></figure></li>
|
||
<li><p>需要给配置中心中新建一个数据集(Data Id)为 <strong>应用名.properties</strong>(例如:gulimall-coupon.properties)的配置。默认规则: 应用名.properties</p>
|
||
</li>
|
||
<li><p>给 应用名.properties 添加任何配置 这些配置都可以在配置中心配置生效</p>
|
||
</li>
|
||
<li><p>在Controller上添加**@RefreshScope**注解就可以实时的动态刷新配置,配置中心更新了配置并发布了之后,配置实时的生效。</p>
|
||
</li>
|
||
</ol>
|
||
<p><strong>注意</strong></p>
|
||
<p><em>如果配置中心和当前应用的配置文件都配置了相同的项,优先使用配置中心的配置</em></p>
|
||
<p><strong>细节</strong></p>
|
||
<p><strong>命名空间:</strong> 配置隔离</p>
|
||
<p>默认:public(保留空间)</p>
|
||
<p>1.可以分别设置开发、测试、生产环境的命名空间,不同的环境下使用不同的命名空间中的配置</p>
|
||
<p>通过命令空间实现环境隔离</p>
|
||
<p>在<strong>bootstrap.properties</strong>设置使用哪个命名空间,可以在配置文件中添加如下的配置</p>
|
||
<p><img src="/pictures/image-20230519225637848.png" alt="image-20230519225637848"></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment"># 切换名称空间</span></span><br><span class="line"><span class="comment"># 可以选择对应的命名空间 # 写上对应环境的命名空间ID</span></span><br><span class="line"><span class="comment"># 使用唯一的命名空间ID</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.namespace</span>=<span class="string">8a84e478-92d0-4581-a316-b0274fc76eb8</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.可以为每一个微服务可以创建自己的命名空间,让每个服务的配置放在每个服务的命名空间下</p>
|
||
<p><strong>配置集:</strong>所有的配置的集合</p>
|
||
<p><strong>配置集ID:</strong> 类似文件名</p>
|
||
<pre><code>Data Id: 就是配置集ID
|
||
</code></pre>
|
||
<p><strong>配置分组:</strong></p>
|
||
<p>默认所有的配置集都属于 : DEFAULT_GROUP</p>
|
||
<p>例如在<strong>生产环境的命名空间</strong>下,淘宝的<strong>配置分组</strong>有以下几个: 双十一,688,平时</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#指定配置分组</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.group</span>=<span class="string">1111</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>Tips:同一个命名空间下可能会有不同的配置分组</strong></p>
|
||
<p><strong>每个微服务创建自己的命令空间,使用配置分组区分环境 dev、test、prod</strong></p>
|
||
<p><em><strong>从配置中心中读取多个配置集(配置文件):</strong></em></p>
|
||
<p>可以在bootstrap.properties添加以下的配置</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#第一个配置文件</span></span><br><span class="line"><span class="comment">#配置文件名</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[0].data-id</span>=<span class="string">datasource.yml </span></span><br><span class="line"><span class="comment">#配置文件的对应的配置分组</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[0].group</span>=<span class="string">dev</span></span><br><span class="line"><span class="comment">#是否动态的刷新</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[0].refresh</span>=<span class="string">true</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">#第二个配置文件</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[1].data-id</span>=<span class="string">mybatis.yml</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[1].group</span>=<span class="string">dev</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[1].refresh</span>=<span class="string">true</span></span><br><span class="line"><span class="comment"></span></span><br><span class="line"><span class="comment">#第三个配置文件</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[2].data-id</span>=<span class="string">others.yml</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[2].group</span>=<span class="string">dev</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.ext-config[2].refresh</span>=<span class="string">true</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>总结:</strong></p>
|
||
<p>1.微服务的任何配置信息,任何配置文件都可以放在配置中心中</p>
|
||
<p>2.加载配置中心的哪些配置文件,只需要在bootstrap.properties说明加载哪些配置文件即可</p>
|
||
<p>3.如果配置中心和当前应用的配置文件都配置了相同的项,优先使用配置中心的配置</p>
|
||
<h4 id="4-Gateway网关"><a href="#4-Gateway网关" class="headerlink" title="4.Gateway网关"></a>4.Gateway网关</h4><img src="/pictures/image-20230519233741029.png" alt="image-20230519233741029" style="zoom:150%;" />
|
||
|
||
<p><strong>简介</strong></p>
|
||
<pre><code>网关最为流量的入口,常用的功能包括**路由转发**、**权限校验**、**限流控制**等。SpringCloud gateway是springcloud官方提供的第二代网关框架,取代了Zull网关。
|
||
</code></pre>
|
||
<p><strong>网关的功能</strong></p>
|
||
<ul>
|
||
<li>针对所有请求进行登陆<strong>统一鉴权(登录态)</strong>、<strong>限流</strong>、<strong>缓存</strong>、<strong>日志(用户打点)</strong>。</li>
|
||
<li>可以根据不同的请求路径pattern,来进行请求的鉴权、转发、和拒绝。</li>
|
||
<li><strong>协议转化</strong>。针对后段多种不同的协议,在网关层统一处理后以HTTP对外提供服务。</li>
|
||
<li>提供<strong>统一的错误码</strong>。</li>
|
||
<li>请求转发,并且可以基于网关实现<strong>内网与外网的隔离</strong>。</li>
|
||
</ul>
|
||
<p><strong>使用</strong></p>
|
||
<ol>
|
||
<li><p>创建一个springboot initializr的工程 ,勾选上Gateway的依赖</p>
|
||
</li>
|
||
<li><p>在网关模块的pom.xml文件中添加上对common工程的依赖</p>
|
||
</li>
|
||
<li><p>在网关的启动类上添加上**@EnableDiscoveryClient**的注解,把网关注册到注册中心</p>
|
||
</li>
|
||
<li><p>配置nacos的地址和服务名信息</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#配置网关的地址</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.server-addr</span>=<span class="string">127.0.0.1:8848</span></span><br><span class="line"><span class="comment">#服务名</span></span><br><span class="line"><span class="attr">spring.application.name</span>=<span class="string">gulimall-gateway</span></span><br></pre></td></tr></table></figure></li>
|
||
<li><p>创建<strong>bootstrap.properties</strong>配置文件,将网关模块的配置通过交给nacos配置中心管理</p>
|
||
<p><img src="/pictures/image-20230520205015056.png" alt="image-20230520205015056"></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring.application.name</span>=<span class="string">gulimall-gateway</span></span><br><span class="line"><span class="comment">#配置配置中心的地址</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.server-addr</span>=<span class="string">127.0.0.1:8848</span></span><br><span class="line"><span class="comment">#名称空间</span></span><br><span class="line"><span class="attr">spring.cloud.nacos.config.namespace</span>=<span class="string">4a8e80ba-3d3c-40ef-897f-d400797c4676</span></span><br></pre></td></tr></table></figure></li>
|
||
<li><p>启动测试</p>
|
||
<p>启动之后出现的问题及解决方案:</p>
|
||
<p><strong>a</strong>.单元测试@Test注解爆红,是我们更换了springboot的版本的原因,删除爆红的地方,重新导包即可</p>
|
||
<p><strong>b</strong>.数据库相关的报错,是因为网关中没有使用数据库,就没有配置数据库的配置,我们通过@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})解决。</p>
|
||
</li>
|
||
<li><p>转发测试</p>
|
||
<p><strong>测试案例:</strong>我们在浏览器的地址栏输入localhost:88?url=baidu,就给我们转发到百度,输入localhost:88?url=qq就给我们转发到腾讯qq</p>
|
||
<p><strong>实现:</strong>创建一个yml的配置文件,在配置文件中添加如下的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment"># 路由的唯一id</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">baidu_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">https://www.baidu.com</span></span><br><span class="line"> <span class="comment"># 断言,什么时候去上面那个url</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="comment"># 下面的这句话的意思是如果请求中存在请求参数url=baidu,我们就去 https://www.baidu.com这个url</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Query=url,baidu</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">qq_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">https://www.qq.com</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="comment"># 下面的这句话的意思是如果请求中存在请求参数url=qq,我们就去 https://www.qq.com这个url</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Query=url,qq</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<img src="/pictures/image-20230520212001874.png" alt="image-20230520212001874" style="zoom:150%;" /></li>
|
||
</ol>
|
||
<h2 id="2-前端开发的基础知识"><a href="#2-前端开发的基础知识" class="headerlink" title="2.前端开发的基础知识"></a>2.前端开发的基础知识</h2><p><strong><a href="https://jasonsgong.gitee.io/posts/432.html">前端基础知识 | The Blog (gitee.io)</a></strong></p>
|
||
<p><strong>前后端技术类比</strong></p>
|
||
<p><img src="/pictures/image-20230520212351174.png" alt="image-20230520212351174"></p>
|
||
<h1 id="五-基础篇程序设计"><a href="#五-基础篇程序设计" class="headerlink" title="五.基础篇程序设计"></a>五.基础篇程序设计</h1><p><strong>提示</strong>:所有的API路径一定要和老师的一样,不然在后面会吃亏!!!</p>
|
||
<h2 id="1-商品服务"><a href="#1-商品服务" class="headerlink" title="1.商品服务"></a>1.商品服务</h2><h3 id="1-1-三级分类"><a href="#1-1-三级分类" class="headerlink" title="1.1 三级分类"></a>1.1 三级分类</h3><h4 id="1-1-1-查询-递归树形结构数据获取"><a href="#1-1-1-查询-递归树形结构数据获取" class="headerlink" title="1.1.1 查询-递归树形结构数据获取"></a>1.1.1 查询-递归树形结构数据获取</h4><p><strong>controller</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有的分类以及子分类,以树形结构组装起来</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@RequestMapping("/list/tree")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">list</span><span class="params">()</span>{</span><br><span class="line"> List<CategoryEntity> entities = categoryService.listWithTree();</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"data"</span>, entities);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>service</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.service.impl;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.stereotype.Service;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"><span class="keyword">import</span> java.util.stream.Collectors;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.core.metadata.IPage;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.PageUtils;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.Query;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.gulimall.product.dao.CategoryDao;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.gulimall.product.entity.CategoryEntity;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.gulimall.product.service.CategoryService;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="meta">@Service("categoryService")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CategoryServiceImpl</span> <span class="keyword">extends</span> <span class="title class_">ServiceImpl</span><CategoryDao, CategoryEntity> <span class="keyword">implements</span> <span class="title class_">CategoryService</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> <span class="keyword">private</span> CategoryDao categoryDao;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPage</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> IPage<CategoryEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><CategoryEntity>().getPage(params),</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">QueryWrapper</span><CategoryEntity>()</span><br><span class="line"> );</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询所有分类,以树形结构显示</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<CategoryEntity> <span class="title function_">listWithTree</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//查出所有的分类</span></span><br><span class="line"> List<CategoryEntity> entities = categoryDao.selectList(<span class="literal">null</span>);</span><br><span class="line"> <span class="comment">//组装成父子的树形结构</span></span><br><span class="line"> <span class="comment">//找到所有的一级分类</span></span><br><span class="line"> List<CategoryEntity> level1List = entities.stream().filter(categoryEntity -></span><br><span class="line"> <span class="comment">//父级分类的id等于0的就是一级分类</span></span><br><span class="line"> categoryEntity.getParentCid() == <span class="number">0</span></span><br><span class="line"> ).map((menu) -> {</span><br><span class="line"> <span class="comment">//为当前分类的子分类赋值</span></span><br><span class="line"> menu.setChildren(getChildren(menu, entities));</span><br><span class="line"> <span class="keyword">return</span> menu;</span><br><span class="line"> }).sorted((menu1, menu2) -> {</span><br><span class="line"> <span class="comment">//排序</span></span><br><span class="line"> <span class="keyword">return</span> (menu1.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu1.getSort()) - (menu2.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu2.getSort());</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> level1List;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 递归查询所有菜单的子菜单</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> root 当前分类</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> all 所有的分类数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 子菜单的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<CategoryEntity> <span class="title function_">getChildren</span><span class="params">(CategoryEntity root, List<CategoryEntity> all)</span> {</span><br><span class="line"> List<CategoryEntity> children = all.stream().filter(categoryEntity -> {</span><br><span class="line"> <span class="keyword">return</span> categoryEntity.getParentCid().equals(root.getCatId());</span><br><span class="line"> }).map(categoryEntity -> {</span><br><span class="line"> <span class="comment">//1.递归找子菜单</span></span><br><span class="line"> categoryEntity.setChildren(getChildren(categoryEntity, all));</span><br><span class="line"> <span class="keyword">return</span> categoryEntity;</span><br><span class="line"> }).sorted((menu1, menu2) -> {</span><br><span class="line"> <span class="comment">//2.菜单的排序</span></span><br><span class="line"> <span class="keyword">return</span> (menu1.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu1.getSort()) - (menu2.getSort() == <span class="literal">null</span> ? <span class="number">0</span> : menu2.getSort());</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="keyword">return</span> children;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-1-2-配置路由和网关和路径重写"><a href="#1-1-2-配置路由和网关和路径重写" class="headerlink" title="1.1.2 配置路由和网关和路径重写"></a>1.1.2 配置路由和网关和路径重写</h4><p>前端访问的地址</p>
|
||
<p><img src="/pictures/image-20230529170214769.png" alt="image-20230529170214769"></p>
|
||
<p>前端代码中的配置</p>
|
||
<p><img src="/pictures/image-20230529170149102.png" alt="image-20230529170149102"></p>
|
||
<p>修改访问的基准路径,统一访问网关,再由网关做请求的转发,转发到指定的服务中去(renren-fast-vue\static\config\index.js文件)</p>
|
||
<figure class="highlight javascript"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 开发环境</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line">;(<span class="keyword">function</span> (<span class="params"></span>) {</span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span> = {};</span><br><span class="line"></span><br><span class="line"> <span class="comment">// api接口请求地址</span></span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>[<span class="string">'baseUrl'</span>] = <span class="string">'http://localhost:88'</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// cdn地址 = 域名 + 版本号</span></span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>[<span class="string">'domain'</span>] = <span class="string">'./'</span>; <span class="comment">// 域名</span></span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>[<span class="string">'version'</span>] = <span class="string">''</span>; <span class="comment">// 版本号(年月日时分)</span></span><br><span class="line"> <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>[<span class="string">'cdnUrl'</span>] = <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>.<span class="property">domain</span> + <span class="variable language_">window</span>.<span class="property">SITE_CONFIG</span>.<span class="property">version</span>;</span><br><span class="line">})();</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>将renren-fast注册到注册中心中去</p>
|
||
<p>修改pom.xml中的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- 修改springBoot的版本 --></span></span><br><span class="line"><span class="tag"><<span class="name">parent</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-parent<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>2.2.6.RELEASE<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">relativePath</span>/></span> </span><br><span class="line"><span class="tag"></<span class="name">parent</span>></span></span><br><span class="line"><span class="comment"><!-- 依赖common文件,获取nacos相关的注解 --></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>com.atguigu<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>gulimall-common<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>1.0-SNAPSHOT<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在启动类上添加@EnableDiscoveryClient注解,在配置文件中添加上nacos地址的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">nacos:</span></span><br><span class="line"> <span class="attr">discovery:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">127.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:8848</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改网关中的断言,让前台的请求转发到正确的路径上</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment"># 路由的唯一id</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">admin_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://renren-fast</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/**</span></span><br><span class="line"> <span class="comment"># 路径重写</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/(?<segment>.*),/renren-fast/$\{segment}</span></span><br><span class="line"><span class="comment"># 前端项目中的基准路径 http://localhost:88/api</span></span><br><span class="line"><span class="comment"># http://localhost:88/api/captcha.jpg 路径重写为 http://localhost:8080/renren-fast/captcha.jpg</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>解决登录的时候的跨域问题</p>
|
||
<p>浏览器中的跨域的报错信息</p>
|
||
<p><img src="/pictures/image-20230530111856491.png" alt="image-20230530111856491"></p>
|
||
<p>跨域问题的介绍</p>
|
||
<p><img src="/pictures/image-20230530112115261.png" alt="image-20230530112115261"></p>
|
||
<p> 跨域流程</p>
|
||
<p><a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CORS">文档介绍</a></p>
|
||
<p><img src="/pictures/image-20230530112630678.png" alt="image-20230530112630678"></p>
|
||
<p>跨域的解决方案</p>
|
||
<ol>
|
||
<li>使用nginx部署为同一域</li>
|
||
<li>配置当前请求允许跨域 (在网关中通过过滤器给请求添加响应头)</li>
|
||
</ol>
|
||
<p>跨域的配置</p>
|
||
<p>添加跨域的配置类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.eatguigu.gulimall.gateway.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.cors.CorsConfiguration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.cors.reactive.CorsWebFilter;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.cors.reactive.UrlBasedCorsConfigurationSource;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> GongChangjiang</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/5/30</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 跨域配置类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CorsConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> <span class="keyword">public</span> CorsWebFilter <span class="title function_">corsWebFilter</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">UrlBasedCorsConfigurationSource</span> <span class="variable">source</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">UrlBasedCorsConfigurationSource</span>();</span><br><span class="line"> <span class="type">CorsConfiguration</span> <span class="variable">corsConfiguration</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">CorsConfiguration</span>();</span><br><span class="line"> <span class="comment">//1.配置跨域</span></span><br><span class="line"> <span class="comment">//允许所有的请求头跨域</span></span><br><span class="line"> corsConfiguration.addAllowedHeader(<span class="string">"*"</span>);</span><br><span class="line"> <span class="comment">//允许所有的请求方式跨域</span></span><br><span class="line"> corsConfiguration.addAllowedMethod(<span class="string">"*"</span>);</span><br><span class="line"> <span class="comment">//任意请求来源都可以跨域</span></span><br><span class="line"> <span class="comment">//corsConfiguration.addAllowedOrigin("*"); 老版本的springBoot使用这个,新版本的使用下面这个</span></span><br><span class="line"> corsConfiguration.addAllowedOriginPattern(<span class="string">"*"</span>);</span><br><span class="line"> <span class="comment">//允许携带cookie跨域</span></span><br><span class="line"> corsConfiguration.setAllowCredentials(<span class="literal">true</span>);</span><br><span class="line"> source.registerCorsConfiguration(<span class="string">"/**"</span>,corsConfiguration);</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">CorsWebFilter</span>(source);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>注掉renren-fast工程中的跨域配置,避免产生两次跨域的问题</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * Copyright (c) 2016-2019 人人开源 All rights reserved.</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * https://www.renren.io</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * 版权所有,侵权必究!</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="keyword">package</span> io.renren.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.CorsRegistry;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.servlet.config.annotation.WebMvcConfigurer;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">CorsConfig</span> <span class="keyword">implements</span> <span class="title class_">WebMvcConfigurer</span> {</span><br><span class="line"></span><br><span class="line"><span class="comment">// @Override</span></span><br><span class="line"><span class="comment">// public void addCorsMappings(CorsRegistry registry) {</span></span><br><span class="line"><span class="comment">// registry.addMapping("/**")</span></span><br><span class="line"><span class="comment">// .allowedOrigins("*")</span></span><br><span class="line"><span class="comment">// .allowCredentials(true)</span></span><br><span class="line"><span class="comment">// .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")</span></span><br><span class="line"><span class="comment">// .maxAge(3600);</span></span><br><span class="line"><span class="comment">// }</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>再次测试,成功的进入后台管理系统</p>
|
||
<h4 id="1-2-3-查询-页面中树形显示"><a href="#1-2-3-查询-页面中树形显示" class="headerlink" title="1.2.3 查询-页面中树形显示"></a>1.2.3 查询-页面中树形显示</h4><p><strong>新增一个商品系统的目录,并在该目录下创建一个分类维护的二级分类</strong></p>
|
||
<p>1.添加一个一级分类</p>
|
||
<p><img src="/pictures/image-20230529161308671.png" alt="image-20230529161308671"></p>
|
||
<p><img src="/pictures/image-20230529161317694.png" alt="image-20230529161317694"></p>
|
||
<p>2.在商品系统的一级分类下添加一个分类维护的二级分类</p>
|
||
<p><img src="/pictures/image-20230529161648257.png" alt="image-20230529161648257"></p>
|
||
<p>3.路径的问题</p>
|
||
<p><img src="/pictures/image-20230529162235482.png" alt="image-20230529162235482"></p>
|
||
<p>4.路径与文件的对应关系</p>
|
||
<p><img src="/pictures/image-20230529162946584.png" alt="image-20230529162946584"></p>
|
||
<p>5.发送请求的示例</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="data"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> @node-click="handleNodeClick"</span><br><span class="line"> ></el-tree></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> data: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> children: "children",</span><br><span class="line"> label: "label",</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> handleNodeClick(data) {</span><br><span class="line"> console.log(data);</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> //正式的发送请求</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> console.log(data);</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>6.树形显示商品的分类信息</p>
|
||
<p>前端修改网关商品模块的路由(注意:匹配精确的路由放在模糊的路由的上面)</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">gateway:</span></span><br><span class="line"> <span class="attr">routes:</span></span><br><span class="line"> <span class="comment">#这个路由精确一些,放在上面,避免被下面模糊的路由吞掉</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">product_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://gulimall-product</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/product/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/(?<segment>.*),/$\{segment}</span></span><br><span class="line"> </span><br><span class="line"> <span class="comment"># 路由的唯一id</span></span><br><span class="line"> <span class="bullet">-</span> <span class="attr">id:</span> <span class="string">admin_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://renren-fast</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/**</span></span><br><span class="line"> <span class="comment"># 路径重写</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/(?<segment>.*),/renren-fast/$\{segment}</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment"># 前端项目中的基准路径 http://localhost:88/api</span></span><br><span class="line"><span class="comment"># http://localhost:88/api/captcha.jpg 路径重写为 http://localhost:8080/renren-fast/captcha.jpg</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>前端发送请求,正确地获取数据</p>
|
||
<p><img src="/pictures/image-20230530172846989.png" alt="image-20230530172846989"></p>
|
||
<p>在页面上显示数据</p>
|
||
<p>Element的配置</p>
|
||
<p><img src="/pictures/image-20230530173658950.png" alt="image-20230530173658950"></p>
|
||
<p>前端代码</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> @node-click="handleNodeClick"</span><br><span class="line"> ></el-tree></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {//这里的配置看官方的文档</span><br><span class="line"> children: "children",//父节点上的子节点</span><br><span class="line"> label: "name",//每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> handleNodeClick(data) {</span><br><span class="line"> console.log(data);</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>显示的效果</p>
|
||
<p><img src="/pictures/image-20230530173801824.png" alt="image-20230530173801824"></p>
|
||
<h4 id="1-2-4-删除-删除商品分类"><a href="#1-2-4-删除-删除商品分类" class="headerlink" title="1.2.4 删除-删除商品分类"></a>1.2.4 删除-删除商品分类</h4><p>前端页面修改</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <!-- 树形控件--></span><br><span class="line"> <!-- :expand-on-click-node="false"设置为点击箭头的时候才会展开,避免点击删除的按钮的时候展开 --></span><br><span class="line"> <!-- show-checkbox表示开启选择框,批量选择--></span><br><span class="line"> <!-- node-key表示在整个树中唯一的表示 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> :expand-on-click-node="false"</span><br><span class="line"> show-checkbox</span><br><span class="line"> node-key="catId"</span><br><span class="line"> :default-expanded-keys="expandedKey"</span><br><span class="line"> ></span><br><span class="line"> <span class="custom-tree-node" slot-scope="{ node, data }"></span><br><span class="line"> <span>{{ node.label }}</span></span><br><span class="line"> <span></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.level <= 2"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => append(data)"</span><br><span class="line"> ></span><br><span class="line"> 添加</span><br><span class="line"> </el-button></span><br><span class="line"> <!-- 添加判断,没有下一级节点的时候就显示删除的按钮 --></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="data.children.length <= 0"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => remove(node, data)"</span><br><span class="line"> ></span><br><span class="line"> 删除</span><br><span class="line"> </el-button></span><br><span class="line"> </span></span><br><span class="line"> </span></el-tree</span><br><span class="line"> ></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> //这里的配置看官方的文档</span><br><span class="line"> children: "children", //父节点上的子节点</span><br><span class="line"> label: "name", //每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> expandedKey:[] //需要展开的数组,用于删除之后树形控件仍然展开</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> append(data) {</span><br><span class="line"> console.log("append: ", data);</span><br><span class="line"> },</span><br><span class="line"> //删除节点的方法</span><br><span class="line"> remove(node, data) {</span><br><span class="line"> var ids = [data.catId];</span><br><span class="line"> this.$confirm(`是否要删除[${data.name}]菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单删除成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才删除的节点)</span><br><span class="line"> this.expandedKey = [node.parent.data.catId]</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {</span><br><span class="line"> this.$message({</span><br><span class="line"> type: "info",</span><br><span class="line"> message: "已取消删除",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>配置逻辑删除</strong></p>
|
||
<p>配置全局的逻辑删除规则</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">mybatis-plus:</span></span><br><span class="line"> <span class="attr">global-config:</span></span><br><span class="line"> <span class="attr">db-config:</span></span><br><span class="line"> <span class="attr">logic-delete-value:</span> <span class="number">1</span> <span class="comment"># 逻辑已删除值(默认为 1)</span></span><br><span class="line"> <span class="attr">logic-not-delete-value:</span> <span class="number">0</span> <span class="comment"># 逻辑未删除值(默认为 0)</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在showStatus上添加上逻辑删除的注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@TableLogic(value = "1",delval = "0")</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端代码的实现</p>
|
||
<p>controlller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/delete")</span></span><br><span class="line"><span class="comment">//@RequiresPermissions("product:category:delete")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">delete</span><span class="params">(<span class="meta">@RequestBody</span> Long[] catIds)</span> {</span><br><span class="line"> <span class="comment">//检查当前删除的菜单,是否被别的地方引用</span></span><br><span class="line"> <span class="comment">//categoryService.removeByIds(Arrays.asList(catIds));</span></span><br><span class="line"> categoryService.removeMenuByIds(Arrays.asList(catIds));</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service 这里后面需要优化</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 删除分类的方法</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> list 分类id的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">removeMenuByIds</span><span class="params">(List<Long> list)</span> {</span><br><span class="line"> <span class="comment">//TODO 检查当前删除的菜单是否被其他的地方引用 后面优化</span></span><br><span class="line"> <span class="comment">//逻辑删除</span></span><br><span class="line"> categoryDao.deleteBatchIds(list);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-2-5-添加-添加商品分类"><a href="#1-2-5-添加-添加商品分类" class="headerlink" title="1.2.5 添加-添加商品分类"></a>1.2.5 添加-添加商品分类</h4><p>前端代码</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件--></span><br><span class="line"> <!-- :expand-on-click-node="false"设置为点击箭头的时候才会展开,避免点击删除的按钮的时候展开 --></span><br><span class="line"> <!-- show-checkbox表示开启选择框,批量选择--></span><br><span class="line"> <!-- node-key表示在整个树中唯一的表示 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> :expand-on-click-node="false"</span><br><span class="line"> show-checkbox</span><br><span class="line"> node-key="catId"</span><br><span class="line"> :default-expanded-keys="expandedKey"</span><br><span class="line"> ></span><br><span class="line"> <span class="custom-tree-node" slot-scope="{ node, data }"></span><br><span class="line"> <span>{{ node.label }}</span></span><br><span class="line"> <span></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.level <= 2"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => append(data)"</span><br><span class="line"> ></span><br><span class="line"> 添加</span><br><span class="line"> </el-button></span><br><span class="line"> <!-- 添加判断,没有下一级节点的时候就显示删除的按钮 --></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="data.children.length <= 0"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => remove(node, data)"</span><br><span class="line"> ></span><br><span class="line"> 删除</span><br><span class="line"> </el-button></span><br><span class="line"> </span></span><br><span class="line"> </span></el-tree</span><br><span class="line"> ></span><br><span class="line"> <!-- 添加分类的时候弹出的对话框 --></span><br><span class="line"> <el-dialog title="提示" :visible.sync="dialogVisible" width="30%"></span><br><span class="line"> <el-form :model="category"></span><br><span class="line"> <el-form-item label="分类名称"></span><br><span class="line"> <el-input v-model="category.name" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot="footer" class="dialog-footer"></span><br><span class="line"> <el-button @click="dialogVisible = false">取 消</el-button></span><br><span class="line"> <el-button type="primary" @click="addCategory">确 定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> //这里的配置看官方的文档</span><br><span class="line"> children: "children", //父节点上的子节点</span><br><span class="line"> label: "name", //每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> expandedKey: [], //需要展开的数组,用于删除之后树形控件仍然展开</span><br><span class="line"> dialogVisible: false, //添加菜单的对话框的开启或者关闭</span><br><span class="line"> //表单绑定的对象</span><br><span class="line"> category: {</span><br><span class="line"> name: "", //分类的名称</span><br><span class="line"> parentCid: 0, //父类的id</span><br><span class="line"> catLevel: 0, //分类的级别</span><br><span class="line"> showStatus: 1, //是否显示该分类</span><br><span class="line"> sort: 0, //排序</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> //添加分类(弹出的对话框确定按钮执行的方法)</span><br><span class="line"> addCategory() {</span><br><span class="line"> console.log("提交的数据:", this.category);</span><br><span class="line"> //将添加的数据返回给后端</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/save"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(this.category, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单添加成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus()</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才添加的节点)</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> //关闭对话框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> },</span><br><span class="line"> //添加分类的方法</span><br><span class="line"> append(data) {</span><br><span class="line"> //清空一下表单的数据</span><br><span class="line"> this.category.name = "";</span><br><span class="line"> //打开添加的对话框</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"> //为分类的对象赋值</span><br><span class="line"> this.category.parentCid = data.catId;</span><br><span class="line"> this.category.catLevel = data.catLevel * 1 + 1; //防止catLevel是一个字符串</span><br><span class="line"> },</span><br><span class="line"> //删除节点的方法</span><br><span class="line"> remove(node, data) {</span><br><span class="line"> var ids = [data.catId];</span><br><span class="line"> this.$confirm(`是否要删除[${data.name}]菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单删除成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才删除的节点)</span><br><span class="line"> this.expandedKey = [node.parent.data.catId];</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {</span><br><span class="line"> this.$message({</span><br><span class="line"> type: "info",</span><br><span class="line"> message: "已取消删除",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="comment">//@RequiresPermissions("product:category:save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@RequestBody</span> CategoryEntity category)</span> {</span><br><span class="line"> categoryService.save(category);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230605163004850.png" alt="image-20230605163004850"></p>
|
||
<h4 id="1-2-6-修改-修改商品的分类"><a href="#1-2-6-修改-修改商品的分类" class="headerlink" title="1.2.6 修改-修改商品的分类"></a>1.2.6 修改-修改商品的分类</h4><p>前端的代码(太复杂了,没有写完)</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <!-- 树形控件--></span><br><span class="line"> <!-- :expand-on-click-node="false"设置为点击箭头的时候才会展开,避免点击删除的按钮的时候展开 --></span><br><span class="line"> <!-- show-checkbox表示开启选择框,批量选择--></span><br><span class="line"> <!-- node-key表示在整个树中唯一的表示 --></span><br><span class="line"> <!-- draggable 实现节点自由拖拽的效果 --></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> :expand-on-click-node="false"</span><br><span class="line"> show-checkbox</span><br><span class="line"> node-key="catId"</span><br><span class="line"> :default-expanded-keys="expandedKey"</span><br><span class="line"> draggable</span><br><span class="line"> :allow-drop="allowDrop"</span><br><span class="line"> @node-drop="handleDrop"</span><br><span class="line"> ></span><br><span class="line"> <span class="custom-tree-node" slot-scope="{ node, data }"></span><br><span class="line"> <span>{{ node.label }}</span></span><br><span class="line"> <span></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.level <= 2"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => append(data)"</span><br><span class="line"> ></span><br><span class="line"> 添加</span><br><span class="line"> </el-button></span><br><span class="line"> <el-button type="text" size="mini" @click="() => edit(data)"></span><br><span class="line"> 修改</span><br><span class="line"> </el-button></span><br><span class="line"> <!-- 添加判断,没有下一级节点的时候就显示删除的按钮 --></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="data.children.length <= 0"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => remove(node, data)"</span><br><span class="line"> ></span><br><span class="line"> 删除</span><br><span class="line"> </el-button></span><br><span class="line"> </span></span><br><span class="line"> </span></el-tree</span><br><span class="line"> ></span><br><span class="line"> <!-- 添加分类的时候弹出的对话框 --></span><br><span class="line"> <el-dialog</span><br><span class="line"> :title="title"</span><br><span class="line"> :visible.sync="dialogVisible"</span><br><span class="line"> width="30%"</span><br><span class="line"> :close-on-click-modal="false"</span><br><span class="line"> ></span><br><span class="line"> <el-form :model="category"></span><br><span class="line"> <el-form-item label="分类名称"></span><br><span class="line"> <el-input v-model="category.name" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="图标"></span><br><span class="line"> <el-input v-model="category.icon" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="计量单位"></span><br><span class="line"> <el-input</span><br><span class="line"> v-model="category.productUnit"</span><br><span class="line"> autocomplete="off"</span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot="footer" class="dialog-footer"></span><br><span class="line"> <el-button @click="dialogVisible = false">取 消</el-button></span><br><span class="line"> <el-button type="primary" @click="submitDate">确 定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">export default {</span><br><span class="line"> //定义变量</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> updateNodes: [], //经过修改之后的节点的信息</span><br><span class="line"> maxLevel: 0, //最大的层级</span><br><span class="line"> title: "", //弹出框的提示信息</span><br><span class="line"> dialogType: "", //弹出的对话框的类型 edit/add</span><br><span class="line"> menus: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> //这里的配置看官方的文档</span><br><span class="line"> children: "children", //父节点上的子节点</span><br><span class="line"> label: "name", //每个对象要显示的属性值,比如我们当前要显示商品分类中的分类名的值,这里就改成name</span><br><span class="line"> },</span><br><span class="line"> expandedKey: [], //需要展开的数组,用于删除之后树形控件仍然展开</span><br><span class="line"> dialogVisible: false, //添加菜单的对话框的开启或者关闭</span><br><span class="line"> //表单绑定的对象</span><br><span class="line"> category: {</span><br><span class="line"> name: "", //分类的名称</span><br><span class="line"> parentCid: 0, //父类的id</span><br><span class="line"> catLevel: 0, //分类的级别</span><br><span class="line"> showStatus: 1, //是否显示该分类</span><br><span class="line"> sort: 0, //排序</span><br><span class="line"> catId: null, //分类的id信息</span><br><span class="line"> icon: "", //商品分类的图标</span><br><span class="line"> productUnit: "", //计量单位</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> //钩子函数</span><br><span class="line"> created() {</span><br><span class="line"> //调用获取商品分类数据的方法</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //方法</span><br><span class="line"> methods: {</span><br><span class="line"> //拖拽成功之后调用这个函数进行回调的处理</span><br><span class="line"> handleDrop(draggingNode, dropNode, dropType, ev) {</span><br><span class="line"> console.log("handleDrop: ", draggingNode, dropNode, dropType);</span><br><span class="line"> //当前的节点的最新父节点id</span><br><span class="line"> let pCid = 0; //当前节点的组最新父节点id</span><br><span class="line"> let siblings = null; //当前的节点的兄弟节点</span><br><span class="line"> //判断的节点的进入的方式</span><br><span class="line"> if (dropType == "before" || dropType == "after") {</span><br><span class="line"> pCid =</span><br><span class="line"> dropNode.parent.data.catId == undefined</span><br><span class="line"> ? 0</span><br><span class="line"> : dropNode.parent.data.catId;</span><br><span class="line"> siblings = dropNode.parent.childNodes;</span><br><span class="line"> } else {</span><br><span class="line"> pCid = dropNode.data.catId;</span><br><span class="line"> siblings = dropNode.childNodes;</span><br><span class="line"> }</span><br><span class="line"> //当前的节点的最新的顺序</span><br><span class="line"> for (let i = 0; i < siblings.length; i++) {</span><br><span class="line"> if (siblings[i].data.catId == draggingNode.data.catId) {</span><br><span class="line"> //如果当前遍历的是正在拖拽的节点</span><br><span class="line"> let catLevel = draggingNode.catLevel;</span><br><span class="line"> if (siblings[i].level != draggingNode.level) {</span><br><span class="line"> //当前的节点的层级发生的变化</span><br><span class="line"> catLevel = siblings[i].level;</span><br><span class="line"> //修改子节点的层级</span><br><span class="line"> this.updateChildNodeLevel(siblings[i]);</span><br><span class="line"> }</span><br><span class="line"> this.updateNodes.push({</span><br><span class="line"> catId: siblings[i].data.catId,</span><br><span class="line"> sort: i,</span><br><span class="line"> parentCid: pCid,</span><br><span class="line"> catLevel: catLevel,</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.updateNodes.push({ catId: siblings[i].data.catId, sort: i });</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> //当前的拖拽节点的最新的层级</span><br><span class="line"> console.log("updateNodes:", this.updateNodes);</span><br><span class="line"> },</span><br><span class="line"> //递归修改子节点的层级</span><br><span class="line"> updateChildNodeLevel(node) {</span><br><span class="line"> if ((node.childNodes, length > 0)) {</span><br><span class="line"> for (let i = 0; i < node.childNodes.length; i++) {</span><br><span class="line"> var cNode = node.childNodes[i].data;</span><br><span class="line"> this.updateNodes.push({</span><br><span class="line"> catId: cNode.catId,</span><br><span class="line"> catLevel: node.childNodes[i].level,</span><br><span class="line"> });</span><br><span class="line"> //递归调用</span><br><span class="line"> this.updateChildNodeLevel(node.childNodes[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //拖拽之后节点的位置的判断 是否的可以放在该位置上面</span><br><span class="line"> allowDrop(draggingNode, dropNode, type) {</span><br><span class="line"> //判断被拖动的当前节点以及所在的父节点的总层数不能大于三</span><br><span class="line"> //被拖动的当前节点的总层数</span><br><span class="line"> console.log("allowDrop:", draggingNode, dropNode, type);</span><br><span class="line"> //获取当前节点的总层数</span><br><span class="line"> this.countNodeLevel(draggingNode.data);</span><br><span class="line"> let deep = this.maxLevel - draggingNode.data.catLevel + 1;</span><br><span class="line"> console.log("深度:", deep);</span><br><span class="line"> if ((type = "inner")) {</span><br><span class="line"> return deep + dropNode.level <= 3;</span><br><span class="line"> } else {</span><br><span class="line"> return deep + dropNode.parent.level <= 3;</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //统计当前的节点的总层数</span><br><span class="line"> countNodeLevel(node) {</span><br><span class="line"> //找到所有子节点 求出最大深度</span><br><span class="line"> if (node.children != null && node.children.length > 0) {</span><br><span class="line"> for (let i = 0; i < node.children.length; i++) {</span><br><span class="line"> if (node.children[i].catLevel > this.maxLevel) {</span><br><span class="line"> this.maxLevel = node.children[i].catLevel;</span><br><span class="line"> }</span><br><span class="line"> //递归一下</span><br><span class="line"> this.countNodeLevel(node.children[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //弹出修改的对话框,并做数据的回显</span><br><span class="line"> edit(data) {</span><br><span class="line"> //修改的title</span><br><span class="line"> this.title = "修改分类";</span><br><span class="line"> //设置弹出的对话框为修改的类型</span><br><span class="line"> this.dialogType = "edit";</span><br><span class="line"> //发送请求回显数据</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(`/product/category/info/${data.catId}`),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> //请求成功 回显数据</span><br><span class="line"> console.log("回显的数据:", data);</span><br><span class="line"> this.category.name = data.data.name;</span><br><span class="line"> this.category.catId = data.data.catId;</span><br><span class="line"> this.category.icon = data.data.icon;</span><br><span class="line"> this.category.productUnit = data.data.productUnit;</span><br><span class="line"> this.category.parentCid = data.data.parentCid;</span><br><span class="line"> });</span><br><span class="line"> //弹出对话框</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"> },</span><br><span class="line"> //保存或者添加数据</span><br><span class="line"> submitDate() {</span><br><span class="line"> if (this.dialogType == "add") {</span><br><span class="line"> //调用添加的方法</span><br><span class="line"> this.addCategory();</span><br><span class="line"> }</span><br><span class="line"> if (this.dialogType == "edit") {</span><br><span class="line"> //修改的方法</span><br><span class="line"> this.editCategory();</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //修改商品的分类信息</span><br><span class="line"> editCategory() {</span><br><span class="line"> //只发送我们要修改的数据</span><br><span class="line"> var { catId, name, icon, productUnit } = this.category;</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/update"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData({ catId, name, icon, productUnit }, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "分类修改成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //关闭弹出框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> //刷新一下表单</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置默认展开的菜单</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //添加分类(弹出的对话框确定按钮执行的方法)</span><br><span class="line"> addCategory() {</span><br><span class="line"> console.log("提交的数据:", this.category);</span><br><span class="line"> //将添加的数据返回给后端</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/save"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(this.category, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "分类添加成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才添加的节点)</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> //关闭对话框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> },</span><br><span class="line"> //添加分类的方法</span><br><span class="line"> append(data) {</span><br><span class="line"> //添加的title</span><br><span class="line"> this.title = "添加分类";</span><br><span class="line"> //设置当前提交的对话框为添加的对话框</span><br><span class="line"> this.dialogType = "add";</span><br><span class="line"> //清空一下表单的数据</span><br><span class="line"> this.category.name = "";</span><br><span class="line"> //打开添加的对话框</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"> //为分类的对象赋值</span><br><span class="line"> this.category.parentCid = data.catId;</span><br><span class="line"> this.category.catLevel = data.catLevel * 1 + 1; //防止catLevel是一个字符串</span><br><span class="line"> this.catId = null;</span><br><span class="line"> this.category.icon = "";</span><br><span class="line"> this.category.productUnit = "";</span><br><span class="line"> this.category.sort = 0;</span><br><span class="line"> this.category.showStatus = 1;</span><br><span class="line"> },</span><br><span class="line"> //删除节点的方法</span><br><span class="line"> remove(node, data) {</span><br><span class="line"> var ids = [data.catId];</span><br><span class="line"> this.$confirm(`是否要删除[${data.name}]菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单删除成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> //刷新一下页面</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单(依然展开刚才删除的节点)</span><br><span class="line"> this.expandedKey = [node.parent.data.catId];</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {</span><br><span class="line"> this.$message({</span><br><span class="line"> type: "info",</span><br><span class="line"> message: "已取消删除",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //获取所有的菜单</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>老师的前端的代码</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div></span><br><span class="line"> <el-switch v-model="draggable" active-text="开启拖拽" inactive-text="关闭拖拽"></el-switch></span><br><span class="line"> <el-button v-if="draggable" @click="batchSave">批量保存</el-button></span><br><span class="line"> <el-button type="danger" @click="batchDelete">批量删除</el-button></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> :expand-on-click-node="false"</span><br><span class="line"> show-checkbox</span><br><span class="line"> node-key="catId"</span><br><span class="line"> :default-expanded-keys="expandedKey"</span><br><span class="line"> :draggable="draggable"</span><br><span class="line"> :allow-drop="allowDrop"</span><br><span class="line"> @node-drop="handleDrop"</span><br><span class="line"> ref="menuTree"</span><br><span class="line"> ></span><br><span class="line"> <span class="custom-tree-node" slot-scope="{ node, data }"></span><br><span class="line"> <span>{{ node.label }}</span></span><br><span class="line"> <span></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.level <=2"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => append(data)"</span><br><span class="line"> >Append</el-button></span><br><span class="line"> <el-button type="text" size="mini" @click="edit(data)">edit</el-button></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="node.childNodes.length==0"</span><br><span class="line"> type="text"</span><br><span class="line"> size="mini"</span><br><span class="line"> @click="() => remove(node, data)"</span><br><span class="line"> >Delete</el-button></span><br><span class="line"> </span></span><br><span class="line"> </span></span><br><span class="line"> </el-tree></span><br><span class="line"></span><br><span class="line"> <el-dialog</span><br><span class="line"> :title="title"</span><br><span class="line"> :visible.sync="dialogVisible"</span><br><span class="line"> width="30%"</span><br><span class="line"> :close-on-click-modal="false"</span><br><span class="line"> ></span><br><span class="line"> <el-form :model="category"></span><br><span class="line"> <el-form-item label="分类名称"></span><br><span class="line"> <el-input v-model="category.name" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="图标"></span><br><span class="line"> <el-input v-model="category.icon" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="计量单位"></span><br><span class="line"> <el-input v-model="category.productUnit" autocomplete="off"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot="footer" class="dialog-footer"></span><br><span class="line"> <el-button @click="dialogVisible = false">取 消</el-button></span><br><span class="line"> <el-button type="primary" @click="submitData">确 定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)</span><br><span class="line">//例如:import 《组件名称》 from '《组件路径》';</span><br><span class="line"></span><br><span class="line">export default {</span><br><span class="line"> //import引入的组件需要注入到对象中才能使用</span><br><span class="line"> components: {},</span><br><span class="line"> props: {},</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> pCid: [],</span><br><span class="line"> draggable: false,</span><br><span class="line"> updateNodes: [],</span><br><span class="line"> maxLevel: 0,</span><br><span class="line"> title: "",</span><br><span class="line"> dialogType: "", //edit,add</span><br><span class="line"> category: {</span><br><span class="line"> name: "",</span><br><span class="line"> parentCid: 0,</span><br><span class="line"> catLevel: 0,</span><br><span class="line"> showStatus: 1,</span><br><span class="line"> sort: 0,</span><br><span class="line"> productUnit: "",</span><br><span class="line"> icon: "",</span><br><span class="line"> catId: null</span><br><span class="line"> },</span><br><span class="line"> dialogVisible: false,</span><br><span class="line"> menus: [],</span><br><span class="line"> expandedKey: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> children: "children",</span><br><span class="line"> label: "name"</span><br><span class="line"> }</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> //计算属性 类似于data概念</span><br><span class="line"> computed: {},</span><br><span class="line"> //监控data中的数据变化</span><br><span class="line"> watch: {},</span><br><span class="line"> //方法集合</span><br><span class="line"> methods: {</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get"</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> console.log("成功获取到菜单数据...", data.data);</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> batchDelete() {</span><br><span class="line"> let catIds = [];</span><br><span class="line"> let checkedNodes = this.$refs.menuTree.getCheckedNodes();</span><br><span class="line"> console.log("被选中的元素", checkedNodes);</span><br><span class="line"> for (let i = 0; i < checkedNodes.length; i++) {</span><br><span class="line"> catIds.push(checkedNodes[i].catId);</span><br><span class="line"> }</span><br><span class="line"> this.$confirm(`是否批量删除【${catIds}】菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning"</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(catIds, false)</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单批量删除成功",</span><br><span class="line"> type: "success"</span><br><span class="line"> });</span><br><span class="line"> this.getMenus();</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {});</span><br><span class="line"> },</span><br><span class="line"> batchSave() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/update/sort"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(this.updateNodes, false)</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单顺序等修改成功",</span><br><span class="line"> type: "success"</span><br><span class="line"> });</span><br><span class="line"> //刷新出新的菜单</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单</span><br><span class="line"> this.expandedKey = this.pCid;</span><br><span class="line"> this.updateNodes = [];</span><br><span class="line"> this.maxLevel = 0;</span><br><span class="line"> // this.pCid = 0;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> handleDrop(draggingNode, dropNode, dropType, ev) {</span><br><span class="line"> console.log("handleDrop: ", draggingNode, dropNode, dropType);</span><br><span class="line"> //1、当前节点最新的父节点id</span><br><span class="line"> let pCid = 0;</span><br><span class="line"> let siblings = null;</span><br><span class="line"> if (dropType == "before" || dropType == "after") {</span><br><span class="line"> pCid =</span><br><span class="line"> dropNode.parent.data.catId == undefined</span><br><span class="line"> ? 0</span><br><span class="line"> : dropNode.parent.data.catId;</span><br><span class="line"> siblings = dropNode.parent.childNodes;</span><br><span class="line"> } else {</span><br><span class="line"> pCid = dropNode.data.catId;</span><br><span class="line"> siblings = dropNode.childNodes;</span><br><span class="line"> }</span><br><span class="line"> this.pCid.push(pCid);</span><br><span class="line"></span><br><span class="line"> //2、当前拖拽节点的最新顺序,</span><br><span class="line"> for (let i = 0; i < siblings.length; i++) {</span><br><span class="line"> if (siblings[i].data.catId == draggingNode.data.catId) {</span><br><span class="line"> //如果遍历的是当前正在拖拽的节点</span><br><span class="line"> let catLevel = draggingNode.level;</span><br><span class="line"> if (siblings[i].level != draggingNode.level) {</span><br><span class="line"> //当前节点的层级发生变化</span><br><span class="line"> catLevel = siblings[i].level;</span><br><span class="line"> //修改他子节点的层级</span><br><span class="line"> this.updateChildNodeLevel(siblings[i]);</span><br><span class="line"> }</span><br><span class="line"> this.updateNodes.push({</span><br><span class="line"> catId: siblings[i].data.catId,</span><br><span class="line"> sort: i,</span><br><span class="line"> parentCid: pCid,</span><br><span class="line"> catLevel: catLevel</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.updateNodes.push({ catId: siblings[i].data.catId, sort: i });</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> //3、当前拖拽节点的最新层级</span><br><span class="line"> console.log("updateNodes", this.updateNodes);</span><br><span class="line"> },</span><br><span class="line"> updateChildNodeLevel(node) {</span><br><span class="line"> if (node.childNodes.length > 0) {</span><br><span class="line"> for (let i = 0; i < node.childNodes.length; i++) {</span><br><span class="line"> var cNode = node.childNodes[i].data;</span><br><span class="line"> this.updateNodes.push({</span><br><span class="line"> catId: cNode.catId,</span><br><span class="line"> catLevel: node.childNodes[i].level</span><br><span class="line"> });</span><br><span class="line"> this.updateChildNodeLevel(node.childNodes[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> allowDrop(draggingNode, dropNode, type) {</span><br><span class="line"> //1、被拖动的当前节点以及所在的父节点总层数不能大于3</span><br><span class="line"></span><br><span class="line"> //1)、被拖动的当前节点总层数</span><br><span class="line"> console.log("allowDrop:", draggingNode, dropNode, type);</span><br><span class="line"> //</span><br><span class="line"> this.countNodeLevel(draggingNode);</span><br><span class="line"> //当前正在拖动的节点+父节点所在的深度不大于3即可</span><br><span class="line"> let deep = Math.abs(this.maxLevel - draggingNode.level) + 1;</span><br><span class="line"> console.log("深度:", deep);</span><br><span class="line"></span><br><span class="line"> // this.maxLevel</span><br><span class="line"> if (type == "inner") {</span><br><span class="line"> // console.log(</span><br><span class="line"> // `this.maxLevel:${this.maxLevel};draggingNode.data.catLevel:${draggingNode.data.catLevel};dropNode.level:${dropNode.level}`</span><br><span class="line"> // );</span><br><span class="line"> return deep + dropNode.level <= 3;</span><br><span class="line"> } else {</span><br><span class="line"> return deep + dropNode.parent.level <= 3;</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> countNodeLevel(node) {</span><br><span class="line"> //找到所有子节点,求出最大深度</span><br><span class="line"> if (node.childNodes != null && node.childNodes.length > 0) {</span><br><span class="line"> for (let i = 0; i < node.childNodes.length; i++) {</span><br><span class="line"> if (node.childNodes[i].level > this.maxLevel) {</span><br><span class="line"> this.maxLevel = node.childNodes[i].level;</span><br><span class="line"> }</span><br><span class="line"> this.countNodeLevel(node.childNodes[i]);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> edit(data) {</span><br><span class="line"> console.log("要修改的数据", data);</span><br><span class="line"> this.dialogType = "edit";</span><br><span class="line"> this.title = "修改分类";</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"></span><br><span class="line"> //发送请求获取当前节点最新的数据</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(`/product/category/info/${data.catId}`),</span><br><span class="line"> method: "get"</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> //请求成功</span><br><span class="line"> console.log("要回显的数据", data);</span><br><span class="line"> this.category.name = data.data.name;</span><br><span class="line"> this.category.catId = data.data.catId;</span><br><span class="line"> this.category.icon = data.data.icon;</span><br><span class="line"> this.category.productUnit = data.data.productUnit;</span><br><span class="line"> this.category.parentCid = data.data.parentCid;</span><br><span class="line"> this.category.catLevel = data.data.catLevel;</span><br><span class="line"> this.category.sort = data.data.sort;</span><br><span class="line"> this.category.showStatus = data.data.showStatus;</span><br><span class="line"> /**</span><br><span class="line"> * parentCid: 0,</span><br><span class="line"> catLevel: 0,</span><br><span class="line"> showStatus: 1,</span><br><span class="line"> sort: 0,</span><br><span class="line"> */</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> append(data) {</span><br><span class="line"> console.log("append", data);</span><br><span class="line"> this.dialogType = "add";</span><br><span class="line"> this.title = "添加分类";</span><br><span class="line"> this.dialogVisible = true;</span><br><span class="line"> this.category.parentCid = data.catId;</span><br><span class="line"> this.category.catLevel = data.catLevel * 1 + 1;</span><br><span class="line"> this.category.catId = null;</span><br><span class="line"> this.category.name = "";</span><br><span class="line"> this.category.icon = "";</span><br><span class="line"> this.category.productUnit = "";</span><br><span class="line"> this.category.sort = 0;</span><br><span class="line"> this.category.showStatus = 1;</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> submitData() {</span><br><span class="line"> if (this.dialogType == "add") {</span><br><span class="line"> this.addCategory();</span><br><span class="line"> }</span><br><span class="line"> if (this.dialogType == "edit") {</span><br><span class="line"> this.editCategory();</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //修改三级分类数据</span><br><span class="line"> editCategory() {</span><br><span class="line"> var { catId, name, icon, productUnit } = this.category;</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/update"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData({ catId, name, icon, productUnit }, false)</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单修改成功",</span><br><span class="line"> type: "success"</span><br><span class="line"> });</span><br><span class="line"> //关闭对话框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> //刷新出新的菜单</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> //添加三级分类</span><br><span class="line"> addCategory() {</span><br><span class="line"> console.log("提交的三级分类数据", this.category);</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/save"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(this.category, false)</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单保存成功",</span><br><span class="line"> type: "success"</span><br><span class="line"> });</span><br><span class="line"> //关闭对话框</span><br><span class="line"> this.dialogVisible = false;</span><br><span class="line"> //刷新出新的菜单</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单</span><br><span class="line"> this.expandedKey = [this.category.parentCid];</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"></span><br><span class="line"> remove(node, data) {</span><br><span class="line"> var ids = [data.catId];</span><br><span class="line"> this.$confirm(`是否删除【${data.name}】菜单?`, "提示", {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning"</span><br><span class="line"> })</span><br><span class="line"> .then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false)</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "菜单删除成功",</span><br><span class="line"> type: "success"</span><br><span class="line"> });</span><br><span class="line"> //刷新出新的菜单</span><br><span class="line"> this.getMenus();</span><br><span class="line"> //设置需要默认展开的菜单</span><br><span class="line"> this.expandedKey = [node.parent.data.catId];</span><br><span class="line"> });</span><br><span class="line"> })</span><br><span class="line"> .catch(() => {});</span><br><span class="line"></span><br><span class="line"> console.log("remove", node, data);</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> //生命周期 - 创建完成(可以访问当前this实例)</span><br><span class="line"> created() {</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"> //生命周期 - 挂载完成(可以访问DOM元素)</span><br><span class="line"> mounted() {},</span><br><span class="line"> beforeCreate() {}, //生命周期 - 创建之前</span><br><span class="line"> beforeMount() {}, //生命周期 - 挂载之前</span><br><span class="line"> beforeUpdate() {}, //生命周期 - 更新之前</span><br><span class="line"> updated() {}, //生命周期 - 更新之后</span><br><span class="line"> beforeDestroy() {}, //生命周期 - 销毁之前</span><br><span class="line"> destroyed() {}, //生命周期 - 销毁完成</span><br><span class="line"> activated() {} //如果页面有keep-alive缓存功能,这个函数会触发</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"><style scoped></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 批量修改商品的分类信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/update/sort")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">updateSort</span><span class="params">(<span class="meta">@RequestBody</span> CategoryEntity[] categoryEntities)</span> {</span><br><span class="line"> categoryService.updateBatchById(Arrays.asList(categoryEntities));</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="1-2-品牌管理"><a href="#1-2-品牌管理" class="headerlink" title="1.2 品牌管理"></a>1.2 品牌管理</h3><h4 id="1-2-1-品牌的增删改查功能"><a href="#1-2-1-品牌的增删改查功能" class="headerlink" title="1.2.1 品牌的增删改查功能"></a>1.2.1 品牌的增删改查功能</h4><p>这里前端的代码是和先前生成的后端的代码一起生成的</p>
|
||
<p><img src="/pictures/image-20230611111440999.png" alt="image-20230611111440999"></p>
|
||
<p><strong>商品品牌的列表显示</strong></p>
|
||
<p>优化之后的前端的代码 (表头的优化 需要按钮显示的使用按钮进行显示)</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div class="mod-config"></span><br><span class="line"> <el-form</span><br><span class="line"> :inline="true"</span><br><span class="line"> :model="dataForm"</span><br><span class="line"> @keyup.enter.native="getDataList()"</span><br><span class="line"> ></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-input</span><br><span class="line"> v-model="dataForm.key"</span><br><span class="line"> placeholder="参数名"</span><br><span class="line"> clearable</span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-button @click="getDataList()">查询</el-button></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:brand:save')"</span><br><span class="line"> type="primary"</span><br><span class="line"> @click="addOrUpdateHandle()"</span><br><span class="line"> >新增</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:brand:delete')"</span><br><span class="line"> type="danger"</span><br><span class="line"> @click="deleteHandle()"</span><br><span class="line"> :disabled="dataListSelections.length <= 0"</span><br><span class="line"> >批量删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <el-table</span><br><span class="line"> :data="dataList"</span><br><span class="line"> border</span><br><span class="line"> v-loading="dataListLoading"</span><br><span class="line"> @selection-change="selectionChangeHandle"</span><br><span class="line"> style="width: 100%"</span><br><span class="line"> ></span><br><span class="line"> <el-table-column</span><br><span class="line"> type="selection"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="50"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="brandId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌id"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="name"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌名"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="logo"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌logo地址"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="descript"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="介绍"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="showStatus"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="显示状态"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-switch</span><br><span class="line"> v-model="scope.row.showStatus"</span><br><span class="line"> active-color="#13ce66"</span><br><span class="line"> inactive-color="#ff4949"</span><br><span class="line"> :active-value="1"</span><br><span class="line"> :inactive-value="0"</span><br><span class="line"> @change="updateBrandStatus(scope.row)"</span><br><span class="line"> ></span><br><span class="line"> </el-switch></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="firstLetter"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="检索首字母"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="sort"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="排序"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> fixed="right"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="150"</span><br><span class="line"> label="操作"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="addOrUpdateHandle(scope.row.brandId)"</span><br><span class="line"> >修改</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="deleteHandle(scope.row.brandId)"</span><br><span class="line"> >删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> </el-table></span><br><span class="line"> <el-pagination</span><br><span class="line"> @size-change="sizeChangeHandle"</span><br><span class="line"> @current-change="currentChangeHandle"</span><br><span class="line"> :current-page="pageIndex"</span><br><span class="line"> :page-sizes="[10, 20, 50, 100]"</span><br><span class="line"> :page-size="pageSize"</span><br><span class="line"> :total="totalPage"</span><br><span class="line"> layout="total, sizes, prev, pager, next, jumper"</span><br><span class="line"> ></span><br><span class="line"> </el-pagination></span><br><span class="line"> <!-- 弹窗, 新增 / 修改 --></span><br><span class="line"> <add-or-update</span><br><span class="line"> v-if="addOrUpdateVisible"</span><br><span class="line"> ref="addOrUpdate"</span><br><span class="line"> @refreshDataList="getDataList"</span><br><span class="line"> ></add-or-update></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">import AddOrUpdate from "./brand-add-or-update";</span><br><span class="line">export default {</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> dataForm: {</span><br><span class="line"> key: "",</span><br><span class="line"> },</span><br><span class="line"> dataList: [],</span><br><span class="line"> pageIndex: 1,</span><br><span class="line"> pageSize: 10,</span><br><span class="line"> totalPage: 0,</span><br><span class="line"> dataListLoading: false,</span><br><span class="line"> dataListSelections: [],</span><br><span class="line"> addOrUpdateVisible: false,</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> components: {</span><br><span class="line"> AddOrUpdate,</span><br><span class="line"> },</span><br><span class="line"> activated() {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> //修改品牌的显示的状态的</span><br><span class="line"> updateBrandStatus(data) {</span><br><span class="line"> console.log("修改的状态信息:", data);</span><br><span class="line"> let { brandId, showStatus } = data;</span><br><span class="line"> //发送修改状态的请求</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(`/product/brand/update`),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(</span><br><span class="line"> { brandId: brandId, showStatus: showStatus },</span><br><span class="line"> false</span><br><span class="line"> ),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "状态更新成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 获取数据列表</span><br><span class="line"> getDataList() {</span><br><span class="line"> this.dataListLoading = true;</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/brand/list"),</span><br><span class="line"> method: "get",</span><br><span class="line"> params: this.$http.adornParams({</span><br><span class="line"> page: this.pageIndex,</span><br><span class="line"> limit: this.pageSize,</span><br><span class="line"> key: this.dataForm.key,</span><br><span class="line"> }),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.dataList = data.page.list;</span><br><span class="line"> this.totalPage = data.page.totalCount;</span><br><span class="line"> } else {</span><br><span class="line"> this.dataList = [];</span><br><span class="line"> this.totalPage = 0;</span><br><span class="line"> }</span><br><span class="line"> this.dataListLoading = false;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 每页数</span><br><span class="line"> sizeChangeHandle(val) {</span><br><span class="line"> this.pageSize = val;</span><br><span class="line"> this.pageIndex = 1;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 当前页</span><br><span class="line"> currentChangeHandle(val) {</span><br><span class="line"> this.pageIndex = val;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 多选</span><br><span class="line"> selectionChangeHandle(val) {</span><br><span class="line"> this.dataListSelections = val;</span><br><span class="line"> },</span><br><span class="line"> // 新增 / 修改</span><br><span class="line"> addOrUpdateHandle(id) {</span><br><span class="line"> this.addOrUpdateVisible = true;</span><br><span class="line"> this.$nextTick(() => {</span><br><span class="line"> this.$refs.addOrUpdate.init(id);</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 删除</span><br><span class="line"> deleteHandle(id) {</span><br><span class="line"> var ids = id</span><br><span class="line"> ? [id]</span><br><span class="line"> : this.dataListSelections.map((item) => {</span><br><span class="line"> return item.brandId;</span><br><span class="line"> });</span><br><span class="line"> this.$confirm(</span><br><span class="line"> `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,</span><br><span class="line"> "提示",</span><br><span class="line"> {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> }</span><br><span class="line"> ).then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/brand/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "操作成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> duration: 1500,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.$message.error(data.msg);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端代码(修改品牌的显示状态)</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/update")</span></span><br><span class="line"><span class="comment">//@RequiresPermissions("product:brand:update")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">update</span><span class="params">(<span class="meta">@RequestBody</span> BrandEntity brand)</span>{</span><br><span class="line"> brandService.updateById(brand);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>品牌添加功能</strong></p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/6319.html">阿里云对象存储OSS | The Blog (gitee.io)</a></strong></p>
|
||
<p><img src="/pictures/image-20230611153418426.png" alt="image-20230611153418426"></p>
|
||
<p><strong>前端的代码</strong></p>
|
||
<p>品牌管理的列表页面</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <div class="mod-config"></span><br><span class="line"> <el-form</span><br><span class="line"> :inline="true"</span><br><span class="line"> :model="dataForm"</span><br><span class="line"> @keyup.enter.native="getDataList()"</span><br><span class="line"> ></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-input</span><br><span class="line"> v-model="dataForm.key"</span><br><span class="line"> placeholder="参数名"</span><br><span class="line"> clearable</span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-button @click="getDataList()">查询</el-button></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:brand:save')"</span><br><span class="line"> type="primary"</span><br><span class="line"> @click="addOrUpdateHandle()"</span><br><span class="line"> >新增</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:brand:delete')"</span><br><span class="line"> type="danger"</span><br><span class="line"> @click="deleteHandle()"</span><br><span class="line"> :disabled="dataListSelections.length <= 0"</span><br><span class="line"> >批量删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <el-table</span><br><span class="line"> :data="dataList"</span><br><span class="line"> border</span><br><span class="line"> v-loading="dataListLoading"</span><br><span class="line"> @selection-change="selectionChangeHandle"</span><br><span class="line"> style="width: 100%"</span><br><span class="line"> ></span><br><span class="line"> <el-table-column</span><br><span class="line"> type="selection"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="50"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="brandId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌id"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="name"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌名"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="logo"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="品牌logo地址"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <img :src="scope.row.logo" style="width: 100px; height: 80px"></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="descript"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="介绍"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="showStatus"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="显示状态"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-switch</span><br><span class="line"> v-model="scope.row.showStatus"</span><br><span class="line"> active-color="#13ce66"</span><br><span class="line"> inactive-color="#ff4949"</span><br><span class="line"> :active-value="1"</span><br><span class="line"> :inactive-value="0"</span><br><span class="line"> @change="updateBrandStatus(scope.row)"</span><br><span class="line"> ></span><br><span class="line"> </el-switch></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="firstLetter"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="检索首字母"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="sort"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="排序"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> fixed="right"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="150"</span><br><span class="line"> label="操作"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="addOrUpdateHandle(scope.row.brandId)"</span><br><span class="line"> >修改</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="deleteHandle(scope.row.brandId)"</span><br><span class="line"> >删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> </el-table></span><br><span class="line"> <el-pagination</span><br><span class="line"> @size-change="sizeChangeHandle"</span><br><span class="line"> @current-change="currentChangeHandle"</span><br><span class="line"> :current-page="pageIndex"</span><br><span class="line"> :page-sizes="[10, 20, 50, 100]"</span><br><span class="line"> :page-size="pageSize"</span><br><span class="line"> :total="totalPage"</span><br><span class="line"> layout="total, sizes, prev, pager, next, jumper"</span><br><span class="line"> ></span><br><span class="line"> </el-pagination></span><br><span class="line"> <!-- 弹窗, 新增 / 修改 --></span><br><span class="line"> <add-or-update</span><br><span class="line"> v-if="addOrUpdateVisible"</span><br><span class="line"> ref="addOrUpdate"</span><br><span class="line"> @refreshDataList="getDataList"</span><br><span class="line"> ></add-or-update></span><br><span class="line"> </div></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">import AddOrUpdate from "./brand-add-or-update";</span><br><span class="line">export default {</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> dataForm: {</span><br><span class="line"> key: "",</span><br><span class="line"> },</span><br><span class="line"> dataList: [],</span><br><span class="line"> pageIndex: 1,</span><br><span class="line"> pageSize: 10,</span><br><span class="line"> totalPage: 0,</span><br><span class="line"> dataListLoading: false,</span><br><span class="line"> dataListSelections: [],</span><br><span class="line"> addOrUpdateVisible: false,</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> components: {</span><br><span class="line"> AddOrUpdate,</span><br><span class="line"> },</span><br><span class="line"> activated() {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> //修改品牌的显示的状态的</span><br><span class="line"> updateBrandStatus(data) {</span><br><span class="line"> console.log("修改的状态信息:", data);</span><br><span class="line"> let { brandId, showStatus } = data;</span><br><span class="line"> //发送修改状态的请求</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(`/product/brand/update`),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(</span><br><span class="line"> { brandId: brandId, showStatus: showStatus },</span><br><span class="line"> false</span><br><span class="line"> ),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "状态更新成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 获取数据列表</span><br><span class="line"> getDataList() {</span><br><span class="line"> this.dataListLoading = true;</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/brand/list"),</span><br><span class="line"> method: "get",</span><br><span class="line"> params: this.$http.adornParams({</span><br><span class="line"> page: this.pageIndex,</span><br><span class="line"> limit: this.pageSize,</span><br><span class="line"> key: this.dataForm.key,</span><br><span class="line"> }),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.dataList = data.page.list;</span><br><span class="line"> this.totalPage = data.page.totalCount;</span><br><span class="line"> } else {</span><br><span class="line"> this.dataList = [];</span><br><span class="line"> this.totalPage = 0;</span><br><span class="line"> }</span><br><span class="line"> this.dataListLoading = false;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 每页数</span><br><span class="line"> sizeChangeHandle(val) {</span><br><span class="line"> this.pageSize = val;</span><br><span class="line"> this.pageIndex = 1;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 当前页</span><br><span class="line"> currentChangeHandle(val) {</span><br><span class="line"> this.pageIndex = val;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 多选</span><br><span class="line"> selectionChangeHandle(val) {</span><br><span class="line"> this.dataListSelections = val;</span><br><span class="line"> },</span><br><span class="line"> // 新增 / 修改</span><br><span class="line"> addOrUpdateHandle(id) {</span><br><span class="line"> this.addOrUpdateVisible = true;</span><br><span class="line"> this.$nextTick(() => {</span><br><span class="line"> this.$refs.addOrUpdate.init(id);</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 删除</span><br><span class="line"> deleteHandle(id) {</span><br><span class="line"> var ids = id</span><br><span class="line"> ? [id]</span><br><span class="line"> : this.dataListSelections.map((item) => {</span><br><span class="line"> return item.brandId;</span><br><span class="line"> });</span><br><span class="line"> this.$confirm(</span><br><span class="line"> `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,</span><br><span class="line"> "提示",</span><br><span class="line"> {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> }</span><br><span class="line"> ).then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/brand/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "操作成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> duration: 1500,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.$message.error(data.msg);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>品牌管理的添加和修改组件</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-dialog</span><br><span class="line"> :title="!dataForm.brandId ? '新增' : '修改'"</span><br><span class="line"> :close-on-click-modal="false"</span><br><span class="line"> :visible.sync="visible"</span><br><span class="line"> ></span><br><span class="line"> <el-form</span><br><span class="line"> :model="dataForm"</span><br><span class="line"> :rules="dataRule"</span><br><span class="line"> ref="dataForm"</span><br><span class="line"> @keyup.enter.native="dataFormSubmit()"</span><br><span class="line"> label-width="140px"</span><br><span class="line"> ></span><br><span class="line"> <el-form-item label="品牌名" prop="name"></span><br><span class="line"> <el-input v-model="dataForm.name" placeholder="品牌名"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="品牌logo地址" prop="logo"></span><br><span class="line"> <!-- <el-input v-model="dataForm.logo" placeholder="品牌logo地址"></el-input> --></span><br><span class="line"> <!-- 自定义的组件 --></span><br><span class="line"> <SingleUpload v-model="dataForm.logo"></SingleUpload></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="介绍" prop="descript"></span><br><span class="line"> <el-input v-model="dataForm.descript" placeholder="介绍"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="显示状态" prop="showStatus"></span><br><span class="line"> <el-switch</span><br><span class="line"> v-model="dataForm.showStatus"</span><br><span class="line"> active-color="#13ce66"</span><br><span class="line"> inactive-color="#ff4949"</span><br><span class="line"> :active-value="1"</span><br><span class="line"> :inactive-value="0"</span><br><span class="line"> ></span><br><span class="line"> </el-switch></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="检索首字母" prop="firstLetter"></span><br><span class="line"> <el-input</span><br><span class="line"> v-model="dataForm.firstLetter"</span><br><span class="line"> placeholder="检索首字母"</span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label="排序" prop="sort"></span><br><span class="line"> <el-input v-model.number="dataForm.sort" placeholder="排序"></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot="footer" class="dialog-footer"></span><br><span class="line"> <el-button @click="visible = false">取消</el-button></span><br><span class="line"> <el-button type="primary" @click="dataFormSubmit()">确定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line">import SingleUpload from "@/components/upload/singleUpload";</span><br><span class="line">export default {</span><br><span class="line"> components: { SingleUpload }, //声明一下组件</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> visible: false,</span><br><span class="line"> dataForm: {</span><br><span class="line"> brandId: 0,</span><br><span class="line"> name: "",</span><br><span class="line"> logo: "",</span><br><span class="line"> descript: "",</span><br><span class="line"> showStatus: 1,</span><br><span class="line"> firstLetter: "",</span><br><span class="line"> sort: 0,</span><br><span class="line"> },</span><br><span class="line"> dataRule: {</span><br><span class="line"> name: [{ required: true, message: "品牌名不能为空", trigger: "blur" }],</span><br><span class="line"> logo: [</span><br><span class="line"> { required: true, message: "品牌logo地址不能为空", trigger: "blur" },</span><br><span class="line"> ],</span><br><span class="line"> descript: [</span><br><span class="line"> { required: true, message: "介绍不能为空", trigger: "blur" },</span><br><span class="line"> ],</span><br><span class="line"> showStatus: [</span><br><span class="line"> {</span><br><span class="line"> required: true,</span><br><span class="line"> message: "显示状态[0-不显示;1-显示]不能为空",</span><br><span class="line"> trigger: "blur",</span><br><span class="line"> },</span><br><span class="line"> ],</span><br><span class="line"> firstLetter: [</span><br><span class="line"> {</span><br><span class="line"> validator: (rule, value, callback) => {</span><br><span class="line"> if (value == "") {</span><br><span class="line"> //检测是不是空串</span><br><span class="line"> callback(new Error("检索首字母不能为空"));</span><br><span class="line"> } else if (!/^[a-zA-Z]$/.test(value)) {</span><br><span class="line"> //检测输入的是不是字母</span><br><span class="line"> callback(new Error("首字母必须是a-z或者A-Z"));</span><br><span class="line"> } else {</span><br><span class="line"> //成功</span><br><span class="line"> callback();</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> trigger: "blur",</span><br><span class="line"> },</span><br><span class="line"> ],</span><br><span class="line"> sort: [</span><br><span class="line"> {</span><br><span class="line"> validator: (rule, value, callback) => {</span><br><span class="line"> if (value === "") {</span><br><span class="line"> //检测是不是空串</span><br><span class="line"> callback(new Error("排序不能为空"));</span><br><span class="line"> } else if (!Number.isInteger(value) || value < 0) {</span><br><span class="line"> //检测输入的是不是字母</span><br><span class="line"> callback(new Error("排序必须为整数并且大于0"));</span><br><span class="line"> } else {</span><br><span class="line"> //成功</span><br><span class="line"> callback();</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> trigger: "blur",</span><br><span class="line"> },</span><br><span class="line"> ],</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> init(id) {</span><br><span class="line"> this.dataForm.brandId = id || 0;</span><br><span class="line"> this.visible = true;</span><br><span class="line"> this.$nextTick(() => {</span><br><span class="line"> this.$refs["dataForm"].resetFields();</span><br><span class="line"> if (this.dataForm.brandId) {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(</span><br><span class="line"> `/product/brand/info/${this.dataForm.brandId}`</span><br><span class="line"> ),</span><br><span class="line"> method: "get",</span><br><span class="line"> params: this.$http.adornParams(),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.dataForm.name = data.brand.name;</span><br><span class="line"> this.dataForm.logo = data.brand.logo;</span><br><span class="line"> this.dataForm.descript = data.brand.descript;</span><br><span class="line"> this.dataForm.showStatus = data.brand.showStatus;</span><br><span class="line"> this.dataForm.firstLetter = data.brand.firstLetter;</span><br><span class="line"> this.dataForm.sort = data.brand.sort;</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 表单提交</span><br><span class="line"> dataFormSubmit() {</span><br><span class="line"> this.$refs["dataForm"].validate((valid) => {</span><br><span class="line"> if (valid) {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(</span><br><span class="line"> `/product/brand/${!this.dataForm.brandId ? "save" : "update"}`</span><br><span class="line"> ),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData({</span><br><span class="line"> brandId: this.dataForm.brandId || undefined,</span><br><span class="line"> name: this.dataForm.name,</span><br><span class="line"> logo: this.dataForm.logo,</span><br><span class="line"> descript: this.dataForm.descript,</span><br><span class="line"> showStatus: this.dataForm.showStatus,</span><br><span class="line"> firstLetter: this.dataForm.firstLetter,</span><br><span class="line"> sort: this.dataForm.sort,</span><br><span class="line"> }),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "操作成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> duration: 1500,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> this.visible = false;</span><br><span class="line"> this.$emit("refreshDataList");</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.$message.error(data.msg);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>后端的代码</strong></p>
|
||
<p><em>图片上传相关的后台接口</em></p>
|
||
<p>配置文件<br>apllication.yml</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">cloud:</span></span><br><span class="line"> <span class="attr">nacos:</span></span><br><span class="line"> <span class="attr">discovery:</span></span><br><span class="line"> <span class="attr">server-addr:</span> <span class="number">127.0</span><span class="number">.0</span><span class="number">.1</span><span class="string">:8848</span></span><br><span class="line"> <span class="attr">alicloud:</span></span><br><span class="line"> <span class="attr">access-key:</span> <span class="string">XXXXXXXXXXXXXXXXXXXX</span></span><br><span class="line"> <span class="attr">secret-key:</span> <span class="string">XXXXXXXXXXXXXXXXXXXX</span></span><br><span class="line"> <span class="attr">oss:</span></span><br><span class="line"> <span class="attr">endpoint:</span> <span class="string">oss-cn-beijing.aliyuncs.com</span> </span><br><span class="line"> <span class="attr">bucket:</span> <span class="string">gulimall-0611</span> <span class="comment">#因为是公用的配置,这个配置是自己配置的</span></span><br><span class="line"></span><br><span class="line"> <span class="attr">application:</span></span><br><span class="line"> <span class="attr">name:</span> <span class="string">gulimall-third-party</span></span><br><span class="line"></span><br><span class="line"><span class="attr">server:</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">30000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>Controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.thirdparty.controller;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSS;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.OSSClientBuilder;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.common.utils.BinaryUtil;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.MatchMode;</span><br><span class="line"><span class="keyword">import</span> com.aliyun.oss.model.PolicyConditions;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.R;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Autowired;</span><br><span class="line"><span class="keyword">import</span> org.springframework.beans.factory.annotation.Value;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RequestMapping;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestController;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.text.SimpleDateFormat;</span><br><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="keyword">import</span> java.util.LinkedHashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/11</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 阿里云对象存储的控制器方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"></span><br><span class="line"><span class="meta">@RestController</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">OSSController</span> {</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Autowired</span></span><br><span class="line"> OSS ossClient;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.oss.endpoint}")</span></span><br><span class="line"> <span class="keyword">private</span> String endpoint;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.oss.bucket}")</span></span><br><span class="line"> <span class="keyword">private</span> String bucket;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.access-key}")</span></span><br><span class="line"> <span class="keyword">private</span> String accessId;</span><br><span class="line"> <span class="meta">@Value("${spring.cloud.alicloud.secret-key}")</span></span><br><span class="line"> <span class="keyword">private</span> String accessKey;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@RequestMapping("/oss/policy")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">policy</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">// 填写Host地址,格式为https://bucketname.endpoint。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">host</span> <span class="operator">=</span> <span class="string">"https://"</span>+bucket+<span class="string">"."</span>+endpoint;</span><br><span class="line"> <span class="comment">// 设置上传回调URL,即回调服务器地址,用于处理应用服务器与OSS之间的通信。OSS会在文件上传完成后,把文件上传信息通过此回调URL发送给应用服务器。</span></span><br><span class="line"> <span class="comment">//String callbackUrl = "https://192.168.0.0:8888";</span></span><br><span class="line"> <span class="comment">// 设置上传到OSS文件的前缀,可置空此项。置空后,文件将上传至Bucket的根目录下。</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">format</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SimpleDateFormat</span>(<span class="string">"yyyy/MM/dd"</span>).format(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="type">String</span> <span class="variable">dir</span> <span class="operator">=</span> format+<span class="string">"/"</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 创建ossClient实例。</span></span><br><span class="line"> <span class="type">OSS</span> <span class="variable">ossClient</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">OSSClientBuilder</span>().build(endpoint, accessId, accessKey);</span><br><span class="line"> Map<String, String> respMap = <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">long</span> <span class="variable">expireTime</span> <span class="operator">=</span> <span class="number">30</span>;</span><br><span class="line"> <span class="type">long</span> <span class="variable">expireEndTime</span> <span class="operator">=</span> System.currentTimeMillis() + expireTime * <span class="number">1000</span>;</span><br><span class="line"> <span class="type">Date</span> <span class="variable">expiration</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>(expireEndTime);</span><br><span class="line"> <span class="type">PolicyConditions</span> <span class="variable">policyConds</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PolicyConditions</span>();</span><br><span class="line"> policyConds.addConditionItem(PolicyConditions.COND_CONTENT_LENGTH_RANGE, <span class="number">0</span>, <span class="number">1048576000</span>);</span><br><span class="line"> policyConds.addConditionItem(MatchMode.StartWith, PolicyConditions.COND_KEY, dir);</span><br><span class="line"></span><br><span class="line"> <span class="type">String</span> <span class="variable">postPolicy</span> <span class="operator">=</span> ossClient.generatePostPolicy(expiration, policyConds);</span><br><span class="line"> <span class="type">byte</span>[] binaryData = postPolicy.getBytes(<span class="string">"utf-8"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">encodedPolicy</span> <span class="operator">=</span> BinaryUtil.toBase64String(binaryData);</span><br><span class="line"> <span class="type">String</span> <span class="variable">postSignature</span> <span class="operator">=</span> ossClient.calculatePostSignature(postPolicy);</span><br><span class="line"></span><br><span class="line"> respMap = <span class="keyword">new</span> <span class="title class_">LinkedHashMap</span><String, String>();</span><br><span class="line"> respMap.put(<span class="string">"accessId"</span>, accessId);</span><br><span class="line"> respMap.put(<span class="string">"policy"</span>, encodedPolicy);</span><br><span class="line"> respMap.put(<span class="string">"signature"</span>, postSignature);</span><br><span class="line"> respMap.put(<span class="string">"dir"</span>, dir);</span><br><span class="line"> respMap.put(<span class="string">"host"</span>, host);</span><br><span class="line"> respMap.put(<span class="string">"expire"</span>, String.valueOf(expireEndTime / <span class="number">1000</span>));</span><br><span class="line"> <span class="comment">// respMap.put("expire", formatISO8601Date(expiration));</span></span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> System.out.println(e.getMessage());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"data"</span>,respMap);</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>配置网关,通过网关访问到该接口</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="bullet">-</span> <span class="attr">id:</span> <span class="string">third_party_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://gulimall-third-party</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Path=/api/thirdparty/**</span></span><br><span class="line"> <span class="attr">filters:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">RewritePath=/api/thirdparty/(?<segment>.*),/$\{segment}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-2-2-JSR303-数据校验"><a href="#1-2-2-JSR303-数据校验" class="headerlink" title="1.2.2 JSR303-数据校验"></a>1.2.2 JSR303-数据校验</h4><p><strong><a href="https://jasonsgong.gitee.io/posts/27166.html">数据校验 | The Blog (gitee.io)</a></strong></p>
|
||
<p>1.依赖文件</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.hibernate<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>hibernate-validator<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>6.0.7.Final<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.在实体类上添加上校验的规则</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.entity;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableId;</span><br><span class="line"><span class="keyword">import</span> com.baomidou.mybatisplus.annotation.TableName;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.Serializable;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> org.hibernate.validator.constraints.URL;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> javax.validation.constraints.*;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> JasonGong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@email</span> JasonGong@gmail.com</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@date</span> 2023-05-19 00:23:36</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@TableName("pms_brand")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">BrandEntity</span> <span class="keyword">implements</span> <span class="title class_">Serializable</span> {</span><br><span class="line"> <span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="type">long</span> <span class="variable">serialVersionUID</span> <span class="operator">=</span> <span class="number">1L</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@TableId</span></span><br><span class="line"> <span class="keyword">private</span> Long brandId;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌名</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotBlank(message = "品牌名必须提交")</span> <span class="comment">//非空的校验</span></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌logo地址</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotEmpty</span></span><br><span class="line"> <span class="meta">@URL(message = "logo必须是一个合法的URL地址")</span><span class="comment">//URL的校验</span></span><br><span class="line"> <span class="keyword">private</span> String logo;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 介绍</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String descript;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 显示状态[0-不显示;1-显示]</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer showStatus;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 检索首字母</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotEmpty</span></span><br><span class="line"> <span class="meta">@Pattern(regexp = "^[a-zA-Z]$", message = "检索首字母必须是一个字母")</span><span class="comment">//正则表达式的校验</span></span><br><span class="line"> <span class="keyword">private</span> String firstLetter;</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 排序</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@NotNull</span></span><br><span class="line"> <span class="meta">@Min(value = 0, message = "排序必须大于等于0")</span><span class="comment">//最小值是0</span></span><br><span class="line"> <span class="keyword">private</span> Integer sort;</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>3.接口上开启检验,并自定义校验出错时的返回值</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存</span></span><br><span class="line"><span class="comment"> *"<span class="doctag">@Valid</span>" 开启校验</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> result 检验之后响应的结果信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@RequestMapping("/save")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">save</span><span class="params">(<span class="meta">@Valid</span> <span class="meta">@RequestBody</span> BrandEntity brand, BindingResult result)</span>{</span><br><span class="line"> <span class="keyword">if</span>(result.hasErrors()){</span><br><span class="line"> Map<String,String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//获取检验的错误结果</span></span><br><span class="line"> <span class="keyword">for</span> (FieldError fieldError : result.getFieldErrors()) {</span><br><span class="line"> <span class="comment">//获取到错误的提示</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">defaultMessage</span> <span class="operator">=</span> fieldError.getDefaultMessage();</span><br><span class="line"> <span class="comment">//获取错误的属性的名字</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">field</span> <span class="operator">=</span> fieldError.getField();</span><br><span class="line"> map.put(field,defaultMessage);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.error(<span class="number">400</span>,<span class="string">"提交的数据不合法"</span>).put(<span class="string">"data"</span>,map);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> brandService.save(brand);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>返回的json格式示例</p>
|
||
<p><img src="/pictures/image-20230612165021780.png" alt="image-20230612165021780"></p>
|
||
<h4 id="1-2-3-统一异常处理"><a href="#1-2-3-统一异常处理" class="headerlink" title="1.2.3 统一异常处理"></a>1.2.3 统一异常处理</h4><p><strong><a href="https://jasonsgong.gitee.io/posts/31385.html">统一异常处理 | The Blog (gitee.io)</a></strong></p>
|
||
<p>统一异常返回状态码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.exception;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/12</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 返回的状态码信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">enum</span> <span class="title class_">BizCodeEnum</span> {</span><br><span class="line"> UNKNOWN_EXCEPTION(<span class="number">10000</span>,<span class="string">"系统未知异常"</span>),</span><br><span class="line"> VALID_EXCEPTION(<span class="number">10001</span>,<span class="string">"参数格式校验"</span>);</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Integer code;</span><br><span class="line"> <span class="keyword">private</span> String msg;</span><br><span class="line"></span><br><span class="line"> BizCodeEnum(Integer code, String msg) {</span><br><span class="line"> <span class="built_in">this</span>.code = code;</span><br><span class="line"> <span class="built_in">this</span>.msg = msg;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> Integer <span class="title function_">getCode</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> code;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">getMsg</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> msg;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>创建异常处理类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.exception;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.exception.BizCodeEnum;</span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.utils.R;</span><br><span class="line"><span class="keyword">import</span> lombok.extern.slf4j.Slf4j;</span><br><span class="line"><span class="keyword">import</span> org.springframework.validation.BindingResult;</span><br><span class="line"><span class="keyword">import</span> org.springframework.validation.FieldError;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.MethodArgumentNotValidException;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.ExceptionHandler;</span><br><span class="line"><span class="keyword">import</span> org.springframework.web.bind.annotation.RestControllerAdvice;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.HashMap;</span><br><span class="line"><span class="keyword">import</span> java.util.Map;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/6/12</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 异常处理类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Slf4j</span></span><br><span class="line"><span class="meta">@RestControllerAdvice(basePackages = "com.atguigu.gulimall.product.controller")</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">GulimallExceptionControllerAdvice</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 统一处理数据校验的异常</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> e 数据校验的异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ExceptionHandler(value = MethodArgumentNotValidException.class)</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">handleValidException</span><span class="params">(MethodArgumentNotValidException e)</span>{</span><br><span class="line"> log.error(<span class="string">"数据校验出现问题:{},异常类型:{}"</span>,e.getMessage(),e.getClass());</span><br><span class="line"> Map<String,String> map = <span class="keyword">new</span> <span class="title class_">HashMap</span><>();</span><br><span class="line"> <span class="comment">//获取检验的错误结果</span></span><br><span class="line"> <span class="type">BindingResult</span> <span class="variable">result</span> <span class="operator">=</span> e.getBindingResult();</span><br><span class="line"> <span class="keyword">for</span> (FieldError fieldError : result.getFieldErrors()) {</span><br><span class="line"> <span class="comment">//获取到错误的提示</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">defaultMessage</span> <span class="operator">=</span> fieldError.getDefaultMessage();</span><br><span class="line"> <span class="comment">//获取错误的属性的名字</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">field</span> <span class="operator">=</span> fieldError.getField();</span><br><span class="line"> map.put(field,defaultMessage);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> R.error(BizCodeEnum.VALID_EXCEPTION.getCode(),BizCodeEnum.VALID_EXCEPTION.getMsg()).put(<span class="string">"data"</span>,map);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 捕获任意的异常</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ExceptionHandler(value = Throwable.class)</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">handleException</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> R.error(BizCodeEnum.UNKNOWN_EXCEPTION.getCode(), BizCodeEnum.UNKNOWN_EXCEPTION.getMsg());</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-2-4-关联分类功能"><a href="#1-2-4-关联分类功能" class="headerlink" title="1.2.4 关联分类功能"></a>1.2.4 关联分类功能</h4><p>功能截图</p>
|
||
<p><img src="/pictures/image-20230618232437618.png" alt="image-20230618232437618"></p>
|
||
<p>后端代码的实现</p>
|
||
<p>查询品牌和分类的关联关系</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询商品的关联分类数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> brandId 品牌的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 关联的分类数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/catelog/list")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">catelogList</span><span class="params">(<span class="meta">@RequestParam("brandId")</span> Long brandId)</span>{</span><br><span class="line"> LambdaQueryWrapper<CategoryBrandRelationEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> queryWrapper.eq(CategoryBrandRelationEntity::getBrandId,brandId);</span><br><span class="line"> List<CategoryBrandRelationEntity> categoryBrandRelationEntityList = categoryBrandRelationService.list(queryWrapper);</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"data"</span>, categoryBrandRelationEntityList);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>新增品牌和商品的关联关系</p>
|
||
<p>controller</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存商品的关联的分类数据信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@PostMapping("/save")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">saveCategoryBrandRelation</span><span class="params">(<span class="meta">@RequestBody</span> CategoryBrandRelationEntity categoryBrandRelation)</span>{</span><br><span class="line"> categoryBrandRelationService.saveDetail(categoryBrandRelation);</span><br><span class="line"> <span class="keyword">return</span> R.ok();</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存商品和分类的关联数据</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> categoryBrandRelation 商品和分类的关联数据表</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">saveDetail</span><span class="params">(CategoryBrandRelationEntity categoryBrandRelation)</span> {</span><br><span class="line"> <span class="comment">//获取品牌的id和关联分类的id</span></span><br><span class="line"> <span class="type">Long</span> <span class="variable">brandId</span> <span class="operator">=</span> categoryBrandRelation.getBrandId();</span><br><span class="line"> <span class="type">Long</span> <span class="variable">catelogId</span> <span class="operator">=</span> categoryBrandRelation.getCatelogId();</span><br><span class="line"> <span class="comment">//根据id查询对应的品牌名和分类名</span></span><br><span class="line"> <span class="type">BrandEntity</span> <span class="variable">brand</span> <span class="operator">=</span> brandDao.selectById(brandId);</span><br><span class="line"> <span class="type">CategoryEntity</span> <span class="variable">category</span> <span class="operator">=</span> categoryDao.selectById(catelogId);</span><br><span class="line"> <span class="comment">//设置值并保存</span></span><br><span class="line"> categoryBrandRelation.setBrandName(brand.getName());</span><br><span class="line"> categoryBrandRelation.setCatelogName(category.getName());</span><br><span class="line"> <span class="built_in">this</span>.save(categoryBrandRelation);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>注意</strong>:这里品牌和关联分类之间的关系表中使用了冗余的字段,所以在修改品牌的时候,关系表中的字段也要修改一下</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateDetail</span><span class="params">(BrandEntity brand)</span> {</span><br><span class="line"> <span class="comment">//保证冗余字段的数据的一致性</span></span><br><span class="line"> <span class="comment">//更新品牌表中的数据</span></span><br><span class="line"> <span class="built_in">this</span>.updateById(brand);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(brand.getName())) {</span><br><span class="line"> <span class="comment">//同步更新关联表中的数据</span></span><br><span class="line"> categoryBrandRelationService.updateBrand(brand.getBrandId(),brand.getName());</span><br><span class="line"> <span class="comment">//TODO 更新其他的关联</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>关联的分类也是冗余的字段 也要同步修改</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 级联更新所有的关联的数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> category 商品分类的实体</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateCascade</span><span class="params">(CategoryEntity category)</span> {</span><br><span class="line"> <span class="comment">//更新分类表中的数据</span></span><br><span class="line"> <span class="built_in">this</span>.updateById(category);</span><br><span class="line"> <span class="comment">//更新分类与品牌名关联表中分类的名称</span></span><br><span class="line"> categoryBrandRelationService.updateCategory(category.getCatId(),category.getName());</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>功能实现之后的截图</p>
|
||
<p><img src="/pictures/image-20230619111515367.png" alt="image-20230619111515367"></p>
|
||
<h3 id="1-3-平台属性"><a href="#1-3-平台属性" class="headerlink" title="1.3 平台属性"></a>1.3 平台属性</h3><p>创建属性管理的菜单(通过sql导入所有的菜单,导入所有以后需要使用的菜单)</p>
|
||
<p>资料中的sys_menus.sql文件保存的是所有的菜单信息</p>
|
||
<p><img src="/pictures/image-20230616152846339.png" alt="image-20230616152846339"></p>
|
||
<p><strong>谷粒商城的接口的在线文档:<a href="https://easydoc.net/s/78237135">https://easydoc.net/s/78237135</a></strong></p>
|
||
<p><img src="/pictures/image-20230616153304953.png" alt="image-20230616153304953"></p>
|
||
<p><strong>Object的划分</strong></p>
|
||
<ol>
|
||
<li><p>PO 持久对象</p>
|
||
<p>PO就是对应数据库中某个表的一条记录,多个记录可以用PO的集合。PO中应该不包含对数据库的操作。</p>
|
||
</li>
|
||
<li><p>DO 领域对象</p>
|
||
<p>就是从现实世界中抽象出来的有形或者无形的业务实体。</p>
|
||
</li>
|
||
<li><p>TO 数据传输对象</p>
|
||
<p>不同的应用程序之间传输的对象</p>
|
||
</li>
|
||
<li><p>DTO 数据传输对象</p>
|
||
<p>泛指展示层与服务层之间的数据传输对象</p>
|
||
</li>
|
||
<li><p>VO 值对象</p>
|
||
<p>视图对象 接收页面传入过来的数据,封装对象;将业务处理完成的对象,封装成页面需要的数据</p>
|
||
</li>
|
||
<li><p>BO 业务对象</p>
|
||
</li>
|
||
<li><p>POJO 简单无规则的java对象</p>
|
||
</li>
|
||
<li><p>DAO 数据访问对象</p>
|
||
</li>
|
||
</ol>
|
||
<h4 id="1-3-1-属性分组功能"><a href="#1-3-1-属性分组功能" class="headerlink" title="1.3.1 属性分组功能"></a>1.3.1 属性分组功能</h4><p>实现一个分类 联动的显示相应的分组信息</p>
|
||
<p>抽取商品分类的组件</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> node-key="catId"</span><br><span class="line"> ref="menuTree"</span><br><span class="line"> ></el-tree></span><br><span class="line"></template></span><br><span class="line"> <script></span><br><span class="line">export default {</span><br><span class="line"> components: {},</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> expandedKey: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> children: "children",</span><br><span class="line"> label: "name",</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> created() {</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> console.log("商品分类数据:", data.data);</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"> </span><br><span class="line"> <style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>属性分组页面</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-row :gutter="20"></span><br><span class="line"> <el-col :span="6"> <category></category></el-col></span><br><span class="line"> <el-col :span="18"></span><br><span class="line"> <div class="mod-config"></span><br><span class="line"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-button @click="getDataList()">查询</el-button></span><br><span class="line"> <el-button v-if="isAuth('product:attrgroup:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button></span><br><span class="line"> <el-button v-if="isAuth('product:attrgroup:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <el-table</span><br><span class="line"> :data="dataList"</span><br><span class="line"> border</span><br><span class="line"> v-loading="dataListLoading"</span><br><span class="line"> @selection-change="selectionChangeHandle"</span><br><span class="line"> style="width: 100%;"></span><br><span class="line"> <el-table-column</span><br><span class="line"> type="selection"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="50"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="attrGroupId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="分组id"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="attrGroupName"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="组名"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="sort"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="排序"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="descript"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="描述"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="icon"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="组图标"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="catelogId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="所属分类id"></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> fixed="right"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="150"</span><br><span class="line"> label="操作"></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.attrGroupId)">修改</el-button></span><br><span class="line"> <el-button type="text" size="small" @click="deleteHandle(scope.row.attrGroupId)">删除</el-button></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> </el-table></span><br><span class="line"> <el-pagination</span><br><span class="line"> @size-change="sizeChangeHandle"</span><br><span class="line"> @current-change="currentChangeHandle"</span><br><span class="line"> :current-page="pageIndex"</span><br><span class="line"> :page-sizes="[10, 20, 50, 100]"</span><br><span class="line"> :page-size="pageSize"</span><br><span class="line"> :total="totalPage"</span><br><span class="line"> layout="total, sizes, prev, pager, next, jumper"></span><br><span class="line"> </el-pagination></span><br><span class="line"> <!-- 弹窗, 新增 / 修改 --></span><br><span class="line"> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update></span><br><span class="line"> </div></el-col></span><br><span class="line"> </el-row></span><br><span class="line"></template></span><br><span class="line"><script></span><br><span class="line">import Category from "../common/category.vue";</span><br><span class="line">import AddOrUpdate from './attrgroup-add-or-update'</span><br><span class="line">export default {</span><br><span class="line"> data () {</span><br><span class="line"> return {</span><br><span class="line"> dataForm: {</span><br><span class="line"> key: ''</span><br><span class="line"> },</span><br><span class="line"> dataList: [],</span><br><span class="line"> pageIndex: 1,</span><br><span class="line"> pageSize: 10,</span><br><span class="line"> totalPage: 0,</span><br><span class="line"> dataListLoading: false,</span><br><span class="line"> dataListSelections: [],</span><br><span class="line"> addOrUpdateVisible: false</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> components: {</span><br><span class="line"> AddOrUpdate,Category</span><br><span class="line"> },</span><br><span class="line"> activated () {</span><br><span class="line"> this.getDataList()</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> // 获取数据列表</span><br><span class="line"> getDataList () {</span><br><span class="line"> this.dataListLoading = true</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl('/product/attrgroup/list'),</span><br><span class="line"> method: 'get',</span><br><span class="line"> params: this.$http.adornParams({</span><br><span class="line"> 'page': this.pageIndex,</span><br><span class="line"> 'limit': this.pageSize,</span><br><span class="line"> 'key': this.dataForm.key</span><br><span class="line"> })</span><br><span class="line"> }).then(({data}) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.dataList = data.page.list</span><br><span class="line"> this.totalPage = data.page.totalCount</span><br><span class="line"> } else {</span><br><span class="line"> this.dataList = []</span><br><span class="line"> this.totalPage = 0</span><br><span class="line"> }</span><br><span class="line"> this.dataListLoading = false</span><br><span class="line"> })</span><br><span class="line"> },</span><br><span class="line"> // 每页数</span><br><span class="line"> sizeChangeHandle (val) {</span><br><span class="line"> this.pageSize = val</span><br><span class="line"> this.pageIndex = 1</span><br><span class="line"> this.getDataList()</span><br><span class="line"> },</span><br><span class="line"> // 当前页</span><br><span class="line"> currentChangeHandle (val) {</span><br><span class="line"> this.pageIndex = val</span><br><span class="line"> this.getDataList()</span><br><span class="line"> },</span><br><span class="line"> // 多选</span><br><span class="line"> selectionChangeHandle (val) {</span><br><span class="line"> this.dataListSelections = val</span><br><span class="line"> },</span><br><span class="line"> // 新增 / 修改</span><br><span class="line"> addOrUpdateHandle (id) {</span><br><span class="line"> this.addOrUpdateVisible = true</span><br><span class="line"> this.$nextTick(() => {</span><br><span class="line"> this.$refs.addOrUpdate.init(id)</span><br><span class="line"> })</span><br><span class="line"> },</span><br><span class="line"> // 删除</span><br><span class="line"> deleteHandle (id) {</span><br><span class="line"> var ids = id ? [id] : this.dataListSelections.map(item => {</span><br><span class="line"> return item.attrGroupId</span><br><span class="line"> })</span><br><span class="line"> this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {</span><br><span class="line"> confirmButtonText: '确定',</span><br><span class="line"> cancelButtonText: '取消',</span><br><span class="line"> type: 'warning'</span><br><span class="line"> }).then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl('/product/attrgroup/delete'),</span><br><span class="line"> method: 'post',</span><br><span class="line"> data: this.$http.adornData(ids, false)</span><br><span class="line"> }).then(({data}) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: '操作成功',</span><br><span class="line"> type: 'success',</span><br><span class="line"> duration: 1500,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> this.getDataList()</span><br><span class="line"> }</span><br><span class="line"> })</span><br><span class="line"> } else {</span><br><span class="line"> this.$message.error(data.msg)</span><br><span class="line"> }</span><br><span class="line"> })</span><br><span class="line"> })</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"></script></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>页面效果</p>
|
||
<p><img src="/pictures/image-20230617173759895.png" alt="image-20230617173759895"></p>
|
||
<p><strong>父子组件中数据的传递</strong></p>
|
||
<p>子组件给父组件传递的数据,事件传递,子组件给父组件发送一个事件,事件传递</p>
|
||
<p>子组件调整</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-tree</span><br><span class="line"> :data="menus"</span><br><span class="line"> :props="defaultProps"</span><br><span class="line"> node-key="catId"</span><br><span class="line"> ref="menuTree"</span><br><span class="line"> @node-click="nodeclick"</span><br><span class="line"> ></el-tree></span><br><span class="line"></template></span><br><span class="line"> <script></span><br><span class="line">export default {</span><br><span class="line"> components: {},</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> menus: [],</span><br><span class="line"> expandedKey: [],</span><br><span class="line"> defaultProps: {</span><br><span class="line"> children: "children",</span><br><span class="line"> label: "name",</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> created() {</span><br><span class="line"> this.getMenus();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> getMenus() {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/category/list/tree"),</span><br><span class="line"> method: "get",</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> console.log("商品分类数据:", data.data);</span><br><span class="line"> this.menus = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> nodeclick(data,node,component) {</span><br><span class="line"> console.log("子组件被点击,传递的数据有:data:",data,"node:",node,"component:",component);</span><br><span class="line"> //子组件向父组件传递数据</span><br><span class="line"> this.$emit("tree-node-click",data,node,component);</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"> </span><br><span class="line"> <style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>父组件接受相应的数据</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-row :gutter="20"></span><br><span class="line"> <el-col :span="6"></span><br><span class="line"> <category @tree-node-click="treeNodeClick"></category</span><br><span class="line"> ></el-col></span><br><span class="line"> <el-col :span="18"></span><br><span class="line"> <div class="mod-config"></span><br><span class="line"> <el-form</span><br><span class="line"> :inline="true"</span><br><span class="line"> :model="dataForm"</span><br><span class="line"> @keyup.enter.native="getDataList()"</span><br><span class="line"> ></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-input</span><br><span class="line"> v-model="dataForm.key"</span><br><span class="line"> placeholder="参数名"</span><br><span class="line"> clearable</span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item></span><br><span class="line"> <el-button @click="getDataList()">查询</el-button></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:attrgroup:save')"</span><br><span class="line"> type="primary"</span><br><span class="line"> @click="addOrUpdateHandle()"</span><br><span class="line"> >新增</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> v-if="isAuth('product:attrgroup:delete')"</span><br><span class="line"> type="danger"</span><br><span class="line"> @click="deleteHandle()"</span><br><span class="line"> :disabled="dataListSelections.length <= 0"</span><br><span class="line"> >批量删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <el-table</span><br><span class="line"> :data="dataList"</span><br><span class="line"> border</span><br><span class="line"> v-loading="dataListLoading"</span><br><span class="line"> @selection-change="selectionChangeHandle"</span><br><span class="line"> style="width: 100%"</span><br><span class="line"> ></span><br><span class="line"> <el-table-column</span><br><span class="line"> type="selection"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="50"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="attrGroupId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="分组id"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="attrGroupName"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="组名"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="sort"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="排序"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="descript"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="描述"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="icon"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="组图标"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> prop="catelogId"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> label="所属分类id"</span><br><span class="line"> ></span><br><span class="line"> </el-table-column></span><br><span class="line"> <el-table-column</span><br><span class="line"> fixed="right"</span><br><span class="line"> header-align="center"</span><br><span class="line"> align="center"</span><br><span class="line"> width="150"</span><br><span class="line"> label="操作"</span><br><span class="line"> ></span><br><span class="line"> <template slot-scope="scope"></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="addOrUpdateHandle(scope.row.attrGroupId)"</span><br><span class="line"> >修改</el-button</span><br><span class="line"> ></span><br><span class="line"> <el-button</span><br><span class="line"> type="text"</span><br><span class="line"> size="small"</span><br><span class="line"> @click="deleteHandle(scope.row.attrGroupId)"</span><br><span class="line"> >删除</el-button</span><br><span class="line"> ></span><br><span class="line"> </template></span><br><span class="line"> </el-table-column></span><br><span class="line"> </el-table></span><br><span class="line"> <el-pagination</span><br><span class="line"> @size-change="sizeChangeHandle"</span><br><span class="line"> @current-change="currentChangeHandle"</span><br><span class="line"> :current-page="pageIndex"</span><br><span class="line"> :page-sizes="[10, 20, 50, 100]"</span><br><span class="line"> :page-size="pageSize"</span><br><span class="line"> :total="totalPage"</span><br><span class="line"> layout="total, sizes, prev, pager, next, jumper"</span><br><span class="line"> ></span><br><span class="line"> </el-pagination></span><br><span class="line"> <!-- 弹窗, 新增 / 修改 --></span><br><span class="line"> <add-or-update</span><br><span class="line"> v-if="addOrUpdateVisible"</span><br><span class="line"> ref="addOrUpdate"</span><br><span class="line"> @refreshDataList="getDataList"</span><br><span class="line"> ></add-or-update></div</span><br><span class="line"> ></el-col></span><br><span class="line"> </el-row></span><br><span class="line"></template></span><br><span class="line"><script></span><br><span class="line">import Category from "../common/category.vue";</span><br><span class="line">import AddOrUpdate from "./attrgroup-add-or-update";</span><br><span class="line">export default {</span><br><span class="line"> data() {</span><br><span class="line"> return {</span><br><span class="line"> catId: 0,</span><br><span class="line"> dataForm: {</span><br><span class="line"> key: "",</span><br><span class="line"> },</span><br><span class="line"> dataList: [],</span><br><span class="line"> pageIndex: 1,</span><br><span class="line"> pageSize: 10,</span><br><span class="line"> totalPage: 0,</span><br><span class="line"> dataListLoading: false,</span><br><span class="line"> dataListSelections: [],</span><br><span class="line"> addOrUpdateVisible: false,</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> components: {</span><br><span class="line"> AddOrUpdate,</span><br><span class="line"> Category,</span><br><span class="line"> },</span><br><span class="line"> activated() {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> treeNodeClick(data, node, component) {</span><br><span class="line"> //获取子组件传递过来的值</span><br><span class="line"> console.log(</span><br><span class="line"> "获取子组件传递过来的值:data:",</span><br><span class="line"> data,</span><br><span class="line"> "node",</span><br><span class="line"> node,</span><br><span class="line"> "component:",</span><br><span class="line"> component</span><br><span class="line"> );</span><br><span class="line"> //查询三级分类信息 当点击三级分类id的时候 才查询相关的信息</span><br><span class="line"> if(node.level == 3){</span><br><span class="line"> this.catId = data.catId;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> }</span><br><span class="line"> },</span><br><span class="line"> // 获取数据列表</span><br><span class="line"> getDataList() {</span><br><span class="line"> this.dataListLoading = true;</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl(`/product/attrgroup/list/${this.catId}`),</span><br><span class="line"> method: "get",</span><br><span class="line"> params: this.$http.adornParams({</span><br><span class="line"> page: this.pageIndex,</span><br><span class="line"> limit: this.pageSize,</span><br><span class="line"> key: this.dataForm.key,</span><br><span class="line"> }),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.dataList = data.page.list;</span><br><span class="line"> this.totalPage = data.page.totalCount;</span><br><span class="line"> } else {</span><br><span class="line"> this.dataList = [];</span><br><span class="line"> this.totalPage = 0;</span><br><span class="line"> }</span><br><span class="line"> this.dataListLoading = false;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 每页数</span><br><span class="line"> sizeChangeHandle(val) {</span><br><span class="line"> this.pageSize = val;</span><br><span class="line"> this.pageIndex = 1;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 当前页</span><br><span class="line"> currentChangeHandle(val) {</span><br><span class="line"> this.pageIndex = val;</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> // 多选</span><br><span class="line"> selectionChangeHandle(val) {</span><br><span class="line"> this.dataListSelections = val;</span><br><span class="line"> },</span><br><span class="line"> // 新增 / 修改</span><br><span class="line"> addOrUpdateHandle(id) {</span><br><span class="line"> this.addOrUpdateVisible = true;</span><br><span class="line"> this.$nextTick(() => {</span><br><span class="line"> this.$refs.addOrUpdate.init(id);</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> // 删除</span><br><span class="line"> deleteHandle(id) {</span><br><span class="line"> var ids = id</span><br><span class="line"> ? [id]</span><br><span class="line"> : this.dataListSelections.map((item) => {</span><br><span class="line"> return item.attrGroupId;</span><br><span class="line"> });</span><br><span class="line"> this.$confirm(</span><br><span class="line"> `确定对[id=${ids.join(",")}]进行[${id ? "删除" : "批量删除"}]操作?`,</span><br><span class="line"> "提示",</span><br><span class="line"> {</span><br><span class="line"> confirmButtonText: "确定",</span><br><span class="line"> cancelButtonText: "取消",</span><br><span class="line"> type: "warning",</span><br><span class="line"> }</span><br><span class="line"> ).then(() => {</span><br><span class="line"> this.$http({</span><br><span class="line"> url: this.$http.adornUrl("/product/attrgroup/delete"),</span><br><span class="line"> method: "post",</span><br><span class="line"> data: this.$http.adornData(ids, false),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> if (data && data.code === 0) {</span><br><span class="line"> this.$message({</span><br><span class="line"> message: "操作成功",</span><br><span class="line"> type: "success",</span><br><span class="line"> duration: 1500,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> this.getDataList();</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"> } else {</span><br><span class="line"> this.$message.error(data.msg);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br><span class="line"></span><br><span class="line"><style></span><br><span class="line"></style></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPage</span><span class="params">(Map<String, Object> params, Long catelogId)</span> {</span><br><span class="line"> <span class="comment">//首先先判断catelogId是不是0 如果是0的话就查询所有的属性分组信息</span></span><br><span class="line"> <span class="keyword">if</span> (catelogId == <span class="number">0</span>) {</span><br><span class="line"> IPage<AttrGroupEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><AttrGroupEntity>().getPage(params),</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">QueryWrapper</span><AttrGroupEntity>()</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//查询的时候传递过来的关键词</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="comment">//SQL语句:select * from pms_attr_group where catelog_id = ? and (attr_group_id = key or attr_group_name = %key%)</span></span><br><span class="line"> LambdaQueryWrapper<AttrGroupEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> queryWrapper.eq(AttrGroupEntity::getCatelogId, catelogId);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.and((obj) -> {</span><br><span class="line"> obj.eq(AttrGroupEntity::getAttrGroupId, key).or().like(AttrGroupEntity::getAttrGroupName, key);</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> IPage<AttrGroupEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><AttrGroupEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>属性分组的添加功能</strong></p>
|
||
<p>前端代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><template></span><br><span class="line"> <el-dialog</span><br><span class="line"> :title=<span class="string">"!dataForm.attrGroupId ? '新增' : '修改'"</span></span><br><span class="line"> :close-on-click-modal=<span class="string">"false"</span></span><br><span class="line"> :visible.sync=<span class="string">"visible"</span></span><br><span class="line"> <span class="meta">@closed</span>=<span class="string">"dialogClose"</span></span><br><span class="line"> ></span><br><span class="line"> <el-form</span><br><span class="line"> :model=<span class="string">"dataForm"</span></span><br><span class="line"> :rules=<span class="string">"dataRule"</span></span><br><span class="line"> ref=<span class="string">"dataForm"</span></span><br><span class="line"> <span class="meta">@keyup</span>.enter.<span class="keyword">native</span>=<span class="string">"dataFormSubmit()"</span></span><br><span class="line"> label-width=<span class="string">"100px"</span></span><br><span class="line"> ></span><br><span class="line"> <el-form-item label=<span class="string">"组名"</span> prop=<span class="string">"attrGroupName"</span>></span><br><span class="line"> <el-input</span><br><span class="line"> v-model=<span class="string">"dataForm.attrGroupName"</span></span><br><span class="line"> placeholder=<span class="string">"组名"</span></span><br><span class="line"> ></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label=<span class="string">"排序"</span> prop=<span class="string">"sort"</span>></span><br><span class="line"> <el-input v-model=<span class="string">"dataForm.sort"</span> placeholder=<span class="string">"排序"</span>></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label=<span class="string">"描述"</span> prop=<span class="string">"descript"</span>></span><br><span class="line"> <el-input v-model=<span class="string">"dataForm.descript"</span> placeholder=<span class="string">"描述"</span>></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label=<span class="string">"组图标"</span> prop=<span class="string">"icon"</span>></span><br><span class="line"> <el-input v-model=<span class="string">"dataForm.icon"</span> placeholder=<span class="string">"组图标"</span>></el-input></span><br><span class="line"> </el-form-item></span><br><span class="line"> <el-form-item label=<span class="string">"所属分类id"</span> prop=<span class="string">"catelogId"</span>></span><br><span class="line"> <!-- <el-input v-model=<span class="string">"dataForm.catelogId"</span> placeholder=<span class="string">"所属分类id"</span>></el-input> --></span><br><span class="line"> <el-cascader</span><br><span class="line"> v-model=<span class="string">"dataForm.catelogPath"</span></span><br><span class="line"> :options=<span class="string">"categorys"</span></span><br><span class="line"> :props=<span class="string">"props"</span></span><br><span class="line"> placeholder=<span class="string">"试试搜索:手机"</span></span><br><span class="line"> filterable</span><br><span class="line"> ></el-cascader></span><br><span class="line"> </el-form-item></span><br><span class="line"> </el-form></span><br><span class="line"> <span slot=<span class="string">"footer"</span> class=<span class="string">"dialog-footer"</span>></span><br><span class="line"> <el-button <span class="meta">@click</span>=<span class="string">"visible = false"</span>>取消</el-button></span><br><span class="line"> <el-button type=<span class="string">"primary"</span> <span class="meta">@click</span>=<span class="string">"dataFormSubmit()"</span>>确定</el-button></span><br><span class="line"> </span></span><br><span class="line"> </el-dialog></span><br><span class="line"></template></span><br><span class="line"></span><br><span class="line"><script></span><br><span class="line"><span class="keyword">import</span> Category from <span class="string">"../common/category.vue"</span>;</span><br><span class="line"></span><br><span class="line">export <span class="keyword">default</span> {</span><br><span class="line"> data() {</span><br><span class="line"> <span class="keyword">return</span> {</span><br><span class="line"> props: {</span><br><span class="line"> value: <span class="string">"catId"</span>,</span><br><span class="line"> label: <span class="string">"name"</span>,</span><br><span class="line"> children: <span class="string">"children"</span>,</span><br><span class="line"> },</span><br><span class="line"> categorys: [], <span class="comment">//所有的三级分类信息</span></span><br><span class="line"> visible: <span class="literal">false</span>,</span><br><span class="line"> dataForm: {</span><br><span class="line"> attrGroupId: <span class="number">0</span>,</span><br><span class="line"> attrGroupName: <span class="string">""</span>,</span><br><span class="line"> sort: <span class="string">""</span>,</span><br><span class="line"> descript: <span class="string">""</span>,</span><br><span class="line"> icon: <span class="string">""</span>,</span><br><span class="line"> catelogPath: [],</span><br><span class="line"> catelogId: <span class="number">0</span>,</span><br><span class="line"> },</span><br><span class="line"> dataRule: {</span><br><span class="line"> attrGroupName: [</span><br><span class="line"> { required: <span class="literal">true</span>, message: <span class="string">"组名不能为空"</span>, trigger: <span class="string">"blur"</span> },</span><br><span class="line"> ],</span><br><span class="line"> sort: [{ required: <span class="literal">true</span>, message: <span class="string">"排序不能为空"</span>, trigger: <span class="string">"blur"</span> }],</span><br><span class="line"> descript: [</span><br><span class="line"> { required: <span class="literal">true</span>, message: <span class="string">"描述不能为空"</span>, trigger: <span class="string">"blur"</span> },</span><br><span class="line"> ],</span><br><span class="line"> icon: [{ required: <span class="literal">true</span>, message: <span class="string">"组图标不能为空"</span>, trigger: <span class="string">"blur"</span> }],</span><br><span class="line"> catelogId: [</span><br><span class="line"> { required: <span class="literal">true</span>, message: <span class="string">"所属分类id不能为空"</span>, trigger: <span class="string">"blur"</span> },</span><br><span class="line"> ],</span><br><span class="line"> },</span><br><span class="line"> };</span><br><span class="line"> },</span><br><span class="line"> created() {</span><br><span class="line"> <span class="built_in">this</span>.getCategorys();</span><br><span class="line"> },</span><br><span class="line"> methods: {</span><br><span class="line"> dialogClose() {</span><br><span class="line"> <span class="built_in">this</span>.dataForm.catelogPath = [];</span><br><span class="line"> },</span><br><span class="line"> getCategorys() {</span><br><span class="line"> <span class="built_in">this</span>.$http({</span><br><span class="line"> url: <span class="built_in">this</span>.$http.adornUrl(<span class="string">"/product/category/list/tree"</span>),</span><br><span class="line"> method: <span class="string">"get"</span>,</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> <span class="built_in">this</span>.categorys = data.data;</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> init(id) {</span><br><span class="line"> <span class="built_in">this</span>.dataForm.attrGroupId = id || <span class="number">0</span>;</span><br><span class="line"> <span class="built_in">this</span>.visible = <span class="literal">true</span>;</span><br><span class="line"> <span class="built_in">this</span>.$nextTick(() => {</span><br><span class="line"> <span class="built_in">this</span>.$refs[<span class="string">"dataForm"</span>].resetFields();</span><br><span class="line"> <span class="keyword">if</span> (<span class="built_in">this</span>.dataForm.attrGroupId) {</span><br><span class="line"> <span class="built_in">this</span>.$http({</span><br><span class="line"> url: <span class="built_in">this</span>.$http.adornUrl(</span><br><span class="line"> `/product/attrgroup/info/${<span class="built_in">this</span>.dataForm.attrGroupId}`</span><br><span class="line"> ),</span><br><span class="line"> method: <span class="string">"get"</span>,</span><br><span class="line"> params: <span class="built_in">this</span>.$http.adornParams(),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> <span class="keyword">if</span> (data && data.code === <span class="number">0</span>) {</span><br><span class="line"> <span class="built_in">this</span>.dataForm.attrGroupName = data.attrGroup.attrGroupName;</span><br><span class="line"> <span class="built_in">this</span>.dataForm.sort = data.attrGroup.sort;</span><br><span class="line"> <span class="built_in">this</span>.dataForm.descript = data.attrGroup.descript;</span><br><span class="line"> <span class="built_in">this</span>.dataForm.icon = data.attrGroup.icon;</span><br><span class="line"> <span class="built_in">this</span>.dataForm.catelogId = data.attrGroup.catelogId;</span><br><span class="line"> <span class="comment">//查出catelog的完整路径</span></span><br><span class="line"> <span class="built_in">this</span>.dataForm.catelogPath = data.attrGroup.catelogPath;</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> <span class="comment">// 表单提交</span></span><br><span class="line"> dataFormSubmit() {</span><br><span class="line"> <span class="built_in">this</span>.$refs[<span class="string">"dataForm"</span>].validate((valid) => {</span><br><span class="line"> <span class="keyword">if</span> (valid) {</span><br><span class="line"> <span class="built_in">this</span>.$http({</span><br><span class="line"> url: <span class="built_in">this</span>.$http.adornUrl(</span><br><span class="line"> `/product/attrgroup/${</span><br><span class="line"> !<span class="built_in">this</span>.dataForm.attrGroupId ? <span class="string">"save"</span> : <span class="string">"update"</span></span><br><span class="line"> }`</span><br><span class="line"> ),</span><br><span class="line"> method: <span class="string">"post"</span>,</span><br><span class="line"> data: <span class="built_in">this</span>.$http.adornData({</span><br><span class="line"> attrGroupId: <span class="built_in">this</span>.dataForm.attrGroupId || undefined,</span><br><span class="line"> attrGroupName: <span class="built_in">this</span>.dataForm.attrGroupName,</span><br><span class="line"> sort: <span class="built_in">this</span>.dataForm.sort,</span><br><span class="line"> descript: <span class="built_in">this</span>.dataForm.descript,</span><br><span class="line"> icon: <span class="built_in">this</span>.dataForm.icon,</span><br><span class="line"> catelogId:</span><br><span class="line"> <span class="built_in">this</span>.dataForm.catelogPath[<span class="built_in">this</span>.dataForm.catelogPath.length - <span class="number">1</span>],</span><br><span class="line"> }),</span><br><span class="line"> }).then(({ data }) => {</span><br><span class="line"> <span class="keyword">if</span> (data && data.code === <span class="number">0</span>) {</span><br><span class="line"> <span class="built_in">this</span>.$message({</span><br><span class="line"> message: <span class="string">"操作成功"</span>,</span><br><span class="line"> type: <span class="string">"success"</span>,</span><br><span class="line"> duration: <span class="number">1500</span>,</span><br><span class="line"> onClose: () => {</span><br><span class="line"> <span class="built_in">this</span>.visible = <span class="literal">false</span>;</span><br><span class="line"> <span class="built_in">this</span>.$emit(<span class="string">"refreshDataList"</span>);</span><br><span class="line"> },</span><br><span class="line"> });</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="built_in">this</span>.$message.error(data.msg);</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> },</span><br><span class="line"> },</span><br><span class="line">};</span><br><span class="line"></script></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>后端代码</p>
|
||
<p>在商品分类的children上加上@JsonInclude注解,解决后面的级联选择多出一个空白的选择的问题</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@JsonInclude(JsonInclude.Include.NON_EMPTY)</span></span><br><span class="line"><span class="meta">@TableField(exist = false)</span><span class="comment">//这个注解要加,因为这个属性不是数据库中的字段</span></span><br><span class="line"><span class="keyword">private</span> List<CategoryEntity> children;<span class="comment">//这里的属性名不是瞎起的,与ElementUI中的显示相对应,这里改了,前端也要改</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改的时候,级联选择部分数据的回显</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">/**</span><br><span class="line"> * 找到catelog的完整路径</span><br><span class="line"> * @param catelogId 路径的最后一个catelog的id</span><br><span class="line"> * @return 完整的路径</span><br><span class="line"> */</span><br><span class="line"> @Override</span><br><span class="line"> public Long[] findCatelogPath(Long catelogId) {</span><br><span class="line"> List<Long> paths = new ArrayList<>();</span><br><span class="line"> List<Long> parentPath = findParentPath(catelogId, paths);</span><br><span class="line"> Collections.reverse(parentPath);</span><br><span class="line"> return (Long[]) parentPath.toArray(new Long[parentPath.size()]);</span><br><span class="line"> }</span><br><span class="line"> /**</span><br><span class="line"> * 递归找出所有的路径</span><br><span class="line"> */</span><br><span class="line"> private List<Long> findParentPath(Long catelogId,List<Long> paths){</span><br><span class="line"> paths.add(catelogId);</span><br><span class="line"> //根据id查询相关的信息</span><br><span class="line"> CategoryEntity category = this.getById(catelogId);</span><br><span class="line"> if(category.getParentCid()!=0){</span><br><span class="line"> findParentPath(category.getParentCid(),paths);</span><br><span class="line"> }</span><br><span class="line"> return paths;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>属性关联商品的规格参数和基本属性信息</p>
|
||
<p>功能描述</p>
|
||
<p><img src="/pictures/image-20230625090118059.png" alt="image-20230625090118059"></p>
|
||
<p>查询商品下关联的属性分组信息</p>
|
||
<p>查询商品关联属性分组的后端关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 根据分组的id查询关联的所有属性</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attrgroupId 分组的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 关联的所有属性组成集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<AttrEntity> <span class="title function_">getRelationAttr</span><span class="params">(Long attrgroupId)</span> {</span><br><span class="line"> <span class="comment">//根据中间表查询出属性分组的id信息</span></span><br><span class="line"> List<AttrAttrgroupRelationEntity> relationEntityList = relationDao.selectList(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrAttrgroupRelationEntity>().eq(AttrAttrgroupRelationEntity::getAttrGroupId, attrgroupId));</span><br><span class="line"> List<Long> attrIds = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (AttrAttrgroupRelationEntity relationEntity : relationEntityList) {</span><br><span class="line"> attrIds.add(relationEntity.getAttrId());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//根据属性分组的id查询属性分组的详细信息</span></span><br><span class="line"> <span class="keyword">return</span> (List<AttrEntity>) <span class="built_in">this</span>.listByIds(attrIds);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>移除关联属性分组的功能后端的关键代码</p>
|
||
<p>service层的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 批量删除商品关联的属性分组信息</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> vos 属性id和属性分组id组成的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">deleteRelation</span><span class="params">(AttrGroupRelationVo[] vos)</span> {</span><br><span class="line"> List<AttrAttrgroupRelationEntity> entities = Arrays.asList(vos).stream().map((item) -> {</span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrAttrgroupRelationEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(item, relationEntity);</span><br><span class="line"> <span class="keyword">return</span> relationEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> relationDao.deleteBatchRelation(entities);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>dao层的代码</p>
|
||
<p>使用动态的sql批量的删除属性和分组的关联关系</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--void deleteBatchRelation(List<AttrAttrgroupRelationEntity> entities);--></span></span><br><span class="line"> <span class="tag"><<span class="name">delete</span> <span class="attr">id</span>=<span class="string">"deleteBatchRelation"</span>></span></span><br><span class="line"> delete from `pms_attr_attrgroup_relation` where</span><br><span class="line"> <span class="tag"><<span class="name">foreach</span> <span class="attr">collection</span>=<span class="string">"entities"</span> <span class="attr">item</span>=<span class="string">"item"</span> <span class="attr">separator</span>=<span class="string">" OR "</span>></span></span><br><span class="line"> (attr_id = #{item.attrId}) and attr_group_id = #{item.attrGroupId}</span><br><span class="line"> <span class="tag"></<span class="name">foreach</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">delete</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>查询属性分组没有关联的属性</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取当前分组没有关联的所有属性</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> params 分页相关的参数</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attrgroupId 属性分组的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 分页相关的数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">getNoRelationAttr</span><span class="params">(Map<String, Object> params, Long attrgroupId)</span> {</span><br><span class="line"> <span class="comment">//当前的分组只能关联自己所属的分类里面的所有属性 例如手机的分类里面只能关联手机的所有属性</span></span><br><span class="line"> <span class="type">AttrGroupEntity</span> <span class="variable">attrGroupEntity</span> <span class="operator">=</span> attrGroupDao.selectById(attrgroupId);</span><br><span class="line"> <span class="type">Long</span> <span class="variable">catelogId</span> <span class="operator">=</span> attrGroupEntity.getCatelogId();</span><br><span class="line"> <span class="comment">//当前分组只能关联别的分组没有引用的属性</span></span><br><span class="line"> List<AttrGroupEntity> groups = attrGroupDao.selectList(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrGroupEntity>().eq(AttrGroupEntity::getCatelogId, catelogId));</span><br><span class="line"> List<Long> collect = groups.stream().map((item) -> {</span><br><span class="line"> <span class="keyword">return</span> item.getAttrGroupId();</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> List<AttrAttrgroupRelationEntity> groupId = relationDao.selectList(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrAttrgroupRelationEntity>().in(AttrAttrgroupRelationEntity::getAttrGroupId, collect));</span><br><span class="line"> List<Long> attrIds = groupId.stream().map((item) -> {</span><br><span class="line"> <span class="keyword">return</span> item.getAttrId();</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> LambdaQueryWrapper<AttrEntity> queryWrapper =</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrEntity>().eq(AttrEntity::getCatelogId, catelogId).eq(AttrEntity::getAttrType,ProductConstant.AttrEnum.ATTR_TYPE_BASE.getCode());</span><br><span class="line"> <span class="keyword">if</span> (attrIds != <span class="literal">null</span> && attrIds.size() > <span class="number">0</span>) {</span><br><span class="line"> queryWrapper.notIn(AttrEntity::getAttrId, attrIds);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.eq(AttrEntity::getAttrId, key).or().like(AttrEntity::getAttrName, key);</span><br><span class="line"> }</span><br><span class="line"> IPage<AttrEntity> page = <span class="built_in">this</span>.page(<span class="keyword">new</span> <span class="title class_">Query</span><AttrEntity>().getPage(params), queryWrapper);</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>给属性关联相关的规格参数和销售属性</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">saveBatch</span><span class="params">(List<AttrGroupRelationVo> vos)</span> {</span><br><span class="line"> List<AttrAttrgroupRelationEntity> entities = vos.stream().map((item) -> {</span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrAttrgroupRelationEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(item, relationEntity);</span><br><span class="line"> <span class="keyword">return</span> relationEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="built_in">this</span>.saveBatch(entities);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-3-2-规格参数功能"><a href="#1-3-2-规格参数功能" class="headerlink" title="1.3.2 规格参数功能"></a>1.3.2 规格参数功能</h4><p>功能截图</p>
|
||
<p><img src="/pictures/image-20230619111338153.png" alt="image-20230619111338153"></p>
|
||
<p>新增功能的后端关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 保存规格参数信息</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attr 页面中提交的规格参数相关的信息组成的实体</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">saveAttr</span><span class="params">(AttrVo attr)</span> {</span><br><span class="line"> <span class="type">AttrEntity</span> <span class="variable">attrEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(attr,attrEntity);</span><br><span class="line"> <span class="comment">//保存基本的数据</span></span><br><span class="line"> <span class="built_in">this</span>.save(attrEntity);</span><br><span class="line"> <span class="comment">//保存关联关系</span></span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrAttrgroupRelationEntity</span>();</span><br><span class="line"> relationEntity.setAttrGroupId(attr.getAttrGroupId());</span><br><span class="line"> relationEntity.setAttrId(attrEntity.getAttrId());</span><br><span class="line"> relationDao.insert(relationEntity);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>查询列表后端的关键代码</p>
|
||
<p>这里使用的stream流处理数据,没有使用多表联合查询来查询数据</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryBaseAttrPage</span><span class="params">(Map<String, Object> params, Long catelogId)</span> {</span><br><span class="line"> LambdaQueryWrapper<AttrEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="keyword">if</span> (catelogId != <span class="number">0</span>) {<span class="comment">//等于0就是查询所有的分类信息下的规格参数信息</span></span><br><span class="line"> queryWrapper.eq(AttrEntity::getCatelogId, catelogId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取检索的条件</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.like(AttrEntity::getAttrName, key).or().eq(AttrEntity::getAttrId, key);</span><br><span class="line"> }</span><br><span class="line"> IPage<AttrEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><AttrEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="type">PageUtils</span> <span class="variable">pageUtils</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> List<AttrEntity> records = page.getRecords();</span><br><span class="line"> List<AttrRespVo> respVos = records.stream().map((attrEntity) -> {</span><br><span class="line"> <span class="type">AttrRespVo</span> <span class="variable">attrRespVo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrRespVo</span>();</span><br><span class="line"> BeanUtils.copyProperties(attrEntity, attrRespVo);</span><br><span class="line"> <span class="comment">//设置三级商品分类名和分组名</span></span><br><span class="line"> <span class="comment">//设置所属的商品的分类名</span></span><br><span class="line"> <span class="type">CategoryEntity</span> <span class="variable">categoryEntity</span> <span class="operator">=</span> categoryDao.selectById(attrRespVo.getCatelogId());</span><br><span class="line"> <span class="keyword">if</span> (categoryEntity != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setCatelogName(categoryEntity.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置分组名(需要从中间表查询分组的id,再查询分组名)</span></span><br><span class="line"> <span class="comment">//先从中间表查询到分组的id</span></span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> relationDao.selectOne(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrAttrgroupRelationEntity>().eq(AttrAttrgroupRelationEntity::getAttrId, attrRespVo.getAttrId()));</span><br><span class="line"> <span class="comment">//从分组的表中查询分组名</span></span><br><span class="line"> <span class="keyword">if</span> (relationEntity != <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">AttrGroupEntity</span> <span class="variable">attrGroupEntity</span> <span class="operator">=</span> attrGroupDao.selectById(relationEntity.getAttrGroupId());</span><br><span class="line"> attrRespVo.setGroupName(attrGroupEntity.getAttrGroupName());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> attrRespVo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> pageUtils.setList(respVos);</span><br><span class="line"> <span class="keyword">return</span> pageUtils;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>规格参数修改功能后端的关键代码</p>
|
||
<p>修改前的数据回显</p>
|
||
<p>查询属性的详情信息</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询属性的详细信息</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attrId 属性的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 属性的详细信息封装的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> AttrRespVo <span class="title function_">getAttrInfo</span><span class="params">(Long attrId)</span> {</span><br><span class="line"> <span class="type">AttrRespVo</span> <span class="variable">attrRespVo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrRespVo</span>();</span><br><span class="line"> <span class="comment">//查询属性的基本信息</span></span><br><span class="line"> <span class="type">AttrEntity</span> <span class="variable">attr</span> <span class="operator">=</span> <span class="built_in">this</span>.getById(attrId);</span><br><span class="line"> BeanUtils.copyProperties(attr, attrRespVo);</span><br><span class="line"> <span class="comment">//查询分组id和分类的详细路径</span></span><br><span class="line"> <span class="comment">//分组信息的设置</span></span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> relationDao.selectOne(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrAttrgroupRelationEntity>().eq(AttrAttrgroupRelationEntity::getAttrId, attrRespVo.getAttrId()));</span><br><span class="line"> <span class="keyword">if</span> (relationEntity != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setAttrGroupId(relationEntity.getAttrGroupId());</span><br><span class="line"> <span class="type">AttrGroupEntity</span> <span class="variable">attrGroupEntity</span> <span class="operator">=</span> attrGroupDao.selectById(relationEntity.getAttrGroupId());</span><br><span class="line"> <span class="keyword">if</span> (attrGroupEntity != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setGroupName(attrGroupEntity.getAttrGroupName());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置分类信息</span></span><br><span class="line"> <span class="type">Long</span> <span class="variable">catelogId</span> <span class="operator">=</span> attr.getCatelogId();</span><br><span class="line"> <span class="comment">//查询分类的完整路径</span></span><br><span class="line"> Long[] catelogPath = categoryService.findCatelogPath(catelogId);</span><br><span class="line"> <span class="keyword">if</span> (catelogPath != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setCatelogPath(catelogPath);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置分类名</span></span><br><span class="line"> <span class="type">CategoryEntity</span> <span class="variable">category</span> <span class="operator">=</span> categoryDao.selectById(catelogId);</span><br><span class="line"> <span class="keyword">if</span> (category != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setCatelogName(category.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> attrRespVo;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改的时候页面回显的效果</p>
|
||
<p><img src="/pictures/image-20230624192906124.png" alt="image-20230624192906124"></p>
|
||
<p>修改功能后端的关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改属性的方法</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attr 页面传输过来的商品属性的实体</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateAttr</span><span class="params">(AttrVo attr)</span> {</span><br><span class="line"> <span class="comment">//修改基本的数据</span></span><br><span class="line"> <span class="type">AttrEntity</span> <span class="variable">attrEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(attr, attrEntity);</span><br><span class="line"> <span class="built_in">this</span>.updateById(attrEntity);</span><br><span class="line"> <span class="comment">//修改关联表的数据</span></span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrAttrgroupRelationEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(attr, relationEntity);</span><br><span class="line"> LambdaQueryWrapper<AttrAttrgroupRelationEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> queryWrapper.eq(AttrAttrgroupRelationEntity::getAttrId, relationEntity.getAttrId());</span><br><span class="line"> <span class="type">Integer</span> <span class="variable">count</span> <span class="operator">=</span> relationDao.selectCount(queryWrapper);</span><br><span class="line"> <span class="keyword">if</span> (count > <span class="number">0</span>) {<span class="comment">//判断是修改还是添加的操作</span></span><br><span class="line"> relationDao.update(relationEntity, queryWrapper);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> relationDao.insert(relationEntity);</span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-3-3-销售属性功能"><a href="#1-3-3-销售属性功能" class="headerlink" title="1.3.3 销售属性功能"></a>1.3.3 销售属性功能</h4><p>分类属性列表显示</p>
|
||
<p>controller层的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * /product/attr/sale/list/{catelogId}</span></span><br><span class="line"><span class="comment"> * 路径 /product/attr/base/list/{catelogId}</span></span><br><span class="line"><span class="comment"> * 规格参数的列表显示</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> params 条件查询的参数</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> catelogId 商品分类的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 规格参数的分页数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/{attrType}/list/{catelogId}")</span></span><br><span class="line"> <span class="keyword">public</span> R <span class="title function_">baseAttrList</span><span class="params">(<span class="meta">@RequestParam</span> Map<String, Object> params, <span class="meta">@PathVariable</span> Long catelogId, <span class="meta">@PathVariable("attrType")</span> String type)</span> {</span><br><span class="line"> log.warn(<span class="string">"规格参数分页的查询条件:{},商品分类的id:{}"</span>, params, catelogId);</span><br><span class="line"> <span class="type">PageUtils</span> <span class="variable">page</span> <span class="operator">=</span> attrService.queryBaseAttrPage(params, catelogId,type);</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"page"</span>, page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service层的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryBaseAttrPage</span><span class="params">(Map<String, Object> params, Long catelogId, String type)</span> {</span><br><span class="line"> LambdaQueryWrapper<AttrEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="comment">//路径中属性的attrType是base就是基本属性,否则就代表的是销售属性</span></span><br><span class="line"> queryWrapper.eq(AttrEntity::getAttrType, <span class="string">"base"</span>.equalsIgnoreCase(type) ? <span class="number">1</span> : <span class="number">0</span>);</span><br><span class="line"> <span class="keyword">if</span> (catelogId != <span class="number">0</span>) {<span class="comment">//等于0就是查询所有的分类信息下的规格参数信息</span></span><br><span class="line"> queryWrapper.eq(AttrEntity::getCatelogId, catelogId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//获取检索的条件</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.like(AttrEntity::getAttrName, key).or().eq(AttrEntity::getAttrId, key);</span><br><span class="line"> }</span><br><span class="line"> IPage<AttrEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><AttrEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="type">PageUtils</span> <span class="variable">pageUtils</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> List<AttrEntity> records = page.getRecords();</span><br><span class="line"> List<AttrRespVo> respVos = records.stream().map((attrEntity) -> {</span><br><span class="line"> <span class="type">AttrRespVo</span> <span class="variable">attrRespVo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">AttrRespVo</span>();</span><br><span class="line"> BeanUtils.copyProperties(attrEntity, attrRespVo);</span><br><span class="line"> <span class="comment">//设置三级商品分类名和分组名</span></span><br><span class="line"> <span class="comment">//设置所属的商品的分类名</span></span><br><span class="line"> <span class="type">CategoryEntity</span> <span class="variable">categoryEntity</span> <span class="operator">=</span> categoryDao.selectById(attrRespVo.getCatelogId());</span><br><span class="line"> <span class="keyword">if</span> (categoryEntity != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setCatelogName(categoryEntity.getName());</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//设置分组名(需要从中间表查询分组的id,再查询分组名)</span></span><br><span class="line"> <span class="comment">//先从中间表查询到分组的id</span></span><br><span class="line"> <span class="type">AttrAttrgroupRelationEntity</span> <span class="variable">relationEntity</span> <span class="operator">=</span> relationDao.selectOne(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><AttrAttrgroupRelationEntity>().eq(AttrAttrgroupRelationEntity::getAttrId, attrRespVo.getAttrId()));</span><br><span class="line"> <span class="comment">//从分组的表中查询分组名</span></span><br><span class="line"> <span class="keyword">if</span> (relationEntity != <span class="literal">null</span>) {</span><br><span class="line"> <span class="type">AttrGroupEntity</span> <span class="variable">attrGroupEntity</span> <span class="operator">=</span> attrGroupDao.selectById(relationEntity.getAttrGroupId());</span><br><span class="line"> <span class="keyword">if</span> (attrGroupEntity != <span class="literal">null</span>) {</span><br><span class="line"> attrRespVo.setGroupName(attrGroupEntity.getAttrGroupName());</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> attrRespVo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> pageUtils.setList(respVos);</span><br><span class="line"> <span class="keyword">return</span> pageUtils;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>完整的功能展示</p>
|
||
<p><img src="/pictures/image-20230625090037616.png" alt="image-20230625090037616"></p>
|
||
<h3 id="1-4-商品维护"><a href="#1-4-商品维护" class="headerlink" title="1.4 商品维护"></a>1.4 商品维护</h3><h4 id="1-4-1-SPU管理"><a href="#1-4-1-SPU管理" class="headerlink" title="1.4.1 SPU管理"></a>1.4.1 SPU管理</h4><p><strong>条件查询功能(Spu检索)</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * Spu检索功能</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> params 分页相关的数据</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 分页对象</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPageByCondition</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> LambdaQueryWrapper<SpuInfoEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="comment">//关键字检索</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> <span class="comment">//这里使用了or,为了和下面的区分开来,要使用and,将下面这个条件用括号括起来</span></span><br><span class="line"> <span class="comment">//SELECT COUNT(1) FROM pms_spu_info WHERE (((spu_name LIKE ? OR id = ?)) AND catalog_id = ? AND brand_id = ? AND publish_status = ?)</span></span><br><span class="line"> queryWrapper.and((wrapper) -> {</span><br><span class="line"> wrapper.like(SpuInfoEntity::getSpuName, key).or().eq(SpuInfoEntity::getId, key);</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//分类</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">catelogId</span> <span class="operator">=</span> (String) params.get(<span class="string">"catelogId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(catelogId)) {</span><br><span class="line"> queryWrapper.eq(SpuInfoEntity::getCatalogId, catelogId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//品牌</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">brandId</span> <span class="operator">=</span> (String) params.get(<span class="string">"brandId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(brandId)) {</span><br><span class="line"> queryWrapper.eq(SpuInfoEntity::getBrandId, brandId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//状态</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">status</span> <span class="operator">=</span> (String) params.get(<span class="string">"status"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(status)) {</span><br><span class="line"> queryWrapper.eq(SpuInfoEntity::getPublishStatus, status);</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> IPage<SpuInfoEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><SpuInfoEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的功能</p>
|
||
<p><img src="/pictures/image-20230627102918192.png" alt="image-20230627102918192"></p>
|
||
<p>前端显示时间格式的数据有问题</p>
|
||
<p>配置文件中的配置</p>
|
||
<figure class="highlight yml"><table><tr><td class="code"><pre><span class="line"><span class="attr">jackson:</span></span><br><span class="line"> <span class="attr">date-format:</span> <span class="string">yyyy-MM-dd</span> <span class="string">HH:mm:ss</span></span><br><span class="line"> <span class="attr">time-zone:</span> <span class="string">GMT+8</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>商品规格的回显</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询商品的规格属性</span></span><br><span class="line"><span class="comment"> * /product/attr/base/listforspu/{spuId}</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@GetMapping("/base/listforspu/{spuId}")</span></span><br><span class="line"><span class="keyword">public</span> R <span class="title function_">baseAttrList</span><span class="params">(<span class="meta">@PathVariable("spuId")</span> Long spuId)</span>{</span><br><span class="line"> List<ProductAttrValueEntity> entities = productAttrValueService.baseAttrListForSpu(spuId);</span><br><span class="line"> <span class="keyword">return</span> R.ok().put(<span class="string">"data"</span>,entities);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>修改商品的规格</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 修改商品的规格参数</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> spuId 商品的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> productAttrValueEntities 提交的修改之后的商品规格参数组成的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">updateSpuAttr</span><span class="params">(Long spuId, List<ProductAttrValueEntity> productAttrValueEntities)</span> {</span><br><span class="line"> <span class="comment">//1.删除这个spuId之前对应的所有属性</span></span><br><span class="line"> <span class="built_in">this</span>.baseMapper.delete(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><ProductAttrValueEntity>().eq(ProductAttrValueEntity::getSpuId,spuId));</span><br><span class="line"> <span class="comment">//2.添加修改之后的商品的属性信息</span></span><br><span class="line"> List<ProductAttrValueEntity> collect = productAttrValueEntities.stream().map(item -> {</span><br><span class="line"> item.setSpuId(spuId);</span><br><span class="line"> <span class="keyword">return</span> item;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="built_in">this</span>.saveBatch(collect);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的功能</p>
|
||
<p><img src="/pictures/image-20230628165931139.png" alt="image-20230628165931139"></p>
|
||
<p>中间遇到的问题,点击规格,页面显示400的问题</p>
|
||
<p><img src="/pictures/image-20230628171558364.png" alt="image-20230628171558364"></p>
|
||
<p>解决方案</p>
|
||
<p>第一步:在gulimall-admin数据库中执行以下的sql语句</p>
|
||
<figure class="highlight sql"><table><tr><td class="code"><pre><span class="line"><span class="keyword">INSERT</span> <span class="keyword">INTO</span> sys_menu (menu_id, parent_id, name, url, perms, type, icon, order_num) <span class="keyword">VALUES</span> (<span class="number">76</span>, <span class="number">37</span>, <span class="string">'规格维护'</span>, <span class="string">'product/attrupdate'</span>, <span class="string">''</span>, <span class="number">2</span>, <span class="string">'log'</span>, <span class="number">0</span>);</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>第二步:将前端src/router/index.js替换成如下的内容</p>
|
||
<figure class="highlight js"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 全站路由配置</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * 建议:</span></span><br><span class="line"><span class="comment"> * 1. 代码中路由统一使用name属性跳转(不使用path属性)</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">import</span> <span class="title class_">Vue</span> <span class="keyword">from</span> <span class="string">'vue'</span></span><br><span class="line"><span class="keyword">import</span> <span class="title class_">Router</span> <span class="keyword">from</span> <span class="string">'vue-router'</span></span><br><span class="line"><span class="keyword">import</span> http <span class="keyword">from</span> <span class="string">'@/utils/httpRequest'</span></span><br><span class="line"><span class="keyword">import</span> { isURL } <span class="keyword">from</span> <span class="string">'@/utils/validate'</span></span><br><span class="line"><span class="keyword">import</span> { clearLoginInfo } <span class="keyword">from</span> <span class="string">'@/utils'</span></span><br><span class="line"></span><br><span class="line"><span class="title class_">Vue</span>.<span class="title function_">use</span>(<span class="title class_">Router</span>)</span><br><span class="line"></span><br><span class="line"><span class="comment">// 开发环境不使用懒加载, 因为懒加载页面太多的话会造成webpack热更新太慢, 所以只有生产环境使用懒加载</span></span><br><span class="line"><span class="keyword">const</span> _import = <span class="built_in">require</span>(<span class="string">'./import-'</span> + process.<span class="property">env</span>.<span class="property">NODE_ENV</span>)</span><br><span class="line"></span><br><span class="line"><span class="comment">// 全局路由(无需嵌套上左右整体布局)</span></span><br><span class="line"><span class="keyword">const</span> globalRoutes = [</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/404'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'common/404'</span>), <span class="attr">name</span>: <span class="string">'404'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'404未找到'</span> } },</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/login'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'common/login'</span>), <span class="attr">name</span>: <span class="string">'login'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'登录'</span> } }</span><br><span class="line">]</span><br><span class="line"></span><br><span class="line"><span class="comment">// 主入口路由(需嵌套上左右整体布局)</span></span><br><span class="line"><span class="keyword">const</span> mainRoutes = {</span><br><span class="line"> <span class="attr">path</span>: <span class="string">'/'</span>,</span><br><span class="line"> <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'main'</span>),</span><br><span class="line"> <span class="attr">name</span>: <span class="string">'main'</span>,</span><br><span class="line"> <span class="attr">redirect</span>: { <span class="attr">name</span>: <span class="string">'home'</span> },</span><br><span class="line"> <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'主入口整体布局'</span> },</span><br><span class="line"> <span class="attr">children</span>: [</span><br><span class="line"> <span class="comment">// 通过meta对象设置路由展示方式</span></span><br><span class="line"> <span class="comment">// 1. isTab: 是否通过tab展示内容, true: 是, false: 否</span></span><br><span class="line"> <span class="comment">// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否</span></span><br><span class="line"> <span class="comment">// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!</span></span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/home'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'common/home'</span>), <span class="attr">name</span>: <span class="string">'home'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'首页'</span> } },</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/theme'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'common/theme'</span>), <span class="attr">name</span>: <span class="string">'theme'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'主题'</span> } },</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/demo-echarts'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'demo/echarts'</span>), <span class="attr">name</span>: <span class="string">'demo-echarts'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'demo-echarts'</span>, <span class="attr">isTab</span>: <span class="literal">true</span> } },</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/demo-ueditor'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'demo/ueditor'</span>), <span class="attr">name</span>: <span class="string">'demo-ueditor'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'demo-ueditor'</span>, <span class="attr">isTab</span>: <span class="literal">true</span> } },</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'/product-attrupdate'</span>, <span class="attr">component</span>: <span class="title function_">_import</span>(<span class="string">'modules/product/attrupdate'</span>), <span class="attr">name</span>: <span class="string">'attr-update'</span>, <span class="attr">meta</span>: { <span class="attr">title</span>: <span class="string">'规格维护'</span>, <span class="attr">isTab</span>: <span class="literal">true</span> } }</span><br><span class="line"> ],</span><br><span class="line"> <span class="title function_">beforeEnter</span>(<span class="params">to, <span class="keyword">from</span>, next</span>) {</span><br><span class="line"> <span class="keyword">let</span> token = <span class="title class_">Vue</span>.<span class="property">cookie</span>.<span class="title function_">get</span>(<span class="string">'token'</span>)</span><br><span class="line"> <span class="keyword">if</span> (!token || !<span class="regexp">/\S/</span>.<span class="title function_">test</span>(token)) {</span><br><span class="line"> <span class="title function_">clearLoginInfo</span>()</span><br><span class="line"> <span class="title function_">next</span>({ <span class="attr">name</span>: <span class="string">'login'</span> })</span><br><span class="line"> }</span><br><span class="line"> <span class="title function_">next</span>()</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">const</span> router = <span class="keyword">new</span> <span class="title class_">Router</span>({</span><br><span class="line"> <span class="attr">mode</span>: <span class="string">'hash'</span>,</span><br><span class="line"> <span class="attr">scrollBehavior</span>: <span class="function">() =></span> ({ <span class="attr">y</span>: <span class="number">0</span> }),</span><br><span class="line"> <span class="attr">isAddDynamicMenuRoutes</span>: <span class="literal">false</span>, <span class="comment">// 是否已经添加动态(菜单)路由</span></span><br><span class="line"> <span class="attr">routes</span>: globalRoutes.<span class="title function_">concat</span>(mainRoutes)</span><br><span class="line">})</span><br><span class="line"></span><br><span class="line">router.<span class="title function_">beforeEach</span>(<span class="function">(<span class="params">to, <span class="keyword">from</span>, next</span>) =></span> {</span><br><span class="line"> <span class="comment">// 添加动态(菜单)路由</span></span><br><span class="line"> <span class="comment">// 1. 已经添加 or 全局路由, 直接访问</span></span><br><span class="line"> <span class="comment">// 2. 获取菜单列表, 添加并保存本地存储</span></span><br><span class="line"> <span class="keyword">if</span> (router.<span class="property">options</span>.<span class="property">isAddDynamicMenuRoutes</span> || <span class="title function_">fnCurrentRouteType</span>(to, globalRoutes) === <span class="string">'global'</span>) {</span><br><span class="line"> <span class="title function_">next</span>()</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="title function_">http</span>({</span><br><span class="line"> <span class="attr">url</span>: http.<span class="title function_">adornUrl</span>(<span class="string">'/sys/menu/nav'</span>),</span><br><span class="line"> <span class="attr">method</span>: <span class="string">'get'</span>,</span><br><span class="line"> <span class="attr">params</span>: http.<span class="title function_">adornParams</span>()</span><br><span class="line"> }).<span class="title function_">then</span>(<span class="function">(<span class="params">{ data }</span>) =></span> {</span><br><span class="line"> <span class="keyword">if</span> (data && data.<span class="property">code</span> === <span class="number">0</span>) {</span><br><span class="line"> <span class="title function_">fnAddDynamicMenuRoutes</span>(data.<span class="property">menuList</span>)</span><br><span class="line"> router.<span class="property">options</span>.<span class="property">isAddDynamicMenuRoutes</span> = <span class="literal">true</span></span><br><span class="line"> <span class="variable language_">sessionStorage</span>.<span class="title function_">setItem</span>(<span class="string">'menuList'</span>, <span class="title class_">JSON</span>.<span class="title function_">stringify</span>(data.<span class="property">menuList</span> || <span class="string">'[]'</span>))</span><br><span class="line"> <span class="variable language_">sessionStorage</span>.<span class="title function_">setItem</span>(<span class="string">'permissions'</span>, <span class="title class_">JSON</span>.<span class="title function_">stringify</span>(data.<span class="property">permissions</span> || <span class="string">'[]'</span>))</span><br><span class="line"> <span class="title function_">next</span>({ ...to, <span class="attr">replace</span>: <span class="literal">true</span> })</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="variable language_">sessionStorage</span>.<span class="title function_">setItem</span>(<span class="string">'menuList'</span>, <span class="string">'[]'</span>)</span><br><span class="line"> <span class="variable language_">sessionStorage</span>.<span class="title function_">setItem</span>(<span class="string">'permissions'</span>, <span class="string">'[]'</span>)</span><br><span class="line"> <span class="title function_">next</span>()</span><br><span class="line"> }</span><br><span class="line"> }).<span class="title function_">catch</span>(<span class="function">(<span class="params">e</span>) =></span> {</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">`%c<span class="subst">${e}</span> 请求菜单列表和权限失败,跳转至登录页!!`</span>, <span class="string">'color:blue'</span>)</span><br><span class="line"> router.<span class="title function_">push</span>({ <span class="attr">name</span>: <span class="string">'login'</span> })</span><br><span class="line"> })</span><br><span class="line"> }</span><br><span class="line">})</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 判断当前路由类型, global: 全局路由, main: 主入口路由</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> {<span class="type">*</span>} route 当前路由</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">fnCurrentRouteType</span>(<span class="params">route, globalRoutes = []</span>) {</span><br><span class="line"> <span class="keyword">var</span> temp = []</span><br><span class="line"> <span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i < globalRoutes.<span class="property">length</span>; i++) {</span><br><span class="line"> <span class="keyword">if</span> (route.<span class="property">path</span> === globalRoutes[i].<span class="property">path</span>) {</span><br><span class="line"> <span class="keyword">return</span> <span class="string">'global'</span></span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (globalRoutes[i].<span class="property">children</span> && globalRoutes[i].<span class="property">children</span>.<span class="property">length</span> >= <span class="number">1</span>) {</span><br><span class="line"> temp = temp.<span class="title function_">concat</span>(globalRoutes[i].<span class="property">children</span>)</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> temp.<span class="property">length</span> >= <span class="number">1</span> ? <span class="title function_">fnCurrentRouteType</span>(route, temp) : <span class="string">'main'</span></span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 添加动态(菜单)路由</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> {<span class="type">*</span>} menuList 菜单列表</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> {<span class="type">*</span>} routes 递归创建的动态(菜单)路由</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="keyword">function</span> <span class="title function_">fnAddDynamicMenuRoutes</span>(<span class="params">menuList = [], routes = []</span>) {</span><br><span class="line"> <span class="keyword">var</span> temp = []</span><br><span class="line"> <span class="keyword">for</span> (<span class="keyword">var</span> i = <span class="number">0</span>; i < menuList.<span class="property">length</span>; i++) {</span><br><span class="line"> <span class="keyword">if</span> (menuList[i].<span class="property">list</span> && menuList[i].<span class="property">list</span>.<span class="property">length</span> >= <span class="number">1</span>) {</span><br><span class="line"> temp = temp.<span class="title function_">concat</span>(menuList[i].<span class="property">list</span>)</span><br><span class="line"> } <span class="keyword">else</span> <span class="keyword">if</span> (menuList[i].<span class="property">url</span> && <span class="regexp">/\S/</span>.<span class="title function_">test</span>(menuList[i].<span class="property">url</span>)) {</span><br><span class="line"> menuList[i].<span class="property">url</span> = menuList[i].<span class="property">url</span>.<span class="title function_">replace</span>(<span class="regexp">/^\//</span>, <span class="string">''</span>)</span><br><span class="line"> <span class="keyword">var</span> route = {</span><br><span class="line"> <span class="attr">path</span>: menuList[i].<span class="property">url</span>.<span class="title function_">replace</span>(<span class="string">'/'</span>, <span class="string">'-'</span>),</span><br><span class="line"> <span class="attr">component</span>: <span class="literal">null</span>,</span><br><span class="line"> <span class="attr">name</span>: menuList[i].<span class="property">url</span>.<span class="title function_">replace</span>(<span class="string">'/'</span>, <span class="string">'-'</span>),</span><br><span class="line"> <span class="attr">meta</span>: {</span><br><span class="line"> <span class="attr">menuId</span>: menuList[i].<span class="property">menuId</span>,</span><br><span class="line"> <span class="attr">title</span>: menuList[i].<span class="property">name</span>,</span><br><span class="line"> <span class="attr">isDynamic</span>: <span class="literal">true</span>,</span><br><span class="line"> <span class="attr">isTab</span>: <span class="literal">true</span>,</span><br><span class="line"> <span class="attr">iframeUrl</span>: <span class="string">''</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">// url以http[s]://开头, 通过iframe展示</span></span><br><span class="line"> <span class="keyword">if</span> (<span class="title function_">isURL</span>(menuList[i].<span class="property">url</span>)) {</span><br><span class="line"> route[<span class="string">'path'</span>] = <span class="string">`i-<span class="subst">${menuList[i].menuId}</span>`</span></span><br><span class="line"> route[<span class="string">'name'</span>] = <span class="string">`i-<span class="subst">${menuList[i].menuId}</span>`</span></span><br><span class="line"> route[<span class="string">'meta'</span>][<span class="string">'iframeUrl'</span>] = menuList[i].<span class="property">url</span></span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> route[<span class="string">'component'</span>] = <span class="title function_">_import</span>(<span class="string">`modules/<span class="subst">${menuList[i].url}</span>`</span>) || <span class="literal">null</span></span><br><span class="line"> } <span class="keyword">catch</span> (e) { }</span><br><span class="line"> }</span><br><span class="line"> routes.<span class="title function_">push</span>(route)</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (temp.<span class="property">length</span> >= <span class="number">1</span>) {</span><br><span class="line"> <span class="title function_">fnAddDynamicMenuRoutes</span>(temp, routes)</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> mainRoutes.<span class="property">name</span> = <span class="string">'main-dynamic'</span></span><br><span class="line"> mainRoutes.<span class="property">children</span> = routes</span><br><span class="line"> router.<span class="title function_">addRoutes</span>([</span><br><span class="line"> mainRoutes,</span><br><span class="line"> { <span class="attr">path</span>: <span class="string">'*'</span>, <span class="attr">redirect</span>: { <span class="attr">name</span>: <span class="string">'404'</span> } }</span><br><span class="line"> ])</span><br><span class="line"> <span class="variable language_">sessionStorage</span>.<span class="title function_">setItem</span>(<span class="string">'dynamicMenuRoutes'</span>, <span class="title class_">JSON</span>.<span class="title function_">stringify</span>(mainRoutes.<span class="property">children</span> || <span class="string">'[]'</span>))</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'\n'</span>)</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'%c!<-------------------- 动态(菜单)路由 s -------------------->'</span>, <span class="string">'color:blue'</span>)</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(mainRoutes.<span class="property">children</span>)</span><br><span class="line"> <span class="variable language_">console</span>.<span class="title function_">log</span>(<span class="string">'%c!<-------------------- 动态(菜单)路由 e -------------------->'</span>, <span class="string">'color:blue'</span>)</span><br><span class="line"> }</span><br><span class="line">}</span><br><span class="line"></span><br><span class="line"><span class="keyword">export</span> <span class="keyword">default</span> router</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="1-4-2-发布商品"><a href="#1-4-2-发布商品" class="headerlink" title="1.4.2 发布商品"></a>1.4.2 发布商品</h4><p><strong>根据商品的分类联动的查询商品的品牌</strong></p>
|
||
<p><img src="/pictures/image-20230626101113941.png" alt="image-20230626101113941"></p>
|
||
<p>后端关键部分的代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询商品分类关联的品牌信息</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 某一商品分类下关联的品牌信息组成的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<BrandEntity> <span class="title function_">getBrandsByCatId</span><span class="params">(Long catId)</span> {</span><br><span class="line"> List<CategoryBrandRelationEntity> categoryBrandRelationEntityList = relationDao.selectList(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><CategoryBrandRelationEntity>().eq(CategoryBrandRelationEntity::getCatelogId, catId));</span><br><span class="line"> List<BrandEntity> brandEntityList = categoryBrandRelationEntityList.stream().map(item -> {</span><br><span class="line"> <span class="type">Long</span> <span class="variable">brandId</span> <span class="operator">=</span> item.getBrandId();</span><br><span class="line"> <span class="keyword">return</span> brandService.getById(brandId);</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="keyword">return</span> brandEntityList;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>根据JSON数据生成实体类</strong></p>
|
||
<p>生成工具: <a href="https://www.bejson.com/">https://www.bejson.com/</a></p>
|
||
<p><img src="/pictures/image-20230626142854091.png" alt="image-20230626142854091"></p>
|
||
<p>前端提交的发布商品的详细信息</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"spuName"</span><span class="punctuation">:</span> <span class="string">"华为Mate30 Pro"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"spuDescription"</span><span class="punctuation">:</span> <span class="string">"华为手机"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catalogId"</span><span class="punctuation">:</span> <span class="number">225</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"brandId"</span><span class="punctuation">:</span> <span class="number">1</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"weight"</span><span class="punctuation">:</span> <span class="number">0.198</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"publishStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"decript"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/7b9f237d-9d37-4087-83bd-13d0ea76eda4_73366cc235d68202.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/e5c4fbe5-0685-4a12-8623-a4972c623d6c_528211b97272d88a.jpg"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/7627fc94-1ac7-4406-8e1c-3866a002918b_0d40c24b264aa511.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/e5364a2e-9f46-433b-827b-33c1ff8c991c_919c850652e98031.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/997dd5dd-be60-4547-871c-23b1273df596_1f15cdbcf9e1273c.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/788f45d7-d399-4482-88db-4dd939a51f4a_2b1837c6c50add30.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/b18dd3f9-3a38-4e9a-86a0-8c24db552a09_3c24f9cd69534030.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/d19426e9-c518-4fc8-85dd-7fae758a4000_23d9fbb256ea5d4a.jpg"</span><span class="punctuation">,</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/7200dec5-af25-4264-87dc-19985c4cbe23_335b2c690e43a8f8.jpg"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"bounds"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"buyBounds"</span><span class="punctuation">:</span> <span class="number">500</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"growBounds"</span><span class="punctuation">:</span> <span class="number">500</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"baseAttrs"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValues"</span><span class="punctuation">:</span> <span class="string">"2019"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showDesc"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">4</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValues"</span><span class="punctuation">:</span> <span class="string">"mate30pro"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showDesc"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">10</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValues"</span><span class="punctuation">:</span> <span class="string">"45W"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showDesc"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">11</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValues"</span><span class="punctuation">:</span> <span class="string">"LCD;OLED"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showDesc"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">8</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValues"</span><span class="punctuation">:</span> <span class="string">"16GB"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"showDesc"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skus"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attr"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">7</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"手机颜色"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"星河银"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">9</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"商品产地"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"中国"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuName"</span><span class="punctuation">:</span> <span class="string">"华为Mate30 Pro 星河银 中国"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="string">"5799"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuTitle"</span><span class="punctuation">:</span> <span class="string">"华为(HUAWEI) 华为Mate30 Pro全网通智能手机 (5G/4G)"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuSubtitle"</span><span class="punctuation">:</span> <span class="string">"星河银的副标题"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/7627fc94-1ac7-4406-8e1c-3866a002918b_0d40c24b264aa511.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/e5364a2e-9f46-433b-827b-33c1ff8c991c_919c850652e98031.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/788f45d7-d399-4482-88db-4dd939a51f4a_2b1837c6c50add30.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/b18dd3f9-3a38-4e9a-86a0-8c24db552a09_3c24f9cd69534030.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"descar"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"星河银"</span><span class="punctuation">,</span> <span class="string">"中国"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullCount"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"discount"</span><span class="punctuation">:</span> <span class="number">0.98</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"countStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullPrice"</span><span class="punctuation">:</span> <span class="number">10000</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"reducePrice"</span><span class="punctuation">:</span> <span class="number">50</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"priceStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"memberPrice"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"铜牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">5788</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"银牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">5699</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attr"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">7</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"手机颜色"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"亮黑色"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">9</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"商品产地"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"中国"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuName"</span><span class="punctuation">:</span> <span class="string">"华为Mate30 Pro 亮黑色 中国"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="string">"6299"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuTitle"</span><span class="punctuation">:</span> <span class="string">"华为(HUAWEI) 华为Mate30 Pro全网通智能手机 (5G/4G)"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuSubtitle"</span><span class="punctuation">:</span> <span class="string">"亮黑色的副标题"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/997dd5dd-be60-4547-871c-23b1273df596_1f15cdbcf9e1273c.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/7200dec5-af25-4264-87dc-19985c4cbe23_335b2c690e43a8f8.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"descar"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"亮黑色"</span><span class="punctuation">,</span> <span class="string">"中国"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"discount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"countStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullPrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"reducePrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"priceStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"memberPrice"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"铜牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"银牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attr"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">7</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"手机颜色"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"翡冷翠"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">9</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"商品产地"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"中国"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuName"</span><span class="punctuation">:</span> <span class="string">"华为Mate30 Pro 翡冷翠 中国"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="string">"6299"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuTitle"</span><span class="punctuation">:</span> <span class="string">"华为(HUAWEI) 华为Mate30 Pro全网通智能手机 (5G/4G)"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuSubtitle"</span><span class="punctuation">:</span> <span class="string">"翡冷翠的副标题"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/997dd5dd-be60-4547-871c-23b1273df596_1f15cdbcf9e1273c.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/d19426e9-c518-4fc8-85dd-7fae758a4000_23d9fbb256ea5d4a.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"descar"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"翡冷翠"</span><span class="punctuation">,</span> <span class="string">"中国"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"discount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"countStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullPrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"reducePrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"priceStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"memberPrice"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"铜牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"银牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attr"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">7</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"手机颜色"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"罗兰紫"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="number">9</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="string">"商品产地"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="string">"中国"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuName"</span><span class="punctuation">:</span> <span class="string">"华为Mate30 Pro 罗兰紫 中国"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="string">"5799"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuTitle"</span><span class="punctuation">:</span> <span class="string">"华为(HUAWEI) 华为Mate30 Pro全网通智能手机 (5G/4G)"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuSubtitle"</span><span class="punctuation">:</span> <span class="string">"罗兰紫的副标题"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"images"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/e5364a2e-9f46-433b-827b-33c1ff8c991c_919c850652e98031.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">"https://gulimall-0611.oss-cn-beijing.aliyuncs.com/2023/06/26/997dd5dd-be60-4547-871c-23b1273df596_1f15cdbcf9e1273c.jpg"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">1</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"imgUrl"</span><span class="punctuation">:</span> <span class="string">""</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"defaultImg"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"descar"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="string">"罗兰紫"</span><span class="punctuation">,</span> <span class="string">"中国"</span><span class="punctuation">]</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullCount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"discount"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"countStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"fullPrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"reducePrice"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"priceStatus"</span><span class="punctuation">:</span> <span class="number">0</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"memberPrice"</span><span class="punctuation">:</span> <span class="punctuation">[</span><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">2</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"铜牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"id"</span><span class="punctuation">:</span> <span class="number">3</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"name"</span><span class="punctuation">:</span> <span class="string">"银牌会员"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"price"</span><span class="punctuation">:</span> <span class="number">0</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">]</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>下载生成的实体类代码</p>
|
||
<p><img src="/pictures/image-20230626143051042.png" alt="image-20230626143051042"></p>
|
||
<p>生成的实体类(将生成的实体类复制到项目中指定的位置)</p>
|
||
<p><img src="/pictures/image-20230626143228035.png" alt="image-20230626143228035"></p>
|
||
<p><strong>发布商品信息(核心业务)</strong></p>
|
||
<p>后端关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 发布商品的功能</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> vo 需要保存的商品信息封装的数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">saveSpuInfo</span><span class="params">(SpuSaveVo vo)</span> {</span><br><span class="line"> <span class="comment">//保存spu的基本信息 pms_spu_info</span></span><br><span class="line"> <span class="type">SpuInfoEntity</span> <span class="variable">infoEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SpuInfoEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(vo, infoEntity);</span><br><span class="line"> infoEntity.setCreateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> infoEntity.setUpdateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="built_in">this</span>.saveBaseSpuInfo(infoEntity);</span><br><span class="line"> <span class="comment">//保存spu的描述图片 pms_spu_info_desc</span></span><br><span class="line"> List<String> decript = vo.getDecript();</span><br><span class="line"> <span class="type">SpuInfoDescEntity</span> <span class="variable">descEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SpuInfoDescEntity</span>();</span><br><span class="line"> descEntity.setSpuId(infoEntity.getId());</span><br><span class="line"> descEntity.setDecript(String.join(<span class="string">","</span>, decript));</span><br><span class="line"> spuInfoDescService.saveSpuInfoDecript(descEntity);</span><br><span class="line"> <span class="comment">//保存spu的图片集 pms_spu_images</span></span><br><span class="line"> List<String> images = vo.getImages();</span><br><span class="line"> spuImagesService.saveImages(infoEntity.getId(), images);</span><br><span class="line"> <span class="comment">//保存spu的规格参数 pms_product_attr_value</span></span><br><span class="line"> List<BaseAttrs> baseAttrs = vo.getBaseAttrs();</span><br><span class="line"> List<ProductAttrValueEntity> collect = baseAttrs.stream().map(attr -> {</span><br><span class="line"> <span class="type">ProductAttrValueEntity</span> <span class="variable">valueEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">ProductAttrValueEntity</span>();</span><br><span class="line"> valueEntity.setAttrId(attr.getAttrId());</span><br><span class="line"> <span class="type">AttrEntity</span> <span class="variable">attrEntity</span> <span class="operator">=</span> attrService.getById(attr.getAttrId());</span><br><span class="line"> valueEntity.setAttrName(attrEntity.getAttrName());</span><br><span class="line"> valueEntity.setAttrValue(attr.getAttrValues());</span><br><span class="line"> valueEntity.setQuickShow(attr.getShowDesc());</span><br><span class="line"> valueEntity.setSpuId(infoEntity.getId());</span><br><span class="line"> <span class="keyword">return</span> valueEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> productAttrValueService.saveProductAttr(collect);</span><br><span class="line"> <span class="comment">//保存spu的积分信息</span></span><br><span class="line"> <span class="type">Bounds</span> <span class="variable">bounds</span> <span class="operator">=</span> vo.getBounds();</span><br><span class="line"> <span class="type">SpuBoundTo</span> <span class="variable">spuBoundTo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SpuBoundTo</span>();</span><br><span class="line"> spuBoundTo.setSpuId(infoEntity.getId());</span><br><span class="line"> BeanUtils.copyProperties(bounds, spuBoundTo);</span><br><span class="line"> <span class="type">R</span> <span class="variable">r</span> <span class="operator">=</span> couponFeignService.saveSpuBounds(spuBoundTo);</span><br><span class="line"> <span class="keyword">if</span> (r.getCode() != <span class="number">0</span>) {</span><br><span class="line"> log.error(<span class="string">"远程保存spu的积分信息失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//保存当前spu对应的sku信息</span></span><br><span class="line"> List<Skus> skus = vo.getSkus();</span><br><span class="line"> <span class="keyword">if</span> (skus != <span class="literal">null</span> && skus.size() != <span class="number">0</span>) {</span><br><span class="line"> skus.forEach(item -> {</span><br><span class="line"> <span class="type">String</span> <span class="variable">defaultImg</span> <span class="operator">=</span> <span class="string">""</span>;</span><br><span class="line"> <span class="keyword">for</span> (Images img : item.getImages()) {</span><br><span class="line"> <span class="keyword">if</span> (img.getDefaultImg() == <span class="number">1</span>) {</span><br><span class="line"> defaultImg = img.getImgUrl();</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> <span class="type">SkuInfoEntity</span> <span class="variable">skuInfoEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuInfoEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(item, skuInfoEntity);</span><br><span class="line"> skuInfoEntity.setBrandId(infoEntity.getBrandId());</span><br><span class="line"> skuInfoEntity.setCatalogId(infoEntity.getCatalogId());</span><br><span class="line"> skuInfoEntity.setSaleCount(<span class="number">0L</span>);</span><br><span class="line"> skuInfoEntity.setSpuId(infoEntity.getId());</span><br><span class="line"> skuInfoEntity.setSkuDefaultImg(defaultImg);</span><br><span class="line"> <span class="comment">// 保存sku的基本信息pms_sku_info</span></span><br><span class="line"> skuInfoService.saveSkuInfo(skuInfoEntity);</span><br><span class="line"> <span class="type">Long</span> <span class="variable">skuId</span> <span class="operator">=</span> skuInfoEntity.getSkuId();</span><br><span class="line"> List<SkuImagesEntity> imagesEntities = item.getImages().stream().map(img -> {</span><br><span class="line"> <span class="type">SkuImagesEntity</span> <span class="variable">skuImagesEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuImagesEntity</span>();</span><br><span class="line"> skuImagesEntity.setSkuId(skuId);</span><br><span class="line"> skuImagesEntity.setImgUrl(img.getImgUrl());</span><br><span class="line"> skuImagesEntity.setDefaultImg(img.getDefaultImg());</span><br><span class="line"> <span class="keyword">return</span> skuImagesEntity;</span><br><span class="line"> }).filter(entity -> {</span><br><span class="line"> <span class="comment">//返回true就添加上去</span></span><br><span class="line"> <span class="keyword">return</span> !StringUtils.isEmpty(entity.getImgUrl());</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="comment">// 保存sku的图片信息pms_sku_images</span></span><br><span class="line"> skuImagesService.saveBatch(imagesEntities);</span><br><span class="line"> <span class="comment">// sku的销售属性信息pms_sku_sale_attr_value</span></span><br><span class="line"> List<Attr> attrs = item.getAttr();</span><br><span class="line"> List<SkuSaleAttrValueEntity> skuSaleAttrValueEntities = attrs.stream().map(attr -> {</span><br><span class="line"> <span class="type">SkuSaleAttrValueEntity</span> <span class="variable">skuSaleAttrValueEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuSaleAttrValueEntity</span>();</span><br><span class="line"> BeanUtils.copyProperties(attr, skuSaleAttrValueEntity);</span><br><span class="line"> skuSaleAttrValueEntity.setSkuId(skuId);</span><br><span class="line"> <span class="keyword">return</span> skuSaleAttrValueEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> skuSaleAttrValueService.saveBatch(skuSaleAttrValueEntities);</span><br><span class="line"> <span class="comment">// sku的优惠信息、满减等信息gulimall_sms->sms_sku_ladder\sms_sku_full_reduction\sms_member_price</span></span><br><span class="line"> <span class="type">SkuReductionTo</span> <span class="variable">skuReductionTo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuReductionTo</span>();</span><br><span class="line"> BeanUtils.copyProperties(item, skuReductionTo);</span><br><span class="line"> List<MemberPrice> memberPrices = item.getMemberPrice().stream().map(memberPrice -> {</span><br><span class="line"> <span class="type">MemberPrice</span> <span class="variable">memberPriceTo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">MemberPrice</span>();</span><br><span class="line"> BeanUtils.copyProperties(memberPrice, memberPriceTo);</span><br><span class="line"> <span class="keyword">return</span> memberPriceTo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> skuReductionTo.setMemberPrice(memberPrices);</span><br><span class="line"> skuReductionTo.setSkuId(skuId);</span><br><span class="line"> <span class="keyword">if</span> (skuReductionTo.getFullCount() > <span class="number">0</span> || skuReductionTo.getFullPrice().compareTo(<span class="keyword">new</span> <span class="title class_">BigDecimal</span>(<span class="string">"0"</span>)) == <span class="number">1</span>) {</span><br><span class="line"> <span class="type">R</span> <span class="variable">r1</span> <span class="operator">=</span> couponFeignService.saveSkuReduction(skuReductionTo);</span><br><span class="line"> <span class="keyword">if</span> (r1.getCode() != <span class="number">0</span>) {</span><br><span class="line"> log.error(<span class="string">"远程调用sku的优惠信息、满减信息失败"</span>);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>最终的实现效果</p>
|
||
<p><img src="/pictures/image-20230626184303186.png" alt="image-20230626184303186"></p>
|
||
<p><img src="/pictures/image-20230626182832804.png" alt="image-20230626182832804"></p>
|
||
<h4 id="1-4-3-商品管理"><a href="#1-4-3-商品管理" class="headerlink" title="1.4.3 商品管理"></a>1.4.3 商品管理</h4><p><strong>Sku检索</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 检索条件</span></span><br><span class="line"><span class="comment"> * {</span></span><br><span class="line"><span class="comment"> * page: 1,//当前页码</span></span><br><span class="line"><span class="comment"> * limit: 10,//每页记录数</span></span><br><span class="line"><span class="comment"> * sidx: 'id',//排序字段</span></span><br><span class="line"><span class="comment"> * order: 'asc/desc',//排序方式</span></span><br><span class="line"><span class="comment"> * key: '华为',//检索关键字</span></span><br><span class="line"><span class="comment"> * catelogId: 0,</span></span><br><span class="line"><span class="comment"> * brandId: 0,</span></span><br><span class="line"><span class="comment"> * min: 0,</span></span><br><span class="line"><span class="comment"> * max: 0</span></span><br><span class="line"><span class="comment"> * }</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPageByCondition</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> LambdaQueryWrapper<SkuInfoEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="comment">//Preparing: SELECT sku_id,sku_name,sku_title,catalog_id,sale_count,price,brand_id,sku_default_img,sku_subtitle,sku_desc,spu_id</span></span><br><span class="line"> <span class="comment">// FROM pms_sku_info</span></span><br><span class="line"> <span class="comment">// WHERE (( (sku_id = ? OR sku_name LIKE ?) ) AND catalog_id = ? AND brand_id = ? AND price >= ? AND price <= ?) LIMIT ?,?</span></span><br><span class="line"> <span class="comment">//检索关键字</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.and((wrapper) -> {</span><br><span class="line"> wrapper.eq(SkuInfoEntity::getSkuId, key).or().like(SkuInfoEntity::getSkuName, key);</span><br><span class="line"> });</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//分类</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">catelogId</span> <span class="operator">=</span> (String) params.get(<span class="string">"catelogId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(catelogId) && !<span class="string">"0"</span>.equalsIgnoreCase(catelogId)) {</span><br><span class="line"> queryWrapper.eq(SkuInfoEntity::getCatalogId, catelogId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//品牌</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">brandId</span> <span class="operator">=</span> (String) params.get(<span class="string">"brandId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(brandId) && !<span class="string">"0"</span>.equalsIgnoreCase(brandId)) {</span><br><span class="line"> queryWrapper.eq(SkuInfoEntity::getBrandId, brandId);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//价格区间</span></span><br><span class="line"> <span class="type">String</span> <span class="variable">min</span> <span class="operator">=</span> (String) params.get(<span class="string">"min"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(min)) {</span><br><span class="line"> queryWrapper.ge(SkuInfoEntity::getPrice, min);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">max</span> <span class="operator">=</span> (String) params.get(<span class="string">"max"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(max)) {</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">BigDecimal</span> <span class="variable">bigDecimal</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BigDecimal</span>(max);</span><br><span class="line"> <span class="keyword">if</span>(bigDecimal.compareTo(<span class="keyword">new</span> <span class="title class_">BigDecimal</span>(<span class="string">"0"</span>))==<span class="number">1</span>){<span class="comment">//说明大于0</span></span><br><span class="line"> queryWrapper.le(SkuInfoEntity::getPrice, max);</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> log.error(<span class="string">"com/atguigu/gulimall/product/service/impl/SkuInfoServiceImpl"</span>);</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(e);</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> IPage<SkuInfoEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><SkuInfoEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230627112218894.png" alt="image-20230627112218894"></p>
|
||
<h2 id="2-库存系统"><a href="#2-库存系统" class="headerlink" title="2.库存系统"></a>2.库存系统</h2><h3 id="2-1-仓库维护"><a href="#2-1-仓库维护" class="headerlink" title="2.1 仓库维护"></a>2.1 仓库维护</h3><p><strong>仓库的分页加条件查询</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPage</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">//分页查询的条件</span></span><br><span class="line"> LambdaQueryWrapper<WareInfoEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.like(WareInfoEntity::getName, key).or()</span><br><span class="line"> .eq(WareInfoEntity::getId, key)</span><br><span class="line"> .or().like(WareInfoEntity::getAddress, key)</span><br><span class="line"> .or().like(WareInfoEntity::getAreacode, key);</span><br><span class="line"> }</span><br><span class="line"> IPage<WareInfoEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><WareInfoEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230627153518692.png" alt="image-20230627153518692"></p>
|
||
<h3 id="2-2-库存工作单"><a href="#2-2-库存工作单" class="headerlink" title="2.2 库存工作单"></a>2.2 库存工作单</h3><h3 id="2-3-商品库存"><a href="#2-3-商品库存" class="headerlink" title="2.3 商品库存"></a>2.3 商品库存</h3><p><strong>商品库存的条件查询</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * {</span></span><br><span class="line"><span class="comment"> * page: 1,//当前页码</span></span><br><span class="line"><span class="comment"> * limit: 10,//每页记录数</span></span><br><span class="line"><span class="comment"> * sidx: 'id',//排序字段</span></span><br><span class="line"><span class="comment"> * order: 'asc/desc',//排序方式</span></span><br><span class="line"><span class="comment"> * wareId: 123,//仓库id</span></span><br><span class="line"><span class="comment"> * skuId: 123//商品id</span></span><br><span class="line"><span class="comment"> * }</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPage</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> LambdaQueryWrapper<WareSkuEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="type">String</span> <span class="variable">wareId</span> <span class="operator">=</span> (String) params.get(<span class="string">"wareId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(wareId)) {</span><br><span class="line"> queryWrapper.eq(WareSkuEntity::getWareId, wareId);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">skuId</span> <span class="operator">=</span> (String) params.get(<span class="string">"skuId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(skuId)) {</span><br><span class="line"> queryWrapper.eq(WareSkuEntity::getSkuId, skuId);</span><br><span class="line"> }</span><br><span class="line"> IPage<WareSkuEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><WareSkuEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230627160605717.png" alt="image-20230627160605717"></p>
|
||
<h3 id="2-4-采购单维护"><a href="#2-4-采购单维护" class="headerlink" title="2.4 采购单维护"></a>2.4 采购单维护</h3><h4 id="2-4-1-采购需求"><a href="#2-4-1-采购需求" class="headerlink" title="2.4.1 采购需求"></a>2.4.1 采购需求</h4><p><strong>采购需求的分页加条件查询</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * status: 0,//状态</span></span><br><span class="line"><span class="comment"> * wareId: 1,//仓库id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPage</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> LambdaQueryWrapper<PurchaseDetailEntity> queryWrapper = <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><>();</span><br><span class="line"> <span class="type">String</span> <span class="variable">status</span> <span class="operator">=</span> (String) params.get(<span class="string">"status"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(status)) {</span><br><span class="line"> queryWrapper.eq(PurchaseDetailEntity::getStatus, status);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">wareId</span> <span class="operator">=</span> (String) params.get(<span class="string">"wareId"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(wareId)) {</span><br><span class="line"> queryWrapper.eq(PurchaseDetailEntity::getWareId, wareId);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">String</span> <span class="variable">key</span> <span class="operator">=</span> (String) params.get(<span class="string">"key"</span>);</span><br><span class="line"> <span class="keyword">if</span> (!StringUtils.isEmpty(key)) {</span><br><span class="line"> queryWrapper.and((wrapper->{</span><br><span class="line"> wrapper.eq(PurchaseDetailEntity::getPurchaseId, key).or().like(PurchaseDetailEntity::getSkuId,key);</span><br><span class="line"> }));</span><br><span class="line"> }</span><br><span class="line"> IPage<PurchaseDetailEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><PurchaseDetailEntity>().getPage(params),</span><br><span class="line"> queryWrapper</span><br><span class="line"> );</span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>实现的效果</p>
|
||
<p><img src="/pictures/image-20230627161955351.png" alt="image-20230627161955351"></p>
|
||
<p><strong>合并采购单</strong></p>
|
||
<p>业务需求介绍</p>
|
||
<p><img src="/pictures/image-20230627162707377.png" alt="image-20230627162707377"></p>
|
||
<p>获取没有领取的采购单,将采购需求合并到这个采购单</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 获取没有领取的采购单</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> PageUtils <span class="title function_">queryPageUnreceivePurchase</span><span class="params">(Map<String, Object> params)</span> {</span><br><span class="line"> IPage<PurchaseEntity> page = <span class="built_in">this</span>.page(</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">Query</span><PurchaseEntity>().getPage(params),</span><br><span class="line"> <span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><PurchaseEntity>().eq(PurchaseEntity::getStatus,<span class="number">0</span>).or().eq(PurchaseEntity::getStatus,<span class="number">1</span>)</span><br><span class="line"> );</span><br><span class="line"></span><br><span class="line"> <span class="keyword">return</span> <span class="keyword">new</span> <span class="title class_">PageUtils</span>(page);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>合并采购需求</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 合并采购需求</span></span><br><span class="line"><span class="comment"> *</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> mergeVo 前端传递的需要合并的采购需求</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">mergePurchase</span><span class="params">(MergeVo mergeVo)</span> {</span><br><span class="line"> <span class="comment">//判断采购单是不是存在</span></span><br><span class="line"> <span class="type">Long</span> <span class="variable">purchaseId</span> <span class="operator">=</span> mergeVo.getPurchaseId();</span><br><span class="line"> <span class="keyword">if</span> (purchaseId == <span class="literal">null</span>) {<span class="comment">//说明没有选择需要合并的采购单,需要先创建一个采购单</span></span><br><span class="line"> <span class="type">PurchaseEntity</span> <span class="variable">purchaseEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseEntity</span>();</span><br><span class="line"> purchaseEntity.setStatus(WareConstant.PurchaseStatesEnum.CREATED.getCode());</span><br><span class="line"> purchaseEntity.setCreateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> purchaseEntity.setUpdateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="built_in">this</span>.save(purchaseEntity);</span><br><span class="line"> purchaseId = purchaseEntity.getId();</span><br><span class="line"> }</span><br><span class="line"> List<Long> items = mergeVo.getItems();</span><br><span class="line"> <span class="type">Long</span> <span class="variable">finalPurchaseId</span> <span class="operator">=</span> purchaseId;</span><br><span class="line"> List<PurchaseDetailEntity> detailEntityList = items.stream().map(item -> {</span><br><span class="line"> <span class="type">PurchaseDetailEntity</span> <span class="variable">detailEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseDetailEntity</span>();</span><br><span class="line"> detailEntity.setId(item);</span><br><span class="line"> detailEntity.setPurchaseId(finalPurchaseId);</span><br><span class="line"> detailEntity.setStatus(WareConstant.PurchaseDeatilStatesEnum.ASSIGNED.getCode());</span><br><span class="line"> <span class="keyword">return</span> detailEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> detailService.updateBatchById(detailEntityList);</span><br><span class="line"> <span class="comment">//更新一下时间</span></span><br><span class="line"> <span class="type">PurchaseEntity</span> <span class="variable">purchaseEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseEntity</span>();</span><br><span class="line"> purchaseEntity.setId(purchaseId);</span><br><span class="line"> purchaseEntity.setUpdateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="built_in">this</span>.updateById(purchaseEntity);</span><br><span class="line"> }</span><br><span class="line"></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-4-2-采购单"><a href="#2-4-2-采购单" class="headerlink" title="2.4.2 采购单"></a>2.4.2 采购单</h4><p><strong>领取采购单</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> ids 采购单id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">received</span><span class="params">(List<Long> ids)</span> {</span><br><span class="line"> <span class="comment">//确认当前的采购单是新建或者分配状态</span></span><br><span class="line"> List<PurchaseEntity> purchaseEntities = ids.stream().map(id -> {</span><br><span class="line"> <span class="type">PurchaseEntity</span> <span class="variable">byId</span> <span class="operator">=</span> <span class="built_in">this</span>.getById(id);</span><br><span class="line"> <span class="keyword">return</span> byId;</span><br><span class="line"> }).filter(item -> {</span><br><span class="line"> <span class="keyword">if</span> (item.getStatus() == WareConstant.PurchaseStatesEnum.CREATED.getCode() ||</span><br><span class="line"> item.getStatus() == WareConstant.PurchaseDeatilStatesEnum.ASSIGNED.getCode()) {</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">true</span>;</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="literal">false</span>;</span><br><span class="line"> }).map(item->{</span><br><span class="line"> <span class="comment">//改变采购单状态</span></span><br><span class="line"> item.setStatus(WareConstant.PurchaseStatesEnum.RECEIVE.getCode());</span><br><span class="line"> item.setUpdateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="keyword">return</span> item;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="built_in">this</span>.updateBatchById(purchaseEntities);</span><br><span class="line"> <span class="comment">//改变采购项状态</span></span><br><span class="line"> purchaseEntities.forEach(item->{</span><br><span class="line"> List<PurchaseDetailEntity> entities = detailService.listDetailByPurchaseId(item.getId());</span><br><span class="line"> List<PurchaseDetailEntity> detailEntityList = entities.stream().map(entity -> {</span><br><span class="line"> <span class="type">PurchaseDetailEntity</span> <span class="variable">purchaseDetailEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseDetailEntity</span>();</span><br><span class="line"> purchaseDetailEntity.setId(entity.getId());</span><br><span class="line"> purchaseDetailEntity.setStatus(WareConstant.PurchaseDeatilStatesEnum.BUYING.getCode());</span><br><span class="line"> <span class="keyword">return</span> purchaseDetailEntity;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> detailService.updateBatchById(detailEntityList);</span><br><span class="line"> });</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>完成采购的功能</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">done</span><span class="params">(PurchaseDoneVo doneVo)</span> {</span><br><span class="line"> <span class="type">Long</span> <span class="variable">id</span> <span class="operator">=</span> doneVo.getId();</span><br><span class="line"> <span class="comment">//改变采购项的状态</span></span><br><span class="line"> <span class="type">Boolean</span> <span class="variable">flag</span> <span class="operator">=</span> <span class="literal">true</span>;</span><br><span class="line"> List<PurchaseItemDoneVo> items = doneVo.getItems();</span><br><span class="line"> List<PurchaseDetailEntity> purchaseItemDoneVos = <span class="keyword">new</span> <span class="title class_">ArrayList</span><>();</span><br><span class="line"> <span class="keyword">for</span> (PurchaseItemDoneVo item : items) {</span><br><span class="line"> <span class="type">PurchaseDetailEntity</span> <span class="variable">detailEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseDetailEntity</span>();</span><br><span class="line"> <span class="keyword">if</span> (item.getStatus() == WareConstant.PurchaseDeatilStatesEnum.HASERROR.getCode()) {</span><br><span class="line"> flag = <span class="literal">false</span>;</span><br><span class="line"> detailEntity.setStatus(item.getStatus());</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> detailEntity.setStatus(WareConstant.PurchaseDeatilStatesEnum.FINISH.getCode());</span><br><span class="line"> <span class="comment">//将成功采购的进行入库</span></span><br><span class="line"> <span class="type">PurchaseDetailEntity</span> <span class="variable">purchaseDetailEntity</span> <span class="operator">=</span> detailService.getById(item.getItemId());</span><br><span class="line"> wareSkuService.addStock(purchaseDetailEntity.getSkuId(),purchaseDetailEntity.getWareId(),purchaseDetailEntity.getSkuNum());</span><br><span class="line"> }</span><br><span class="line"> detailEntity.setId(item.getItemId());</span><br><span class="line"> purchaseItemDoneVos.add(detailEntity);</span><br><span class="line"> }</span><br><span class="line"> detailService.updateBatchById(purchaseItemDoneVos);</span><br><span class="line"> <span class="comment">//改变采购单的状态</span></span><br><span class="line"> <span class="type">PurchaseEntity</span> <span class="variable">purchaseEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">PurchaseEntity</span>();</span><br><span class="line"> purchaseEntity.setId(id);</span><br><span class="line"> purchaseEntity.setStatus(flag ? WareConstant.PurchaseStatesEnum.FINISH.getCode() : WareConstant.PurchaseStatesEnum.HASERROR.getCode());</span><br><span class="line"> purchaseEntity.setUpdateTime(<span class="keyword">new</span> <span class="title class_">Date</span>());</span><br><span class="line"> <span class="built_in">this</span>.updateById(purchaseEntity);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>修改库存的功能</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Transactional</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">addStock</span><span class="params">(Long skuId, Long wareId, Integer skuNum)</span> {</span><br><span class="line"> <span class="comment">//判断是添加的操作还是修改的操作</span></span><br><span class="line"> List<WareSkuEntity> wareSkuEntities = wareSkuDao.selectList(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><WareSkuEntity>().eq(WareSkuEntity::getSkuId, skuId).eq(WareSkuEntity::getWareId, wareId));</span><br><span class="line"> <span class="keyword">if</span> (wareSkuEntities == <span class="literal">null</span> || wareSkuEntities.size() == <span class="number">0</span>) {</span><br><span class="line"> <span class="type">WareSkuEntity</span> <span class="variable">wareSkuEntity</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">WareSkuEntity</span>();</span><br><span class="line"> wareSkuEntity.setSkuId(skuId);</span><br><span class="line"> wareSkuEntity.setWareId(wareId);</span><br><span class="line"> wareSkuEntity.setStock(skuNum);</span><br><span class="line"> wareSkuEntity.setStockLocked(<span class="number">0</span>);</span><br><span class="line"> <span class="comment">//远程查询sku的名字</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">R</span> <span class="variable">r</span> <span class="operator">=</span> productFeignService.info(skuId);</span><br><span class="line"> <span class="keyword">if</span>(r.getCode() == <span class="number">0</span>){</span><br><span class="line"> Map<String,Object> skuInfo = (Map<String, Object>) r.get(<span class="string">"skuInfo"</span>);</span><br><span class="line"> wareSkuEntity.setSkuName((String) skuInfo.get(<span class="string">"skuName"</span>));</span><br><span class="line"> }</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> log.warn(<span class="string">"远程获取商品的Sku信息失败!"</span>);</span><br><span class="line"> }</span><br><span class="line"> wareSkuDao.insert(wareSkuEntity);</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> wareSkuDao.addStock(skuId, wareId, skuNum);</span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>sql语句</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"> <span class="comment"><!--void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);--></span></span><br><span class="line"><span class="tag"><<span class="name">insert</span> <span class="attr">id</span>=<span class="string">"addStock"</span>></span></span><br><span class="line"> update `wms_ware_sku`</span><br><span class="line"> set stock = stock + #{skuNum}</span><br><span class="line"> where sku_id = #{skuId}</span><br><span class="line"> and ware_id = #{wareId}</span><br><span class="line"><span class="tag"></<span class="name">insert</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h2 id="3-基础篇总结"><a href="#3-基础篇总结" class="headerlink" title="3.基础篇总结"></a><strong>3.基础篇总结</strong></h2><img src="/pictures/image-20230628170218776.png" alt="image-20230628170218776" style="zoom:150%;" />
|
||
|
||
<p>个人总结:</p>
|
||
<ul>
|
||
<li>细节很重要,编写代码的时候要注意细节问题(比如网关的配置,模糊路径和精确路径先后配置的问题)</li>
|
||
<li>要有良好的编码习惯,注意代码解耦和代码复用</li>
|
||
<li>业务逻辑很重要,编码之前要搞懂了业务逻辑之后再开始写代码</li>
|
||
<li>学习技术的时候要融会贯通,学习编程的思想</li>
|
||
<li>学技术一定要学会看开发文档(技术说明书),可以先从开发文档提供的demo开始</li>
|
||
</ul>
|
||
<h1 id="六-高级篇程序设计"><a href="#六-高级篇程序设计" class="headerlink" title="六.高级篇程序设计"></a>六.高级篇程序设计</h1><h2 id="1-ElasticSearch"><a href="#1-ElasticSearch" class="headerlink" title="1.ElasticSearch"></a>1.ElasticSearch</h2><p><strong>详细的教程</strong></p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/22654.html">ElasticSearch | The Blog (gitee.io)</a></strong></p>
|
||
<h2 id="2-商城业务"><a href="#2-商城业务" class="headerlink" title="2.商城业务"></a>2.商城业务</h2><h3 id="2-1-商品上架"><a href="#2-1-商品上架" class="headerlink" title="2.1 商品上架"></a>2.1 商品上架</h3><p><strong>1.商品Mapping</strong></p>
|
||
<p>创建一个product索引和指定映射关系</p>
|
||
<figure class="highlight json"><table><tr><td class="code"><pre><span class="line">PUT product</span><br><span class="line"><span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"mappings"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"properties"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"skuId"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"spuId"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuTitle"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"text"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"analyzer"</span><span class="punctuation">:</span> <span class="string">"ik_smart"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuPrice"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"skuImg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"doc_values"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"saleCount"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"hasStock"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"boolean"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"hotScore"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"brandId"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catalogId"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"brandName"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"doc_values"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"brandImg"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"doc_values"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"catalogName"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"doc_values"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrs"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"nested"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"properties"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"attrId"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"long"</span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrName"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"index"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"doc_values"</span><span class="punctuation">:</span> <span class="literal"><span class="keyword">false</span></span></span><br><span class="line"> <span class="punctuation">}</span><span class="punctuation">,</span></span><br><span class="line"> <span class="attr">"attrValue"</span><span class="punctuation">:</span> <span class="punctuation">{</span></span><br><span class="line"> <span class="attr">"type"</span><span class="punctuation">:</span> <span class="string">"keyword"</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"> <span class="punctuation">}</span></span><br><span class="line"><span class="punctuation">}</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.上架功能后端代码</strong></p>
|
||
<p>所需的实体类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.common.to.es;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.math.BigDecimal;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/5</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 对应ES中保存的文档的实体类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SkuEsModel</span> {</span><br><span class="line"> <span class="keyword">private</span> Long skuId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long spuId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String skuTitle;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> BigDecimal skuPrice;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String skuImg;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long saleCount;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Boolean hasStock;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long hotScore;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long brandId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long catalogId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String brandName;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String brandImg;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String catalogName;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> List<Attrs> attrs;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">Attrs</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long attrId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String attrName;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String attrValue;</span><br><span class="line"></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>商品上架的后端关键代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 商品上架的功能</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">up</span><span class="params">(Long spuId)</span> {</span><br><span class="line"> <span class="comment">//查询当前spuId对应的所有sku信息</span></span><br><span class="line"> List<SkuInfoEntity> skus = skuInfoService.getSkusBySpuId(spuId);</span><br><span class="line"> List<Long> skuIds = skus.stream().map(SkuInfoEntity::getSkuId).collect(Collectors.toList());</span><br><span class="line"> <span class="comment">//规格属性信息的封装(可以被检索的规格属性信息)</span></span><br><span class="line"> List<ProductAttrValueEntity> baseAttrs = productAttrValueService.baseAttrListForSpu(spuId);</span><br><span class="line"> List<Long> attrIds = baseAttrs.stream().map(attr -> {</span><br><span class="line"> <span class="keyword">return</span> attr.getAttrId();</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="comment">//获取可以检索的属性id的集合</span></span><br><span class="line"> List<Long> searchAttrIds = attrService.selectSearchAttrs(attrIds);</span><br><span class="line"> <span class="comment">//将其转换成set集合</span></span><br><span class="line"> Set<Long> idSet = <span class="keyword">new</span> <span class="title class_">HashSet</span><>(searchAttrIds);</span><br><span class="line"> <span class="comment">//最终需要封装的attrs</span></span><br><span class="line"> List<SkuEsModel.Attrs> attrs = baseAttrs.stream().filter(item -> {</span><br><span class="line"> <span class="keyword">return</span> idSet.contains(item.getAttrId());</span><br><span class="line"> }).map(item -> {</span><br><span class="line"> SkuEsModel.<span class="type">Attrs</span> <span class="variable">skuAttr</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuEsModel</span>.Attrs();</span><br><span class="line"> BeanUtils.copyProperties(item, skuAttr);</span><br><span class="line"> <span class="keyword">return</span> skuAttr;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="comment">//库存</span></span><br><span class="line"> Map<Long, Boolean> stockMap = <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="type">R</span> <span class="variable">r</span> <span class="operator">=</span> wareFeignService.getSkusHasStock(skuIds);</span><br><span class="line"> List<SkuHasStockVo> skuHasStockVos = r.getData(<span class="keyword">new</span> <span class="title class_">TypeReference</span><List<SkuHasStockVo>>(){});</span><br><span class="line"> stockMap = skuHasStockVos.stream().collect(Collectors.toMap(SkuHasStockVo::getSkuId, item -> item.getHasStock()));</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> log.error(<span class="string">"库存服务查询异常:原因{}"</span>,e);</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//封装sku的信息</span></span><br><span class="line"> Map<Long, Boolean> finalStockMap = stockMap;</span><br><span class="line"> List<SkuEsModel> upProducts = skus.stream().map(sku -> {</span><br><span class="line"> <span class="comment">//组装需要的数据</span></span><br><span class="line"> <span class="type">SkuEsModel</span> <span class="variable">skuEsModel</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuEsModel</span>();</span><br><span class="line"> BeanUtils.copyProperties(sku, skuEsModel);</span><br><span class="line"> <span class="comment">//价格 图片</span></span><br><span class="line"> skuEsModel.setSkuPrice(sku.getPrice());</span><br><span class="line"> skuEsModel.setSkuImg(sku.getSkuDefaultImg());</span><br><span class="line"> <span class="comment">//设置库存信息</span></span><br><span class="line"> <span class="keyword">if</span>(finalStockMap == <span class="literal">null</span>){</span><br><span class="line"> skuEsModel.setHasStock(<span class="literal">true</span>);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> skuEsModel.setHasStock(finalStockMap.get(sku.getSkuId()));</span><br><span class="line"> }</span><br><span class="line"> <span class="comment">//热度评分信息</span></span><br><span class="line"> skuEsModel.setHotScore(<span class="number">0L</span>);</span><br><span class="line"> <span class="comment">//品牌名 分类名 品牌价格</span></span><br><span class="line"> <span class="type">BrandEntity</span> <span class="variable">brand</span> <span class="operator">=</span> brandService.getById(sku.getBrandId());</span><br><span class="line"> skuEsModel.setBrandName(brand.getName());</span><br><span class="line"> skuEsModel.setBrandImg(brand.getLogo());</span><br><span class="line"> <span class="type">CategoryEntity</span> <span class="variable">category</span> <span class="operator">=</span> categoryService.getById(sku.getCatalogId());</span><br><span class="line"> skuEsModel.setCatalogName(category.getName());</span><br><span class="line"> <span class="comment">//设置attrs</span></span><br><span class="line"> skuEsModel.setAttrs(attrs);</span><br><span class="line"> <span class="keyword">return</span> skuEsModel;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="type">R</span> <span class="variable">r</span> <span class="operator">=</span> searchFeignService.productStatusUp(upProducts);</span><br><span class="line"> <span class="keyword">if</span>(r.getCode() == <span class="number">0</span>){</span><br><span class="line"> <span class="comment">//远程调用成功</span></span><br><span class="line"> spuInfoDao.updateSpuStatus(spuId, ProductConstant.StatusEnum.SPU_UP.getCode());</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> <span class="comment">//远程调用失败</span></span><br><span class="line"> <span class="comment">//TODO 重复调用的问题</span></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * feign的调用流程</span></span><br><span class="line"><span class="comment"> * 1.构造请求的数据,将对象转化成json</span></span><br><span class="line"><span class="comment"> * 2.发送请求进行执行(执行成功之后会解码响应数据)</span></span><br><span class="line"><span class="comment"> * 3.执行请求会有重试机制</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 过滤出属性id中可以被检索的属性的id</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@param</span> attrIds 原属性id的集合</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@return</span> 可以被检索的属性id的集合</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<Long> <span class="title function_">selectSearchAttrs</span><span class="params">(List<Long> attrIds)</span> {</span><br><span class="line"> <span class="comment">//select attr_id from `pms_attr` where attr_id in (?) and search_type=1</span></span><br><span class="line"> <span class="keyword">return</span> attrDao.selectSearchAttrs(attrIds);</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">select</span> <span class="attr">id</span>=<span class="string">"selectSearchAttrs"</span> <span class="attr">resultType</span>=<span class="string">"java.lang.Long"</span>></span></span><br><span class="line"> select `attr_id`from `pms_attr` where `attr_id` in</span><br><span class="line"> <span class="tag"><<span class="name">foreach</span> <span class="attr">collection</span>=<span class="string">"attrIds"</span> <span class="attr">item</span>=<span class="string">"attr"</span> <span class="attr">separator</span>=<span class="string">","</span> <span class="attr">open</span>=<span class="string">"("</span> <span class="attr">close</span>=<span class="string">")"</span>></span></span><br><span class="line"> #{attr}</span><br><span class="line"> <span class="tag"></<span class="name">foreach</span>></span></span><br><span class="line"> and `search_type`=1</span><br><span class="line"><span class="tag"></<span class="name">select</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询库存的方法</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> List<SkuHasStockVo> <span class="title function_">getSkusHasStock</span><span class="params">(List<Long> skuIds)</span> {</span><br><span class="line"> List<SkuHasStockVo> skuHasStockVos = skuIds.stream().map(skuId -> {</span><br><span class="line"> <span class="type">SkuHasStockVo</span> <span class="variable">skuHasStockVo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SkuHasStockVo</span>();</span><br><span class="line"> <span class="type">Long</span> <span class="variable">count</span> <span class="operator">=</span> wareSkuDao.getSkuStock(skuId);</span><br><span class="line"> skuHasStockVo.setSkuId(skuId);</span><br><span class="line"> <span class="keyword">if</span>(count != <span class="literal">null</span>){</span><br><span class="line"> skuHasStockVo.setHasStock(count > <span class="number">0</span>);</span><br><span class="line"> }<span class="keyword">else</span> {</span><br><span class="line"> skuHasStockVo.setHasStock(<span class="literal">false</span>);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> skuHasStockVo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> <span class="keyword">return</span> skuHasStockVos;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 存储商品数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Boolean <span class="title function_">productStatusUp</span><span class="params">(List<SkuEsModel> skuEsModels)</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//将数据保存到ES中</span></span><br><span class="line"> <span class="comment">//在ES中建立好索引</span></span><br><span class="line"> <span class="type">BulkRequest</span> <span class="variable">bulkRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">BulkRequest</span>();</span><br><span class="line"> <span class="keyword">for</span> (SkuEsModel skuEsModel : skuEsModels) {</span><br><span class="line"> <span class="type">IndexRequest</span> <span class="variable">indexRequest</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">IndexRequest</span>(EsConstant.PRODUCT_INDEX);</span><br><span class="line"> indexRequest.id(skuEsModel.getSkuId().toString());</span><br><span class="line"> indexRequest.source(JSON.toJSONString(skuEsModel), XContentType.JSON);</span><br><span class="line"> bulkRequest.add(indexRequest);</span><br><span class="line"> }</span><br><span class="line"> <span class="type">BulkResponse</span> <span class="variable">bulk</span> <span class="operator">=</span> restHighLevelClient.bulk(bulkRequest, GulimallElasticSearchConfig.COMMON_OPTIONS);</span><br><span class="line"> <span class="type">boolean</span> <span class="variable">hasFailure</span> <span class="operator">=</span> bulk.hasFailures();</span><br><span class="line"> List<String> ids = Arrays.stream(bulk.getItems()).map(item -> {</span><br><span class="line"> <span class="keyword">return</span> item.getId();</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> log.info(<span class="string">"上架商品的id:{}"</span>,ids);</span><br><span class="line"> <span class="keyword">return</span> !hasFailure;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-2-首页"><a href="#2-2-首页" class="headerlink" title="2.2 首页"></a>2.2 首页</h3><p>项目的页面视图部署在对应的微服务项目的静态资源中</p>
|
||
<p><img src="/pictures/image-20230706112521327.png" alt="image-20230706112521327"></p>
|
||
<h4 id="2-2-1整合thymeleaf"><a href="#2-2-1整合thymeleaf" class="headerlink" title="2.2.1整合thymeleaf"></a>2.2.1整合thymeleaf</h4><p>添加thymeleaf的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!-- thymeleaf--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-thymeleaf<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>将资料中的静态资源放在微服务工程的对应位置,并在配置文件中加入对应的配置</p>
|
||
<p><img src="/pictures/image-20230706114304695.png" alt="image-20230706114304695"></p>
|
||
<p>首页页面</p>
|
||
<p><img src="/pictures/image-20230706145050684.png" alt="image-20230706145050684"></p>
|
||
<p>在index.html上加上thymeleaf的名称空间</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">html</span> <span class="attr">xmlns:th</span>=<span class="string">"http://www.thymeleaf.org"</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改页面的时候需要频繁的重启项目,使用热更新来解决该问题</p>
|
||
<p>导入devtools的依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--devtools--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-devtools<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">optional</span>></span>true<span class="tag"></<span class="name">optional</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>重启项目之后会显示如下的效果</p>
|
||
<p><img src="/pictures/image-20230706154112026.png" alt="image-20230706154112026"></p>
|
||
<p>这时我们在每次修改页面之后使用Ctrl+Shift+F9键可以热更新</p>
|
||
<p><img src="/pictures/image-20230706161401528.png" alt="image-20230706161401528"></p>
|
||
<h4 id="2-2-2-首页面三级分类显示"><a href="#2-2-2-首页面三级分类显示" class="headerlink" title="2.2.2 首页面三级分类显示"></a>2.2.2 首页面三级分类显示</h4><p>首页面的跳转以及一级分类的显示</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 首页面的跳转</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@GetMapping({"/","index.html"})</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">indexPage</span><span class="params">(Model model)</span>{</span><br><span class="line"> <span class="comment">//查询所有的一级分类</span></span><br><span class="line"> List<CategoryEntity> categorys = categoryService.getLevelOneCategorys();</span><br><span class="line"> model.addAttribute(<span class="string">"categorys"</span>,categorys);</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"index"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>用于用户端首页面三级分类封装的数据</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.vo;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.AllArgsConstructor;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"><span class="keyword">import</span> lombok.NoArgsConstructor;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/7</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 用户端首页面三级分类封装的数据</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="meta">@AllArgsConstructor</span></span><br><span class="line"><span class="meta">@NoArgsConstructor</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Catelog2Vo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 一级父分类的id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String catalog1Id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 三级子分类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<Category3Vo> catalog3List;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String id;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 三级分类vo</span></span><br><span class="line"><span class="comment"> * 静态内部类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="meta">@AllArgsConstructor</span></span><br><span class="line"> <span class="meta">@NoArgsConstructor</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">Category3Vo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 父分类、二级分类id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String catalog2Id;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String id;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String name;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>前端相关的修改</p>
|
||
<figure class="highlight html"><table><tr><td class="code"><pre><span class="line"> <span class="tag"><<span class="name">li</span> <span class="attr">th:each</span>=<span class="string">" category:${categorys}"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">a</span> <span class="attr">href</span>=<span class="string">"#"</span> <span class="attr">class</span>=<span class="string">"header_main_left_a"</span> <span class="attr">ctg-data</span>=<span class="string">"3"</span> <span class="attr">th:attr</span>=<span class="string">"ctg-data=${category.catId}"</span>></span><span class="tag"><<span class="name">b</span> <span class="attr">th:text</span>=<span class="string">"${category.name}"</span>></span><span class="tag"></<span class="name">b</span>></span><span class="tag"></<span class="name">a</span>></span></span><br><span class="line"><span class="tag"></<span class="name">li</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230707151505310.png" alt="image-20230707151505310"></p>
|
||
<p>controller层代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 首页面的商品分分类信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="meta">@GetMapping("/index/catalog.json")</span></span><br><span class="line"> <span class="keyword">public</span> Map<String, List<Catelog2Vo>> <span class="title function_">getCatalogJson</span><span class="params">()</span>{</span><br><span class="line"> <span class="keyword">return</span> categoryService.getCatalogJson();</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>service层代码</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Override</span></span><br><span class="line"> <span class="keyword">public</span> Map<String, List<Catelog2Vo>> <span class="title function_">getCatalogJson</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//查出所有的一级分类</span></span><br><span class="line"> List<CategoryEntity> levelOneCategorys = getLevelOneCategorys();</span><br><span class="line"> <span class="comment">//封装数据</span></span><br><span class="line"> Map<String, List<Catelog2Vo>> catelog2VoMap = levelOneCategorys.stream().collect(Collectors.toMap(k -> k.getCatId().toString(), v -> {</span><br><span class="line"> <span class="comment">//查询以及分类下的二级分类</span></span><br><span class="line"> List<CategoryEntity> categoryEntities = categoryDao.selectList(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><CategoryEntity>().eq(CategoryEntity::getParentCid, v.getCatId()));</span><br><span class="line"> List<Catelog2Vo> catelog2Vos = <span class="literal">null</span>;</span><br><span class="line"> <span class="keyword">if</span> (categoryEntities != <span class="literal">null</span>) {</span><br><span class="line"> catelog2Vos = categoryEntities.stream().map(item -> {</span><br><span class="line"> <span class="type">Catelog2Vo</span> <span class="variable">catelog2Vo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Catelog2Vo</span>(v.getCatId().toString(), <span class="literal">null</span>, item.getCatId().toString(), item.getName());</span><br><span class="line"> <span class="comment">//当前二级分类的三级分类</span></span><br><span class="line"> List<CategoryEntity> levelThreeCatelog = categoryDao.selectList(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><CategoryEntity>().eq(CategoryEntity::getParentCid, item.getCatId()));</span><br><span class="line"> <span class="keyword">if</span>(levelThreeCatelog != <span class="literal">null</span>){</span><br><span class="line"> <span class="comment">//封装成指定的数据</span></span><br><span class="line"> List<Catelog2Vo.Category3Vo> category3VoList = levelThreeCatelog.stream().map(threeCatelog -> {</span><br><span class="line"> Catelog2Vo.<span class="type">Category3Vo</span> <span class="variable">category3Vo</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Catelog2Vo</span>.Category3Vo();</span><br><span class="line"> category3Vo.setCatalog2Id(item.getCatId().toString());</span><br><span class="line"> category3Vo.setName(threeCatelog.getName());</span><br><span class="line"> category3Vo.setId(threeCatelog.getCatId().toString());</span><br><span class="line"> <span class="keyword">return</span> category3Vo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> catelog2Vo.setCatalog3List(category3VoList);</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> catelog2Vo;</span><br><span class="line"> }).collect(Collectors.toList());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> catelog2Vos;</span><br><span class="line"> }));</span><br><span class="line"> <span class="keyword">return</span> catelog2VoMap;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>页面实现的效果</p>
|
||
<p><img src="/pictures/image-20230707151543593.png" alt="image-20230707151543593"></p>
|
||
<h3 id="2-3-搭建域名访问环境"><a href="#2-3-搭建域名访问环境" class="headerlink" title="2.3 搭建域名访问环境"></a>2.3 搭建域名访问环境</h3><p><strong>1.安装SwitchHosts软件</strong></p>
|
||
<p>可以快捷的编辑操作hosts文件</p>
|
||
<p>打开的时候以管理员的身份打开</p>
|
||
<p><img src="/pictures/image-20230707153628394.png" alt="image-20230707153628394"></p>
|
||
<p><img src="/pictures/image-20230707154052952.png" alt="image-20230707154052952"></p>
|
||
<p>在添加的方案中添加如下的内容,点击右下角的保存按钮保存(保存失败的更改hosts文件的权限,将只读勾选掉)</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">192.168.195.100 gulimall.com</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>保存成功之后可以直接访问域名,解析到虚拟机的ip</p>
|
||
<p><strong>Tips:有科学上网的测试的时候要先关闭科学上网的软件</strong></p>
|
||
<p> 安装了ES的访问gulimall.com:9200可以看到相应的内容</p>
|
||
<p><img src="/pictures/image-20230707160328001.png" alt="image-20230707160328001"></p>
|
||
<p><strong>2.正式搭建项目的域名访问环境</strong></p>
|
||
<p><img src="/pictures/image-20230708092745456.png" alt="image-20230708092745456"></p>
|
||
<p>nginx的配置文件</p>
|
||
<p><img src="/pictures/image-20230708093600923.png" alt="image-20230708093600923"></p>
|
||
<p>配置nginx</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到nginx挂载在本机的配置文件所在的目录</span></span><br><span class="line">cd /mydata/nginx/conf</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">切换到nginx的分配置文件下复制一份 定义gulimall的配置,主配置文件中有include /etc/nginx/conf.d/*.conf;这么一段配置,主配置文件</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">会包含conf.d目录下的所有配置</span></span><br><span class="line">cd /mydata/nginx/conf/conf.d</span><br><span class="line">cp default.conf gulimall.conf 复制一份</span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">在gulimall.conf配置文件中配置我们的配置</span></span><br><span class="line"><span class="meta prompt_">#</span><span class="language-bash">配置如下配置</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>niginx的配置文件如下</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">server {</span><br><span class="line"> listen 80;</span><br><span class="line"> server_name gulimall.com;</span><br><span class="line"></span><br><span class="line"> location / {</span><br><span class="line"> #服务的IP 192.168.0.112</span><br><span class="line"> #服务的端口: 10000</span><br><span class="line"> proxy_pass http://192.168.0.112:10000;</span><br><span class="line"> }</span><br><span class="line"> error_page 500 502 503 504 /50x.html;</span><br><span class="line"> location = /50x.html {</span><br><span class="line"> root /usr/share/nginx/html;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>这时我们在访问gulimall.com的时候就可以访问一下的页面了</p>
|
||
<p><img src="/pictures/image-20230708095940126.png" alt="image-20230708095940126"></p>
|
||
<p><strong>3.让nginx代理到网关</strong></p>
|
||
<p>在nginx.conf配置文件中加上如下的配置</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">#配置上游服务器</span><br><span class="line"> #gulimall是上游服务器的组名</span><br><span class="line"> upstream gulimall{</span><br><span class="line"> #网关的地址</span><br><span class="line"> server 192.168.0.112:88;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>修改gulimall.conf中的配置</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">server {</span><br><span class="line"> listen 80;</span><br><span class="line"> server_name gulimall.com;</span><br><span class="line"></span><br><span class="line"> location / {</span><br><span class="line"> proxy_pass http://gulimall;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> error_page 500 502 503 504 /50x.html;</span><br><span class="line"> location = /50x.html {</span><br><span class="line"> root /usr/share/nginx/html;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>在网关的配置文件中加上一下的配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment"># nginx代理相关的断言</span></span><br><span class="line"><span class="bullet">-</span> <span class="attr">id:</span> <span class="string">gulimall_host_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://gulimall-product</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Host=**.gulimall.com,gulimall.com</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>这时我们重启网关的时候发现无法访问到相应的页面 是由于nginx访问网关的时候丢了host</p>
|
||
<p>这时我们需要加上如下的配置</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">proxy_set_header Host $host;</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230708104321024.png" alt="image-20230708104321024"></p>
|
||
<img src="/pictures/image-20230708104848501.png" alt="image-20230708104848501" style="zoom:150%;" />
|
||
|
||
<h3 id="2-4-性能压测"><a href="#2-4-性能压测" class="headerlink" title="2.4 性能压测"></a>2.4 性能压测</h3><p><strong><a href="https://jasonsgong.gitee.io/posts/1416.html">压力测试与性能监控 | The Blog (gitee.io)</a></strong></p>
|
||
<p>JMeter压力测试</p>
|
||
<p><img src="/pictures/image-20230708152102009.png" alt="image-20230708152102009"></p>
|
||
<p>性能监控</p>
|
||
<figure class="highlight shell"><table><tr><td class="code"><pre><span class="line">jconsole</span><br><span class="line">jvisualvm</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230709155555491.png" alt="image-20230709155555491"></p>
|
||
<h4 id="2-4-1优化中间件对性能的影响"><a href="#2-4-1优化中间件对性能的影响" class="headerlink" title="2.4.1优化中间件对性能的影响"></a>2.4.1优化中间件对性能的影响</h4><p>网关的优化、数据库索引的优化、thymeleaf的优化、静态资源的优化、nginx动静分离</p>
|
||
<p><img src="/pictures/image-20230710111805705.png" alt="image-20230710111805705"></p>
|
||
<h3 id="2-5-缓存使用"><a href="#2-5-缓存使用" class="headerlink" title="2.5 缓存使用"></a>2.5 缓存使用</h3><h4 id="2-5-1-本地缓存与分布式缓存"><a href="#2-5-1-本地缓存与分布式缓存" class="headerlink" title="2.5.1 本地缓存与分布式缓存"></a>2.5.1 本地缓存与分布式缓存</h4><p>为了系统性能的提升,我们一般都会将部分数据放入缓存中,加速访问。而 db 承担数据落盘工作。<br><strong>哪些数据适合放入缓存?</strong><br>1.即时性、数据一致性要求不高的<br>2.访问量大且更新频率不高的数据(读多,写少)</p>
|
||
<p><strong>本地缓存</strong></p>
|
||
<p><img src="/pictures/image-20230710143906286.png" alt="image-20230710143906286"></p>
|
||
<p><strong>分布式缓存</strong></p>
|
||
<p><img src="/pictures/image-20230710143341531.png" alt="image-20230710143341531"></p>
|
||
<h4 id="2-5-2-整合redis"><a href="#2-5-2-整合redis" class="headerlink" title="2.5.2 整合redis"></a>2.5.2 整合redis</h4><p><strong>1.安装Redis</strong></p>
|
||
<p><img src="/pictures/image-20230710144052877.png" alt="image-20230710144052877"></p>
|
||
<p><strong>2.项目中使用Redis</strong></p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/13813.html">SpringBoot整合Redis | The Blog (gitee.io)</a></strong></p>
|
||
<p>2.1 引入依赖</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-data-redis<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.2 添加配置</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="attr">spring:</span></span><br><span class="line"> <span class="attr">redis:</span></span><br><span class="line"> <span class="attr">host:</span> <span class="number">192.168</span><span class="number">.195</span><span class="number">.100</span></span><br><span class="line"> <span class="attr">port:</span> <span class="number">6379</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.3 测试使用</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line"><span class="keyword">private</span> StringRedisTemplate stringRedisTemplate;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testRedis</span><span class="params">()</span>{</span><br><span class="line"> ValueOperations<String, String> ops = stringRedisTemplate.opsForValue();</span><br><span class="line"> ops.set(<span class="string">"hello"</span>,<span class="string">"word_"</span>+ UUID.randomUUID().toString());</span><br><span class="line"> <span class="type">String</span> <span class="variable">hello</span> <span class="operator">=</span> ops.get(<span class="string">"hello"</span>);</span><br><span class="line"> System.out.println(hello);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230710145648233.png" alt="image-20230710145648233"></p>
|
||
<p><strong>lettuce堆外内存溢出bug</strong></p>
|
||
<p>产生原因:</p>
|
||
<p>1)、springboot2.0以后<strong>默认</strong>使用 <code>lettuce</code>作为操作redis的客户端,它使用netty进行网络通信</p>
|
||
<p>2)、lettuce的bug导致netty堆外内存溢出。netty如果没有指定堆外内存,默认使用Xms的值,可以使用-Dio.netty.maxDirectMemory进行设置</p>
|
||
<p>解决方案:由于是lettuce的bug造成,不要直接使用-Dio.netty.maxDirectMemory去调大虚拟机堆外内存,治标不治本。</p>
|
||
<ul>
|
||
<li>1)、升级lettuce客户端</li>
|
||
<li>2)、切换使用jedis</li>
|
||
</ul>
|
||
<p>修改依赖文件,使用jedis作为客户端工具</p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-data-redis<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusions</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>io.lettuce<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>lettuce-core<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusion</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">exclusions</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>redis.clients<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>jedis<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-5-3-高并发下缓存失效问题"><a href="#2-5-3-高并发下缓存失效问题" class="headerlink" title="2.5.3 高并发下缓存失效问题"></a>2.5.3 高并发下缓存失效问题</h4><p><strong>缓存穿透</strong></p>
|
||
<img src="/pictures/image-20230710153635804.png" alt="image-20230710153635804" style="zoom:150%;" />
|
||
|
||
<p><strong>缓存雪崩</strong></p>
|
||
<img src="/pictures/image-20230710153651752.png" alt="image-20230710153651752" style="zoom:150%;" />
|
||
|
||
<p><strong>缓存击穿</strong></p>
|
||
<img src="/pictures/image-20230710153709464.png" alt="image-20230710153709464" style="zoom:150%;" />
|
||
|
||
<p><strong>分布式下如何加锁?</strong></p>
|
||
<img src="/pictures/image-20230710163735955.png" alt="image-20230710163735955" style="zoom:150%;" />
|
||
|
||
<p><strong>锁-时序问题</strong></p>
|
||
<img src="/pictures/image-20230710165738655.png" alt="image-20230710165738655" style="zoom:150%;" />
|
||
|
||
<p><strong>分布式锁演进-基本原理</strong></p>
|
||
<p><img src="/pictures/image-20230714163437984.png" alt="image-20230714163437984"></p>
|
||
<p><strong>分布式锁的最终形态</strong></p>
|
||
<p><img src="/pictures/image-20230714171221296.png" alt="image-20230714171221296"></p>
|
||
<h4 id="2-5-4-分布式锁-Redisson"><a href="#2-5-4-分布式锁-Redisson" class="headerlink" title="2.5.4 分布式锁-Redisson"></a>2.5.4 分布式锁-Redisson</h4><p>github地址: <a href="https://github.com/redisson/redisson">https://github.com/redisson/redisson</a></p>
|
||
<p><strong>1.引入依赖</strong></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--redisson--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.redisson<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>redisson<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">version</span>></span>3.12.0<span class="tag"></<span class="name">version</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>2.配置redisson</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.redisson.Redisson;</span><br><span class="line"><span class="keyword">import</span> org.redisson.api.RedissonClient;</span><br><span class="line"><span class="keyword">import</span> org.redisson.config.Config;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.io.IOException;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/14</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> Redisson的配置</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyRedissonConfig</span> {</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 所有对redisson的操作通过RedissonClient</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@Bean(destroyMethod = "shutdown")</span></span><br><span class="line"> <span class="keyword">public</span> RedissonClient <span class="title function_">redisson</span><span class="params">()</span> <span class="keyword">throws</span> IOException {</span><br><span class="line"> <span class="comment">//创建配置</span></span><br><span class="line"> <span class="type">Config</span> <span class="variable">config</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Config</span>();</span><br><span class="line"> config.useSingleServer().setAddress(<span class="string">"redis://192.168.195.100:6379"</span>);</span><br><span class="line"> <span class="comment">//根据配置config创建RedissonClient实例</span></span><br><span class="line"> <span class="keyword">return</span> Redisson.create(config);</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.测试使用</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Autowired</span></span><br><span class="line"><span class="keyword">private</span> RedissonClient redissonClient;</span><br><span class="line"></span><br><span class="line"><span class="meta">@Test</span></span><br><span class="line"><span class="keyword">void</span> <span class="title function_">testRedisson</span><span class="params">()</span>{</span><br><span class="line"> System.out.println(redissonClient);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230714175205635.png" alt="image-20230714175205635"></p>
|
||
<p><strong>4.简单的使用分布式锁</strong></p>
|
||
<p>上一个线程加锁之后没有解锁的话,后面的线程会一直等待前面的线程释放锁,自己再加锁。</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@ResponseBody</span></span><br><span class="line"><span class="meta">@GetMapping("/hello")</span></span><br><span class="line"><span class="keyword">public</span> String <span class="title function_">hello</span><span class="params">()</span> {</span><br><span class="line"> <span class="comment">//打印时间需要</span></span><br><span class="line"> <span class="type">SimpleDateFormat</span> <span class="variable">sdf</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">SimpleDateFormat</span>();<span class="comment">// 格式化时间</span></span><br><span class="line"> sdf.applyPattern(<span class="string">"yyyy-MM-dd HH:mm:ss"</span>);<span class="comment">// a为am/pm的标记</span></span><br><span class="line"> <span class="type">Date</span> <span class="variable">date</span> <span class="operator">=</span> <span class="keyword">new</span> <span class="title class_">Date</span>();<span class="comment">// 获取当前时间</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">//获取同一把锁,只要锁的名字一样,就是同一把锁</span></span><br><span class="line"> <span class="type">RLock</span> <span class="variable">lock</span> <span class="operator">=</span> redissonClient.getLock(<span class="string">"my-lock"</span>);</span><br><span class="line"> <span class="comment">//加锁</span></span><br><span class="line"> lock.lock();<span class="comment">//阻塞式等待,锁没有释放的情况下会一直等待下去</span></span><br><span class="line"> <span class="comment">//1.锁的自动续期,如果业务耗费的时间超长,运行时会自动给锁续上新的30s(默认时续期30s),不必担心业务时间长,锁自动过期被删掉</span></span><br><span class="line"> <span class="comment">//2.加锁的业务只要运行完成,就不会给当前锁续期,即使不手动解锁,锁默认在30s以后自动s</span></span><br><span class="line"> System.out.println(<span class="string">"现在时间:"</span> + sdf.format(date));</span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> <span class="comment">//执行业务</span></span><br><span class="line"> System.out.println(<span class="string">"加锁成功,执行业务,线程Id:"</span>+Thread.currentThread().getId());</span><br><span class="line"> Thread.sleep(<span class="number">10000</span>);<span class="comment">//等待10秒</span></span><br><span class="line"> } <span class="keyword">catch</span> (InterruptedException e) {</span><br><span class="line"> <span class="keyword">throw</span> <span class="keyword">new</span> <span class="title class_">RuntimeException</span>(e);</span><br><span class="line"> } <span class="keyword">finally</span> {</span><br><span class="line"> <span class="comment">//解锁</span></span><br><span class="line"> System.out.println(<span class="string">"释放锁,线程Id:"</span>+Thread.currentThread().getId());</span><br><span class="line"> lock.unlock();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> <span class="string">"hello"</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230714181620263.png" alt="image-20230714181620263"></p>
|
||
<p>my-lock对应的值会跟随线程的变化而变化</p>
|
||
<p><img src="/pictures/image-20230714182057982.png" alt="image-20230714182057982"></p>
|
||
<p><strong>读写锁</strong></p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 写锁没有释放的情况下,读锁必须等待写锁的释放,才能进行读的操作</span></span><br><span class="line"><span class="comment"> * 读写锁的测试</span></span><br><span class="line"><span class="comment"> * 写锁</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="meta">@GetMapping("/write")</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">writeValue</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">RReadWriteLock</span> <span class="variable">lock</span> <span class="operator">=</span> redissonClient.getReadWriteLock(<span class="string">"rw-lock"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> <span class="string">""</span>;</span><br><span class="line"> <span class="type">RLock</span> <span class="variable">rLock</span> <span class="operator">=</span> lock.writeLock();<span class="comment">//写锁</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> rLock.lock();</span><br><span class="line"> s = UUID.randomUUID().toString();</span><br><span class="line"> Thread.sleep(<span class="number">30000</span>);</span><br><span class="line"> <span class="comment">//写的操作</span></span><br><span class="line"> redisTemplate.opsForValue().set(<span class="string">"writeValue"</span>,s);</span><br><span class="line"> } <span class="keyword">catch</span> (InterruptedException e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }<span class="keyword">finally</span> {</span><br><span class="line"> rLock.unlock();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> s;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 读写锁的测试</span></span><br><span class="line"><span class="comment"> * 读锁</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="meta">@GetMapping("/read")</span></span><br><span class="line"> <span class="meta">@ResponseBody</span></span><br><span class="line"> <span class="keyword">public</span> String <span class="title function_">readValue</span><span class="params">()</span>{</span><br><span class="line"> <span class="type">RReadWriteLock</span> <span class="variable">lock</span> <span class="operator">=</span> redissonClient.getReadWriteLock(<span class="string">"rw-lock"</span>);</span><br><span class="line"> <span class="type">String</span> <span class="variable">s</span> <span class="operator">=</span> <span class="string">""</span>;</span><br><span class="line"> <span class="type">RLock</span> <span class="variable">rLock</span> <span class="operator">=</span> lock.readLock();<span class="comment">//读锁</span></span><br><span class="line"> <span class="keyword">try</span> {</span><br><span class="line"> rLock.lock();</span><br><span class="line"> <span class="comment">//读的操作</span></span><br><span class="line"> s = redisTemplate.opsForValue().get(<span class="string">"writeValue"</span>);</span><br><span class="line"> } <span class="keyword">catch</span> (Exception e) {</span><br><span class="line"> e.printStackTrace();</span><br><span class="line"> }<span class="keyword">finally</span> {</span><br><span class="line"> rLock.unlock();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> s;</span><br><span class="line"> }</span><br></pre></td></tr></table></figure>
|
||
|
||
<h4 id="2-5-5-分布式缓存一致性问题"><a href="#2-5-5-分布式缓存一致性问题" class="headerlink" title="2.5.5 分布式缓存一致性问题"></a>2.5.5 分布式缓存一致性问题</h4><p><strong>双写模式</strong></p>
|
||
<p><img src="/pictures/image-20230716100845389.png" alt="image-20230716100845389"></p>
|
||
<p><strong>失效模式</strong></p>
|
||
<p><img src="/pictures/image-20230716100909465.png" alt="image-20230716100909465"></p>
|
||
<p><strong>缓存数据一致性-解决方案</strong></p>
|
||
<p><img src="/pictures/image-20230716101939869.png" alt="image-20230716101939869"></p>
|
||
<p><strong>缓存数据一致性-解决-Canal</strong></p>
|
||
<p><img src="/pictures/image-20230716102510738.png" alt="image-20230716102510738"></p>
|
||
<h4 id="2-5-6-缓存-SpringCache"><a href="#2-5-6-缓存-SpringCache" class="headerlink" title="2.5.6 缓存-SpringCache"></a>2.5.6 缓存-SpringCache</h4><p><strong>1、简介</strong></p>
|
||
<ul>
|
||
<li><p>Spring 从 3.1 开始定义了 org.springframework.cache.Cache和 org.springframework.cache.CacheManager 接口来统一不同的缓存技术;并支持使用 JCache(JSR-107)注解简化我们开发;</p>
|
||
</li>
|
||
<li><p>Cache 接口为缓存的组件规范定义,包含缓存的各种操作集合;<br>Cache 接 口 下 Spring 提 供 了 各 种 xxxCache 的 实 现 ; 如 RedisCache , EhCacheCache ,ConcurrentMapCache 等;</p>
|
||
</li>
|
||
<li><p>每次调用需要缓存功能的方法时,Spring 会检查检查指定参数的指定的目标方法是否已经被调用过;如果有就直接从缓存中获取方法调用后的结果,如果没有就调用方法并缓存结果后返回给用户。下次调用直接从缓存中获取。</p>
|
||
</li>
|
||
<li><p>使用 Spring 缓存抽象时我们需要关注以下两点;</p>
|
||
<p>1、确定方法需要被缓存以及他们的缓存策略</p>
|
||
<p>2、从缓存中读取之前缓存存储的数据</p>
|
||
</li>
|
||
</ul>
|
||
<p><strong>2.以前的笔记教程</strong></p>
|
||
<p><strong><a href="https://jasonsgong.gitee.io/posts/13813.html">SpringBoot整合Redis | The Blog (gitee.io)</a></strong></p>
|
||
<p><strong>3.项目中整合SpringCache简化开发</strong></p>
|
||
<p><strong>3.1.引入依赖</strong></p>
|
||
<figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="comment"><!--我们使redis作为缓存的使用场景,在前面我们还要引入redis的依赖--></span></span><br><span class="line"><span class="tag"><<span class="name">dependency</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">groupId</span>></span>org.springframework.boot<span class="tag"></<span class="name">groupId</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">artifactId</span>></span>spring-boot-starter-cache<span class="tag"></<span class="name">artifactId</span>></span></span><br><span class="line"><span class="tag"></<span class="name">dependency</span>></span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.2.编写配置文件</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#使用缓存的类型</span></span><br><span class="line"><span class="attr">spring.cache.type</span>=<span class="string">redis</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>3.3.测试使用缓存</strong></p>
|
||
<p>常用的缓存注解</p>
|
||
<p>@Cacheable 触发将数据保存到缓存的操作</p>
|
||
<p>@CachePut 不影响方法执行更新缓存</p>
|
||
<p>@CacheEvict 触发将数据从缓存中删除的操作</p>
|
||
<p>@Caching 组合多个缓存操作</p>
|
||
<p>@CacheConfig 在类级别上共享缓存的相关配置</p>
|
||
<p>1.在启动类上添加缓存的注解</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@EnableCaching</span> <span class="comment">//开启缓存功能</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>2.测试使用</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//每一个需要缓存的数据需要我们指定放到那个名字的缓存[缓存的分区(按照业务类型分)]</span></span><br><span class="line"><span class="meta">@Cacheable({"category"})</span> <span class="comment">//代表当前方法的结果需要缓存,如果缓存中有,方法就不需要调用了,如果缓存中没有,就会调用方法,将方法的结果放入到缓存</span></span><br><span class="line"><span class="meta">@Override</span></span><br><span class="line"><span class="keyword">public</span> List<CategoryEntity> <span class="title function_">getLevelOneCategorys</span><span class="params">()</span> {</span><br><span class="line"> <span class="keyword">return</span> categoryDao.selectList(<span class="keyword">new</span> <span class="title class_">LambdaQueryWrapper</span><CategoryEntity>().eq(CategoryEntity::getParentCid, <span class="number">0</span>));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230716112105848.png" alt="image-20230716112105848"></p>
|
||
<p><strong>自定义数据的存储</strong></p>
|
||
<p>设置自定义的key值</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Cacheable(value = {"category"},key = "'levelOneCategorys'")</span> <span class="comment">//自定义key值</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>tips: #root.method.name是SpEL表达式</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="meta">@Cacheable(value = {"category"},key = "#root.method.name")</span> <span class="comment">//使用方法名作为key值</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p>设置缓存数据的存活时间</p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#设置一个小时的存活时间</span></span><br><span class="line"><span class="attr">spring.cache.redis.time-to-live</span>=<span class="string">3600000</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230716152821097.png" alt="image-20230716152821097"></p>
|
||
<p><strong>将数据保存为json的格式</strong></p>
|
||
<p>添加配置类</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.product.config;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.autoconfigure.cache.CacheProperties;</span><br><span class="line"><span class="keyword">import</span> org.springframework.boot.context.properties.EnableConfigurationProperties;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Bean;</span><br><span class="line"><span class="keyword">import</span> org.springframework.context.annotation.Configuration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.cache.RedisCacheConfiguration;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.RedisSerializationContext;</span><br><span class="line"><span class="keyword">import</span> org.springframework.data.redis.serializer.StringRedisSerializer;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/16</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 缓存的序列化的配置</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@EnableConfigurationProperties(CacheProperties.class)</span></span><br><span class="line"><span class="meta">@Configuration</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">MyCacheConfig</span> {</span><br><span class="line"> <span class="meta">@Bean</span></span><br><span class="line"> RedisCacheConfiguration <span class="title function_">redisCacheConfiguration</span><span class="params">(CacheProperties cacheProperties)</span> {</span><br><span class="line"> <span class="type">RedisCacheConfiguration</span> <span class="variable">config</span> <span class="operator">=</span> RedisCacheConfiguration.defaultCacheConfig();</span><br><span class="line"> config = config.serializeKeysWith(RedisSerializationContext.SerializationPair.fromSerializer(<span class="keyword">new</span> <span class="title class_">StringRedisSerializer</span>()));</span><br><span class="line"> config = config.serializeValuesWith(RedisSerializationContext.SerializationPair.fromSerializer(<span class="keyword">new</span> <span class="title class_">GenericJackson2JsonRedisSerializer</span>()));</span><br><span class="line"> <span class="comment">//让配置文件中所有的配置生效(下面的不配置的话,缓存的时间会失效)</span></span><br><span class="line"> CacheProperties.<span class="type">Redis</span> <span class="variable">redisProperties</span> <span class="operator">=</span> cacheProperties.getRedis();</span><br><span class="line"> <span class="keyword">if</span> (redisProperties.getTimeToLive() != <span class="literal">null</span>) {</span><br><span class="line"> config = config.entryTtl(redisProperties.getTimeToLive());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (redisProperties.getKeyPrefix() != <span class="literal">null</span>) {</span><br><span class="line"> config = config.prefixCacheNameWith(redisProperties.getKeyPrefix());</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (!redisProperties.isCacheNullValues()) {</span><br><span class="line"> config = config.disableCachingNullValues();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">if</span> (!redisProperties.isUseKeyPrefix()) {</span><br><span class="line"> config = config.disableKeyPrefix();</span><br><span class="line"> }</span><br><span class="line"> <span class="keyword">return</span> config;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>效果</p>
|
||
<p><img src="/pictures/image-20230716160027391.png" alt="image-20230716160027391"></p>
|
||
<p><strong>其它的常用配置</strong></p>
|
||
<figure class="highlight properties"><table><tr><td class="code"><pre><span class="line"><span class="comment">#缓存的前缀,如果指定了前缀就使用指定的前缀,没有指定前缀就使用缓存的名字作为前缀</span></span><br><span class="line"><span class="attr">spring.cache.redis.key-prefix</span>=<span class="string">CACHE_</span></span><br><span class="line"><span class="comment">#是否使用缓存的前缀</span></span><br><span class="line"><span class="attr">spring.cache.redis.use-key-prefix</span>=<span class="string">true</span></span><br><span class="line"><span class="comment">#是否缓存空值(缓存穿透的问题的解决)</span></span><br><span class="line"><span class="attr">spring.cache.redis.cache-null-values</span>=<span class="string">true</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<h3 id="2-6-检索服务"><a href="#2-6-检索服务" class="headerlink" title="2.6 检索服务"></a>2.6 检索服务</h3><h4 id="2-6-1-整合页面"><a href="#2-6-1-整合页面" class="headerlink" title="2.6.1 整合页面"></a>2.6.1 整合页面</h4><p><img src="/pictures/image-20230716173751202.png" alt="image-20230716173751202"></p>
|
||
<h4 id="2-6-2-配置域名访问"><a href="#2-6-2-配置域名访问" class="headerlink" title="2.6.2 配置域名访问"></a>2.6.2 配置域名访问</h4><p><img src="/pictures/image-20230716173453604.png" alt="image-20230716173453604"></p>
|
||
<p>Nginx的配置</p>
|
||
<figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line">server {</span><br><span class="line"> listen 80;</span><br><span class="line"> server_name *.gulimall.com;</span><br><span class="line"></span><br><span class="line"> location / {</span><br><span class="line"> proxy_set_header Host $host;</span><br><span class="line"> proxy_pass http://gulimall;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> error_page 500 502 503 504 /50x.html;</span><br><span class="line"> location = /50x.html {</span><br><span class="line"> root /usr/share/nginx/html;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>网关中配置断言</p>
|
||
<figure class="highlight yaml"><table><tr><td class="code"><pre><span class="line"><span class="comment">#搜索</span></span><br><span class="line"><span class="bullet">-</span> <span class="attr">id:</span> <span class="string">gulimall_search_route</span></span><br><span class="line"> <span class="attr">uri:</span> <span class="string">lb://gulimall-search</span></span><br><span class="line"> <span class="attr">predicates:</span></span><br><span class="line"> <span class="bullet">-</span> <span class="string">Host=search.gulimall.com</span></span><br></pre></td></tr></table></figure>
|
||
|
||
<p><img src="/pictures/image-20230716173628024.png" alt="image-20230716173628024"></p>
|
||
<h4 id="2-6-3-首页和搜索页相互跳转"><a href="#2-6-3-首页和搜索页相互跳转" class="headerlink" title="2.6.3 首页和搜索页相互跳转"></a>2.6.3 首页和搜索页相互跳转</h4><p><strong>首页无法跳转到搜索页的原因,gumall改为gulimall即可</strong></p>
|
||
<p><img src="/pictures/image-20230716181052580.png" alt="image-20230716181052580"></p>
|
||
<p><strong>搜索框跳转到搜索页,修改页面中的代码</strong></p>
|
||
<p><img src="/pictures/image-20230717094656565.png" alt="image-20230717094656565"></p>
|
||
<h4 id="2-6-4-商品的检索"><a href="#2-6-4-商品的检索" class="headerlink" title="2.6.4 商品的检索"></a>2.6.4 商品的检索</h4><p><img src="/pictures/image-20230717095740594.png" alt="image-20230717095740594"></p>
|
||
<p>检索条件的VO</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.search.vo;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/17</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 检索条件的vo</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SearchParam</span> {</span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 页面传递过来的全文匹配关键字</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String keyword;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 品牌id,可以多选</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<Long> brandId;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 三级分类id</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Long catalog3Id;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 排序条件:sort=price/salecount/hotscore_desc/asc</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String sort;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 是否显示有货</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer hasStock;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 价格区间查询</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String skuPrice;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 按照属性进行筛选</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<String> attrs;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 页码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> <span class="type">Integer</span> <span class="variable">pageNum</span> <span class="operator">=</span> <span class="number">1</span>;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 原生的所有查询条件</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> String _queryString;</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p>检索的结果</p>
|
||
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="keyword">package</span> com.atguigu.gulimall.search.vo;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> com.atguigu.common.to.es.SkuEsModel;</span><br><span class="line"><span class="keyword">import</span> lombok.Data;</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> java.util.ArrayList;</span><br><span class="line"><span class="keyword">import</span> java.util.List;</span><br><span class="line"></span><br><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@author</span> Jason Gong</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@version</span> 1.0</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@website</span> https://jasonsgong.gitee.io</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Date</span> 2023/7/17</span></span><br><span class="line"><span class="comment"> * <span class="doctag">@Description</span> 根据检索条件返回给页面的商品信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"><span class="meta">@Data</span></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">SearchResult</span> {</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 查询到的所有商品信息</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<SkuEsModel> product;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当前页码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer pageNum;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 总记录数</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Long total;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 总页码</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> Integer totalPages;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> List<Integer> pageNavs;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当前查询到的结果,所有涉及到的品牌</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<BrandVo> brands;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当前查询到的结果,所有涉及到的所有属性</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<AttrVo> attrs;</span><br><span class="line"></span><br><span class="line"> <span class="comment">/**</span></span><br><span class="line"><span class="comment"> * 当前查询到的结果,所有涉及到的所有分类</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line"> <span class="keyword">private</span> List<CatalogVo> catalogs;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> List<NavVo> navs;</span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">NavVo</span> {</span><br><span class="line"> <span class="keyword">private</span> String navName;</span><br><span class="line"> <span class="keyword">private</span> String navValue;</span><br><span class="line"> <span class="keyword">private</span> String link;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">BrandVo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long brandId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String brandName;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String brandImg;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">AttrVo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long attrId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String attrName;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> List<String> attrValue;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"> <span class="meta">@Data</span></span><br><span class="line"> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class</span> <span class="title class_">CatalogVo</span> {</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> Long catalogId;</span><br><span class="line"></span><br><span class="line"> <span class="keyword">private</span> String catalogName;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
|
||
|
||
<p><strong>未完待续(学习到177)……</strong></p>
|
||
]]></content>
|
||
<categories>
|
||
<category>后端</category>
|
||
</categories>
|
||
<tags>
|
||
<tag>项目实战</tag>
|
||
</tags>
|
||
</entry>
|
||
</search>
|