I once thought that putting a lock on the fridge was nothing but a joke—some silly internet meme. Then I saw one in the hardware shop: a sturdy little padlock with a key. I stood there staring at it, and for the first time, I seriously considered buying it. Not to keep food from children or thieves. No, to keep it from my own husband.
My name is Emily Whitmore, I’m thirty years old, and I live in Bristol with my husband and daughter. I work hard, rushing about like a hamster on a wheel, as they say. But of all the exhausting things in my life—the job, the child—nothing wears me down more than the man I share a roof with. My husband, James, notices nothing and no one but his own plate. He eats. Constantly. Without restraint, without thought, without shame.
I come home weary, knowing there’s a stash for dinner in the fridge—a bit of beef, some cheese, maybe yoghurt for our little girl. But when I open the door, it’s bare. Not just picked at—emptied. Silently, without a word, he’s eaten it all. Overnight. Sausages, cheese, even the raspberries I bought for our daughter—gone. Like a black hole had swallowed them.
Not long ago, I bought strawberries for the child. You know how dear they are out of season? But she’d seen them in the shop and asked so sweetly—I couldn’t refuse. At home, she ate them slowly, savoring each one with such delight. I deliberately saved half for the next morning, tucked them in the fridge. When I woke—empty box. He’d eaten them. Every last one. And then he had the gall to laugh: “Just go get more! We’ve got the money, what’s the problem?”
The problem, James, is that you *don’t think*. Not about our daughter, not about me! You didn’t ask, didn’t consider, just devoured it like it was yours by right. And me? I’ve become a cook, scrambling to stock and prepare meals. You polish off the last sausage—and what then? No guilt, no effort to make up for it.
He was raised by a mother who stuffed him full from childhood. Huge portions, endless treats. He’s tall, was athletic once, but the habits stuck. Me? I was brought up to know moderation. I try to teach our girl the same—not greed, but awareness. Yet with her father, she sees the opposite: take everything at once.
I’m not asking him to scrimp. Money isn’t the issue—I work at a design firm, he’s at a logistics company, we manage fine. It’s about respect. About pausing to think beyond yourself. See something? Consider whom it’s for. Was it the child’s? Did your wife set it aside? Is that really so hard?
Now here I stand before the fridge again. Empty. Again. The anger coils under my ribs like a slow fire. I’m tired. I didn’t marry to become a kitchen slave. I wanted to be a loved woman, a mother, a partner. Not a grocer for a grown man who sees nothing in this house but his plate and the sofa.
I tell him—you don’t live with a family, you live like a bachelor, just with full access to our fridge. And he waves me off: “You’re a poor housewife if food doesn’t last. A proper wife always has spares.” Oh, really? Shall we get a washing machine to replace me too?
More and more, I wonder—maybe what I need isn’t a lock for the# hb_04_validation 코드 실행 시 문제점
> – 문제1 : 톰캣 오류 (404)
> – 문제2 : `javax.validation.ValidationException: HV000183: Unable to initialize ‘javax.el.ExpressionFactory’` 에러
> – 문제3 : `javax.validation.ValidationException: HV000183: Unable to initialize ‘javax.el.ExpressionFactory’` 에러 발생시 해결책
## 1. 톰캣 문제
Spring Boot를 이용할 때, **톰캣이 실행되지 않은 문제**가 의심되어, `application.properties` 파일을 수정했다.
– **기존 서버 포트 : 8080 → 변경된 서버 포트 : 8090**
“`properties
server.port=8090
“`
## 2. `javax.validation.ValidationException: HV000183: Unable to initialize ‘javax.el.ExpressionFactory’` 에러
– **`javax.validation`** 관련 의존성 라이브러리가 부족한 것으로 추정된다.
– 그래서 `pom.xml`에 아래 2개 의존성을 추가한 다음, 실행했다.
“`xml
“`
– **하지만 여전히 동일한 에러가 발생했다.**
– **그래서 추가로 `validation-api` 라이브러리를 `pom.xml`에 추가했다.**
“`xml
“`
– **하지만 여전히 동일한 에러가 발생했다.**
– 이번에는 **`el-impl`** 라이브러리 추가를 시도해보았다.
“`xml
“`
– 하지만 아직 동일한 에러가 발생했다.
## 3. `javax.validation.ValidationException: HV000183: Unable to initialize ‘javax.el.ExpressionFactory’` 에러 해결
### 3.1. 처음에 추가했던 의존성 3개를 삭제
– **기존에 추가했던 아래 3개의 의존성**들을 모두 주석 처리하고, 새롭게 아래 과정을 따랐다.
“`xml
“`
### 3.2. `pom.xml`에 아래 의존성을 추가
– `pom.xml`에 아래 **`validation-api` 라이브러리**를 추가했다.
“`xml
“`
– 이 라이브러리는 Spring Boot 2.3.0 버전 이후부터 **`spring-boot-starter-web`**에 포함되어 있지 않아, 별도로 추가해야 한다.
### 3.3. 스프링 부트 애플리케이션 재시작
– 위 과정을 마치고, **스프링 부트 애플리케이션을 재시작하니 잘 실행되었다.**
### 3.4. 유효성 검사 테스트
– 프로젝트 실행 후, **http://localhost:8090/validation/v1/add** 로 접속해보았다.

– **아무런 값도 입력하지 않고, `등록` 버튼을 클릭하니, `Validation`이 작동되는 것을 확인할 수 있었다.**

– **값을 정상적으로 입력해보았다.**

– **`등록` 버튼을 누르면, 정상적으로 등록되었다는 메시지가 출력되었다.**
![image-20230724110554899](C:\Users\wail2\Desktop\TIL\SpringPerhaps it was time to stop locking away the food—and start unlocking the door to a life where I was more than just his cook.