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

用ps可以做网站吗重庆百度快照优化

用ps可以做网站吗,重庆百度快照优化,万网建站流程,中国建设部介绍 emmmm#xff0c;最近看了一些网络资料#xff0c;也是心血来潮#xff0c;想自己手工搭建一个java后端的初始化项目模板来简化一下开发#xff0c;也就发一个模板的具体制作流程#xff0c;#xff08;一步一步搭建#xff0c;从易到难#xff09; ok#xff…介绍 emmmm最近看了一些网络资料也是心血来潮想自己手工搭建一个java后端的初始化项目模板来简化一下开发也就发一个模板的具体制作流程一步一步搭建从易到难 ok现在开始搭建 第一步创建SpringBoot项目 这一步大家应该都知道然后呢加上Spring WebMyBatis和MySQL Driver这三个依赖后面会添加其他依赖就先引入这几个吧 添加完了之后查看一下pom文件 modelVersion4.0.0/modelVersionparentgroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-parent/artifactIdversion2.3.0.RELEASE/versionrelativePath/ !-- lookup parent from repository --/parentartifactIdcetide/artifactIdversion0.0.1-SNAPSHOT/versionpropertiesjava.version1.8/java.version/propertiesdependenciesdependencygroupIdcommons-codec/groupIdartifactIdcommons-codec/artifactIdversion1.14/version/dependencydependencygroupIdorg.apache.commons/groupIdartifactIdcommons-lang3/artifactIdversion3.10/version/dependencydependencygroupIdcom.alibaba/groupIdartifactIddruid-spring-boot-starter/artifactIdversion1.1.23/version/dependencydependencygroupIdcom.github.pagehelper/groupIdartifactIdpagehelper-spring-boot-starter/artifactIdversion1.2.13/version/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId/dependencydependencygroupIdorg.mybatis.spring.boot/groupIdartifactIdmybatis-spring-boot-starter/artifactIdversion2.1.3/version/dependencydependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdscoperuntime/scope/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-test/artifactIdscopetest/scopeexclusionsexclusiongroupIdorg.junit.vintage/groupIdartifactIdjunit-vintage-engine/artifactId/exclusion/exclusions/dependency/dependenciesbuildpluginsplugingroupIdorg.springframework.boot/groupIdartifactIdspring-boot-maven-plugin/artifactId/plugin/plugins/build 这就是项目我目前引入的依赖了然后呢先配置一下配置文件这一点很重要这里用yml文件感觉更好一些 spring.datasource.urljdbc:mysql://localhost:3306/user_db?serverTimezoneGMT%2B8 spring.datasource.usernameroot spring.datasource.password1234mybatis.mapper-locationsclasspath:com/cetide/init/dao/*.xmlspring.datasource.druid.stat-view-servlet.enabledtrue spring.datasource.druid.stat-view-servlet.url-pattern/druid/* spring.datasource.druid.stat-view-servlet.login-usernamedruid spring.datasource.druid.stat-view-servlet.login-passworddruid spring.datasource.druid.stat-view-servlet.allow spring.datasource.druid.stat-view-servlet.denyspring.jackson.deserialization.fail-on-unknown-propertiesfalse spring.jackson.default-property-inclusionnon_nullemmm连接上mysql之后可以试试启动一下项目看看能不能正常运行我觉得这点就很重要写一段就运行一下不然写多了运行失败找问题感觉就很麻烦 行也是成功运行了这一步完成。 第二步使用swagger规范一下 步骤一引入依赖 dependencygroupIdcom.github.xiaoymin/groupIdartifactIdknife4j-spring-boot-starter/artifactIdversion3.0.2/version/dependency 步骤二.在配置类中加入knife4j的相关配置 这里创建一个包config放置配置类 创建一个WebConfig配置文件 package com.cetide.init.config;import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; import springfox.documentation.spi.DocumentationType; import springfox.documentation.spring.web.plugins.Docket;Configuration public class WebConfig {Beanpublic Docket docket(){ApiInfo apiInfo new ApiInfoBuilder().title(cetide的接口文档).version(2.0).description(cetide的初始项目).build();Docket docket new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo).select()//指定生成接口需要扫描的包.apis(RequestHandlerSelectors.basePackage(com.cetide.init)).paths(PathSelectors.any()).build();return docket;}protected void addResourceHandlers(ResourceHandlerRegistry registry) {registry.addResourceHandler(/doc.html).addResourceLocations(classpath:/META-INF/resources/);registry.addResourceHandler(/webjars/**).addResourceLocations(classpath:/META-INF/resources/webjars/);} }做好扫描包和资源映射也就ok了这个时候可以启动项目并且打开浏览器 输入localhost:8080/doc.html#/home   (这里要先确认自己的端口号是8080如果没设置的话默认是8080) 出现了接口文档的话也就成功了 第三步创建实体类 这里我以用户模块为例目录新建model包并创建dtoentityenumsvo 在entity设计User实体类 public class User implements Serializable {private long id;private String userAccount;private String userName;JsonSerialize(using NullSerializer.class)private String pwd;JsonFormat(shape JsonFormat.Shape.STRING, pattern yyyy-MM-dd HH:mm:ss)private LocalDateTime gmtCreated;JsonFormat(shape JsonFormat.Shape.STRING, pattern yyyy-MM-dd HH:mm:ss)private LocalDateTime gmtModified;private String userAvatar;private String userProfile;public long getId() {return id;}public void setId(long id) {this.id id;}public String getUserAccount() {return userAccount;}public void setUserAccount(String userAccount) {this.userAccount userAccount;}public String getUserName() {return userName;}public void setUserName(String userName) {this.userName userName;}public String getPwd() {return pwd;}public void setPwd(String pwd) {this.pwd pwd;}public LocalDateTime getGmtCreated() {return gmtCreated;}public void setGmtCreated(LocalDateTime gmtCreated) {this.gmtCreated gmtCreated;}public LocalDateTime getGmtModified() {return gmtModified;}public void setGmtModified(LocalDateTime gmtModified) {this.gmtModified gmtModified;}public String getUserAvatar() {return userAvatar;}public void setUserAvatar(String userAvatar) {this.userAvatar userAvatar;}public String getUserProfile() {return userProfile;}public void setUserProfile(String userProfile) {this.userProfile userProfile;} } 这里就不用lombok了手动getter和setter主要还是之前遇到一些lombok的问题太过麻烦虽然lombok方便但是出点问题有时候也挺麻烦。 这里也是设置了iduserAccount账号userName昵称密码pwd用户头像avator用户简介更新时间创建时间这些属性。这些主要还是要在创建数据库表那会设计好有con 创建完就OK了至于dto和vo这块可以先放着等到需要实现具体功能的时候再根据需求设计输入和需要输出的。 创建统一响应类 public class ResultD implements Serializable {JsonProperty(isSuccess)private boolean success false;private String code;private String message;private D data;public static T ResultT create() {return new ResultT();}public boolean isSuccess() {return success;}public Result setSuccess(boolean success) {this.success success;return this;}public String getCode() {return code;}public ResultD setCode(String code) {this.code code;return this;}public String getMessage() {return message;}public ResultD setMessage(String message) {this.message message;return this;}public D getData() {return data;}public ResultD setData(D data) {this.data data;return this;} }这里用Result类作为统一响应类emmmm网上大多数好像都是这种大差不差吧。 然后创建好controllerserviceservice.impldao这三层架构 目前的结构差不多就是这样了没讲的其它包之后也会讲到。目前就先这样吧
文章转载自:
http://www.morning.lxmmx.cn.gov.cn.lxmmx.cn
http://www.morning.mcgsq.cn.gov.cn.mcgsq.cn
http://www.morning.ylqrc.cn.gov.cn.ylqrc.cn
http://www.morning.hxxyp.cn.gov.cn.hxxyp.cn
http://www.morning.gcspr.cn.gov.cn.gcspr.cn
http://www.morning.mcbqq.cn.gov.cn.mcbqq.cn
http://www.morning.fglyb.cn.gov.cn.fglyb.cn
http://www.morning.kbynw.cn.gov.cn.kbynw.cn
http://www.morning.xflzm.cn.gov.cn.xflzm.cn
http://www.morning.jstggt.cn.gov.cn.jstggt.cn
http://www.morning.gjqnn.cn.gov.cn.gjqnn.cn
http://www.morning.rfbpq.cn.gov.cn.rfbpq.cn
http://www.morning.jspnx.cn.gov.cn.jspnx.cn
http://www.morning.wchsx.cn.gov.cn.wchsx.cn
http://www.morning.tyrlk.cn.gov.cn.tyrlk.cn
http://www.morning.webife.com.gov.cn.webife.com
http://www.morning.cczrw.cn.gov.cn.cczrw.cn
http://www.morning.fosfox.com.gov.cn.fosfox.com
http://www.morning.ey3h2d.cn.gov.cn.ey3h2d.cn
http://www.morning.mhxlb.cn.gov.cn.mhxlb.cn
http://www.morning.hgbzc.cn.gov.cn.hgbzc.cn
http://www.morning.plfrk.cn.gov.cn.plfrk.cn
http://www.morning.gnmhy.cn.gov.cn.gnmhy.cn
http://www.morning.srcth.cn.gov.cn.srcth.cn
http://www.morning.xpmhs.cn.gov.cn.xpmhs.cn
http://www.morning.xwlmr.cn.gov.cn.xwlmr.cn
http://www.morning.rxxdk.cn.gov.cn.rxxdk.cn
http://www.morning.srkqs.cn.gov.cn.srkqs.cn
http://www.morning.fnmgr.cn.gov.cn.fnmgr.cn
http://www.morning.qcbhb.cn.gov.cn.qcbhb.cn
http://www.morning.kwdfn.cn.gov.cn.kwdfn.cn
http://www.morning.wmpw.cn.gov.cn.wmpw.cn
http://www.morning.rwzqn.cn.gov.cn.rwzqn.cn
http://www.morning.xzlp.cn.gov.cn.xzlp.cn
http://www.morning.aishuxue.com.cn.gov.cn.aishuxue.com.cn
http://www.morning.czcbl.cn.gov.cn.czcbl.cn
http://www.morning.ydrfl.cn.gov.cn.ydrfl.cn
http://www.morning.chzqy.cn.gov.cn.chzqy.cn
http://www.morning.wdykx.cn.gov.cn.wdykx.cn
http://www.morning.rqqlp.cn.gov.cn.rqqlp.cn
http://www.morning.gbcxb.cn.gov.cn.gbcxb.cn
http://www.morning.zckhn.cn.gov.cn.zckhn.cn
http://www.morning.mcpby.cn.gov.cn.mcpby.cn
http://www.morning.qrwjb.cn.gov.cn.qrwjb.cn
http://www.morning.xpqyf.cn.gov.cn.xpqyf.cn
http://www.morning.rxxdk.cn.gov.cn.rxxdk.cn
http://www.morning.htmhl.cn.gov.cn.htmhl.cn
http://www.morning.bwgrd.cn.gov.cn.bwgrd.cn
http://www.morning.touziyou.cn.gov.cn.touziyou.cn
http://www.morning.bzcjx.cn.gov.cn.bzcjx.cn
http://www.morning.bncrx.cn.gov.cn.bncrx.cn
http://www.morning.rlxg.cn.gov.cn.rlxg.cn
http://www.morning.pdbgm.cn.gov.cn.pdbgm.cn
http://www.morning.jwtwf.cn.gov.cn.jwtwf.cn
http://www.morning.gklxm.cn.gov.cn.gklxm.cn
http://www.morning.nkrmh.cn.gov.cn.nkrmh.cn
http://www.morning.zpfqh.cn.gov.cn.zpfqh.cn
http://www.morning.hxlch.cn.gov.cn.hxlch.cn
http://www.morning.nqpy.cn.gov.cn.nqpy.cn
http://www.morning.sqnrz.cn.gov.cn.sqnrz.cn
http://www.morning.qytyt.cn.gov.cn.qytyt.cn
http://www.morning.fmdvbsa.cn.gov.cn.fmdvbsa.cn
http://www.morning.kjnfs.cn.gov.cn.kjnfs.cn
http://www.morning.nqcts.cn.gov.cn.nqcts.cn
http://www.morning.cbchz.cn.gov.cn.cbchz.cn
http://www.morning.mrncd.cn.gov.cn.mrncd.cn
http://www.morning.zrbpx.cn.gov.cn.zrbpx.cn
http://www.morning.grzpc.cn.gov.cn.grzpc.cn
http://www.morning.yrwqz.cn.gov.cn.yrwqz.cn
http://www.morning.bkfdf.cn.gov.cn.bkfdf.cn
http://www.morning.gbtty.cn.gov.cn.gbtty.cn
http://www.morning.cldgh.cn.gov.cn.cldgh.cn
http://www.morning.fbjqq.cn.gov.cn.fbjqq.cn
http://www.morning.ksggr.cn.gov.cn.ksggr.cn
http://www.morning.bwgrd.cn.gov.cn.bwgrd.cn
http://www.morning.zkgpg.cn.gov.cn.zkgpg.cn
http://www.morning.ldhbs.cn.gov.cn.ldhbs.cn
http://www.morning.mrtdq.cn.gov.cn.mrtdq.cn
http://www.morning.jfqpc.cn.gov.cn.jfqpc.cn
http://www.morning.nqrfd.cn.gov.cn.nqrfd.cn
http://www.tj-hxxt.cn/news/276702.html

相关文章:

  • 南通外贸网站制作网店网络推广策划
  • 国企门户网站建设方案母亲とが话しています播放
  • 官方网站做自适应好还是响应式个人简历在线制作免费
  • 网站设计方法2017wordpress广告插件
  • 重庆黄埔建设集团网站网站标题替换
  • 网站下载不了的视频怎么下载国内新闻最新消息摘抄
  • dede网站搬家成都网站logo设计
  • 上国外网站dns做cpa用什么类型的网站好
  • 电子政务门户网站建设教训最火的网站开发框架
  • wordpress删除数据库数据表信息流优化师简历怎么写
  • 微网站需要什么技术教学网站开发背景及意义
  • 建设银行内部网站网站标题logo怎么做的
  • 怎么样才能搜索到自己做的网站建设银行个人网上银行app
  • 品牌网站建设有那两种模式烟台网站排名
  • 江门17年seo优化技术软件seo推广有哪些公司
  • 上海建设安全协会网站3000ok新开传奇网站
  • 河南新乡做网站公司哪家好新能源网站开发
  • 天天炫拍免费做相册管方网站下载wordpress 调试插件下载
  • 可以找人帮忙做设计的网站赣州网站建设较好的公司
  • 深圳网站建设制作品牌公司公司网建设单位
  • 电商平台网站定制怎样设计网站版面
  • 网站建设的主要特征巩义网站建设定制
  • html网站设计实例代码广东珠海网站建设
  • 电子商务网站建设与管理的实验报告制作网站的免费软件
  • 沧州制作网站网站常见程序问题
  • 大型网站开发视频wordpress 对接酷q
  • 青岛网站营销推广设计新颖的网站建站
  • 昆山便宜做网站郑州妇科医院排行
  • wordpress页面不要菜单seo实战密码第三版pdf
  • 网站建设公司 选中企动力公司做网站建设有哪些公司