将SpaceMac配置为java(spring)ide
我是使用SpaceMac的初学者,但我正在努力学习。 我是一名java开发人员,我将SpaceMac配置为java ide。 我的配置层如下所示:将SpaceMac配置为java(spring)ide,java,spring,spacemacs,Java,Spring,Spacemacs,我是使用SpaceMac的初学者,但我正在努力学习。 我是一名java开发人员,我将SpaceMac配置为java ide。 我的配置层如下所示: dotspacemacs-configuration-layers '(javascript ;; ---------------------------------------------------------------- ;; Example of useful layers you may want to use
dotspacemacs-configuration-layers
'(javascript
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
;; `M-m f e R' (Emacs style) to install them.
;; ----------------------------------------------------------------
auto-completion
;; better-defaults
emacs-lisp
git
helm
lsp
markdown
(multiple-cursors :variables multiple-cursors-backend 'mc)
(plantuml :variables plantuml-jar-path "~/plantuml/plantuml.jar")
org
(shell :variables
shell-default-height 30
shell-default-position 'bottom)
;; spell-checking
;; syntax-checking
version-control
(java :variables java-backend 'lsp)
dap
treemacs)
我的用户配置如下
(defun dotspacemacs/user-config ()
"Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
(setq lombok-jar-path
(expand-file-name
"~/lombok/lombok.jar"
)
)
(setq lsp-java-vmargs `(
"-noverify"
"-Xmx1G"
"-XX:+UseG1GC"
"-XX:+UseStringDeduplication"
,(concat "-javaagent:" lombok-jar-path)
,(concat "-Xbootclasspath/a:" lombok-jar-path)
"--add-opens"
"java.base/java.util=ALL-UNNAMED"
"--add-opens"
"java.base/java.lang=ALL-UNNAMED"
"--add-modules=ALL-SYSTEM"
)
)
)
通过这个配置,我可以很好地编写代码,但是当我尝试使用M-x dap java debug使用dap来运行我的应用程序时,我收到了一个异常,一个ClassNotFoundException。
我上传了一个关于这个的截图
也许我需要添加一个launch.json配置,比如vscode,但我不知道
有人能在SpaceMac上运行spring boot应用程序吗
谢谢你的回答
Up:避免回答我使用intellij或eclipse之类的ide,因为我正在学习emacs