This file contains hidden or 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
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
ko: | |
errors: | |
messages: | |
expired: "가(이) 만료되었습니다. 새로 요청해 주십시오" | |
not_found: "를(을) 찾을 수 없습니다" | |
already_confirmed: "이미 확인되었습니다, 다시 로그인 해 주십시오" | |
not_locked: "가(이) 잠기지 않았습니다" | |
not_saved: |
This file contains hidden or 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
import java.sql.*; | |
public class ConnectionAlone { | |
@SuppressWarnings("unused") | |
public static void main(String[] args) throws SQLException { | |
try { | |
Class.forName("com.mysql.jdbc.Driver"); | |
} catch (ClassNotFoundException e) { | |
} |
This file contains hidden or 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 class BoundedExecutorService { | |
BlockingQueue<Runnable> blockingQueue = new ArrayBlockingQueue<Runnable>(4); | |
RejectedExecutionHandler rejectedExecutionHandler = new ThreadPoolExecutor.CallerRunsPolicy(); | |
private ExecutorService executorService = new ThreadPoolExecutor(2, 2, 0L, TimeUnit.MILLISECONDS, | |
blockingQueue, rejectedExecutionHandler); | |
public void execute(Runnable command) { | |
executorService.submit(command); | |
} |
This file contains hidden or 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
<bean id="dataSource" class="com.acmsoft.datasource.PropertyConfiguredDataSourceFactoryBean"> | |
<property name="envName" value="ACMSOFT_ENV"></property> | |
<property name="productionProperty" value="com.acmsoft.production.properties"></property> | |
<property name="devProperty" value="com.acmsoft.dev.properties"></property> | |
</bean> |
This file contains hidden or 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 class PropertyConfiguredDataSourceFactoryBean implements FactoryBean<DataSource> { | |
private String productionProperty; | |
private String devProperty; | |
private String envName; | |
public DataSource getObject() throws Exception { | |
String propFileName = getPropertyFilenameByENV(); | |
Properties p = PropertiesLoaderUtils.loadAllProperties(propFileName); |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'activerecord', '<= 3.2' | |
gem 'activerecord-jdbcmssql-adapter', :platform => :jruby |
This file contains hidden or 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
<bean id="messageSource" | |
class="org.springframework.context.support.ResourceBundleMessageSource"> | |
<property name="basename" value="messages"></property> | |
</bean> | |
<#import "/spring.ftl" as spring /> | |
<@spring.messageText "greeting", ["john"] /> |
This file contains hidden or 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
<assembly> | |
<!-- this will create an extra resource project-1.1.1-package.zip, you can | |
choose jar as well in the format--> | |
<id>package</id> | |
<formats> | |
<format>tar.gz</format> | |
</formats> | |
<includeBaseDirectory>false</includeBaseDirectory> | |
<!-- Insert here extra files as configs or, batch files, resources, docs etc--> | |
<fileSets> |
This file contains hidden or 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
n_rank={0,choice,0#zero|1#1st|2#2nd|3#3rd|3<{0}th} |
OlderNewer