• spring-cloud eureka server 的发现客户端与注册例子

    今天在公司测试Eureka server 与client 的发现与注册,可能是碰见鬼了,或者下载了假的jar包,配置都是按照网上文档做的,server 与客户端都跑起来了,但在eureka server 中就是查看不到已经运行起来的服务端。 最关键的是,在客户端也是配置了eureka.client.serviceUrl.defaultZone 地址,也加入相应的依赖包,而且也加入了@@EnableDiscoveryClient, 但无论如何还是发现不了客户端,后来就算了,晚上回到家,按照同样的方法,唯一不同的是换了 依赖的版本,就实现了。可以发现服务了。简单记录下配置过程。

    2017-05-23[java]

    阅读更多
  • Spring-boot 与Mybatis集成, 附源码下载

    前面几天尝试了Spring-boot的基础东西,今天继续用Spring-boot集成Mybatis. spring-boot 给开发人员的整体印象是精简了许多配置,开发搭框架更简单了,使用也更简单,让开发者更专注于业务。不像以前用Spring MVC, 还是需要配置很多东西,当然 spring-boot 也是微服务的基础组成部分。废话少说了,今天完成与mybatis 的集成, 我仍然当做web工程来做。所以在Maven的pom.xml文件中,就能看出端倪来.

    2017-05-20[java]

    阅读更多
  • Spring boot 读取配置文件properties

    Spring boot 读取配置文件, 有如下几种方法1. 直接利用Spring @Value 注解2. 利用@PropertySource("classpath:xxx.properties") 与 @Value 注解配合3. @PropertySource("classpath:xxx.properties") 与 @ConfigurationProperties 注解配合采用这三种常见的方法,甚至可以直接用配置文件组装复杂的对象都可以

    2017-05-16[java]

    阅读更多
  • Spring boot 非web版(jar)入门配置程序-maven工程源码

    前面尝试了用spring boot 搭建入门的web, war 包工程,内置了一个tomcat。今天尝试直接用spring boot 实现一个jar工程,可以直接执行的 jar 工程,注意是非 web 工程,也就是普通的可以执行的jar ,后面可以跟参数,说白了就是通常用得很多的命令行模式,spring boot 对这个也有很好的支持, 废话就不多说了,码农就直接上代码了

    2017-03-29[java]

    阅读更多
  • Spring boot jsp版入门配置程序-maven工程源码

    最近很多应用都慢慢转向了微服务,而在微服务里面很多都用到了spring boot 框架,其实作为这个框架来说,还是比较简单的。官方的文档也写得比较详细。至于微服务这种模式,其实多年前就在用了,多个系统独立运行,病提供接口给其他系统使用,系统间通过RPC等方式进行交互数据。作为这种思想,已经没什么新意。但最近流行的框架,还是得看看,要不然以后别人问起来,都还没使用过,就太OUT了。这是一个入门的例子,没什么技术含量。记录下来的原因就是为了记录我这个周末没有白过,花了我两个小时的时间,一边看文档,一边自己弄,其实完全可以自己在网上下载一个例子,会更快,但个人习惯不喜欢那样。

    2017-03-12[java]

    阅读更多
  • 一套基于bootstrap3.x 的收费界面开源版

    其实通过万能的google或者在某度, 可以搜索出很多基于bootstrap 的开源的界面框架。这些框架都大同小异。在使用上都差不多了,因为都是基于bootstrap定制的,我在这里也分享一套,放在博客上面,今后直接可以打开参考, 里面集成了很多其他插件,具有一定的参考价值

    2016-07-26[Javascript]

    阅读更多
  • bootstrap-table 的一些常用方法, 服务端分页,排序,样式等

    bootstrap-table 是基于jquery, bootstrap 的一个 前端table 框架。最近测试了下基本用法,感觉很不错,而且官方的文档以及例子都比较全面,如果是详细的用法,可以参考官方文档,我这里只记录下,我自己常用的一点东西。

    2016-01-26[Javascript]

    阅读更多
  • Spring Boot Hello World Example Thymeleaf

    Spring Boot Hello World Example  Thymeleaf

    In this article, we will show you how to develop a Spring Boot web application, using Thymeleaf view, embedded Tomcat and package it as an executable JAR file.

    2019-08-17[Java]

    阅读更多
  • Spring Boot How to change Context Path

    In Spring Boot, to change the context path, update server.contextPath properties. The following examples update the context path from / to /mkyong or http://localhost:8080/mkyong

    2019-08-17[Java]

    阅读更多
  • Spring Boot Hello World Example Thymeleaf

    Spring Boot Hello World Example  Thymeleaf

    In this article, we will show you how to develop a Spring Boot web application, using Thymeleaf view, embedded Tomcat and package it as an executable JAR file.

    2019-08-16[Java]

    阅读更多
  • Spring Boot How to change Context Path

    In Spring Boot, to change the context path, update server.contextPath properties. The following examples update the context path from / to /mkyong or http://localhost:8080/mkyong

    2019-08-16[Java]

    阅读更多
  • Spring Boot How to change Context Path

    In Spring Boot, to change the context path, update server.contextPath properties. The following examples update the context path from / to /mkyong or http://localhost:8080/mkyong

    2019-08-11[Java]

    阅读更多
  • Spring Boot How to change Tomcat port

    In Spring Boot, to change the embedded Tomcat initialized port (8080), update server.port properties.

    2019-08-11[Java]

    阅读更多
  • Spring Boot Jetty as embedded server

    By default, Spring Boot use Tomcat as the default embedded server, to change it to Jetty, just exclude Tomcat and include Jetty like this :

    2019-08-11[Java]

    阅读更多
  • Spring Boot Which main class to start

    If Spring Boot project contains multiple main classes, Spring Boot will fail to start or packag for deployment.

    2019-08-11[Java]

    阅读更多
共有 128 条记录 首页123456 >> 末页

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号