Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin 2.0.0 #346

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ buildNumber.properties
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
.kotlin/sessions/

.gradle
**/build/
Expand Down
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

本项目在eladmin项目的基础上,进行了部分扩展及尝试,在此表示感谢。

For lWoHvYe/unicorn project, will stay at Java 21 until 2025. will try Java 21+ in WHY-lWoHvYe/valentine-p2p (skip Java 22)

---

Expand Down Expand Up @@ -90,7 +89,7 @@ implementation("com.lwohvye:unicorn-security:$unicornVersion") {

#### 项目简介

一个基于最新的Java 21(17) 版本、 Spring Boot 3.2、 Jpa、 Spring Security、RabbitMQ、Vue的前后端分离的脚手架。
一个基于最新的Java 21(17) 版本、 Spring Boot 3.3、 Jpa、 Spring Security、RabbitMQ、Vue的前后端分离的脚手架。
在各模块基本解耦之后,可根据需要只引入部分模块实现相关职能。

#### 项目源码
Expand Down
5 changes: 2 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
springBootVersion=3.2.4
springBootVersion=3.3.0
springCloudVersion=2023.0.1
kotlinVersion=1.9.24
kotlin.experimental.tryK2=true
kotlinVersion=2.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void initRabbitTemplate(RabbitTemplate rabbitTemplate) {
* exchange:当时这个消息发给哪个交换机
* routingKey:当时这个消息用哪个路邮键
*/
rabbitTemplate.setReturnsCallback(returnedMessage -> log.warn("Fail Message[{}]==>replyCode[{}]==>replyText[{}]==>exchange[{}]==>routingKey[{}]",
rabbitTemplate.setReturnsCallback(returnedMessage -> log.debug("Fail Message[{}]==>replyCode[{}]==>replyText[{}]==>exchange[{}]==>routingKey[{}]",
returnedMessage.getMessage(), returnedMessage.getReplyCode(), returnedMessage.getReplyText(), returnedMessage.getExchange(), returnedMessage.getRoutingKey()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public UserDto findById(long id) {

@Override
// 先简单处理,清理该域中所有缓存
// 在配置Cacheable时,可以即配置cacheNames又配置key,若将cacheNames视为一个Map,key就是其中单个key
// 在配置CacheEvict时,若只配置cacheNames,而未配置key,则需要将allEntries = true,否则可能不生效
// 这个也容易理解,因为cacheNames是一个很大的Cache,可能多个class共同使用,而key的gen是默认带上当前class信息的。主要是为了避免误清理过多的Cache
@CacheEvict(allEntries = true)
@Transactional(rollbackFor = Exception.class)
public void create(User resources) {
Expand Down
Loading