タグ

関連タグで絞り込む (300)

タグの絞り込みを解除

javaに関するnilabのブックマーク (1,216)

  • VisualVM: Home

    VisualVM is a visual tool integrating commandline JDK tools and lightweight profiling capabilities. Designed for both development and production time use. September 17, 2024: VisualVM 2.1.10 Released VisualVM 2.1.10 adds support for JDK 23 and delivers several heapviewer improvements and bugfixes. The VisualVM for VS Code extension is now considered stable! See the Release Notes for all changes. T

    nilab
    nilab 2024/07/11
    "All-in-One Java Troubleshooting Tool" "VisualVM is a visual tool integrating commandline JDK tools and lightweight profiling capabilities. Designed for both development and production time use."
  • Apache HttpClient で文字コードを指定する方法

    nilab
    nilab 2021/02/08
    「Charset charset = Charset.forName(charsetName); HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(nvps, charset));」
  • Jersey 3.0.0 User Guide

    nilab
    nilab 2021/01/09
    Jersey 3.0.0 User Guide
  • ZipFile - zip4j 2.11.5 javadoc

    nilab
    nilab 2020/10/28
    net.lingala.zip4j.ZipFile
  • 9. ChoiceFormat/MessageFormat (2)

    9.2. MessageFormat MessageFormatは複数のメッセージを連結して1つのメッセージを連結するクラスです。連結する際、他のFormatクラスを使用してロケールや特定のフォーマットに従ったメッセージを作成することができます。まずもっとも簡単な使い方について説明します。 package sample; import java.text.MessageFormat; import java.util.Date; public class FormatTest { public static void main(String[] args) { MessageFormat format = new MessageFormat("ただいま{0}。天気は{1}です。"); Object[] parameters = {new Date(System.currentTimeMil

    nilab
    nilab 2020/10/15
    「MessageFormatは複数のメッセージを連結して1つのメッセージを連結するクラスです。連結する際、他のFormatクラスを使用してロケールや特定のフォーマットに従ったメッセージを作成することができます」
  • Netty: Home

    Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. Netty is an NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. 'Quick and ea

    nilab
    nilab 2020/07/13
    "Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients."
  • Quarkusリリース - 赤帽エンジニアブログ

    Red HatでOpenShiftのサポートをしているid:nekopです。3年前くらいまでJBoss Middlewareを主に担当していたので久しぶりなサーバサイドJavaネタとなるのですが、QuarkusというKubernetesネイティブJavaアプリケーションフレームワークをリリースしました。 quarkus.io 読み方は「くぉーかす」です。キャッチコピーがSupersonic Subatomic Javaとなっているように、高速軽量コンパクトなランタイムがウリです。また、コンテナ化やクラスのHot reloading対応などの開発容易性も備えています。 現在ではJava EEのアプリケーションサーバ上へのパッケージ化されたアプリケーションのデプロイ、Spring Bootなどに代表されるfat jarを利用したよりモダンなデプロイの2つのデプロイ形態が広く利用されていますが、

    Quarkusリリース - 赤帽エンジニアブログ
    nilab
    nilab 2020/07/13
    「読み方は「くぉーかす」です。キャッチコピーがSupersonic Subatomic Javaとなっているように、高速軽量コンパクトなランタイムがウリです。また、コンテナ化やクラスのHot reloading対応などの開発容易性も備えています」
  • Quarkus入門 - n-agetsumaの日記

    GlassFish Users Group Japan 勉強会 2019 SpringでQuarkusについて紹介しました。話そうと思っていたけれどもスライドに入らなかったことをブログで補足してみます。 Quarkusとは何か とにかく起動が高速な Java EE / MicroProfile ベースのAPIでコードが書けるフレームワークです。スライド中でも言及していますが、GraalVMのnative-imageコマンドによってネイティブコンパイルすると100ミリを切るスピードでJAX-RS/CDI/JPAで構成されるCRUDアプリケーションが起動します。 Javaは起動が遅い、Goのようなシングルバイナリによる起動の方が便利でJavaは手間が掛かると言われる課題を解決しています。 続きについてはスライドを参照してください。ここからは、スライドに入らなかった内容や、当日話そうと思っていた

    Quarkus入門 - n-agetsumaの日記
    nilab
    nilab 2020/07/13
    「QuarkusはMicroProfileベースのAPIでコードが書ける、高速起動のフレームワークです」
  • JakartaOne | Jakarta EE Events

    From livestreams to community-led local gatherings, JakartaOne is the Jakarta EE community’s flagship event series, bringing developers, community leaders, and contributors together to explore the future of enterprise Java. Every JakartaOne event, whether global or local, livestream or in-person, offers opportunities to learn from real-world experiences, connect with peers, and contribute to the J

    JakartaOne | Jakarta EE Events
    nilab
    nilab 2020/07/13
    JakartaOne Live | Jakarta EE Software | Cloud Native | The Eclipse Foundation
  • JEP 326: Raw String Literalsをテキトーに訳した - kagamihogeの日記

    http://openjdk.java.net/jeps/326 JEP 326: Raw String Literals Owner Jim Laskey Created 2018/01/23 15:40 Updated 2018/04/03 18:29 Type Feature Status Candidate Component specification / language Scope SE Discussion amber dash dev at openjdk dot java dot net Effort M Duration M Priority 3 Reviewed by Alex Buckley Endorsed by Brian Goetz Release tbd_major Issue 8196004 Summary Java言語にraw string liter

    JEP 326: Raw String Literalsをテキトーに訳した - kagamihogeの日記
    nilab
    nilab 2020/06/24
    「他のプログラム(SQL, JSON, XML, 正規表現など)のコードを埋め込むことがあり、これらは、ユニコードエスケープ・バックスラッシュ・改行を除くと、リテラル文字列そのままでキャプチャされる仕組みを必要とします」
  • JVMのGCアルゴリズムとチューニング

    社内勉強会で、JVMのGCについて調べて話した時の資料を最低限の修正を加えて公開してます。寺田さん監訳の『Javaパフォーマンス』をベースにいろいろ調べてまとめました。

    JVMのGCアルゴリズムとチューニング
    nilab
    nilab 2020/05/15
    「社内勉強会で、JVMのGCについて調べて話した時の資料を最低限の修正を加えて公開してます。寺田さん監訳の『Javaパフォーマンス』をベースにいろいろ調べてまとめました」
  • JDK 14 Documentation - Home

    nilab
    nilab 2020/03/21
    JDK 14 Documentation - Home
  • SpringBatchで簡単なオンデマンドバッチを作成 - Qiita

    @Configuration @EnableBatchProcessing //(1) public class BatchConfig { @Autowired private JobBuilderFactory jobBuilderFactory; //(2) @Autowired private StepBuilderFactory stepBuilderFactory; //(2) @Autowired private MyBatchService service; @Bean public JobLauncher jobLauncher1(JobRepository jobRepository) { //(2),(3) ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor(); // 同時実行数は3.それ

    SpringBatchで簡単なオンデマンドバッチを作成 - Qiita
    nilab
    nilab 2019/12/12
    「簡単なSpringBatchを作成し、Webリクエストからバッチ起動する」
  • 第3章 logbackの設定

    物事の質を正確に表現するときは、記号を使うのが最も適している。また、記号によって表現されたものがあれば、思考に費やす労力が驚くほど軽減されるのだ。 —GOTTFRIED WILHELM LEIBNIZ 設定スクリプトの例を示しながら、logback の設定方法を説明していきます。logback は Joran という設定フレームワークを利用しています。Joran については後の章で紹介します。 logback の設定 アプリケーションコードにロギング要求を埋め込むには、かなりの計画と作業が必要です。調査したところ、だいたいコード全体の4%ほどがロギングのために使われていました。したがって、そこそこの規模のアプリケーションであっても、数千行のロギング行が含まれることになるのです。その数を考えれば、私たちにロギング式を管理するためのツールが必要となる理由が理解できるのではないでしょうか。 l

    第3章 logbackの設定
    nilab
    nilab 2019/11/29
    「logback-test.xmlもlogback.xmlも無い場合、logback はBasicConfiguratorによって最小限の設定を行います。最小限の設定としてやることは、ルートロガーにConsoleAppenderを割り当てることだけです」
  • HtmlUnit – Project Dependencies

    nilab
    nilab 2019/11/14
    HtmlUnit – Project Dependencies
  • App Engine における Spring Boot アプリケーションの展開

    nilab
    nilab 2019/10/30
    App Engine における Spring Boot アプリケーションの展開
  • Auto import | IntelliJ IDEA

    Auto import If you are using a class, a static method, or a static field that you have not imported yet, the IDE shows you a tooltip prompting you to add a missing import statement so that you do not have to add it manually. Press Alt+Enter to accept the suggestion. If there's more than one possible source of import, pressing Alt+Enter will open the list of suggestions. To change the background co

    Auto import | IntelliJ IDEA
    nilab
    nilab 2019/10/28
    自動でインポートを最適化する設定。 Optimize imports on the fly "In the Settings/Preferences dialog (⌘,), click Editor | General | Auto Import. Enable the Optimize imports on the fly (for current project) option and apply the changes."
  • DOM parsing with Xerces | Baeldung

    nilab
    nilab 2019/10/04
    Apache Xerces ライブラリは JDK に入っているらしい。 "First, we should note that the Apache Xerces library is packaged with the JDK, so we don't need any additional setup."
  • 最適なOpenJDKディストリビューションの選び方

    オラクルは最高クラスのパフォーマンスとコスト効率を兼ね備えたクラウドサービスを提供しており、世界有数のテクノロジー企業がOCIを採用しています。 OCIをご利用のテクノロジー企業 AMD、ByteDance、Meta、NVIDIA、OpenAI、Temu、TikTok、Uber、xAI AIの学習や推論に向けたクラウド・インフラストラクチャの需要は供給を大幅に上回っています。このような状況を受け、オラクルはAIクラウドのキャパシティ拡大に全力で取り組んでいます。

    最適なOpenJDKディストリビューションの選び方
    nilab
    nilab 2019/10/02
    最適なOpenJDKディストリビューションの選び方
  • リソースへのアクセス

    Overview リソース、名前、コンテキスト システム・リソース システム・リソース以外 リソース名 java.lang.Classのメソッドの使用 java.lang.ClassLoaderのメソッドの使用 Security Examples References 概要 リソースとは、プログラムのコードの位置とは無関係な方法でプログラムがアクセスする必要のあるデータ(イメージ、オーディオ、テキストなど)です。 Javaプログラムでは、リソースへのアクセスに2つのメカニズムを使用できます。アプレットの場合は、Applet.getCodeBase()を使用してアプレット・コードのベースURLを取得した後、そのベースURLを相対パスで展開し、Applet.getAudioClip(url)を使用するなどして必要なリソースをロードします。 アプリケーションの場合は、System.getProp

    nilab
    nilab 2019/09/03
    「プログラムがシステム・リソースにアクセスするには、ClassLoaderのメソッドであるgetSystemResourceおよびgetSystemResourceAsStreamを使用します」