淘淘商城項目mysql服務器_SpringMVC+Spring+Mybatis+Mysql+Maven+Svn[ 淘淘商城項目環境搭建 ]...

背景:淘淘商城項目的環境搭建

說明:采用SpringMVC+Spring+Mybatis+Mysql+Maven+Svn結構搭建,在開發之中可以參考其結構和搭建步驟去搭建實際的工程項目

工程結構簡圖:

1b820386cbb945b1b72b38be8c2d5a8c.png

項目結構:

fcb36e5537cff2cb408663d4cb657577.png

b0656e5cbcef2ef63720f4981be30ff5.png

722db3b49966dcac1107346996fc3564.png

d1d7820fe8c38498b412d71c7fa8bf74.png

b6027b4575898865a518770124f8772a.png

c48a549b968a6c65b2f31482fde35ac9.png

---------------------------------------------【 以下是項目的搭建過程 】----------------------------------------------------

創建數據庫:

taotao-parent:

這是父工程,其他子工程都要繼承它,是個POM聚合工程,這里集中定義了jar包的版本號,但并不是實際依賴,其子工程的版本要從這里依賴傳遞,便于維護。

File--New--Maven--Maven Project

d6f6f7272c4faa72c98a43271255d0f7.png

a603cab1b66273930e9ed02d048fb59c.png

Next--Finish

修改pom.xml:

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

4.0.0

com.taotao

taotao-parent

0.0.1-SNAPSHOT

pom

4.12

4.1.3.RELEASE

3.2.8

1.2.2

1.2.15

5.1.32

1.6.4

2.4.2

1.0.9

4.3.5

1.2

2.5

2.0

2.5

3.3.2

1.3.2

3.3

3.4.2-fix

0.9.1

1.3.1

2.7.2

4.10.3

joda-time

joda-time

${joda-time.version}

org.apache.commons

commons-lang3

${commons-lang3.version}

org.apache.commons

commons-io

${commons-io.version}

commons-net

commons-net

${commons-net.version}

com.fasterxml.jackson.core

jackson-databind

${jackson.version}

org.apache.httpcomponents

httpclient

${httpclient.version}

junit

junit

${junit.version}

test

org.slf4j

slf4j-log4j12

${slf4j.version}

org.mybatis

mybatis

${mybatis.version}

org.mybatis

mybatis-spring

${mybatis.spring.version}

com.github.miemiedev

mybatis-paginator

${mybatis.paginator.version}

com.github.pagehelper

pagehelper

${pagehelper.version}

mysql

mysql-connector-java

${mysql.version}

com.alibaba

druid

${druid.version}

org.springframework

spring-context

${spring.version}

org.springframework

spring-beans

${spring.version}

org.springframework

spring-webmvc

${spring.version}

org.springframework

spring-jdbc

${spring.version}

org.springframework

spring-aspects

${spring.version}

jstl

jstl

${jstl.version}

javax.servlet

servlet-api

${servlet-api.version}

provided

javax.servlet

jsp-api

${jsp-api.version}

provided

commons-fileupload

commons-fileupload

${commons-fileupload.version}

redis.clients

jedis

${jedis.version}

org.apache.solr

solr-solrj

${solrj.version}

${project.artifactId}

org.apache.maven.plugins

maven-resources-plugin

2.7

UTF-8

org.apache.maven.plugins

maven-compiler-plugin

3.2

1.7

1.7

UTF-8

org.apache.tomcat.maven

tomcat7-maven-plugin

2.2

taotao-common:

同理創建taotao-common,這個工程是工具工程,提供通用的工具類,是個jar工程,此工程要繼承父工程taotao-parent

修改pom.xml:

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

4.0.0

com.taotao

taotao-parent

0.0.1-SNAPSHOT

com.taotao

taotao-common

0.0.1-SNAPSHOT

joda-time

joda-time

org.apache.commons

commons-lang3

org.apache.commons

commons-io

commons-net

commons-net

com.fasterxml.jackson.core

jackson-databind

org.apache.httpcomponents

httpclient

junit

junit

test

org.slf4j

slf4j-log4j12

com.jcraft

jsch

0.1.49

taotao-manager:

這是個POM聚合工程,包括controller/service/mapper工程,此工程要繼承父工程taotao-parent,同時要依賴taotao-common工具工程

修改pom.xml:

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

4.0.0

com.taotao

taotao-parent

0.0.1-SNAPSHOT

com.taotao

taotao-manager

0.0.1-SNAPSHOT

pom

com.taotao

taotao-common

0.0.1-SNAPSHOT

taotao-manager-pojo

taotao-manager-mapper

taotao-manager-service

taotao-manager-web

org.apache.tomcat.maven

tomcat7-maven-plugin

8080

/

taotao-manager-pojo:

這是POJO,是個jar工程,不依賴于任何模塊

在taotao-manager工程上右鍵,New--Other--Maven Module--Next--Finish

c40950a5f4f8ae1a79f5d530a7aa024d.png

pom.xml:無需修改

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

4.0.0

com.taotao

taotao-manager

0.0.1-SNAPSHOT

com.taotao

taotao-manager-pojo

0.0.1-SNAPSHOT

在src/main/java目錄下,創建package:com.taotao.pojo,使用逆向工程生成POJO類和Mapper接口以及Mapper映射文件,將所有POJO類拷貝到這個package下

taotao-manager-mapper:

同理創建taotao-manager-mapper,這是jar工程,是mapper層,依賴pojo,和數據庫交互,在src/main/java下創建package:com.taotao.mapper,

將逆向工程生成的Mapper接口和Mapper映射文件拷貝至這個package下

修改pom.xml:

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

4.0.0

com.taotao

taotao-manager

0.0.1-SNAPSHOT

com.taotao

taotao-manager-mapper

0.0.1-SNAPSHOT

com.taotao

taotao-manager-pojo

0.0.1-SNAPSHOT

org.mybatis

mybatis

org.mybatis

mybatis-spring

com.github.miemiedev

mybatis-paginator

com.github.pagehelper

pagehelper

mysql

mysql-connector-java

com.alibaba

druid

src/main/java

**/*.properties

**/*.xml

false

taotao-manager-service

同理創建taotao-manager-service,這是jar工程,是service層,調用mapper層

修改pom.xml:

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

4.0.0

com.taotao

taotao-manager

0.0.1-SNAPSHOT

com.taotao

taotao-manager-service

0.0.1-SNAPSHOT

com.taotao

taotao-manager-mapper

0.0.1-SNAPSHOT

org.springframework

spring-context

org.springframework

spring-beans

org.springframework

spring-webmvc

org.springframework

spring-jdbc

org.springframework

spring-aspects

在src/main/java目錄下創建package:com.taotao.service以及com.taotao.service.impl

taotao-manager-web:

同理創建taotao-manager-web,這是表現層Controller,是個war工程,調用service工程

修改pom.xml:

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

4.0.0

com.taotao

taotao-manager

0.0.1-SNAPSHOT

com.taotao

taotao-manager-web

0.0.1-SNAPSHOT

war

com.taotao

taotao-manager-service

0.0.1-SNAPSHOT

jstl

jstl

javax.servlet

servlet-api

provided

javax.servlet

jsp-api

provided

commons-fileupload

commons-fileupload

以下步驟在開發之中根據實際情況調整, 可以先搭建好環境之后再開發controller(service層也一樣)

在src/main/resources目錄下創建三個fold:mybatis、resource、spring

在resource下創建db.properties:

jdbc.driver = com.mysql.jdbc.Driver

jdbc.url = jdbc:mysql://localhost:3306/數據庫名?useUnicode=true&characterEncoding=utf-8

jdbc.username = 數據庫賬號

jdbc.password =數據庫密碼

在mybatis下創建SqlMapConfig.xml:(這個文件雖然暫時沒有寫入什么東西,但是要有這個文件,否則工程結構不完整,就會報錯)

/p>

PUBLIC "-//mybatis.org//DTD Config 3.0//EN"

"http://mybatis.org/dtd/mybatis-3-config.dtd">

在spring下創建各個整合的配置文件:

applicationContext-dao.xml:

xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"

xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"

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

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd

http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">

destroy-method="close">

applicationContext-service.xml:

xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"

xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"

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

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd

http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">

applicationContext-trans.xml:

xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"

xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"

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

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd

http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">

class="org.springframework.jdbc.datasource.DataSourceTransactionManager">

pointcut="execution(* com.taotao.service.*.*(..))" />

springmvc.xml:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"

xmlns:context="http://www.springframework.org/schema/context"

xmlns:mvc="http://www.springframework.org/schema/mvc"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

class="org.springframework.web.servlet.view.InternalResourceViewResolver">

在webapp下創建WEB-INF目錄,其下創建web.xml,并把一些靜態資源文件和頁面(css/js/jsp)拷貝到WEB-INF下

web.xml:

xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"

id="taotao" version="2.5">

taotao-manager

index.html

index.htm

index.jsp

default.html

default.htm

default.jsp

contextConfigLocation

classpath:spring/applicationContext-*.xml

org.springframework.web.context.ContextLoaderListener

CharacterEncodingFilter

org.springframework.web.filter.CharacterEncodingFilter

encoding

utf-8

CharacterEncodingFilter

/*

taotao-manager

org.springframework.web.servlet.DispatcherServlet

contextConfigLocation

classpath:spring/springmvc.xml

1

taotao-manager

/

在webapp下創建index.jsp:

String path = request.getContextPath();

String basePath = request.getScheme() + "://"

+ request.getServerName() + ":" + request.getServerPort()

+ path + "/";

%>

首頁測試

尊敬的用戶,如果您看到此頁面,說明taotao-manager正在運行...

到此為止,整個工程的環境已經搭建完畢,可以做測試(在實際開發中要步步為營,每次搭建完一個模塊就要做一次測試):

beb59a39f413820acae1676844735ecc.png

將各個工程及其繼承的工程按順序install到本地倉庫,然后啟動在taotao-manager工程上右鍵Run As--Maven Build,輸入clean tomcat7:run,運行

如果測試通過,就將項目提交到svn上,這樣,其他組員就可以從svn上檢出項目進行開發

-------------------------------------------以下是將項目提交到svn已經從svn檢出項目的步驟-------------------------------------------------------

提交到svn的順序:taotao-parent, taotao-common, taotao-manager(其子工程不需要提交,因為父工程已經包含其子工程),

以taotao-parent為例,其他同理:

右鍵taotao-parent--Team--Share Project...--SVN--Next--創建新的資源庫位置(第一個工程選這個,后面的工程選擇“使用已有資源庫位置”),

打開VisualSVN Server Manager,在Repositories下右鍵選擇Create New Repository...,為這個項目的倉庫取個名字(如taotao-shop),下一步,Create

8385af0a3d35b92ed9a1c4d28f1dc0c3.png

就可以創建一個項目的本地倉庫,包含三個文件夾:branches,tags,trunk(這個目錄用于存放java代碼),

右鍵剛剛創建的倉庫,選擇Copy URL to Clipboard,將倉庫的URL復制,粘貼到以下的URL文本框中:

2aaa394c0f5c52b53fb23c3d5dab5961.png

Next

8b50ce14bf4bc13810e577af94437459.png

點擊“瀏覽”--路徑指向項目倉庫的trunk目錄,按提示操作,Finish即可,至此,項目并沒有真正地上傳到svn上,只是建立了項目和svn的關系。

把除了src及其子目錄、pom.xml之外的文件全部 ignore 掉(如果把target/.property/.setting等文件也上傳到svn,那么其他人從svn上down下來的項目可能會覆蓋掉他自己本地的文件,這些文件都是個性化的文件,不要上傳到svn!),有些可能要按照順序操作,具體請百度,然后提交到svn,如果沖突就先更新再提交,

其他的項目一樣操作。

這樣項目就全部提交到svn上了, 建議本地的項目(就是您看到的myeclipse中的所有項目)全部都刪除(刪除的時候把本地磁盤的選項也勾上,表示把磁盤上的也刪除),然后從svn上把項目都down下來,下載順序:taotao-parent---taotao-common---taotao-manager(這是聚合工程),然后你會發現taotao-manager下的子工程都沒有,右鍵taotao-manager這個聚合工程--Import--Maven--Existing Maven Projects--Next

d2557643ceb46213635920adee27a8fd.png

路徑指向聚合工程taotao-manager的目錄,就會自動將其子工程列出來,全選,Next,Finish,就會把所有的子工程都導入進來,你會發現taotao-parent, taotao-common, taotao-manager這三個工程都不是Maven工程,需要將其一 一轉成Maven工程,步驟請參考以下鏈接:

http://www.cnblogs.com/josephcnblog/articles/6616563.html

將項目都轉成maven工程之后,至此,整個項目的就搭建完畢!可以進行其他功能的開發了

------------------------------------------以下是一個小demo的開發步驟,其他業務模塊一樣操作--------------------------------------------------

在com.taotao.service下創建Service接口:ItemService.java

package com.taotao.service;

import com.taotao.pojo.TbItem;

/**

* 商品Service

*/

public interface ItemService {

TbItem getItemById(long itemId);

}

在com.taotao.service.impl下創建Service接口實現類:ItemServiceImpl.java

package com.taotao.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import com.taotao.mapper.TbItemMapper;

import com.taotao.pojo.TbItem;

import com.taotao.service.ItemService;

/**

* 商品Service實現類

*/

@Service

public class ItemServiceImpl implements ItemService {

// 注入ItemMapper

@Autowired

private TbItemMapper itemMapper;

/**

* 根據商品Id查詢商品對象

*/

@Override

public TbItem getItemById(long itemId) {

TbItem item = itemMapper.selectByPrimaryKey(itemId);

return item;

}

}

在src/main/java目錄下創建package:com.taotao.controller,在此package下創建ItemController.java

package com.taotao.controller;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;

import com.taotao.pojo.TbItem;

import com.taotao.service.ItemService;

/**

* 商品Controller

*/

@Controller

@RequestMapping("/item")

public class ItemController {

// 注入ItemService

@Autowired

private ItemService itemService;

@RequestMapping("/{itemId}")

@ResponseBody

public TbItem getItemById(@PathVariable Long itemId) {

TbItem item = itemService.getItemById(itemId);

return item;

}

}

下面是測試,右鍵taotao-manager--Run As--Maven Build,啟動tomcat之后,在瀏覽器地址欄輸入http://localhost:8080/item/536563

其中, 后面的數字是要查詢的商品的 id , 回車:

aa2b628e8bcc866235c3d229dde7da77.png

返回json格式數據, 測試通過!

繼續開發其他的業務模塊吧!

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/260431.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/260431.shtml
英文地址,請注明出處:http://en.pswp.cn/news/260431.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

bean validation校驗方法參數_項目啟動時首先校驗Spring Boot配置參數

1. 概述在項目實際開發過程中,為了更好的復用,我們參考Spring Boot Starters,封裝了許多企業內部中間件的starter。這些中間件的接入都需要申請并在項目中配置一些特定的參數。我們通過ConfigurationProperties注解,增加了在配置過…

進一步理解:inline-block,vertical-align,line-height

看似三個最常見的概念背后卻隱藏了很深的很深“水” 那有多深呢&#xff0c;先來看下面的代碼 引出問題 <style>.inline-block {display: inline-block;}.border {border: 1px solid #000000;}.span {width: 100px;height: 100px;}.bak {background: #33CCFF;} .o-hidden…

刷系統——黑屏問題

引用&#xff1a;http://www.miui.com/thread-344361-1-1.html 此貼大部分內容源自魔趣論壇V大的帖子&#xff0c;本人經過整理后發出&#xff0c;特此聲明原帖地址&#xff1a;http://bbs.mfunz.com/thread-172610-1-1.html——此貼獻給小白們&#xff0c;老鳥一笑而過吧近期有…

LeetCode OJ - Recover Binary Search Tree

題目&#xff1a; Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note:A solution using O(n) space is pretty straight forward. Could you devise a constant space solution? 解題思路&#xff…

mysql中間件是運維工作內容_linux運維工作的七項內容

一&#xff0c;【基礎運維檢查】或叫 例行檢查 或叫 例行巡檢mail cacti1.理解例行檢查列表的內容、檢查項的含義以及可能引發的問題。2.按照例行檢查表&#xff0c;定期檢查系統狀態&#xff0c;發現異常立即通報并推進解決。3.定期檢查線上服務模塊&#xff0c;排除可疑進程,…

java executor_Java并發編程(08):Executor線程池框架

一、Executor框架簡介1、基礎簡介Executor系統中&#xff0c;將線程任務提交和任務執行進行了解耦的設計&#xff0c;Executor有各種功能強大的實現類&#xff0c;提供便捷方式來提交任務并且獲取任務執行結果&#xff0c;封裝了任務執行的過程&#xff0c;不再需要Thread().st…

Exchange 2007遷移Exchange 2010應該注意的13件事

1. Exchange 2007可以支持升級到Exchange 2010&#xff0c;但需要提前將Exchange 2007所有服務器環境升級至 SP2或以上版本。2. Exchange 2007如果更新至SP2或以上版本&#xff0c;則建議按照以下順序進行各角色的更新&#xff1a; CAS、UM、HUB、Edge、Mailbox。3. …

dom4j操作XML

(一&#xff09;創建Document的基本操作 /** * XML基本操作 */ public void BaseOperation(){ //創建一個document Document documentDocumentHelper.createDocument(); //創建根結點 Element rootdocument.addElement("root"); //為根結點添加一個book節點 Element …

Oracle數據庫中閃回恢復的詳細分析

Oracle9i開始提供閃回查詢&#xff0c;以便能在需要的時候查到過去某個時刻的一致性數據&#xff0c;這是通過Undo實現的。這個功能有很大的限制&#xff0c;就是相關事務的undo不能被覆蓋&#xff0c;否則就無力回天了。oracle10g大大的增強了閃回查詢的功能&#xff0c;并且提…

python 查看當前目錄_「Python」打包分發工具setuptools學習

?setuptools是python標準的打包分發工具&#xff0c;它可以將我們編寫的python項目打包安裝&#xff0c;這樣其他同事就可以像調用標準庫或python第三方庫那樣直接使用&#xff1b;也可以將項目上傳到Pypi供更多人的下載安裝使用。?1. 項目結構項目結構?這是一個打包構建好的…

如何殺掉D狀態的進程?[zt]【轉】

轉自&#xff1a;http://blog.csdn.net/chinalinuxzend/article/details/4288791 [-] 如何殺掉D狀態的進程zt相關博文原貼:http://www.xclinux.cn/?p752 如何殺掉D狀態的進程&#xff1f;[zt] 狀態為 D (Uninterruptible sleep) &#xff0c;以及狀態為 Z (Zombie)這些垃圾進程…

九月十月百度人搜,阿里巴巴,騰訊華為筆試面試八十題(第331-410題)

九月十月百度人搜&#xff0c;阿里巴巴&#xff0c;騰訊華為小米搜狗筆試面試八十題 &#xff08;參與算法&面試題交流與討論&#xff0c;請加群&#xff1a;30382647&#xff09;引言 自發表上一篇文章至今&#xff08;事實上&#xff0c;上篇文章更新了近3個月之久&#…

mysql性能結構優化原理_MySQL性能管理及架構設計(二):數據庫結構優化、高可用架構設計、數據庫索引優化...

一、數據庫結構優化(非常重要)1.1 數據庫結構優化目的1、減少數據冗余&#xff1a;(數據冗余是指在數據庫中存在相同的數據&#xff0c;或者某些數據可以由其他數據計算得到)&#xff0c;注意&#xff0c;盡量減少不代表完全避免數據冗余&#xff1b;2、盡量避免數據維護中出現…

python git是什么_python爬蟲之git的使用

一、簡單認識&#xff1a; 1、初始化文件夾為版本控制文件夾&#xff0c;首先建立一個文件夾&#xff0c;進入這個文件夾以后輸入git init初始化這個文件夾。2、Git幾種位置概念 1、本地代碼&#xff1a;本地更改完代碼以后&#xff0c;雖然是存放在git的文件夾里面&#xff0c…

產品經理網站數據分析之測量問題現狀(二)

本章續接上文&#xff0c;主要講解流程圖的繪制要領&#xff0c;以及示例。 1、基礎流程圖 基礎流程圖應該簡明扼要地描述出流程的主要結構&#xff0c;在弄清楚流程的起點、終點&#xff0c;以及主要步驟后&#xff0c;按照流程的先后順序&#xff0c;按照要展示的流程長短比例…

鍵盤流的逆襲- Idea 中使用 VIM mode 提高生成效率

Idea 中使用 VIM mode 提高生成效率 安裝配置 Idea 的 vim 插件 先挖坑&#xff0c;后續再填。這個毫無技術含量&#xff0c;不寫了&#xff0c;自己去搜吧。 快捷鍵代替鼠標 打開文件 按兩下 shift 鍵 > 輸入類目文件名按 command e &#xff0c;打開最近編輯的文件列表&a…

git 撤銷掛起的更改_Timer計時任務因系統時間的修改導致掛起解決方案

之前開發的一款運行在定制Android設備上的一個實時監控程序發生了一個很奇怪的問題&#xff1a;關機狀態下放置了半個月左右的時間之后&#xff0c;再次開機使用&#xff0c;使用到一半的時候&#xff0c;顯示界面就卡死在某一個狀態下了(顯示界面只顯示一行文字&#xff0c;代…

yii urlmanager配置post不生效_一文帶你徹底學會 Git Hooks 配置

你好&#xff0c;我是小桔&#xff0c;是一個沒有感情的代碼崽。今天給大家介紹一下 Git Hooks&#xff0c;相信 Git 大家都在用吧&#xff0c;Git 除了用作版本控制&#xff0c;還有許多高級功能&#xff0c;Git Hooks 就是其中之一。本文環境&#xff1a;Git 版本&#xff1a…

Tiff – 值得你體驗一下的可視化的字體對比工具

Tiff 是一款字體對比工具&#xff0c;可視化對比兩種字體之間的差異。這是一個工具來幫助比較兩種字體&#xff0c;同時學習排版。在這一點上&#xff0c;谷歌 Web 字體作為 Tiff 外部字體文件的唯一來源。由于應用程序使用的一些功能需要 HTML5 和 CSS3 支持&#xff0c;因此請…

[.NET] 建構子中傳遞子對象的對象

在設計對象繼承的時候&#xff0c;父對象建構子會需要一些參數&#xff0c;這些參數可以由子對象建構子透過base關鍵詞來提供。 namespace Test001 {public class ParentClass{// Constructorspublic ParentClass(IEnumerable<string> dataCollection){this.DataCollecti…