ログインをしてページを更新するだけでお金を稼ぐことが出来ます。
ページの作成

ページの作成

親となるページを選択してください。

ページは必ず何かしらの親ページに紐づきます。
親ページに紐づくページを子ページといいます。
例: 親=スポーツ, 子1=サッカー, 子2=野球

子ページを親ページとして更に子ページを作成することも可能です。
例: 親=サッカー, 子=サッカーのルール

親ページはいつでも変更することが可能なのでとりあえず作ってみましょう!
テンプレートを更新

19. Spring Bootプロジェクトのビルドと本番環境へのデプロイ方法(内部tomcat使用)

前提

・Spring Bootプロジェクトである。

・最低限動作するアプリを作成済み。

※まだの場合はこちらの記事を参考に。

・Bootプロジェクト内蔵のtomcatを使用する。

・パッケージング方式がjarである。

・mavenを使用する。

・JDKがダウンロード済み

※まだの場合は公式サイトからダウンロードしてください。

JDKをダウンロードしないとビルド時にエラーが発生します。

・本番環境にJavaのインストール済み

※まだの場合はこちらを参考に。

・本番環境のtomcatのポート番号が解放されている

※まだの場合はこちらを参考に。

 

JDKの設定

ビルドの前提としてJDKを使用しないとエラーが発生するのでプロジェクトにJDKを設定しましょう。

Window」→「Preferences」を選択します。

 

Installed JREs」→「Add...」→「Standard VM」を選択します。

 

Directory」を押してJDKをフォルダを指定しましょう。

Finish」を押します。

 

最期にjdkに切り替えて適用すれば完了です。

 

mavenビルドでjarの作成

プロジェクト名を右クリック → 「Run As」 → 「maven build...」を押します。

 

GoalsにPackageと指定して実行しましょう。

 

プロジェクト名を右クリック → 「Refresh」を選択します。

targetディレクトリ配下にjarファイルが生成されていることを確認できます。

 

本番環境へのデプロイ

先ほど生成したjarを本番環境の適当な場所に配置しましょう。

以下の様に「java -jar 対象のjar」でtomcatを起動します。

# java -jar demo-0.0.1-SNAPSHOT.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.2.RELEASE)

2019-01-31 10:41:52.169  INFO 28889 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication v0.0.1-SNAPSHOT on 163-44-175-157 with PID 28889 (/opt/spring/demo-0.0.1-SNAPSHOT.jar started by root in /opt/spring)
2019-01-31 10:41:52.173  INFO 28889 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default
2019-01-31 10:41:55.687  INFO 28889 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-01-31 10:41:55.772  INFO 28889 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-01-31 10:41:55.773  INFO 28889 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.14]
2019-01-31 10:41:55.803  INFO 28889 --- [           main] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
2019-01-31 10:41:56.038  INFO 28889 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-01-31 10:41:56.038  INFO 28889 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3666 ms
2019-01-31 10:41:56.614  INFO 28889 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-01-31 10:41:57.146  INFO 28889 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2019-01-31 10:41:57.150  INFO 28889 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 6.423 seconds (JVM running for 7.501)

 

 

ドメイン名:8080」にアクセスすることで、画面が表示されます。

 

※Apacheとの連携は別記事を参照

// TODO リンク張る予定

 

子ページ
子ページはありません
同階層のページ
  1. インストール(eclipseプラグイン)
  2. クイックスタート
  3. プロジェクトの作成
  4. Spring Bootプロジェクトの作成
  5. Spring Bootプロジェクトの実行
  6. Spring BootでHello World!
  7. アノテーション一覧
  8. DB接続設定からエンティティおよびリポジトリの作成、値の取得まで(JPA編)
  9. DB接続設定や値の取得(JdbcTemplate編)
  10. ビューから値をモデルに格納しコントローラーで受け取る方法
  11. コントローラーにてモデルに値を格納してビューに渡す方法
  12. テンプレートエンジン
  13. ModelとModelAndViewの違い
  14. AOPの使用方法
  15. classpath: 内部ファイルの読み込み
  16. file: 外部ファイルの読み込み
  17. CSVファイルアップロード方法(Ajax)
  18. CSVファイルダウンロード方法(Ajax)
  19. Spring Bootプロジェクトのビルドと本番環境へのデプロイ方法(内部tomcat使用)
  20. Application.propertiesの環境依存設定の分割方法
  21. JPAにおけるEntityManagerの取得方法
  22. JPAにおけるjava.sql.Connectionの取得方法
  23. エラー一覧
  24. jarの引数を受け取る方法
  25. Spring BootでGmailからメール送信
  26. 複数のDBに接続する設定(Spring Boot & JPA編)
コメント一覧

    No.43 | guest | 2019-10-20 14:45:27

    Helpful knowledge. Thank you! Lisinopril online <a href=http://lisinopriltrust.com/>zestril lisinopril</a> lisinopril cough <a href=http://lisinopriltrust.com/#>lisinopril generic</a>

    No.42 | guest | 2019-10-20 02:33:19

    Amazing information. Thank you! lisinopril hctz 12.5 no persription <a href=http://lisinopriltrust.com/>prinivil medication</a> lisinopril 20 mg looks like <a href=http://lisinopriltrust.com/#>lisinopril generic</a>

    No.41 | guest | 2019-10-19 16:15:30

    You actually stated that really well. lisinopril mg tab <a href=http://lisinopriltrust.com/>lisinopril online</a> can lisinopril get you high <a href=http://lisinopriltrust.com/#>lisinopril 10 mg</a>

    No.40 | guest | 2019-10-19 06:46:27

    Useful advice. Many thanks! lisinopril online <a href=http://lisinopriltrust.com/>lisinopril recall</a> price of lisinopril without insurance <a href=http://lisinopriltrust.com/#>lisinopril mg tablet</a>

    No.39 | guest | 2019-10-18 22:01:33

    Wonderful tips. Cheers! buy lisinopril no prescription <a href=http://lisinopriltrust.com/>zestoretic</a> where to buy lisinopril online <a href=http://lisinopriltrust.com/#>lisinopril 10 mg</a>

    No.38 | guest | 2019-10-18 05:01:44

    You actually suggested it fantastically! order lisinopril online <a href=http://lisinopriltrust.com/>lisinopril generic</a> how to order lisinopril-hctz <a href=http://lisinopriltrust.com/#>lisinopril 10mg tablets prices</a>

    No.37 | guest | 2019-09-26 17:42:37

    what makes you harder viagra or cialis <a href=" http://indiskmad.com/koriander-chutney/ ">cialis</a> http://indiskmad.com/koriander-chutney/ cialis gives me a headache <a href=http://indiskmad.com/koriander-chutney/>generic cialis</a> cialis and leg pain

    No.36 | guest | 2019-09-26 17:33:47

    This is really interesting, You're a very skilled blogger. I have joined your feed and look forward to seeking more of your great post. Also, I have shared your in my social networks! https://cialisfavdrug.com

    No.35 | guest | 2019-09-25 09:24:27

    Ordering cialis online <a href="http://mrxcialisrx.com/#">cialis coupon</a> viagra in walmart <a href="http://viagramrxgeneric.com/#">cheap viagra</a>

    No.34 | guest | 2019-09-25 09:21:03

    Buy genuine cialis 20mg <a href="http://cialischbrx.com/#">buy cialis online</a> cialis <a href="http://cialisknfrx.com/#">generic cialis online</a>

    No.33 | guest | 2019-09-25 05:52:34

    Buy tadalafil 20mg price <a href="http://cialischmrx.com/#">order cialis</a> buy cialis soft online <a href="http://cialisdbrx.com/#">generic cialis</a>

    No.32 | guest | 2019-09-22 17:41:06

    Natural alternative to viagra <a href="http://chviagranrxusa.com/#">viagra online</a> how much is viagra at walmart cialis generic <a href="http://cialismnrx.com/#">buy cialis online</a>

    No.31 | guest | 2019-09-22 14:08:56

    Generic professional cialis cialis <a href="http://cialismrxcialis.com/#">cheap cialis</a> viagra super active <a href="http://genviagramdmrx.com/#">buy viagra online</a>

    No.30 | guest | 2019-09-22 09:41:01

    Forum buy cialis online <a href="http://cialisherrx.com/#">buy cialis online</a> caverta in india cialis generic <a href="http://cialismdmarx.com/#">generic cialis online</a>

    No.29 | guest | 2019-09-22 09:37:43

    Buy cialis online australia <a href="http://chorrera.com/#">cialis generic</a> cialis generic dosage <a href="http://newyearideas.info/#">cialis</a> generic cialis from canada <a href="http://jacarebanguela.com/#">generic cialis online</a> is cialis available in generic <a href="http://alanristic.com/#">cialis generic</a> us cialis pharmacy <a href="http://chromaphase.com/#">buy cheap cialis online</a> mentax ointment cialis pills

    No.28 | guest | 2019-09-22 01:31:06

    Order cialis online without otc <a href="http://freelancelogan.com/#">buy cheap cialis</a> buy cialis online in canada <a href="http://asmith-photography.com/#">Buy Generic Cialis Online</a> otc cialis pills <a href="http://brewhemoth.com/#">buy cialis online</a> buy tadalafil canada cialis <a href="http://fattigfolket.com/#">Buy Generic Cialis Online</a> generic cialis vs cialis <a href="http://highbluewave.com/#">buy cialis generic</a> buy cialis online without

    No.27 | guest | 2019-09-21 23:20:52

    Buy cialis online usa now canadian <a href="http://customerservicetrainingassociation.co.uk/#">buy cialis online</a> cialis 40 mg tablets <a href="http://conqueringfear.net/#">Buy Cialis Online</a> cialis 5mg tablets cialis <a href="http://fatlack.com/#">cheap cialis online</a> buy cialis online in america <a href="http://abiteofsanity.com/#">online cialis</a> where to buy cialis <a href="http://bettychoyce.com/#">cialis generic</a> lifestyle cialis pills

    No.26 | guest | 2019-09-19 02:20:22

    Taking without ed cialis pills cialis <a href="http://bangladeshinternet.org/#">buy generic cialis online</a> buy cialis online canada buy <a href="http://champsenior.org/#">cheap cialis</a> buy cialis generic online <a href="http://girlscoutsclc.org/#">Buy Cialis Online</a> what make cialis pills look like <a href="http://the-mofo.co.uk/#">buy generic cialis online</a> viagra in luxemburg cialis generic <a href="http://kyrkbynskok.com/#">cialis</a> cialis generico online

    No.25 | guest | 2019-09-19 00:20:25

    Generic cialis without prescription <a href="http://asmith-photography.com/#">buy cialis online</a> cheap buy generic cialis online <a href="http://incoasterpaedia.com/#">buy cialis online cheap</a> love cialis pharmacy <a href="http://babysitterpass.com/#">buy cialis online</a> cheap cialis tablets <a href="http://archivomunicipaldecastrourdiales.com/#">buy cialis generic</a> canada cialis online <a href="http://golfballs101.com/#">buy cialis online</a> manufacturer cialis 20mg

    No.24 | guest | 2019-09-13 23:22:38

    Generic cialis tadalafil sildenafil citrate <a href="http://cialismrxcialis.com/#">buy cialis online</a> viagra super force <a href="http://genviagramdmrx.com/#">viagra</a>

    No.23 | guest | 2019-09-12 21:37:27

    Woman on viagra commercial <a href="http://chviagranrxusa.com/#">buy viagra online</a> purchase cheap cialis online <a href="http://cialismnrx.com/#">cheap cialis online</a>

    No.22 | guest | 2019-09-12 10:49:35

    Search cialis generic cialis <a href="http://cialisherrx.com/#">buy cialis</a> generic cialis cialis <a href="http://cialismdmarx.com/#">generic cialis online</a>

    No.21 | guest | 2019-09-12 07:16:37

    Viagra rapid tabs cialis pills <a href="http://cialischmrx.com/#">cialis</a> cialis generic price <a href="http://cialisdbrx.com/#">buy generic cialis online</a>

    No.20 | guest | 2019-09-12 07:16:36

    Generic cialis safety <a href="http://mrxcialisrx.com/#">buy cialis</a> viagra otc <a href="http://viagramrxgeneric.com/#">buy viagra</a>

    No.19 | guest | 2019-08-30 10:36:00

    Search cialis pharmacy <a href="http://cialisgenbrx.com/#">cheap cialis online</a> generic cialis pills <a href="https://cialisrxche.com/#">generic cialis online</a> easy personal loans for bad credit <a href="http://paydaystip.com/#">fast cash</a>

    No.18 | guest | 2019-08-30 08:55:50

    Cialis for cheap <a href="http://cialisgenbrx.com/#">cialis online</a> order cialis tadalafil <a href="https://cialisrxche.com/#">generic cialis online</a> first loan <a href="http://paydaystip.com/#">personal loans</a>

    No.17 | guest | 2019-08-27 03:20:13

    <a href="http://viagramrxgeneric.com/#">buy viagra online</a> <a href="http://mrxcialisrx.com/#">buy cialis online</a> <a href="http://calismdmrxonline.com/#">buy generic cialis</a> <a href="http://cialisndbrx.com/#">buy generic cialis online</a> <a href="http://genviagramdmrx.com/#">generic viagra online</a>

    No.16 | guest | 2019-08-11 09:20:05

    Non generic cialis cialis <a href="http://cialisndbrx.com/#">buy cialis online</a> buy generic cialis online sildenafil citrate buy <a href="http://cialischmrx.com/#">buy cheap cialis online</a> find cialis generic <a href="http://cialischbrx.com/#">buy generic cialis online</a> get cialis presN?riN€tion and order cialis online <a href="http://cialisdbrx.com/#">buy cheap cialis online</a> viagra jelly review <a href="http://chviagranrxusa.com/#">buy generic viagra online</a>

    No.15 | guest | 2019-07-28 20:23:23

    <a href="https://kamagra50.com/">buy kamagra</a>

    No.14 | guest | 2019-07-27 01:17:32

    <a href="https://kamagra50.com/">kamagra</a>

    No.13 | guest | 2019-07-26 20:27:17

    <a href="https://kamagra50.com/">kamagra</a>

    No.12 | guest | 2019-07-26 12:05:37

    <a href="http://kamagra50.com/">kamagra 50mg</a>

    No.11 | guest | 2019-07-24 07:54:11

    <a href="https://kamagra50.com/">kamagra</a>

    No.10 | guest | 2019-07-22 16:18:01

    <a href="https://kamagra50.com/">kamagra</a>

    No.9 | guest | 2019-07-22 08:55:49

    <a href="https://kamagra50.com/">kamagra 100mg</a>

    No.8 | guest | 2019-07-21 22:45:26

    <a href="http://kamagra50.com/">kamagra online</a>

    No.7 | guest | 2019-07-21 20:46:27

    <a href="https://kamagra50.com/">kamagra</a>

    No.6 | guest | 2019-07-19 09:08:22

    <a href="https://kamagra50.com/">buy kamagra online</a>

    No.5 | guest | 2019-07-18 23:12:11

    <a href="https://kamagra50.com/">buy kamagra</a>

    No.4 | guest | 2019-07-18 17:00:01

    <a href="https://kamagra50.com/">kamagra 100 chewable tablets</a>

    No.3 | guest | 2019-07-18 13:54:17

    <a href="http://kamagra50.com/">buy kamagra</a>

    No.2 | guest | 2019-05-20 19:18:20

    Linkbaiting sounds fishy,but usually totally legitimaate in the internet world. Imagine if you tell two ffiends about something aand they tell two friends and so on. Unfortunately working a job is necessary to survive in life. http://Www.Naturetravel.com/__media__/js/netsoltrademark.php?d=dotnetspurt.com%2F__media__%2Fjs%2Fnetsoltrademark.php%3Fd%3D918kiss.bid%2Fgames%2Fntc33

    No.1 | guest | 2019-05-13 03:02:14

    The famous roulette game originated in France by the brilliant scientist Blaise Pascal in 1655 in one of his works offers the meaning "small wheel". Pascal was then trying to develop a machine in affect on motion hence, driving at a perpetual motion machine-the roulette wheels. It became as popular for a game that 1842, two rich men opened up get started building links casino in Monte Carlo to feature the roulette wheels. The story of opening the casino unfolds a black legend which says that 2 brothers sold their souls to satan for the success and secret of your roulette games. Work out plans attached to males that adding all of the numbers in roulette would sum at least the number for this beast-666. Playing online roulette games is a seriously convenient experience. There isn't a dress code to follow when you play online and you plays literally anywhere; from your room, in the cafe, as well as in your rest room. The point is playing online roulette wheel can be set sign in own momentum. But before you get all jumpy and try your luck with this game, you should learn the ins and outs for in which get in front. Here are some online roulette tips stick to before wagering. Red or black: This bet involves placing the bet around color among the outcome and never the selection. The wheels of the Roulette are broken into 38 slots. Each wheel is split into slots numbered 1 to 36 the remaining two slots are numbered 0 and 00. The divided slots numbered 1 to 36 are colored half in red and half and black. Other people are colored in ecologically friendly. The better lays a bet that consequence color will be red or black. There are extensive betting strategies that are now being followed while during the tournaments of online roulette. One strategy of placing bets is progressive betting system. During this system quantity of placed everyone bet is increasing gradually if an individual losing the bets. Still there is regressive betting system quantity of placed on each bet is decreasing gradually. Some people also follow level bets system. Where amount slip on each bet is precise. Here a wise trick is that choose progressive system in case you're winning and select regressive system if you're losing. Try to select the right regarding casino to make sure you can save your time. The correct roulette system would require specific number of spins before any bet. It is due to this reason so that you can choose quick playing roulette tables. Many individuals will claim possess the secret on the way to beat online roulette. You should take states with a grain of salt concerning is truly no a great number of percent fool proof way to beat the roulette wheel. But there are systems visiting this blog than give you an acceptable advantage. Any one these systems are as old due to the game of roulette in itself. If you already utilize one particular casino for playing other games, like blackjack, baccarat or a slots, speak with your doctor very tempting to play roulette with them, because of the convenience idea. Just understand that your greatest advantage over this game is not the associated with strategy or software, ought to with your knowledge of the and self control. Make sure that you to possess a power over your urges and bet only volume of that you really. Aside from that, learn as up to you can with every game that you play. Roulette can deemed very great way to enjoy and have fun. http://destakdoce.com/index.php?option=com_akobook