在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ Java問答
過客 回答

前臺js以string的形式傳過來,到后臺再轉(zhuǎn)換為date類型

舊酒館 回答

謝邀,從左邊開始
merge :就是git的合并代碼。遠(yuǎn)程代碼在你push之前已經(jīng)被修改了。就需要先merge。如果沒有沖突,就自動合并修改,否則需要逐一合并
rebase:拉下來的代碼有沖突,但是不會自動合并。需要你手動合并

第三個branch default我沒用過了

using stash:在更新前先清除stash
第二個沒用過。

終相守 回答

思路就是先按你的查詢條件和排序,算出排在你這條記錄之前的記錄數(shù),根椐你每頁記錄數(shù)來算出第幾頁。

要算出排在這記錄之前,如果是主鍵或唯一鍵排序,直接id > xx或 id<xxx就好了。如果不是,那就不好辦

莓森 回答

Debug到函數(shù)那行,可以直接使用Evaluate Expression來查看表達(dá)式的值

淺時光 回答
  1. 盡量遵循 RESTful ,但是也要和實際業(yè)務(wù)需求結(jié)合,靈活應(yīng)變。
  2. 首頁一般是聚合頁,數(shù)據(jù)來源較多。通常:按功能分,按緩存分。也不會全部放在一個接口里。
  3. 靜態(tài)內(nèi)容全部走CDN,減少 PHP 服務(wù)器的壓力,一個頁面調(diào)用的 API 接口最多三個。
壞脾滊 回答

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

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

<groupId>test</groupId>
<artifactId>mixedJavaAndGroovy</artifactId>
<version>0.01-SNAPSHOT</version>


<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.build.targetEncoding>UTF-8</project.build.targetEncoding>
</properties>
<repositories>
    <repository>
        <id>Sonatype</id>
        <name>Sonatype Repository</name>
        <url>http://repository.sonatype.org/content/groups/public/</url>
        <layout>default</layout>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>artima</id>
        <name>Artima Maven Repository</name>
        <url>http://repo.artima.com/releases</url>
    </repository>
</repositories>


<dependencies>
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>2.4.14</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.spockframework/spock-core -->
    <dependency>
        <groupId>org.spockframework</groupId>
        <artifactId>spock-core</artifactId>
        <version>1.1-groovy-2.4</version>
        <scope>test</scope>
    </dependency>

</dependencies>


<build>
    <plugins>

        <!-- test -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>3.0.0</version>
            <executions>
                <execution>
                    <id>add-source</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>add-source</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>src/main/groovy</source>
                        </sources>
                    </configuration>
                </execution>
                <execution>
                    <id>add-test-source</id>
                    <phase>generate-test-sources</phase>
                    <goals>
                        <goal>add-test-source</goal>
                    </goals>
                    <configuration>
                        <sources>
                            <source>src/test/groovy</source>
                        </sources>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.codehaus.gmavenplus</groupId>
            <artifactId>gmavenplus-plugin</artifactId>
            <version>1.6</version>
            <configuration>
                <stubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/stubs</stubsOutputDirectory>
                <testStubsOutputDirectory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}/test-stubs</testStubsOutputDirectory>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>addSources</goal>
                        <goal>addTestSources</goal>
                        <goal>generateStubs</goal>
                        <goal>compile</goal>
                        <goal>generateTestStubs</goal>
                        <goal>compileTests</goal>
                        <goal>removeStubs</goal>
                        <goal>removeTestStubs</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-clean-plugin</artifactId>
            <version>3.0.0</version>
            <configuration>
                <filesets>
                    <fileset>
                        <directory>${java.io.tmpdir}/${project.groupId}.${project.artifactId}</directory>
                    </fileset>
                </filesets>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
            <version>3.7.0</version>
        </plugin>

    </plugins>
    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse m2e settings 
                only. It has no influence on the Maven build itself. -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        net.alchim31.maven
                                    </groupId>
                                    <artifactId>
                                        scala-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [3.3.1,)
                                    </versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        com.theoryinpractise
                                    </groupId>
                                    <artifactId>
                                        clojure-maven-plugin
                                    </artifactId>
                                    <versionRange>
                                        [1.8.1,)
                                    </versionRange>
                                    <goals>
                                        <goal>compile</goal>
                                        <goal>testCompile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        org.codehaus.gmavenplus
                                    </groupId>
                                    <artifactId>
                                        gmavenplus-plugin
                                    </artifactId>
                                    <versionRange>
                                        [1.6.0,)
                                    </versionRange>
                                    <goals>
                                        <goal>addSources</goal>
                                        <goal>addTestSources</goal>
                                        <goal>generateStubs</goal>
                                        <goal>compile</goal>
                                        <goal>generateTestStubs</goal>
                                        <goal>compileTests</goal>
                                        <goal>removeStubs</goal>
                                        <goal>removeTestStubs</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

</project>

神曲 回答

點擊查看匹配情況

這應(yīng)該是你想要的,不過不知道是你不會問問題還是我理解能力有限,總覺得你的提問有點矛盾。你試一下吧

痞性 回答

你已然發(fā)現(xiàn)區(qū)別了……!

簡單的說,job 中保存的是項目是在 jenkins 上的配置、日志、構(gòu)建結(jié)果等
workspace 就是工作目錄,一般就是 Down 下來的源代碼目錄

厭遇 回答

我也在找自定義session過期時間的方法,直到看見了這個,然后將你的方法果斷試了一遍,結(jié)果成功了。我設(shè)置的3秒過期,非常有效。

誮惜顏 回答

1:以文件的形式直接存在服務(wù)器本地目錄(很多小的網(wǎng)站是這么干的,比如個人博客一些)。
2:上傳到專門的圖片服務(wù)器(七牛就看出一個專門圖片服務(wù)器)

上面的二種方式圖片都是放在磁盤目錄中的。

實際中很少有把圖片base64后放進(jìn)數(shù)據(jù)庫的(千萬不要這么干,你可以忘記這種做法了,實際項目中應(yīng)該沒有誰會這么干)。

稍微上一點規(guī)模的項目,圖片肯定是放在專門的圖片服務(wù)器中的(可以使用服務(wù)商提供的存儲服務(wù),如七牛,也可以自己搭建圖片服務(wù)器)。

至于上面二種的優(yōu)缺點自己搜搜吧,網(wǎng)上很多的。

@learnmeahaskell 在評論中給了你思路,不過我想再提一點:

ifObj(xxx, new xxx()) 的話,也就是說無論 xxx 是否為空,都會執(zhí)行 new xxx() 來生成新實例,這樣不是很好,會導(dǎo)致無意義的資源開銷,可以用個接口來延遲加載。

public interface Supplier<T> {
    T supply();
}

public static <T> T ifObj(T a, Supplier<T> s) {
    return a == null ? s.supply() : a;
}

Obj obj = ifObj(xxx, new Supplier<Obj>() {
    @Override
    public Obj supply() {
        return new xxx();
    }
});

// 如果是 jdk8 那就可以直接使用 `Optional`
Obj obj = Optional.ofNullable(xxx).orElseGet(() -> new xxx());

orElseGet 里其實就是 supplier。

尛曖昧 回答

你這實際上是多條SQL語句,默認(rèn)無法一次性執(zhí)行多條SQL語句,但好像可以修改jdbc連接設(shè)置,具體請度娘。

司令 回答

可以試試XDOC,應(yīng)該可以滿足你的需求:http://www.xdocin.com/office....

半心人 回答

'/^.+\?/U' 以任意字符開頭,到遇到的第一個問號,將這段匹配到的字符替換成''

放開她 回答

可以檢查下你可執(zhí)行文件中jar包里面的,META-INF/MANIFEST.MF 中Class-Path是否包含 mysql的jar包。

淡墨 回答

TransmittableThreadLocal這個類是來自阿里的一個開源項目:https://github.com/alibaba/tr...。為什么會出現(xiàn)這個類是為了解決例如使用線程池、Tomcat這類緩存線程組件,如ThreadPoolExecutor、tomcat線程池的時候,某一線程中的數(shù)據(jù)和ThreadLocal等在沒有刪除或者解綁的情況下,會被下一個Runable類或者Http請求復(fù)用。而在提交任務(wù)給線程池時,而TransmittableThreadLocal為了解決這個問在提交任務(wù)給線程池時,將ThreadLocal數(shù)據(jù)一起提交,相當(dāng)于重新set一次ThreadLocal。

心上人 回答

服務(wù)提供者。
微服務(wù)架構(gòu)中會涉及到多個服務(wù)間的調(diào)用。一個服務(wù)的不可用可能會引起整個系統(tǒng)的級聯(lián)故障。熔斷器就是放在各個服務(wù)間的一個保護(hù)者,用來保護(hù)服務(wù)高可用的。

浪蕩不羈 回答

在線文檔就是普普通通的網(wǎng)站,java,php,node都可以寫,搜索只是一個額外的功能模塊。
現(xiàn)在常用的在線文檔有g(shù)itbook。