タグ

ブックマーク / yo1000.hateblo.jp (2)

  • Ubuntu 14.04 へ ssh のインストール -

    CentOS だと sshd だったので、Ubuntu でも同様にググってしまっていて、ちょっと手こずったのでおぼえがき。Ubuntu だとサービス名は ssh になっているようだった。 apt-get のリポジトリ更新をしてから、openssh-server のインストールでおわり。 $ sudo apt-get update $ sudo apt-get install openssh-server $ service ssh status ssh start/running, process 22624 参考:https://forums.ubuntulinux.jp/viewtopic.php?pid=53557

    Ubuntu 14.04 へ ssh のインストール -
  • Spring Boot での Bean 定義 -

    Spring Boot でアプリケーションを作成する際に、プレーンな Spring Framework を使用した場合との違いでまず大きいのが、Bean の定義ではないかと思う。XML ベースの定義が基的にはアノテーションベースに置き換わる。(もちろん XML ベースでの記述も可能ではあるが、多くのサンプルがアノテーションベースなので、これを理解したほうが良い。) さて、これまで Bean 定義というと、以下のように書いていたかと思う。 <?xml version="1.0" encoding="UTF-8"?> <beans ...> <context:component-scan/> <bean id="mongoTemplate" name="mongoTemplate" class="org.springframework.data.mongodb.core.MongoTempl

    Spring Boot での Bean 定義 -
  • 1