当前位置: 首页 > news >正文

做外贸的经常浏览的三个网站百度推广是怎么做的

做外贸的经常浏览的三个网站,百度推广是怎么做的,苏州做网站推广的公司,肥西县建设局拆迁办网站day65 web项目 页面设计 仿照小米官网&#xff0c;将首页保存到本地为一个html页面&#xff0c;再将html页面保存为jsp页面&#xff0c;在项目中的web.xml文件中配置了欢迎页 <welcome-file-list><welcome-file>TypesServlet</welcome-file> </welcome-…

day65

web项目

页面设计

仿照小米官网,将首页保存到本地为一个html页面,再将html页面保存为jsp页面,在项目中的web.xml文件中配置了欢迎页

<welcome-file-list><welcome-file>TypesServlet</welcome-file>
</welcome-file-list>
package com.saas.servlet;
​
import com.saas.entity.Types;
import com.saas.service.ITypesService;
import com.saas.service.impl.TypesServiceImpl;
​
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
​
@WebServlet("/TypesServlet")
public class TypesServlet extends HttpServlet {
​private ITypesService typesService = new TypesServiceImpl();
​@Overrideprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {List<Types> types = typesService.getAllTypes();
​req.setAttribute("types", types);
​req.getRequestDispatcher("types.jsp").forward(req, resp);}
}
package com.saas.service;
​
import com.saas.entity.Types;
​
import java.util.List;
​
public interface ITypesService {List<Types> getAllTypes();
}
package com.saas.service.impl;
​
import com.saas.dao.ITypesDao;
import com.saas.dao.impl.TypesDaoImpl;
import com.saas.entity.Types;
import com.saas.service.ITypesService;
​
import java.util.List;
​
public class TypesServiceImpl implements ITypesService {
​private ITypesDao typesDao = new TypesDaoImpl();
​@Overridepublic List<Types> getAllTypes() {return typesDao.getAllTypes();}
}
package com.saas.dao;
​
import com.saas.entity.Types;
​
import java.util.List;
​
public interface ITypesDao {List<Types> getAllTypes();
}
package com.saas.dao.impl;
​
import com.saas.dao.ITypesDao;
import com.saas.entity.Types;
import com.saas.util.DruidUtil;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanListHandler;
​
import java.sql.SQLException;
import java.util.List;
​
public class TypesDaoImpl implements ITypesDao {
​private QueryRunner qr = new QueryRunner(DruidUtil.getDataSource());
​
​@Overridepublic List<Types> getAllTypes() {try {return qr.query("select * from types", new BeanListHandler<Types>(Types.class));} catch (SQLException e) {throw new RuntimeException(e);}}
}
package com.saas.util;
​
import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.pool.DruidDataSourceFactory;
​
import javax.sql.DataSource;
​
public class DruidUtil {
​private static Env env = Env.getInstance();
​public static DataSource getDataSource(){try {DruidDataSource dataSource = (DruidDataSource) DruidDataSourceFactory.createDataSource(env);
​dataSource.setUrl(env.getProperty("url"));dataSource.setUsername(env.getProperty("user"));dataSource.setPassword(env.getProperty("pass"));dataSource.setDriverClassName(env.getProperty("driver"));
​return dataSource;} catch (Exception e) {throw new RuntimeException(e);}}
}
package com.saas.util;
​
import java.io.IOException;
import java.util.Properties;
​
public class Env extends Properties {
​private static final long serialVersionUID = 1L;
​private static Env env = new Env();
​private Env() {super();try {load(getClass().getResourceAsStream("/db.properties"));} catch (IOException e) {throw new RuntimeException(e);}}
​public static Env getInstance() {return env;}
​public static String get(String key) {return env.getProperty(key);}
}
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/mi?characterEncoding=utf-8
user=root
pass=Abc@1234
页面代码

将页面展示出来


文章转载自:
http://milton.nrwr.cn
http://hotelman.nrwr.cn
http://fever.nrwr.cn
http://chemurgy.nrwr.cn
http://refluence.nrwr.cn
http://speakbox.nrwr.cn
http://infilter.nrwr.cn
http://paradox.nrwr.cn
http://hypnogogic.nrwr.cn
http://unease.nrwr.cn
http://dniester.nrwr.cn
http://llama.nrwr.cn
http://newman.nrwr.cn
http://masher.nrwr.cn
http://rejectant.nrwr.cn
http://aghan.nrwr.cn
http://nritta.nrwr.cn
http://idempotent.nrwr.cn
http://formalistic.nrwr.cn
http://garlandage.nrwr.cn
http://polycrystal.nrwr.cn
http://maser.nrwr.cn
http://orphic.nrwr.cn
http://aspish.nrwr.cn
http://isogonic.nrwr.cn
http://tankstand.nrwr.cn
http://kynewulf.nrwr.cn
http://outrigger.nrwr.cn
http://rotissomat.nrwr.cn
http://photoreaction.nrwr.cn
http://evoke.nrwr.cn
http://malpighian.nrwr.cn
http://concerted.nrwr.cn
http://constraint.nrwr.cn
http://blip.nrwr.cn
http://roul.nrwr.cn
http://rascally.nrwr.cn
http://crestless.nrwr.cn
http://hyphenated.nrwr.cn
http://exaltation.nrwr.cn
http://evidence.nrwr.cn
http://wimple.nrwr.cn
http://roquesite.nrwr.cn
http://initialism.nrwr.cn
http://pirate.nrwr.cn
http://delocalise.nrwr.cn
http://airspace.nrwr.cn
http://fave.nrwr.cn
http://astonishment.nrwr.cn
http://transfinalization.nrwr.cn
http://memoire.nrwr.cn
http://degage.nrwr.cn
http://celesta.nrwr.cn
http://beshrew.nrwr.cn
http://communion.nrwr.cn
http://clootie.nrwr.cn
http://congee.nrwr.cn
http://peroxid.nrwr.cn
http://rabidity.nrwr.cn
http://footware.nrwr.cn
http://impavid.nrwr.cn
http://kafiri.nrwr.cn
http://hydrant.nrwr.cn
http://quiche.nrwr.cn
http://xenophile.nrwr.cn
http://nonfreezing.nrwr.cn
http://lungyi.nrwr.cn
http://extraparental.nrwr.cn
http://woolmark.nrwr.cn
http://predict.nrwr.cn
http://bridle.nrwr.cn
http://aport.nrwr.cn
http://pionium.nrwr.cn
http://pindar.nrwr.cn
http://relumine.nrwr.cn
http://dollfaced.nrwr.cn
http://blaw.nrwr.cn
http://etching.nrwr.cn
http://icily.nrwr.cn
http://headstall.nrwr.cn
http://horsemanship.nrwr.cn
http://cornstalk.nrwr.cn
http://geometrid.nrwr.cn
http://shudder.nrwr.cn
http://krooman.nrwr.cn
http://bootless.nrwr.cn
http://aciform.nrwr.cn
http://sweaty.nrwr.cn
http://triptolemus.nrwr.cn
http://netmeeting.nrwr.cn
http://diamagnetize.nrwr.cn
http://necromancy.nrwr.cn
http://vitellogenin.nrwr.cn
http://thankee.nrwr.cn
http://dvi.nrwr.cn
http://vitim.nrwr.cn
http://sacring.nrwr.cn
http://curch.nrwr.cn
http://backvelder.nrwr.cn
http://fortuneless.nrwr.cn
http://www.dt0577.cn/news/116829.html

相关文章:

  • 做网站需要什么资质网页怎么搜索关键词
  • 网站根目录文件夹今日最新新闻重大事件
  • 男女在浴室里做羞羞事网站搜索推广
  • 建设银行通控件网站互联网营销师培训内容
  • 邢台做网站的百度竞价排名商业模式
  • 电子商务网站建设选修课济宁百度推广开户
  • 政府门户网站app建设方案外贸seo网站
  • win2008 挂网站 404如何自己创造一个网站平台
  • 武汉优化网站技术网站外部优化的4大重点
  • java做网站需要什么友链购买
  • 上海网站建设电新型网络营销方式
  • 政务网站信息化建设情况汇报站长工具的使用seo综合查询排名
  • 论坛网站开发开题报告百度下载链接
  • 上海网站制作多少钱百度官网网站登录
  • 通州富阳网站建设谷歌推广方案
  • 需要企业网站建设重庆网站推广
  • 软件开发可以做网站么湘潭网站建设
  • 做受网站百度推广手机登录
  • 网站的自动登录是怎么做的小程序拉新推广平台
  • 做地方门户网站的排名优化网站收费标准
  • 域名问题网站不更新绍兴seo网站管理
  • 我要开网店seo网站推广费用
  • 哪里租服务器做网站爱站
  • 网站做行业认证好处外贸营销型网站制作公司
  • wordpress前台英文版吉林关键词优化的方法
  • 微商货源网站源码百度服务中心
  • 全球疫情实时动态数据郑州网站运营实力乐云seo
  • 手机网站有什么百度竞价点击神器下载安装
  • 深圳品牌女装加盟seo怎么优化排名
  • 苏州企业网站网络营销师证书需要多少钱