boot

Spring Boot-整合MyBatis

坚强是说给别人听的谎言 提交于 2019-12-03 09:42:42
Spring Boot整合MyBatis 引入MyBatis和数据库驱动依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.1</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.15</version> </dependency> 使用mybatis-spring-boot-starter,这样可以减少很多配置 减少XML配置; 自动检测存在的DataSource; 自动使用SqlSessionFactoryBean传递DataSource作为一个输入创建和注册一个SqlSessionFactory实例;

Android IntentService won't start on boot

陌路散爱 提交于 2019-12-03 09:10:25
I have an IntentService which starts on boot and stays running in the background. There is no launcher Activity, the IntentService is called by a broadcast receiver. It works on 2.3.4 and 4.0.4 devices but not on 4.2.2. Maybe my broadcast receiver isn't being triggered on the device? Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="br.com.xxx" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission.ACCESS

Gradle with QueryDSL 4.1.4 &amp; Intellij

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to get my Q Classes for queryDSL 1.4.1 recongised in a Spring-Boot 1.5.2 project. The IDE is Intellij Ultimate. build.gradle buildscript { ext { springBootVersion = '1.5.2.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } plugins { id 'net.ltgt.apt' version '0.8' id 'java' } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'org.springframework.boot' apply plugin: 'idea' version = '0.0.5-SNAPSHOT' sourceCompatibility = 1.8

Set JVM option for avoid error Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 [duplicate]

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: JDK9: An illegal reflective access operation has occurred. org.python.core.PySystemState 4 answers I use Spring Boot 2.0.0.RC1, JDK 9.0.4, IntelliJ IDEA 2017.3.4 Ultimate, Gradle 4.5.1 . Spring Boot RC1 version (strictly, Spring Framework 5.0.3.RELEASE) has a known issue: https://jira.spring.io/browse/SPR-15859 , I also see it at here https://github.com/dsyer/spring-boot-java-9#create-a-spring-boot-application Spring developer suggest that You can switch this off by adding -illegal-access=deny to the

Soft-float version of Raspbian does not boot

别说谁变了你拦得住时间么 提交于 2019-12-03 08:54:56
I downloaded the hard float image of Raspbian here: http://www.raspberrypi.org/downloads I copied the recommended hard-float image on an SD card and the Raspberry Pi boots fine with it. Then I downloaded the soft-float version of Raspbian because I need it to get some software running that does not work on the hard-float version. I formatted the SD card again, copied the soft-float image onto it and tried to boot the Raspberry Pi with it. Problem: the Raspbery Pi doesn't boot with the soft-float version of Raspbian!! I see the green "ACT" LED light up for less than a second. After that only

Plugin with id &#039;org.sonarqube&#039; not found

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to implement sonar with gradle for code-coverage measure for my project. we are using gradle-4.0.1 and sonarqube-6.4 . when I run gradle sonarqube from command line I get this error- Plugin with id 'org.sonarqube' not found. I tried few code changes but no luck, please help. My build.gradle file is as below- buildscript { ext { springBootVersion = '1.5.4.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'org.sonarqube'

Spring Boot: Hibernate and Flyway boot order

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created Spring application. Pom xml is attached. It has a config like this (below) and some db/migration/V1__init.sql for Flyway db migration tool. It has hsqldb in-memory database and it is created after application is started. It is clean after creation. I want Hibernate to create a schema based on entity classes and then Flyway fills the tables. Now Flyway starts V1__init.sql before tables is created and throw an exception. How can I change this order or what solution can I do? spring.datasource.testWhileIdle = true spring

Spring boot websocket 1.2.1.RELEASE - IllegalArgumentException in bean &#039;subProtocolWebSocketHandler&#039; : No handlers

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I'm looking to upgrade my projects from spring boot 1.1.9.RELEASE to 1.2.1.RELEASE. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> <version>${spring.boot.version}</version> </dependency> However, on startup, I gained: Exception in thread "Thread-0" org.springframework.context.ApplicationContextException: Failed to start bean 'subProtocolWebSocketHandler'; nested exception is java.lang.IllegalArgumentException: No handlers at org.springframework.context.support

【视频分享】Spring Boot 教程全集

ぐ巨炮叔叔 提交于 2019-12-03 08:20:49
# 【视频分享】Spring Boot 教程全集 ## 获取方式 **方式一:** **链接:** [百度网盘](https://pan.baidu.com/s/137KFcoCE-i75vA8FE_OYFQ) ==关注公众号极客萧(xiaoyxyj),并且回复关键字:springboot 即可获取下载链接和提取码(注意大小写别错)== ==如果链接失效,请及时联系我== 来源: https://www.cnblogs.com/icefirebug/p/11784818.html

Spring框架学习笔记(5)——Spring Boot创建与使用

我只是一个虾纸丫 提交于 2019-12-03 07:57:39
Spring Boot可以更为方便地搭建一个Web系统,之后服务器上部署也较为方便 创建Spring boot项目 1. 使用IDEA创建项目 2. 修改groupid和artifact 3. 一路next,自动IDEA就会自动下载依赖的jar包 4. 运行 之后运行项目(Application类),打开 http://localhost:8080 就会出现下面的白板页面,说明已配置成功 项目结构说明及使用 项目结构说明 我们可以看见项目中是这样的结构,Spring boot内置了tomcat服务器,所以,我们可以直接通过application来启动 SpringbootdemoApplication package com.wan.springbootdemo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringbootdemoApplication { public static void main(String[] args) { SpringApplication.run