-
是否需要继承
DefCollectionHelperSupport
类?我的想法: 这个类在G1是用于用户界面的下拉框数据集合获取的
-
注入
ServletContext
这个对象?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Every jenkins file should start with either a Declarative or Scripted Pipeline entry point. | |
node { | |
//Utilizing a try block so as to make the code cleaner and send slack notification in case of any error | |
try { | |
//Call function to send a message to Slack | |
notifyBuild('STARTED') | |
// Global variable declaration | |
def project = 'sa-android' | |
def appName = 'Sample App' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN cd /opt | |
RUN mkdir android-sdk-linux && cd android-sdk-linux/ | |
RUN apt-get update -qq \ | |
&& apt-get install -y openjdk-8-jdk \ | |
&& apt-get install -y wget \ | |
&& apt-get install -y expect \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.configureondemand=true | |
org.gradle.daemon=true | |
org.gradle.parallel=true | |
org.gradle.jvmargs=-Xms512m -Xmx1024m | |
org.gradle.workers.max=100 | |
#org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.keepithttps.hibernate.type; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
import java.util.Properties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class RestfulWsHelper { | |
private final static String HEADER_NAME_REMOTE_IP = RestfulWsHelper.class.getSimpleName() + ".__REMOTE_CLIENT_ID__"; | |
public final static String UNKNOW_CLIENT_IP = "UNKNOWN"; | |
final static String[] SEARCHING_HEADERS = new String[] { | |
"x-forwarded-for", | |
"Proxy-Client-IP", | |
"WL-Proxy-Client-IP" | |
}; |
- 自定义一个函数calculate 创建脚本,
CREATE OR REPLACE FUNCTION calculate(IN x double precision, IN y double precision, OUT sum double precision) RETURNS double precision AS $BODY$ BEGIN sum = x + y; END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100;
- 在JPA 中调用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |