LMLPHP后院

spring boot jpa 多个数据源配置

sql.jdbc.Driver bar.datasource.sql-script-encoding=utf-8BarConfig 参考:package com.lmlphp.nb.config; import javax.persistence.EntityManagerFactory; import javax.sql.DataSource; import org.springframework.bea...

CSS3中导入外部CSS文件@import的用法

在网页开发中载入 CSS 文件,比较常见的都是使用 <link> 标签,偶尔也会发现有些网站的做法是在载入的 CSS 文件中再使用 @import 载入其他的 CSS 文件。大家有没有想过,这样做有什么意义呢?本文主要目的倒不是为了解释 @import 的用法,因为 CSS 中类似 @ 这样的方法特别多,讲起来也是讲不完的。当我看到这个做法之后,我表示不能理解,我觉得这样的做法是很不明智的,正是因为这个原因,...

Spring Boot Jpa 使用原生 SQL 和动态分页

abstract org.springframework.data.domain.Page Jpa 的原生 SQL 对命名没有严格的要求,如下示例:package com.lmlphp.test; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.reposito...

springboot mybatis 多数据源配置

id</artifactId> <version>1.1.2</version> </dependency> mybatis config:package com.lmlphp.nb.config; import com.alibaba.druid.pool.DruidDataSource; import org.apache.ibatis.session.SqlSessionFactory; import ...

解决 springboot Interceptor @Autowired null

看如下代码块:package com.lmlphp.nb.config; import com.lmlphp.nb.interceptor.WebInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import ...

Golang 学习笔记

golang 学习笔记,语法特点,快速入门,一小时入门。花括号 { 不可以单独一行不需要加分号import 合并写法import "fmt" import { "fmt" "time" }变量声明// 1 var a int // 默认为 0 // 2 var b int = 1 // 3 var c = 1 // 4 只能使用在函数内 d := 1 // 打印类型 fmt.Printf("%T\n", d...

traffmonetizer 小鸡折腾记

Manage images Commands: build Build an image from a Dockerfile history Show the history of an image import Import the contents from a tarball to create a filesystem image inspect Display detailed informatio...

在PHP中导入命名空间的函数

PHP 5.6 之后支持命名空间导入函数了,算是一个新玩意儿,并且还支持命名空间常量的导入,这个都是命名空间刚出来那会儿不支持的。 // importing a function (PHP 5.6+) use function My\Full\functionName; 重命名// aliasing a function (PHP 5.6+) use function My\Full\functionName...

Windows 远程关闭防火墙

-------------------------------------------- No ports are currently open on all network interfaces. IMPORTANT: Command executed successfully. However, "netsh firewall" is deprecated; use "netsh advfirewall ...

Raspberry Pi 安装 Docker

t a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide informatio...
2024-04-27 12:02:14 1714190534 0.005928