並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 30 件 / 30件

新着順 人気順

java util properties exampleの検索結果1 - 30 件 / 30件

  • REST API Design Best Practices Handbook – How to Build a REST API with JavaScript, Node.js, and Express.js

    By Jean-Marc Möckel I've created and consumed many API's over the past few years. During that time, I've come across good and bad practices and have experienced nasty situations when consuming and building API's. But there also have been great moments. There are helpful articles online which present many best practices, but many of them lack some practicality in my opinion. Knowing the theory with

      REST API Design Best Practices Handbook – How to Build a REST API with JavaScript, Node.js, and Express.js
    • MCPサーバーとMCPクライアントを作る | gihyo.jp

      AIの活用では、MCPという言葉が注目を浴びています。連載の最後に、JavaでMCPサーバー/クライアントを実装してみて、MCPへの理解を深めます。 なお、この記事で取り扱ったコードはこちらからダウンロードできます。 MCPとは MCP(Model Context Protocol)は、Function Calling(Tool Use)をJSON-RCPに基づいてリモートで呼び出す仕組みです。 Function Callingの場合は機能の実装をチャットプログラムと一緒に行う必要がありました。MCPではチャットプログラムと機能の実装を分離できるため、チャットプログラムにあとから機能を追加できるようになります。つまり、LM StudioやChatGPTのチャットアプリケーションに様々な機能を登録して利用できるわけです。また、さまざまなアプリケーションやサービスがMCPの規格に対応したため、

        MCPサーバーとMCPクライアントを作る | gihyo.jp
      • dodaの技術負債を解消するコンテナ環境で動くAPIサーバー - techtekt(テックテクト) | パーソルキャリアのエンジニアブログ

        こんにちは。dodaサイト開発グループの齋藤です。 doda トップページリビルドプロジェクトにて、コンテナ環境で動くAPIサーバー(hydrogenと社内では読んでいます)を作成しました。 そのAPIサーバーの開発が活発化してきたため、社外向けへの知見の共有と、社内のチーム向けのドキュメントとして、プロジェクトにおいて工夫した点などをこの記事にて公開することにします。 なぜAPIサーバー(hydrogen)を作成したのか これまでdodaではJava側でHTMLまで返すMPA(Multiple Page Application)で作られていました。 しかし今回のdodaトップページリビルドプロジェクトではSPA(Single Page Application)で作っており、APIが必要になりました。 参考:フロントエンドに関する記事はこちらです。 APIの作成は既存のシステムでも可能です

          dodaの技術負債を解消するコンテナ環境で動くAPIサーバー - techtekt(テックテクト) | パーソルキャリアのエンジニアブログ
        • How modern browsers work

          Note: For those eager to dive deep into how browsers work, an excellent resource is Browser Engineering by Pavel Panchekha and Chris Harrelson (available at browser.engineering). Please do check it out. This article is an overview of how browsers work. Web developers often treat the browser as a black box that magically transforms HTML, CSS, and JavaScript into interactive web applications. In tru

            How modern browsers work
          • PacketProxyで探るGemini CLIのコンテキストエンジニアリング 〜AIエージェントを信頼できる相棒に〜 | BLOG - DeNA Engineering

            2025.07.18 技術記事 PacketProxyで探るGemini CLIのコンテキストエンジニアリング 〜AIエージェントを信頼できる相棒に〜 by akira.kuroiwa #gemini-cli #ai #security #ai-agent #context-engineering #packetproxy 「なんかよく分からないけど、すごい」で終わらせないために こんにちは、DeNA セキュリティ技術グループの 黒岩 亮 ( @kakira9618 ) です。 AIエージェント、とくに Gemini CLI のようなコーディングを支援してくれるツールは非常に強力で、私たちの開発体験を大きく変えようとしています。しかし、その一方で、こんな風に感じたことはありませんか? 「このファイルの情報、勝手にAIに送られたりしない? 大丈夫かな?」 と、情報管理・セキュリティ面で漠然と

              PacketProxyで探るGemini CLIのコンテキストエンジニアリング 〜AIエージェントを信頼できる相棒に〜 | BLOG - DeNA Engineering
            • Introducing AWS Lambda response streaming | Amazon Web Services

              AWS Compute Blog Introducing AWS Lambda response streaming Today, AWS Lambda is announcing support for response payload streaming. Response streaming is a new invocation pattern that lets functions progressively stream response payloads back to clients. You can use Lambda response payload streaming to send response data to callers as it becomes available. This can improve performance for web and m

                Introducing AWS Lambda response streaming | Amazon Web Services
              • MySQL5系クライアントと8系クライアント混在時に発生する現象 | 株式会社ヌーラボ(Nulab inc.)

                こんにちは、ヌーラボの中村です。BacklogのGitチームで開発やメンテナンス、その他諸々をやっています。本記事ではMySQLクライアントのバージョンアップの際に出くわしたおもしろい挙動を解説します。 概要 MySQL 5.7サーバーへの接続について、MySQL5系クライアントからMySQL8系クライアントへのバージョンアップを検証していたところ、特定のクエリだけ実行結果が0件になる現象が発生しました。(あるPerlのプログラムで5系のクライアントをサポートしていない環境があり、やむを得ずアップグレードを実施しました) インターネットで検索すると、「クエリに空白を入れる」「改行を追加する」などおまじないのような解決方法が散見されましたが、そんなはずはないと思い調査を進めました。 調査したところ、原因は以下の3つが合わさったことによるものでした。 MySQL 5.7ではクエリキャッシュが有

                  MySQL5系クライアントと8系クライアント混在時に発生する現象 | 株式会社ヌーラボ(Nulab inc.)
                • us-16-MunozMirosh-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE

                  A JOURNEY FROM JNDI/LDAP MANIPULATION TO REMOTE CODE EXECUTION DREAM LAND Alvaro Muñoz (@pwntester) Oleksandr Mirosh Who are we • Alvaro Muñoz (@pwntester) • Principal Security Researcher, HPE Fortify • Oleksandr Mirosh • Senior QA Engineer, HPE Fortify Agenda • Introduction to JNDI • JNDI Injection • RMI Vector • Demo: EclipseLink/TopLink • CORBA Vector • LDAP Vector • LDAP Entry Poisoning • Demo

                  • AWS Lambda レスポンスストリーミングの紹介 | Amazon Web Services

                    Amazon Web Services ブログ AWS Lambda レスポンスストリーミングの紹介 本記事は、Introducing AWS Lambda response streaming の翻訳です。 本日 (2023年4月7日)、AWS Lambda はレスポンスペイロードストリーミングのサポートを発表しました。レスポンスストリーミングは、関数がレスポンスペイロードを段階的にクライアントに返すことができる新しい呼び出しパターンです。 Lambda のレスポンスペイロードストリーミングを使用すると、レスポンスデータが利用可能になった時点で呼び出し元にデータを送信することができます。これにより、Web アプリケーションやモバイルアプリケーションのパフォーマンスを向上させることができます。また、レスポンスストリーミングによって、より大きなペイロードを返す関数や、進捗状況を段階的に報告し

                      AWS Lambda レスポンスストリーミングの紹介 | Amazon Web Services
                    • Cloudflare functions with Scala.js

                      Indoor VivantsAnton Sviridov. I love reinventing the wheel and I usually use Scala for that. TL;DR We are deploying an app to Cloudflare using Scala.js We are using ScalablyTyped We are using Scala 3 heavily Code on Github Deployed app Cloudflare API bindings Welcome to the "Put ma Scala on yo cloud" series I want to say that I'm kicking off a blog series, but even I don't believe that. If I did,

                      • JEP 425: Virtual Threads (Preview)

                        Summary Introduce virtual threads to the Java Platform. Virtual threads are lightweight threads that dramatically reduce the effort of writing, maintaining, and observing high-throughput concurrent applications. This is a preview API. Goals Enable server applications written in the simple thread-per-request style to scale with near-optimal hardware utilization. Enable existing code that uses the j

                        • V Language Review (2022)

                          V is a programming language promising to be “Simple, fast, safe, compiled. For developing maintainable software.” V has a controversial past but what is the state of V in 2022? Is V worth checking out? In this post, we’ll take a look at V as it exists in May 2022. TLDR Read the summary Rules of engagement I’ll be using the current version of V built from git which is 50ab2cfd1ae02d4f4280f38c60b8db

                          • Cloud Dataflow で実現する柔軟なデータパイプライン - スタディサプリ Product Team Blog

                            はじめに こんにちは、@shase です。 スタディサプリでは、データパイプラインのツールとして、従来 AWS Kinesis Stream や、Embulk や、AWS Lambda などがよく使われてきました。 ただ、現在開発中のプロジェクトでは、システム間の連携の為、Cloud Pub/Sub が多用されているということもあり、データパイプライン Cloud Pub/Subとの親和性が高いCloud Dataflowを一部取り入れています。 本記事では Cloud Dataflow 自体は詳述しませんが、簡単に説明させていただくと、Cloud Dataflowとは、GCP が提供するマネージドな Apache Beam の実行環境になります。 Cloud Dataflow のメリット Cloud Dataflow(Apache Beam)には、以下のようなメリットを感じています。 ス

                              Cloud Dataflow で実現する柔軟なデータパイプライン - スタディサプリ Product Team Blog
                            • Full Stack Java with React, Spring Boot, and JHipster

                              Press Enter, and JHipster will create your app in the current directory and run npm install to install all the dependencies specified in package.json. Verify Everything Works with Cypress and KeycloakWhen you choose OAuth 2.0 and OIDC for authentication, the users are stored outside of the application rather than in it. You need to configure an identity provider (IdP) to store your users and allow

                                Full Stack Java with React, Spring Boot, and JHipster
                              • Develop Cross-Platform CLI and GUI Tools With Tcl/Tk. Powerful, Event-Driven, Open-Source And Future-Proof Toolkit… From the Past?! - CGI Coffee

                                Develop Cross-Platform CLI and GUI Tools With Tcl/Tk. Powerful, Event-Driven, Open-Source And Future-Proof Toolkit… From the Past?! What if I told you there exists a language, or a whole toolkit that: Can be used to create cross-platform Console and GUI tools or apps Those GUI apps look native on Windows, Linux and macOS Supports safe and efficient threading, non-blocking events and I/O Has a smal

                                • Kotlin 1.6.0 Released | The Kotlin Blog

                                  Kotlin 1.6.0 is now officially released with Stable exhaustive whens, Kover, and a new memory manager for Kotlin/Native. Other language and standard library features released in 1.5.30 became Stable as well. Thanks for the feedback you’ve shared with us. If you still haven’t tried these new features out, now is the time! In this blog post, you can find an overview of the following updates: Languag

                                    Kotlin 1.6.0 Released | The Kotlin Blog
                                  • Temporal - JavaScript | MDN

                                    This feature is not Baseline because it does not work in some of the most widely-used browsers. Want more browser support for this feature? Tell us why. Learn more See full compatibility The Temporal object enables date and time management in various scenarios, including built-in time zone and calendar representation, wall-clock time conversions, arithmetics, formatting, and more. It is designed a

                                      Temporal - JavaScript | MDN
                                    • News

                                      Logback components written for logback 1.2 should work without change in version 1.3. However, Joran, logback's configuration system, has been rewritten to use an internal representation model which can be processed separately. Thus, code depending on Joran needs to be adapted to changes in Joran (logback's internal configuration mechanism). As a result of enhancements to Joran, logback configurat

                                      • JSON is not JSON Across Languages | Dochia CLI Blog

                                        Introduction: These Aren’t the JSONs You’re Looking For JSON (JavaScript Object Notation) was designed as a simple, lightweight, and human-readable data interchange format, often positioned as a more accessible alternative to XML. It has become the de facto standard for web APIs and system integration. However, while the specification itself is straightforward, different programming languages and

                                          JSON is not JSON Across Languages | Dochia CLI Blog
                                        • Java 25's new CPU-Time Profiler (1) - Mostly nerdless

                                          This is the first part of my series; the other parts are Java 25’s new CPU-Time Profiler: The Implementation (2) Java 25’s new CPU-Time Profiler: Queue Sizing (3) Java 25’s new CPU-Time Profiler: Removing Redundant Synchronization (4) Back to the blog post: More than three years in the making, with a concerted effort starting last year, my CPU-time profiler landed in Java with OpenJDK 25. It’s an

                                            Java 25's new CPU-Time Profiler (1) - Mostly nerdless
                                          • Spring BootのPageableで一定量以上のoffsetや意図しないSortを防ぐ - grep Tips *

                                            動作確認環境 Java 11 Spring Boot 2.5.5 一定量以上のoffsetや意図しないSortによる問題 一定量以上のoffset Spring Bootによるpage, sizeへの制限 Spring BootのPageableをControllerの引数にセットすればpage, size等のクエリパラメータを解釈してPageableにセットしてくれる。 OutOfMemoryを防ぐために、Spring Bootのデフォルト設定でsizeに2,000件以上設定しても2,000件になるようになっている(docs.spring.ioか日本語訳spring.pleiades.ioのspring.data.web.pageable.max-page-sizeを参照)。つまりPageableの1ページの件数はセーフガードが入ってる。 しかしpageには上限の設定がない。確かにJav

                                              Spring BootのPageableで一定量以上のoffsetや意図しないSortを防ぐ - grep Tips *
                                            • Spring BootからRedisを使うときはGenericJackson2JsonRedisSerializerでJSONとオブジェクトをマッピングする - grep Tips *

                                              環境 Java 17 Spring Boot 2.6.0 Jackson 2.13.0 Redis 6 関連 Spring SecurityでREST API + JSONによる認証を行う(Session/Cookie + Redis編) ※SessionにRedisを用いる場合も同様にGenericJackson2JsonRedisSerializerを使う。こちらにSession用の設定を記載している。 Spring BootからRedisを使う JdkSerializationRedisSerializer Spring BootからRedisを使うときは、標準ではJdkSerializationRedisSerializerがシリアライズ・デシリアライズで利用される。implements Serializableをクラスに設定する必要があり、当然シリアライズできないフィールドを持つ

                                                Spring BootからRedisを使うときはGenericJackson2JsonRedisSerializerでJSONとオブジェクトをマッピングする - grep Tips *
                                              • Spring AIとgpt-ossでプライベートAIアプリを作るチュートリアル - IK.AM

                                                gpt-ossの登場により、プライベートAIアプリでもそこそこの品質が期待できるようになりました。 改めて、Spring AIで簡単なAIアプリを作ってみましょう。利用するバージョンはSpring Boot 3.5、Spring AI 1.1です。 gpt-ossをOpenAI API互換で利用できる基盤として今回はOllamaを使います。 なお、本記事の内容はプライベートAIでなくてももちろん利用可能です。 目次 チュートリアルのゴール 今回はSpring AIの基本的な要素をステップバイステップで学びつつ、最終的には"Chronosia(クロノシア)"という架空の国への移住アドバイザーアプリを作成します。 クロノシアは、2025年1月1日に太平洋の海底が突如5,000メートル隆起したことで出現した架空の島国です。国際日付変更線上に位置するため、東西の地域によって暦上の日付が異なります。

                                                  Spring AIとgpt-ossでプライベートAIアプリを作るチュートリアル - IK.AM
                                                • Android: Interview Questions and Answers

                                                  Here is a list of common Android interview questions with detailed answers to help you prepare for the interview as an Android app developer. This article is designed to assist aspiring Android developers with a comprehensive set of interview questions, covering a wide spectrum of areas including basic programming principles, Android-specific components, design patterns, and best practices in mobi

                                                    Android: Interview Questions and Answers
                                                  • ScalarDB を使って Cassandra の Partition を跨いだ Tx を実行してみる - こたつ&&みかん&&でーたべーす

                                                    先日 NewSQL/分散SQLデータベース よろず勉強会 #1 にて「Cassandra で Partition を跨いだ Tx を実行できるようにする Accord というものが開発中である」というお話を聞いたのですが、「それって ScalarDB でもできるのでは?」ということでやってみました。 注意 このブログの内容は、あくまで個人の趣味の範囲で ScalarDB を使った検証を実施しているだけですので、あしからず。 また、サンプルとして記載しているコードではエラーハンドリング (エラー発生時の ROLLBACK 等) は考慮していません。実際に ScalarDB を使ってアプリを作る場合はそのあたりも考えないといけないので注意してください。ScalarDB でのエラーハンドリングについては Handle Exceptions に記載されているので、興味がある方はそちらもどうぞ。 環

                                                      ScalarDB を使って Cassandra の Partition を跨いだ Tx を実行してみる - こたつ&&みかん&&でーたべーす
                                                    • James Shore: Testing Without Mocks: A Pattern Language

                                                      Automated tests are important. Without them, programmers waste a huge amount of time manually checking and fixing their code. Unfortunately, many automated tests also waste a huge amount of time. The easy, obvious way to write tests is to make broad tests that are automated versions of manual tests. But they’re flaky and slow. Folks in the know use mocks and spies (I say “mocks” for short in this

                                                      • JBoss EAP 8.0で開発を始めてみよう(2) - 赤帽エンジニアブログ

                                                        こんにちは。Red Hatのソリューションアーキテクトの瀬戸です。 気が付けば前回から3か月も空いてしまっていました。 今回は構築した環境を使用して実際にアプリケーションを開発していきたいと思います。 この記事では簡単なアプリケーションのデプロイまでを行います。 前回の記事はこちら。 rheb.hatenablog.com 前回の記事では、JBoss EAP/Mavenの設定をして簡単な動作確認まで終わりました。 IDEは前回の記事の中で予告していた通りPleiadesを使用します。 ダウンロードして、デフォルト状態でインストールされている状態から開始します。 ※この記事ではWindows x64用 Java Full Editionの2024-06.20240626を使用しています。*1 Pleiadesのダウンロードは次のURLから行うことができます。インストールも含めて簡単なので、使

                                                          JBoss EAP 8.0で開発を始めてみよう(2) - 赤帽エンジニアブログ
                                                        • Cay Horstmann's Unblog

                                                          Java in the Small Java has many features that make it well suited for large, long-lasting projects. But I find it surprisingly good for small tasks as well. Recent language features make it even better. The killer features are compile-time typing and great tool support. This article also appeared in the Java Advent calendar. In my job as author and teacher, I have many repetitive tasks, such as mo

                                                          • Spring + MyBatisで楽観ロックを実装する

                                                            ■CREATE文 CREATE TABLE `sampledb`.`lock_sample` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `name` VARCHAR(100) NOT NULL, `update_date` timestamp NOT NULL, PRIMARY KEY (`id`));Springの設定ファイルSpring Bootの設定ファイルは次のとおり。 「mybatis.configuration.map-underscore-to-camel-case」(自動的にスネーク→キャメルに変換してくれる設定)を「true」、「mybatis.mapper-locations」でXMLファイル(SQL文)の格納位置を指定しています。 [application.properties] mybatis.configuration.map-

                                                              Spring + MyBatisで楽観ロックを実装する
                                                            • CVE-2021-44832 - Apache Log4j 2.17.0 Arbitrary Code Execution via JDBCAppender DataSource Element

                                                              Log4j is a highly popular logging package in Java that is used widely by developers, companies such as Google, Steam, Apple, Minecraft, and even on one of NASA’s Mars rovers utilize this package. On December 9th, the most critical zero-day exploit in recent years was discovered in log4j. The vulnerability CVE-2021-44228 was unauthenticated, zero-click RCE (Remote Code Execution) by logging a certa

                                                                CVE-2021-44832 - Apache Log4j 2.17.0 Arbitrary Code Execution via JDBCAppender DataSource Element
                                                              1